@tanstack/router-core 1.154.14 → 1.155.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/new-process-route-tree.cjs +47 -42
- package/dist/cjs/new-process-route-tree.cjs.map +1 -1
- package/dist/cjs/path.cjs +18 -14
- package/dist/cjs/path.cjs.map +1 -1
- package/dist/cjs/path.d.cts +11 -2
- package/dist/cjs/router.cjs +6 -8
- package/dist/cjs/router.cjs.map +1 -1
- package/dist/cjs/router.d.cts +1 -1
- package/dist/esm/new-process-route-tree.js +47 -42
- package/dist/esm/new-process-route-tree.js.map +1 -1
- package/dist/esm/path.d.ts +11 -2
- package/dist/esm/path.js +18 -14
- package/dist/esm/path.js.map +1 -1
- package/dist/esm/router.d.ts +1 -1
- package/dist/esm/router.js +7 -9
- package/dist/esm/router.js.map +1 -1
- package/package.json +1 -1
- package/src/new-process-route-tree.ts +66 -46
- package/src/path.ts +36 -16
- package/src/router.ts +8 -11
package/dist/cjs/router.cjs
CHANGED
|
@@ -71,12 +71,10 @@ class RouterCore {
|
|
|
71
71
|
...newOptions
|
|
72
72
|
};
|
|
73
73
|
this.isServer = this.options.isServer ?? typeof document === "undefined";
|
|
74
|
-
|
|
75
|
-
this.
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
])
|
|
79
|
-
) : void 0;
|
|
74
|
+
if (this.options.pathParamsAllowedCharacters)
|
|
75
|
+
this.pathParamsDecoder = path.compileDecodeCharMap(
|
|
76
|
+
this.options.pathParamsAllowedCharacters
|
|
77
|
+
);
|
|
80
78
|
if (!this.history || this.options.history && this.options.history !== this.history) {
|
|
81
79
|
if (!this.options.history) {
|
|
82
80
|
if (!this.isServer) {
|
|
@@ -346,7 +344,7 @@ class RouterCore {
|
|
|
346
344
|
path.interpolatePath({
|
|
347
345
|
path: nextTo,
|
|
348
346
|
params: nextParams,
|
|
349
|
-
|
|
347
|
+
decoder: this.pathParamsDecoder
|
|
350
348
|
}).interpolatedPath
|
|
351
349
|
);
|
|
352
350
|
let nextSearch = fromSearch;
|
|
@@ -1099,7 +1097,7 @@ class RouterCore {
|
|
|
1099
1097
|
const { interpolatedPath, usedParams } = path.interpolatePath({
|
|
1100
1098
|
path: route.fullPath,
|
|
1101
1099
|
params: routeParams,
|
|
1102
|
-
|
|
1100
|
+
decoder: this.pathParamsDecoder
|
|
1103
1101
|
});
|
|
1104
1102
|
const matchId = (
|
|
1105
1103
|
// route.id for disambiguation
|