@modern-js/plugin-router-v5 2.58.0 → 2.58.2

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.
@@ -1,4 +1,4 @@
1
- import { RouterConfig } from '../runtime/plugin';
1
+ import type { RouterConfig } from '../runtime/plugin';
2
2
  declare module '@modern-js/app-tools' {
3
3
  interface RuntimeUserConfig {
4
4
  router?: RouterConfig | boolean;
@@ -1,4 +1,4 @@
1
- import { RouteProps } from 'react-router-dom';
1
+ import type { RouteProps } from 'react-router-dom';
2
2
  declare const modifyRoutesHook: import("@modern-js/plugin").Waterfall<RouteProps<string, {
3
3
  [x: string]: string | undefined;
4
4
  }>[]>;
@@ -1,6 +1,6 @@
1
- import React from 'react';
2
- import { History, BrowserHistoryBuildOptions, HashHistoryBuildOptions } from 'history';
3
- import { RouteProps } from 'react-router-dom';
1
+ import type React from 'react';
2
+ import { type History, type BrowserHistoryBuildOptions, type HashHistoryBuildOptions } from 'history';
3
+ import { type RouteProps } from 'react-router-dom';
4
4
  import type { Plugin } from '@modern-js/runtime';
5
5
  declare global {
6
6
  interface Window {
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { RouterConfig } from './plugin';
2
+ import type { RouterConfig } from './plugin';
3
3
  export declare function renderRoutes(routesConfig?: RouterConfig['routesConfig'], extraProps?: any): JSX.Element | null;
4
4
  export declare function getLocation(serverContext: any): string;
5
5
  export declare const urlJoin: (...parts: string[]) => string;
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "2.58.0",
18
+ "version": "2.58.2",
19
19
  "jsnext:source": "./src/index.ts",
20
20
  "types": "./dist/types/cli/index.d.ts",
21
21
  "main": "./dist/cjs/cli/index.js",
@@ -54,20 +54,20 @@
54
54
  }
55
55
  },
56
56
  "dependencies": {
57
+ "@swc/helpers": "0.5.3",
57
58
  "@types/history": "^4.7.9",
58
59
  "@types/react-router-dom": "^5.1.8",
59
60
  "history": "^4.7.9",
60
61
  "react-router-dom": "^5.3.4",
61
- "@swc/helpers": "0.5.3",
62
- "@modern-js/plugin": "2.58.0",
63
- "@modern-js/types": "2.58.0",
64
- "@modern-js/utils": "2.58.0",
65
- "@modern-js/runtime-utils": "2.58.0"
62
+ "@modern-js/plugin": "2.58.2",
63
+ "@modern-js/runtime-utils": "2.58.2",
64
+ "@modern-js/types": "2.58.2",
65
+ "@modern-js/utils": "2.58.2"
66
66
  },
67
67
  "peerDependencies": {
68
68
  "react": ">=17",
69
69
  "react-dom": ">=17",
70
- "@modern-js/runtime": "^2.58.0"
70
+ "@modern-js/runtime": "^2.58.2"
71
71
  },
72
72
  "devDependencies": {
73
73
  "@testing-library/react": "^13.4.0",
@@ -79,11 +79,11 @@
79
79
  "react-dom": "^18",
80
80
  "ts-jest": "^29.1.0",
81
81
  "typescript": "^5",
82
- "@modern-js/core": "2.58.0",
83
- "@modern-js/app-tools": "2.58.0",
84
- "@scripts/build": "2.58.0",
85
- "@modern-js/runtime": "2.58.0",
86
- "@scripts/jest-config": "2.58.0"
82
+ "@modern-js/app-tools": "2.58.2",
83
+ "@modern-js/core": "2.58.2",
84
+ "@scripts/build": "2.58.2",
85
+ "@modern-js/runtime": "2.58.2",
86
+ "@scripts/jest-config": "2.58.2"
87
87
  },
88
88
  "sideEffects": false,
89
89
  "publishConfig": {
package/types/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { RouterConfig } from '../dist/types';
1
+ import type { RouterConfig } from '../dist/types';
2
2
  import '../dist/types/runtime';
3
3
 
4
4
  declare module '@modern-js/runtime/router-v5' {