@modern-js/runtime-utils 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,5 +1,5 @@
|
|
|
1
|
-
import { RequestPayload } from '@modern-js/types';
|
|
2
|
-
import { LoaderContext } from './createLoaderCtx';
|
|
1
|
+
import type { RequestPayload } from '@modern-js/types';
|
|
2
|
+
import type { LoaderContext } from './createLoaderCtx';
|
|
3
3
|
interface Get<P extends Record<string, unknown>> {
|
|
4
4
|
<Key extends keyof P>(key: Key): P[Key];
|
|
5
5
|
<T>(key: LoaderContext<T>): T;
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "2.58.
|
|
18
|
+
"version": "2.58.2",
|
|
19
19
|
"_comment": "Provide ESM and CJS exports, ESM is used by runtime package, for treeshaking",
|
|
20
20
|
"exports": {
|
|
21
21
|
"./router": {
|
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
"default": "./dist/esm/remixRouter.js"
|
|
30
30
|
},
|
|
31
31
|
"./browser": {
|
|
32
|
+
"types": "./dist/types/browser/index.d.ts",
|
|
32
33
|
"jsnext:source": "./src/browser/index.d.ts",
|
|
33
34
|
"require": "./dist/cjs/browser/index.js",
|
|
34
35
|
"default": "./dist/esm/browser/index.js"
|
|
@@ -125,12 +126,12 @@
|
|
|
125
126
|
}
|
|
126
127
|
},
|
|
127
128
|
"dependencies": {
|
|
128
|
-
"lru-cache": "^6.0.0",
|
|
129
|
-
"serialize-javascript": "^6.0.0",
|
|
130
|
-
"react-router-dom": "6.22.0",
|
|
131
129
|
"@remix-run/router": "1.15.0",
|
|
132
130
|
"@swc/helpers": "0.5.3",
|
|
133
|
-
"
|
|
131
|
+
"lru-cache": "^6.0.0",
|
|
132
|
+
"react-router-dom": "6.22.0",
|
|
133
|
+
"serialize-javascript": "^6.0.0",
|
|
134
|
+
"@modern-js/utils": "2.58.2"
|
|
134
135
|
},
|
|
135
136
|
"peerDependencies": {
|
|
136
137
|
"react": ">=17.0.0",
|
|
@@ -145,17 +146,17 @@
|
|
|
145
146
|
}
|
|
146
147
|
},
|
|
147
148
|
"devDependencies": {
|
|
148
|
-
"react": "^18.2.0",
|
|
149
|
-
"react-dom": "^18.2.0",
|
|
150
149
|
"@types/jest": "^29",
|
|
151
|
-
"@types/node": "^14",
|
|
152
150
|
"@types/lru-cache": "^5.1.1",
|
|
151
|
+
"@types/node": "^14",
|
|
152
|
+
"@types/serialize-javascript": "^5.0.1",
|
|
153
153
|
"jest": "^29",
|
|
154
|
+
"react": "^18.2.0",
|
|
155
|
+
"react-dom": "^18.2.0",
|
|
154
156
|
"typescript": "^5",
|
|
155
|
-
"@types
|
|
156
|
-
"@
|
|
157
|
-
"@scripts/
|
|
158
|
-
"@scripts/jest-config": "2.58.0"
|
|
157
|
+
"@modern-js/types": "2.58.2",
|
|
158
|
+
"@scripts/build": "2.58.2",
|
|
159
|
+
"@scripts/jest-config": "2.58.2"
|
|
159
160
|
},
|
|
160
161
|
"sideEffects": false,
|
|
161
162
|
"scripts": {
|