@module-federation/bridge-shared 0.0.0-perf-devtools-20260107043700 → 0.0.0-perf-website-code-usage-20260914033703
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/dist/src/index.d.ts +2 -0
- package/dist/src/type.d.ts +36 -0
- package/package.json +9 -6
- package/CHANGELOG.md +0 -229
- package/dist/index.d.ts +0 -2
- package/dist/type.d.ts +0 -13
- package/project.json +0 -15
- package/src/bridge.ts +0 -0
- package/src/env.ts +0 -4
- package/src/index.ts +0 -2
- package/src/type.ts +0 -12
- package/src/vite-env.d.ts +0 -1
- package/tsconfig.json +0 -41
- package/tsconfig.node.json +0 -11
- package/vite.config.ts +0 -16
- /package/dist/{bridge.d.ts → src/bridge.d.ts} +0 -0
- /package/dist/{env.d.ts → src/env.d.ts} +0 -0
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { CSSProperties } from 'react';
|
|
2
|
+
export interface ProviderParams {
|
|
3
|
+
moduleName?: string;
|
|
4
|
+
basename?: string;
|
|
5
|
+
memoryRoute?: {
|
|
6
|
+
entryPath: string;
|
|
7
|
+
};
|
|
8
|
+
hashRoute?: boolean;
|
|
9
|
+
style?: CSSProperties;
|
|
10
|
+
className?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface RenderFnParams extends ProviderParams {
|
|
13
|
+
dom: HTMLElement;
|
|
14
|
+
}
|
|
15
|
+
export type BridgeOperationSide = 'consumer' | 'producer';
|
|
16
|
+
export type BridgeFramework = 'react' | 'vue';
|
|
17
|
+
export type BridgeOperation = 'render' | 'update' | 'destroy' | 'route-sync';
|
|
18
|
+
export interface BridgeRouteSummary {
|
|
19
|
+
action: 'memory-route-init' | 'host-to-remote';
|
|
20
|
+
from?: string;
|
|
21
|
+
to?: string;
|
|
22
|
+
basename?: string;
|
|
23
|
+
mechanism?: 'popstate';
|
|
24
|
+
}
|
|
25
|
+
export interface BridgeOperationContext {
|
|
26
|
+
side: BridgeOperationSide;
|
|
27
|
+
framework: BridgeFramework;
|
|
28
|
+
operation: BridgeOperation;
|
|
29
|
+
moduleName?: string;
|
|
30
|
+
route?: BridgeRouteSummary;
|
|
31
|
+
reason?: 'unmount' | 'direct';
|
|
32
|
+
}
|
|
33
|
+
export interface BridgeOperationResult {
|
|
34
|
+
context: BridgeOperationContext;
|
|
35
|
+
result?: unknown;
|
|
36
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@module-federation/bridge-shared",
|
|
3
|
-
"version": "0.0.0-perf-
|
|
3
|
+
"version": "0.0.0-perf-website-code-usage-20260914033703",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -11,23 +11,26 @@
|
|
|
11
11
|
"url": "git+https://github.com/module-federation/core.git",
|
|
12
12
|
"directory": "packages/bridge/bridge-shared"
|
|
13
13
|
},
|
|
14
|
+
"files": [
|
|
15
|
+
"dist/",
|
|
16
|
+
"README.md"
|
|
17
|
+
],
|
|
14
18
|
"type": "module",
|
|
15
19
|
"main": "./dist/index.umd.js",
|
|
16
20
|
"module": "./dist/index.es.js",
|
|
17
|
-
"types": "./dist/index.d.ts",
|
|
21
|
+
"types": "./dist/src/index.d.ts",
|
|
18
22
|
"devDependencies": {
|
|
19
|
-
"@types/node": "
|
|
23
|
+
"@types/node": "^20.19.5",
|
|
20
24
|
"@types/react": "^18.3.11",
|
|
21
25
|
"@vitejs/plugin-vue": "^5.0.4",
|
|
22
26
|
"@vitejs/plugin-vue-jsx": "^4.0.0",
|
|
23
|
-
"typescript": "
|
|
27
|
+
"typescript": "7.0.2",
|
|
24
28
|
"vite": "^5.4.21",
|
|
25
|
-
"vite-plugin-dts": "^4.3.0",
|
|
26
29
|
"vue-tsc": "^2.0.6"
|
|
27
30
|
},
|
|
28
31
|
"scripts": {
|
|
29
32
|
"dev": "vite",
|
|
30
|
-
"build": "vite build",
|
|
33
|
+
"build": "vite build && tsc -p tsconfig.json",
|
|
31
34
|
"preview": "vite preview"
|
|
32
35
|
}
|
|
33
36
|
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,229 +0,0 @@
|
|
|
1
|
-
# @module-federation/bridge-shared
|
|
2
|
-
|
|
3
|
-
## 0.0.0-perf-devtools-20260107043700
|
|
4
|
-
|
|
5
|
-
## 0.22.0
|
|
6
|
-
|
|
7
|
-
## 0.21.6
|
|
8
|
-
|
|
9
|
-
## 0.21.5
|
|
10
|
-
|
|
11
|
-
## 0.21.4
|
|
12
|
-
|
|
13
|
-
## 0.21.3
|
|
14
|
-
|
|
15
|
-
## 0.21.2
|
|
16
|
-
|
|
17
|
-
## 0.21.1
|
|
18
|
-
|
|
19
|
-
## 0.21.0
|
|
20
|
-
|
|
21
|
-
## 0.20.0
|
|
22
|
-
|
|
23
|
-
## 0.19.1
|
|
24
|
-
|
|
25
|
-
## 0.19.0
|
|
26
|
-
|
|
27
|
-
## 0.18.4
|
|
28
|
-
|
|
29
|
-
## 0.18.3
|
|
30
|
-
|
|
31
|
-
## 0.18.2
|
|
32
|
-
|
|
33
|
-
## 0.18.1
|
|
34
|
-
|
|
35
|
-
## 0.18.0
|
|
36
|
-
|
|
37
|
-
## 0.17.1
|
|
38
|
-
|
|
39
|
-
### Patch Changes
|
|
40
|
-
|
|
41
|
-
- a7cf276: chore: upgrade NX to 21.2.3, Storybook to 9.0.9, and TypeScript to 5.8.3
|
|
42
|
-
|
|
43
|
-
- Upgraded NX from 21.0.3 to 21.2.3 with workspace configuration updates
|
|
44
|
-
- Migrated Storybook from 8.3.5 to 9.0.9 with updated configurations and automigrations
|
|
45
|
-
- Upgraded TypeScript from 5.7.3 to 5.8.3 with compatibility fixes
|
|
46
|
-
- Fixed package exports and type declaration paths across all packages
|
|
47
|
-
- Resolved module resolution issues and TypeScript compatibility problems
|
|
48
|
-
- Updated build configurations and dependencies to support latest versions
|
|
49
|
-
|
|
50
|
-
- d31a326: refactor: sink React packages from root to individual packages
|
|
51
|
-
|
|
52
|
-
- Removed React dependencies from root package.json and moved them to packages that actually need them
|
|
53
|
-
- Fixed rsbuild-plugin configuration to match workspace patterns
|
|
54
|
-
- Updated tests to handle platform-specific files
|
|
55
|
-
- This change improves dependency management by ensuring packages only have the dependencies they actually use
|
|
56
|
-
|
|
57
|
-
## 0.17.0
|
|
58
|
-
|
|
59
|
-
## 0.16.0
|
|
60
|
-
|
|
61
|
-
## 0.15.0
|
|
62
|
-
|
|
63
|
-
## 0.14.3
|
|
64
|
-
|
|
65
|
-
## 0.14.2
|
|
66
|
-
|
|
67
|
-
## 0.14.1
|
|
68
|
-
|
|
69
|
-
## 0.14.0
|
|
70
|
-
|
|
71
|
-
### Patch Changes
|
|
72
|
-
|
|
73
|
-
- 677aac9: vue.js has router option added to the vue3-bridge
|
|
74
|
-
|
|
75
|
-
## 0.13.1
|
|
76
|
-
|
|
77
|
-
## 0.13.0
|
|
78
|
-
|
|
79
|
-
### Patch Changes
|
|
80
|
-
|
|
81
|
-
- 38f324f: Disable live bindings on cjs builds of the runtime packages
|
|
82
|
-
|
|
83
|
-
## 0.12.0
|
|
84
|
-
|
|
85
|
-
## 0.11.4
|
|
86
|
-
|
|
87
|
-
## 0.11.3
|
|
88
|
-
|
|
89
|
-
## 0.11.2
|
|
90
|
-
|
|
91
|
-
## 0.11.1
|
|
92
|
-
|
|
93
|
-
## 0.11.0
|
|
94
|
-
|
|
95
|
-
## 0.10.0
|
|
96
|
-
|
|
97
|
-
## 0.9.1
|
|
98
|
-
|
|
99
|
-
## 0.9.0
|
|
100
|
-
|
|
101
|
-
## 0.8.12
|
|
102
|
-
|
|
103
|
-
## 0.8.11
|
|
104
|
-
|
|
105
|
-
## 0.8.10
|
|
106
|
-
|
|
107
|
-
## 0.8.9
|
|
108
|
-
|
|
109
|
-
## 0.8.8
|
|
110
|
-
|
|
111
|
-
## 0.8.7
|
|
112
|
-
|
|
113
|
-
## 0.8.6
|
|
114
|
-
|
|
115
|
-
## 0.8.5
|
|
116
|
-
|
|
117
|
-
## 0.8.4
|
|
118
|
-
|
|
119
|
-
## 0.8.3
|
|
120
|
-
|
|
121
|
-
## 0.8.2
|
|
122
|
-
|
|
123
|
-
## 0.8.1
|
|
124
|
-
|
|
125
|
-
## 0.8.0
|
|
126
|
-
|
|
127
|
-
## 0.7.7
|
|
128
|
-
|
|
129
|
-
## 0.7.6
|
|
130
|
-
|
|
131
|
-
## 0.7.5
|
|
132
|
-
|
|
133
|
-
## 0.7.4
|
|
134
|
-
|
|
135
|
-
## 0.7.3
|
|
136
|
-
|
|
137
|
-
## 0.7.2
|
|
138
|
-
|
|
139
|
-
## 0.7.1
|
|
140
|
-
|
|
141
|
-
## 0.7.0
|
|
142
|
-
|
|
143
|
-
### Minor Changes
|
|
144
|
-
|
|
145
|
-
- 3942740: add license information
|
|
146
|
-
|
|
147
|
-
## 0.6.16
|
|
148
|
-
|
|
149
|
-
## 0.6.15
|
|
150
|
-
|
|
151
|
-
## 0.6.14
|
|
152
|
-
|
|
153
|
-
### Patch Changes
|
|
154
|
-
|
|
155
|
-
- ad605d2: chore: unified logger
|
|
156
|
-
|
|
157
|
-
## 0.6.13
|
|
158
|
-
|
|
159
|
-
## 0.6.12
|
|
160
|
-
|
|
161
|
-
## 0.6.11
|
|
162
|
-
|
|
163
|
-
## 0.6.10
|
|
164
|
-
|
|
165
|
-
## 0.6.9
|
|
166
|
-
|
|
167
|
-
## 0.6.8
|
|
168
|
-
|
|
169
|
-
## 0.6.7
|
|
170
|
-
|
|
171
|
-
## 0.6.6
|
|
172
|
-
|
|
173
|
-
## 0.6.5
|
|
174
|
-
|
|
175
|
-
## 0.6.4
|
|
176
|
-
|
|
177
|
-
## 0.6.3
|
|
178
|
-
|
|
179
|
-
## 0.6.2
|
|
180
|
-
|
|
181
|
-
## 0.6.1
|
|
182
|
-
|
|
183
|
-
## 0.6.0
|
|
184
|
-
|
|
185
|
-
## 0.5.2
|
|
186
|
-
|
|
187
|
-
## 0.5.1
|
|
188
|
-
|
|
189
|
-
## 0.5.0
|
|
190
|
-
|
|
191
|
-
### Patch Changes
|
|
192
|
-
|
|
193
|
-
- 49d6135: feat(@module-federation/bridge): enhance Bridge capabilities and fix some issues
|
|
194
|
-
|
|
195
|
-
## 0.4.0
|
|
196
|
-
|
|
197
|
-
## 0.3.5
|
|
198
|
-
|
|
199
|
-
## 0.3.4
|
|
200
|
-
|
|
201
|
-
## 0.3.3
|
|
202
|
-
|
|
203
|
-
## 0.3.2
|
|
204
|
-
|
|
205
|
-
## 0.3.1
|
|
206
|
-
|
|
207
|
-
## 0.3.0
|
|
208
|
-
|
|
209
|
-
## 0.2.8
|
|
210
|
-
|
|
211
|
-
## 0.2.7
|
|
212
|
-
|
|
213
|
-
## 0.2.6
|
|
214
|
-
|
|
215
|
-
## 0.2.5
|
|
216
|
-
|
|
217
|
-
## 0.2.4
|
|
218
|
-
|
|
219
|
-
## 0.2.3
|
|
220
|
-
|
|
221
|
-
## 0.2.2
|
|
222
|
-
|
|
223
|
-
## 0.2.1
|
|
224
|
-
|
|
225
|
-
## 0.2.0
|
|
226
|
-
|
|
227
|
-
### Minor Changes
|
|
228
|
-
|
|
229
|
-
- d2ab821: feat(bridge): Supports exporting and loading of application-level modules (with routing), currently supports react and vue3
|
package/dist/index.d.ts
DELETED
package/dist/type.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export interface ProviderParams {
|
|
2
|
-
moduleName?: string;
|
|
3
|
-
basename?: string;
|
|
4
|
-
memoryRoute?: {
|
|
5
|
-
entryPath: string;
|
|
6
|
-
};
|
|
7
|
-
hashRoute?: boolean;
|
|
8
|
-
style?: React.CSSProperties;
|
|
9
|
-
className?: string;
|
|
10
|
-
}
|
|
11
|
-
export interface RenderFnParams extends ProviderParams {
|
|
12
|
-
dom: HTMLElement;
|
|
13
|
-
}
|
package/project.json
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "bridge-shared",
|
|
3
|
-
"$schema": "../../node_modules/nx/schemas/project-schema.json",
|
|
4
|
-
"sourceRoot": "packages/bridge/bridge-shared/src",
|
|
5
|
-
"projectType": "library",
|
|
6
|
-
"tags": ["type:pkg"],
|
|
7
|
-
"targets": {
|
|
8
|
-
"build": {
|
|
9
|
-
"executor": "nx:run-commands",
|
|
10
|
-
"options": {
|
|
11
|
-
"commands": ["npm run build --prefix packages/bridge/bridge-shared"]
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
}
|
package/src/bridge.ts
DELETED
|
File without changes
|
package/src/env.ts
DELETED
package/src/index.ts
DELETED
package/src/type.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export interface ProviderParams {
|
|
2
|
-
moduleName?: string;
|
|
3
|
-
basename?: string;
|
|
4
|
-
memoryRoute?: { entryPath: string };
|
|
5
|
-
hashRoute?: boolean;
|
|
6
|
-
style?: React.CSSProperties;
|
|
7
|
-
className?: string;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export interface RenderFnParams extends ProviderParams {
|
|
11
|
-
dom: HTMLElement;
|
|
12
|
-
}
|
package/src/vite-env.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/// <reference types="vite/client" />
|
package/tsconfig.json
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"useDefineForClassFields": true,
|
|
4
|
-
|
|
5
|
-
/* Bundler mode */
|
|
6
|
-
"allowImportingTsExtensions": true,
|
|
7
|
-
"resolveJsonModule": true,
|
|
8
|
-
"isolatedModules": true,
|
|
9
|
-
"jsxImportSource": "vue",
|
|
10
|
-
|
|
11
|
-
/* Linting */
|
|
12
|
-
"noUnusedLocals": true,
|
|
13
|
-
"noUnusedParameters": true,
|
|
14
|
-
"noFallthroughCasesInSwitch": true,
|
|
15
|
-
"declaration": true,
|
|
16
|
-
"emitDeclarationOnly": true,
|
|
17
|
-
"outDir": "dist",
|
|
18
|
-
"skipLibCheck": true,
|
|
19
|
-
"strict": true,
|
|
20
|
-
"moduleResolution": "node",
|
|
21
|
-
"target": "esnext",
|
|
22
|
-
"module": "esnext",
|
|
23
|
-
"lib": ["esnext", "dom"],
|
|
24
|
-
"jsx": "preserve",
|
|
25
|
-
"esModuleInterop": true,
|
|
26
|
-
"allowSyntheticDefaultImports": true,
|
|
27
|
-
"sourceMap": true,
|
|
28
|
-
"baseUrl": ".",
|
|
29
|
-
"paths": {
|
|
30
|
-
"@/*": ["src/*"]
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
"include": [
|
|
34
|
-
"src/**/*.ts",
|
|
35
|
-
"src/**/*.tsx",
|
|
36
|
-
"src/**/*.vue",
|
|
37
|
-
"src/remoteApp.tsx",
|
|
38
|
-
"src/create.ts"
|
|
39
|
-
],
|
|
40
|
-
"references": [{ "path": "./tsconfig.node.json" }]
|
|
41
|
-
}
|
package/tsconfig.node.json
DELETED
package/vite.config.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { defineConfig } from 'vite';
|
|
2
|
-
import vue from '@vitejs/plugin-vue';
|
|
3
|
-
import path from 'path';
|
|
4
|
-
import dts from 'vite-plugin-dts';
|
|
5
|
-
import vueJsx from '@vitejs/plugin-vue-jsx';
|
|
6
|
-
|
|
7
|
-
export default defineConfig({
|
|
8
|
-
plugins: [vue(), dts(), vueJsx()],
|
|
9
|
-
build: {
|
|
10
|
-
lib: {
|
|
11
|
-
entry: path.resolve(__dirname, 'src/index.ts'),
|
|
12
|
-
name: 'bridge-shared',
|
|
13
|
-
fileName: (format) => `index.${format}.js`,
|
|
14
|
-
},
|
|
15
|
-
},
|
|
16
|
-
});
|
|
File without changes
|
|
File without changes
|