Skip to content

Commit 097103f

Browse files
committed
Replace route-parser with a new ts variant
1 parent 32a82f9 commit 097103f

4 files changed

Lines changed: 11 additions & 10 deletions

File tree

packages/cx/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
"dependencies": {
7171
"@types/route-parser": "^0.1.7",
7272
"intl-io": "^0.4.4",
73-
"route-parser": "^0.0.5"
73+
"route-parser-ts": "^1.0.0"
7474
},
7575
"peerDependencies": {
7676
"@types/react": ">=18",
@@ -89,12 +89,12 @@
8989
"@types/node": "^25.0.3",
9090
"@types/react-dom": "^19.2.3",
9191
"@types/react-test-renderer": "^19.1.0",
92+
"cx-react": "workspace:*",
9293
"mocha": "^11.7.5",
9394
"react-test-renderer": "^19.2.3",
9495
"ts-mocha": "^11.1.0",
9596
"ts-node": "^10.9.2",
9697
"tsconfig-paths": "^4.2.0",
97-
"typescript": "^5.9.3",
98-
"cx-react": "workspace:*"
98+
"typescript": "^5.9.3"
9999
}
100100
}

packages/cx/src/ui/app/Url.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Url } from "./Url";
2-
import Route from "route-parser";
2+
import Route from "route-parser-ts";
33
import assert from "assert";
44
describe("Url", function () {
55
describe(".unresolve", function () {

packages/cx/src/widgets/nav/Route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Widget } from "../../ui/Widget";
22
import { PureContainerBase, PureContainerConfig } from "../../ui/PureContainer";
3-
import RouteMatcher from "route-parser";
3+
import RouteMatcher from "route-parser-ts";
44
import { ReadOnlyDataView } from "../../data/ReadOnlyDataView";
55
import { routeAppend } from "../../util/routeAppend";
66
import { StringProp, BooleanProp, Prop } from "../../ui/Prop";

yarn.lock

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4058,10 +4058,11 @@ __metadata:
40584058
"@types/react-dom": "npm:^19.2.3"
40594059
"@types/react-test-renderer": "npm:^19.1.0"
40604060
"@types/route-parser": "npm:^0.1.7"
4061+
cx-react: "workspace:*"
40614062
intl-io: "npm:^0.4.4"
40624063
mocha: "npm:^11.7.5"
40634064
react-test-renderer: "npm:^19.2.3"
4064-
route-parser: "npm:^0.0.5"
4065+
route-parser-ts: "npm:^1.0.0"
40654066
ts-mocha: "npm:^11.1.0"
40664067
ts-node: "npm:^10.9.2"
40674068
tsconfig-paths: "npm:^4.2.0"
@@ -8324,10 +8325,10 @@ __metadata:
83248325
languageName: node
83258326
linkType: hard
83268327

8327-
"route-parser@npm:^0.0.5":
8328-
version: 0.0.5
8329-
resolution: "route-parser@npm:0.0.5"
8330-
checksum: 10/d66f1b9e8ea4f22097f17a3a4a998acc02734aa3874194cbd46561ca355df7e78769c8d589a2bcb2bc2caa855a1f52dc46cf1affb6b2e6ab71826920cd8fe41c
8328+
"route-parser-ts@npm:^1.0.0":
8329+
version: 1.0.0
8330+
resolution: "route-parser-ts@npm:1.0.0"
8331+
checksum: 10/6225f2d0092d3f747fa2b9a4125c76acc4fa1cd303a4b8366aaf1d4bca914b48356709ae78f20bc67e7a48f79685f070e56adcf6d2c9f9e18273abc3f7d2c8fc
83318332
languageName: node
83328333
linkType: hard
83338334

0 commit comments

Comments
 (0)