@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.
@@ -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): boolean;
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
  /**
@@ -8,7 +8,7 @@ export declare abstract class BaseRouterHistory implements RouterHistory {
8
8
  /**
9
9
  * 路由是否冻结
10
10
  */
11
- get isFrozen(): boolean;
11
+ get isFrozen(): any;
12
12
  /**
13
13
  * 匹配的当前路由
14
14
  */
@@ -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;
@@ -1,4 +1,4 @@
1
- import { RouterMode } from "../types/index.mjs";
1
+ import { RouterMode } from "../types";
2
2
  import { AbstractHistory } from "./abstract.mjs";
3
3
  import { HtmlHistory } from "./html.mjs";
4
4
  export function createHistory({
package/dist/index.mjs CHANGED
@@ -1,3 +1,3 @@
1
1
  export { createRouter } from "./router.mjs";
2
- export * from "./types/index.mjs";
2
+ export * from "./types";
3
3
  export * from "./utils/index.mjs";
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(): import("./types").RouteMatch[];
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/index.mjs";
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;
@@ -2,7 +2,7 @@ import type { RouteRecord } from '../types';
2
2
  /**
3
3
  * 判断是否是同一个路由
4
4
  */
5
- export declare function isSameRoute(from: RouteRecord, to: RouteRecord): boolean;
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.14",
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.14",
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": "e0349256d64a50d86be8a585a498bc4278014324"
66
+ "gitHead": "5304ac6ef7a3b5d3bcb2db59cceb3f35723c2409"
67
67
  }