@shuvi/router 1.0.0-rc.8 → 1.0.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/esm/router.d.ts CHANGED
@@ -7,12 +7,11 @@ interface IRouterOptions<RouteRecord extends IPartialRouteRecord> {
7
7
  basename?: string;
8
8
  }
9
9
  export declare const createRouter: <RouteRecord extends {
10
- caseSensitive?: boolean | undefined;
11
- children?: any[] | undefined;
10
+ path: string;
12
11
  component?: any;
13
- redirect?: string | undefined;
12
+ children?: any[] | undefined;
14
13
  props?: import("./types").IRouteComponentProps | undefined;
15
- path: string;
16
- filepath?: string | undefined;
14
+ redirect?: string | undefined;
15
+ caseSensitive?: boolean | undefined;
17
16
  }>(options: IRouterOptions<RouteRecord>) => IRouter<RouteRecord>;
18
17
  export {};
@@ -2,13 +2,12 @@ import { History, Path, State, Listener, RemoveListenerCallback, PathRecord } fr
2
2
  export declare type IParams = Record<string, string[] | string>;
3
3
  export declare type IRouteComponentProps = Record<string, string>;
4
4
  export declare type IRouteRecord<Element = any, ExtendedTypes = {}> = {
5
- caseSensitive?: boolean;
6
- children?: IRouteRecord<Element, ExtendedTypes>[];
5
+ path: string;
7
6
  component?: Element;
8
- redirect?: string;
7
+ children?: IRouteRecord<Element, ExtendedTypes>[];
9
8
  props?: IRouteComponentProps;
10
- path: string;
11
- filepath?: string;
9
+ redirect?: string;
10
+ caseSensitive?: boolean;
12
11
  } & ExtendedTypes;
13
12
  export declare type NavigationGuardNextCallback = () => any;
14
13
  export interface NavigationGuardNext {
package/lib/router.d.ts CHANGED
@@ -7,12 +7,11 @@ interface IRouterOptions<RouteRecord extends IPartialRouteRecord> {
7
7
  basename?: string;
8
8
  }
9
9
  export declare const createRouter: <RouteRecord extends {
10
- caseSensitive?: boolean | undefined;
11
- children?: any[] | undefined;
10
+ path: string;
12
11
  component?: any;
13
- redirect?: string | undefined;
12
+ children?: any[] | undefined;
14
13
  props?: import("./types").IRouteComponentProps | undefined;
15
- path: string;
16
- filepath?: string | undefined;
14
+ redirect?: string | undefined;
15
+ caseSensitive?: boolean | undefined;
17
16
  }>(options: IRouterOptions<RouteRecord>) => IRouter<RouteRecord>;
18
17
  export {};
@@ -2,13 +2,12 @@ import { History, Path, State, Listener, RemoveListenerCallback, PathRecord } fr
2
2
  export declare type IParams = Record<string, string[] | string>;
3
3
  export declare type IRouteComponentProps = Record<string, string>;
4
4
  export declare type IRouteRecord<Element = any, ExtendedTypes = {}> = {
5
- caseSensitive?: boolean;
6
- children?: IRouteRecord<Element, ExtendedTypes>[];
5
+ path: string;
7
6
  component?: Element;
8
- redirect?: string;
7
+ children?: IRouteRecord<Element, ExtendedTypes>[];
9
8
  props?: IRouteComponentProps;
10
- path: string;
11
- filepath?: string;
9
+ redirect?: string;
10
+ caseSensitive?: boolean;
12
11
  } & ExtendedTypes;
13
12
  export declare type NavigationGuardNextCallback = () => any;
14
13
  export interface NavigationGuardNext {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shuvi/router",
3
- "version": "1.0.0-rc.8",
3
+ "version": "1.0.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/shuvijs/shuvi.git",
@@ -28,7 +28,7 @@
28
28
  "node": ">= 12.0.0"
29
29
  },
30
30
  "dependencies": {
31
- "@shuvi/utils": "1.0.0-rc.8",
31
+ "@shuvi/utils": "1.0.0",
32
32
  "query-string": "6.13.8"
33
33
  }
34
34
  }