@octanejs/wouter 0.0.8 → 0.0.10
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/package.json +4 -4
- package/src/index.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@octanejs/wouter",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.10",
|
|
4
4
|
"license": "Unlicense",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -47,13 +47,13 @@
|
|
|
47
47
|
"regexparam": "^3.0.0"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
|
-
"octane": "^0.
|
|
50
|
+
"octane": "^0.4.0"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@testing-library/jest-dom": "^6.9.1",
|
|
54
54
|
"vitest": "^4.1.10",
|
|
55
|
-
"@octanejs/testing-library": "0.1.
|
|
56
|
-
"octane": "0.
|
|
55
|
+
"@octanejs/testing-library": "0.1.53",
|
|
56
|
+
"octane": "0.4.0"
|
|
57
57
|
},
|
|
58
58
|
"scripts": {
|
|
59
59
|
"test": "vitest run --root ../.. --config vitest.config.js --project wouter",
|
package/src/index.ts
CHANGED
|
@@ -246,7 +246,7 @@ export function Router({ children, ...props }: RouterProps): OctaneNode {
|
|
|
246
246
|
}
|
|
247
247
|
}
|
|
248
248
|
|
|
249
|
-
return h(RouterCtx
|
|
249
|
+
return h(RouterCtx, { value, children });
|
|
250
250
|
}
|
|
251
251
|
|
|
252
252
|
export interface RouteComponentProps<T extends DefaultParams = DefaultParams> {
|
|
@@ -331,7 +331,7 @@ export function Route<
|
|
|
331
331
|
? h(Router, { base, children: renderRoute(renderProps, params) } as RouterProps)
|
|
332
332
|
: renderRoute(renderProps, params);
|
|
333
333
|
|
|
334
|
-
return h(ParamsCtx
|
|
334
|
+
return h(ParamsCtx, { value: params, children });
|
|
335
335
|
}
|
|
336
336
|
|
|
337
337
|
export type NavigationalProps<H extends BaseLocationHook = typeof useBrowserLocation> = (
|