remote-reload-utils 0.0.7 → 0.0.10
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/CHANGELOG.md +145 -0
- package/dist/event-bus/index.d.ts +40 -0
- package/dist/health/index.d.ts +23 -0
- package/dist/index.d.ts +10 -2
- package/dist/loader/index.d.ts +6 -0
- package/dist/loader/utils.d.ts +38 -0
- package/dist/main.cjs +763 -52
- package/dist/main.js +645 -51
- package/dist/preload/index.d.ts +19 -0
- package/dist/types/index.d.ts +34 -0
- package/dist/unload/index.d.ts +29 -0
- package/dist/version/index.d.ts +34 -0
- package/loadRemote.md +1356 -28
- package/package.json +24 -7
- package/dist/loadRemote.d.ts +0 -9
- package/dist/react-mf-adapter.d.ts +0 -0
- package/dist/types.d.ts +0 -17
- /package/dist/{plugins.d.ts → plugins/fallback.d.ts} +0 -0
- /package/dist/{loadReactVersion.d.ts → version/react.d.ts} +0 -0
package/package.json
CHANGED
|
@@ -1,26 +1,31 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "remote-reload-utils",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.10",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Utilities for remote reload in Module Federation & React Component",
|
|
6
6
|
"exports": {
|
|
7
7
|
".": {
|
|
8
|
-
"types": "./dist/
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
9
|
"import": "./dist/main.js",
|
|
10
10
|
"require": "./dist/main.cjs"
|
|
11
11
|
}
|
|
12
12
|
},
|
|
13
13
|
"main": "./dist/main.cjs",
|
|
14
|
-
"types": "./dist/
|
|
14
|
+
"types": "./dist/index.d.ts",
|
|
15
15
|
"files": [
|
|
16
16
|
"dist",
|
|
17
|
-
"loadRemote.md"
|
|
17
|
+
"loadRemote.md",
|
|
18
|
+
"CHANGELOG.md"
|
|
18
19
|
],
|
|
19
20
|
"gitRepository": {
|
|
20
21
|
"type": "git",
|
|
21
22
|
"url": "https://github.com/TaueFenCheng/react-mf-lib.git",
|
|
22
23
|
"directory": "packages/remote-reload-utils"
|
|
23
24
|
},
|
|
25
|
+
"peerDependencies": {
|
|
26
|
+
"react": ">=17.0.0",
|
|
27
|
+
"react-dom": ">=17.0.0"
|
|
28
|
+
},
|
|
24
29
|
"scripts": {
|
|
25
30
|
"build": "rslib build",
|
|
26
31
|
"dev": "rslib build --watch",
|
|
@@ -28,15 +33,27 @@
|
|
|
28
33
|
"format": "biome format --write",
|
|
29
34
|
"check": "biome check --write",
|
|
30
35
|
"test": "vitest run",
|
|
31
|
-
"
|
|
36
|
+
"test:watch": "vitest",
|
|
37
|
+
"lint": "biome format ./src --write",
|
|
38
|
+
"release:prepare": "node scripts/generateReleasePr.mjs",
|
|
39
|
+
"release:finalize": "node scripts/finalizeRelease.mjs",
|
|
40
|
+
"release:patch": "pnpm release:prepare -t patch",
|
|
41
|
+
"release:minor": "pnpm release:prepare -t minor",
|
|
42
|
+
"release:major": "pnpm release:prepare -t major",
|
|
43
|
+
"publish:dry": "npm publish --dry-run",
|
|
44
|
+
"publish:live": "npm publish"
|
|
32
45
|
},
|
|
33
46
|
"devDependencies": {
|
|
47
|
+
"@biomejs/biome": "2.0.6",
|
|
34
48
|
"@rslib/core": "0.17.0",
|
|
35
49
|
"@types/node": "^22.17.2",
|
|
50
|
+
"@types/react": "^18.2.0",
|
|
51
|
+
"@types/react-dom": "^18.2.0",
|
|
52
|
+
"@vitest/ui": "^2.1.8",
|
|
53
|
+
"base-biome-config": "0.0.8",
|
|
36
54
|
"rsbuild-plugin-publint": "^0.3.3",
|
|
37
55
|
"typescript": "^5.9.2",
|
|
38
|
-
"
|
|
39
|
-
"@biomejs/biome": "2.0.6"
|
|
56
|
+
"vitest": "^2.1.8"
|
|
40
57
|
},
|
|
41
58
|
"dependencies": {
|
|
42
59
|
"@module-federation/enhanced": "0.18.3"
|
package/dist/loadRemote.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ModuleFederationRuntimePlugin } from '@module-federation/enhanced/runtime';
|
|
2
|
-
import type { LoadRemoteOptions } from './types';
|
|
3
|
-
/**
|
|
4
|
-
* 多版本共存的 loadRemote
|
|
5
|
-
*/
|
|
6
|
-
export declare function loadRemoteMultiVersion(options: LoadRemoteOptions, plugins: ModuleFederationRuntimePlugin[]): Promise<{
|
|
7
|
-
scopeName: string;
|
|
8
|
-
mf: import("@module-federation/enhanced/runtime").ModuleFederation;
|
|
9
|
-
}>;
|
|
File without changes
|
package/dist/types.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export interface LoadRemoteOptions {
|
|
2
|
-
name: string;
|
|
3
|
-
pkg: string;
|
|
4
|
-
version?: string;
|
|
5
|
-
retries?: number;
|
|
6
|
-
delay?: number;
|
|
7
|
-
localFallback?: string;
|
|
8
|
-
cacheTTL?: number;
|
|
9
|
-
revalidate?: boolean;
|
|
10
|
-
}
|
|
11
|
-
export interface VersionCache {
|
|
12
|
-
[pkg: string]: {
|
|
13
|
-
[version: string]: {
|
|
14
|
-
timestamp: number;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
}
|
|
File without changes
|
|
File without changes
|