@pyreon/router 0.19.0 → 0.20.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/lib/types/index.d.ts +1 -2
- package/package.json +5 -5
- package/src/tests/router.test.ts +0 -1
package/lib/types/index.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as _$_pyreon_core0 from "@pyreon/core";
|
|
2
1
|
import { ComponentFn, ComponentFn as ComponentFn$1, Props, VNodeChild } from "@pyreon/core";
|
|
3
2
|
import { Computed, Signal } from "@pyreon/reactivity";
|
|
4
3
|
|
|
@@ -690,7 +689,7 @@ declare function buildPath(pattern: string, params: Record<string, string>): str
|
|
|
690
689
|
declare function findRouteByName(name: string, routes: RouteRecord[]): RouteRecord | null;
|
|
691
690
|
//#endregion
|
|
692
691
|
//#region src/router.d.ts
|
|
693
|
-
declare const RouterContext:
|
|
692
|
+
declare const RouterContext: import("@pyreon/core").Context<RouterInstance | null>;
|
|
694
693
|
declare function useRouter(): Router;
|
|
695
694
|
declare function useRoute<TPath extends string = string>(): () => ResolvedRoute<ExtractParams<TPath> & Record<string, string>, Record<string, string>>;
|
|
696
695
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pyreon/router",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.20.0",
|
|
4
4
|
"description": "Official router for Pyreon",
|
|
5
5
|
"homepage": "https://github.com/pyreon/pyreon/tree/main/packages/router#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -44,14 +44,14 @@
|
|
|
44
44
|
"prepublishOnly": "bun run build"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@pyreon/core": "^0.
|
|
48
|
-
"@pyreon/reactivity": "^0.
|
|
49
|
-
"@pyreon/runtime-dom": "^0.
|
|
47
|
+
"@pyreon/core": "^0.20.0",
|
|
48
|
+
"@pyreon/reactivity": "^0.20.0",
|
|
49
|
+
"@pyreon/runtime-dom": "^0.20.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@happy-dom/global-registrator": "^20.8.9",
|
|
53
53
|
"@pyreon/manifest": "0.13.1",
|
|
54
|
-
"@pyreon/test-utils": "^0.13.
|
|
54
|
+
"@pyreon/test-utils": "^0.13.7",
|
|
55
55
|
"@vitest/browser-playwright": "^4.1.4",
|
|
56
56
|
"happy-dom": "^20.8.3"
|
|
57
57
|
}
|