]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
chore: rename to int feat/new-matcher 2415/head
authorEduardo San Martin Morote <posva13@gmail.com>
Mon, 11 Aug 2025 08:06:49 +0000 (10:06 +0200)
committerEduardo San Martin Morote <posva13@gmail.com>
Mon, 11 Aug 2025 08:06:49 +0000 (10:06 +0200)
packages/experiments-playground/src/router/index.ts
packages/router/src/experimental/index.ts
packages/router/src/experimental/route-resolver/matchers/matcher-pattern.ts

index c8b5b2b142f9ba1c4eec29794e74a6f89c1c4f30..cc283621fac57245fba01b9b2ccbf0434e2f0867 100644 (file)
@@ -5,7 +5,7 @@ import {
   MatcherPatternPathStatic,
   MatcherPatternPathCustomParams,
   normalizeRouteRecord,
-  PARAM_PARSER_INTEGER,
+  PARAM_PARSER_INT,
 } from 'vue-router/experimental'
 import type {
   EXPERIMENTAL_RouteRecordNormalized_Matchable,
@@ -146,7 +146,7 @@ const r_profiles_detail = normalizeRouteRecord({
       // this version handles all kind of params but in practice,
       // the generation should recognize this is a single required param
       // and therefore userId is of type number
-      userId: PARAM_PARSER_INTEGER,
+      userId: PARAM_PARSER_INT,
     },
     ['profiles', 0]
   ),
index 595128ee2ac3c65bf17eacc4bd5ce69645ef7268..a1a95c9b56ee5c1a47672123b8512631bd97224b 100644 (file)
@@ -25,7 +25,7 @@ export {
   MatcherPatternPathCustomParams,
   // custom param parsers
   // TODO: find a more elegant format than having 4 variants per param type
-  PARAM_PARSER_INTEGER,
+  PARAM_PARSER_INT,
   PARAM_INTEGER_SINGLE,
   PARAM_NUMBER_OPTIONAL,
   PARAM_NUMBER_REPEATABLE,
index 89fc978c354551f465083d7664f719f44fd2a18e..e0202508428095cf0640c1277d948c577e695b9f 100644 (file)
@@ -254,7 +254,7 @@ export const PARAM_NUMBER_REPEATABLE_OPTIONAL = {
  *
  * @internal
  */
-export const PARAM_PARSER_INTEGER: Param_GetSet<number | number[] | null> = {
+export const PARAM_PARSER_INT: Param_GetSet<number | number[] | null> = {
   get: value =>
     Array.isArray(value)
       ? PARAM_NUMBER_REPEATABLE.get(value)