@esmx/router 3.0.0-rc.14 → 3.0.0-rc.17
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/history/abstract.d.ts +1 -1
- package/dist/history/base.d.ts +1 -1
- package/dist/history/html.d.ts +1 -9
- package/dist/history/index.mjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/router.d.ts +1 -1
- package/dist/router.mjs +1 -1
- package/dist/utils/guards.d.ts +1 -1
- package/package.json +3 -3
- package/dist/types/index.d.ts +0 -694
- package/dist/types/index.mjs +0 -6
- package/src/types/index.ts +0 -858
|
@@ -9,7 +9,7 @@ export declare class AbstractHistory extends BaseRouterHistory {
|
|
|
9
9
|
}): Promise<void>;
|
|
10
10
|
destroy(): void;
|
|
11
11
|
setupListeners(): void;
|
|
12
|
-
isSameHost(location: RouterRawLocation, route: Route):
|
|
12
|
+
isSameHost(location: RouterRawLocation, route: Route): any;
|
|
13
13
|
handleOutside(location: RouterRawLocation, replace?: boolean, isTriggerWithWindow?: boolean): boolean;
|
|
14
14
|
push(location: RouterRawLocation): Promise<void>;
|
|
15
15
|
/**
|
package/dist/history/base.d.ts
CHANGED
package/dist/history/html.d.ts
CHANGED
|
@@ -2,15 +2,7 @@ import type { RouterInstance, RouterRawLocation } from '../types';
|
|
|
2
2
|
import { BaseRouterHistory } from './base';
|
|
3
3
|
export declare class HtmlHistory extends BaseRouterHistory {
|
|
4
4
|
constructor(router: RouterInstance);
|
|
5
|
-
getCurrentLocation():
|
|
6
|
-
state: any;
|
|
7
|
-
query?: Record<string, string | undefined>;
|
|
8
|
-
queryArray: Record<string, string[]>;
|
|
9
|
-
params?: Record<string, string>;
|
|
10
|
-
hash?: string;
|
|
11
|
-
path: string;
|
|
12
|
-
base: string;
|
|
13
|
-
};
|
|
5
|
+
getCurrentLocation(): any;
|
|
14
6
|
onPopState: (e: PopStateEvent) => void;
|
|
15
7
|
init({ replace }?: {
|
|
16
8
|
replace?: boolean;
|
package/dist/history/index.mjs
CHANGED
package/dist/index.mjs
CHANGED
package/dist/router.d.ts
CHANGED
|
@@ -106,6 +106,6 @@ export declare class Router implements RouterInstance {
|
|
|
106
106
|
go(delta?: number): void;
|
|
107
107
|
forward(): void;
|
|
108
108
|
back(): void;
|
|
109
|
-
getRoutes():
|
|
109
|
+
getRoutes(): any;
|
|
110
110
|
}
|
|
111
111
|
export declare function createRouter(options: RouterOptions): RouterInstance;
|
package/dist/router.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import { createRouterMatcher } from "./matcher/index.mjs";
|
|
|
4
4
|
import {
|
|
5
5
|
RouterMode,
|
|
6
6
|
StateLayerConfigKey
|
|
7
|
-
} from "./types
|
|
7
|
+
} from "./types";
|
|
8
8
|
import { inBrowser, normalizePath, regexDomain } from "./utils/index.mjs";
|
|
9
9
|
const baseValue = Number(Date.now());
|
|
10
10
|
let layerIdOffset = 0;
|
package/dist/utils/guards.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import type { RouteRecord } from '../types';
|
|
|
2
2
|
/**
|
|
3
3
|
* 判断是否是同一个路由
|
|
4
4
|
*/
|
|
5
|
-
export declare function isSameRoute(from: RouteRecord, to: RouteRecord):
|
|
5
|
+
export declare function isSameRoute(from: RouteRecord, to: RouteRecord): any;
|
|
6
6
|
/**
|
|
7
7
|
* 判断是否是全等的路由: 路径完全相同
|
|
8
8
|
*/
|
package/package.json
CHANGED
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@biomejs/biome": "1.9.4",
|
|
37
|
-
"@esmx/lint": "3.0.0-rc.
|
|
37
|
+
"@esmx/lint": "3.0.0-rc.17",
|
|
38
38
|
"@gez/lint": "3.0.0-rc.9",
|
|
39
39
|
"@types/node": "22.13.10",
|
|
40
40
|
"@types/url-parse": "^1.4.11",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"unbuild": "2.0.0",
|
|
45
45
|
"vitest": "3.0.8"
|
|
46
46
|
},
|
|
47
|
-
"version": "3.0.0-rc.
|
|
47
|
+
"version": "3.0.0-rc.17",
|
|
48
48
|
"type": "module",
|
|
49
49
|
"private": false,
|
|
50
50
|
"exports": {
|
|
@@ -63,5 +63,5 @@
|
|
|
63
63
|
"template",
|
|
64
64
|
"public"
|
|
65
65
|
],
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "5304ac6ef7a3b5d3bcb2db59cceb3f35723c2409"
|
|
67
67
|
}
|