@module-federation/bridge-shared 0.0.0-docs-remove-invalid-lark-link-20251205062649

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 ADDED
@@ -0,0 +1,227 @@
1
+ # @module-federation/bridge-shared
2
+
3
+ ## 0.0.0-docs-remove-invalid-lark-link-20251205062649
4
+
5
+ ## 0.21.6
6
+
7
+ ## 0.21.5
8
+
9
+ ## 0.21.4
10
+
11
+ ## 0.21.3
12
+
13
+ ## 0.21.2
14
+
15
+ ## 0.21.1
16
+
17
+ ## 0.21.0
18
+
19
+ ## 0.20.0
20
+
21
+ ## 0.19.1
22
+
23
+ ## 0.19.0
24
+
25
+ ## 0.18.4
26
+
27
+ ## 0.18.3
28
+
29
+ ## 0.18.2
30
+
31
+ ## 0.18.1
32
+
33
+ ## 0.18.0
34
+
35
+ ## 0.17.1
36
+
37
+ ### Patch Changes
38
+
39
+ - a7cf276: chore: upgrade NX to 21.2.3, Storybook to 9.0.9, and TypeScript to 5.8.3
40
+
41
+ - Upgraded NX from 21.0.3 to 21.2.3 with workspace configuration updates
42
+ - Migrated Storybook from 8.3.5 to 9.0.9 with updated configurations and automigrations
43
+ - Upgraded TypeScript from 5.7.3 to 5.8.3 with compatibility fixes
44
+ - Fixed package exports and type declaration paths across all packages
45
+ - Resolved module resolution issues and TypeScript compatibility problems
46
+ - Updated build configurations and dependencies to support latest versions
47
+
48
+ - d31a326: refactor: sink React packages from root to individual packages
49
+
50
+ - Removed React dependencies from root package.json and moved them to packages that actually need them
51
+ - Fixed rsbuild-plugin configuration to match workspace patterns
52
+ - Updated tests to handle platform-specific files
53
+ - This change improves dependency management by ensuring packages only have the dependencies they actually use
54
+
55
+ ## 0.17.0
56
+
57
+ ## 0.16.0
58
+
59
+ ## 0.15.0
60
+
61
+ ## 0.14.3
62
+
63
+ ## 0.14.2
64
+
65
+ ## 0.14.1
66
+
67
+ ## 0.14.0
68
+
69
+ ### Patch Changes
70
+
71
+ - 677aac9: vue.js has router option added to the vue3-bridge
72
+
73
+ ## 0.13.1
74
+
75
+ ## 0.13.0
76
+
77
+ ### Patch Changes
78
+
79
+ - 38f324f: Disable live bindings on cjs builds of the runtime packages
80
+
81
+ ## 0.12.0
82
+
83
+ ## 0.11.4
84
+
85
+ ## 0.11.3
86
+
87
+ ## 0.11.2
88
+
89
+ ## 0.11.1
90
+
91
+ ## 0.11.0
92
+
93
+ ## 0.10.0
94
+
95
+ ## 0.9.1
96
+
97
+ ## 0.9.0
98
+
99
+ ## 0.8.12
100
+
101
+ ## 0.8.11
102
+
103
+ ## 0.8.10
104
+
105
+ ## 0.8.9
106
+
107
+ ## 0.8.8
108
+
109
+ ## 0.8.7
110
+
111
+ ## 0.8.6
112
+
113
+ ## 0.8.5
114
+
115
+ ## 0.8.4
116
+
117
+ ## 0.8.3
118
+
119
+ ## 0.8.2
120
+
121
+ ## 0.8.1
122
+
123
+ ## 0.8.0
124
+
125
+ ## 0.7.7
126
+
127
+ ## 0.7.6
128
+
129
+ ## 0.7.5
130
+
131
+ ## 0.7.4
132
+
133
+ ## 0.7.3
134
+
135
+ ## 0.7.2
136
+
137
+ ## 0.7.1
138
+
139
+ ## 0.7.0
140
+
141
+ ### Minor Changes
142
+
143
+ - 3942740: add license information
144
+
145
+ ## 0.6.16
146
+
147
+ ## 0.6.15
148
+
149
+ ## 0.6.14
150
+
151
+ ### Patch Changes
152
+
153
+ - ad605d2: chore: unified logger
154
+
155
+ ## 0.6.13
156
+
157
+ ## 0.6.12
158
+
159
+ ## 0.6.11
160
+
161
+ ## 0.6.10
162
+
163
+ ## 0.6.9
164
+
165
+ ## 0.6.8
166
+
167
+ ## 0.6.7
168
+
169
+ ## 0.6.6
170
+
171
+ ## 0.6.5
172
+
173
+ ## 0.6.4
174
+
175
+ ## 0.6.3
176
+
177
+ ## 0.6.2
178
+
179
+ ## 0.6.1
180
+
181
+ ## 0.6.0
182
+
183
+ ## 0.5.2
184
+
185
+ ## 0.5.1
186
+
187
+ ## 0.5.0
188
+
189
+ ### Patch Changes
190
+
191
+ - 49d6135: feat(@module-federation/bridge): enhance Bridge capabilities and fix some issues
192
+
193
+ ## 0.4.0
194
+
195
+ ## 0.3.5
196
+
197
+ ## 0.3.4
198
+
199
+ ## 0.3.3
200
+
201
+ ## 0.3.2
202
+
203
+ ## 0.3.1
204
+
205
+ ## 0.3.0
206
+
207
+ ## 0.2.8
208
+
209
+ ## 0.2.7
210
+
211
+ ## 0.2.6
212
+
213
+ ## 0.2.5
214
+
215
+ ## 0.2.4
216
+
217
+ ## 0.2.3
218
+
219
+ ## 0.2.2
220
+
221
+ ## 0.2.1
222
+
223
+ ## 0.2.0
224
+
225
+ ### Minor Changes
226
+
227
+ - d2ab821: feat(bridge): Supports exporting and loading of application-level modules (with routing), currently supports react and vue3
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2020 ScriptedAlchemy LLC (Zack Jackson) Zhou Shaw (zhouxiao)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,12 @@
1
+ # debug mode
2
+
3
+ > open debug mode
4
+
5
+ ```js
6
+ // browser
7
+ localStorage.setItem('debug', 'true');
8
+ localStorage.setItem('debug:stack', 'true');
9
+
10
+ // node
11
+ process.env.DEBUG = 'true';
12
+ ```
File without changes
package/dist/env.d.ts ADDED
@@ -0,0 +1 @@
1
+ export declare function dispatchPopstateEnv(): void;
@@ -0,0 +1,2 @@
1
+ export type { RenderFnParams, ProviderParams } from './type';
2
+ export { dispatchPopstateEnv } from './env';
@@ -0,0 +1,7 @@
1
+ function e() {
2
+ const t = new PopStateEvent("popstate", { state: window.history.state });
3
+ window.dispatchEvent(t);
4
+ }
5
+ export {
6
+ e as dispatchPopstateEnv
7
+ };
@@ -0,0 +1 @@
1
+ (function(e,t){typeof exports=="object"&&typeof module<"u"?t(exports):typeof define=="function"&&define.amd?define(["exports"],t):(e=typeof globalThis<"u"?globalThis:e||self,t(e["bridge-shared"]={}))})(this,function(e){"use strict";function t(){const n=new PopStateEvent("popstate",{state:window.history.state});window.dispatchEvent(n)}e.dispatchPopstateEnv=t,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})});
package/dist/type.d.ts ADDED
@@ -0,0 +1,13 @@
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/package.json ADDED
@@ -0,0 +1,33 @@
1
+ {
2
+ "name": "@module-federation/bridge-shared",
3
+ "version": "0.0.0-docs-remove-invalid-lark-link-20251205062649",
4
+ "publishConfig": {
5
+ "access": "public"
6
+ },
7
+ "author": "zhouxiao <codingzx@gmail.com>",
8
+ "license": "MIT",
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "git+https://github.com/module-federation/core.git",
12
+ "directory": "packages/bridge/bridge-shared"
13
+ },
14
+ "type": "module",
15
+ "main": "./dist/index.umd.js",
16
+ "module": "./dist/index.es.js",
17
+ "types": "./dist/index.d.ts",
18
+ "devDependencies": {
19
+ "@types/node": "~16.11.7",
20
+ "@types/react": "^18.3.11",
21
+ "@vitejs/plugin-vue": "^5.0.4",
22
+ "@vitejs/plugin-vue-jsx": "^4.0.0",
23
+ "typescript": "^5.2.2",
24
+ "vite": "^5.4.21",
25
+ "vite-plugin-dts": "^4.3.0",
26
+ "vue-tsc": "^2.0.6"
27
+ },
28
+ "scripts": {
29
+ "dev": "vite",
30
+ "build": "vite build",
31
+ "preview": "vite preview"
32
+ }
33
+ }
package/project.json ADDED
@@ -0,0 +1,15 @@
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 ADDED
File without changes
package/src/env.ts ADDED
@@ -0,0 +1,4 @@
1
+ export function dispatchPopstateEnv() {
2
+ const evt = new PopStateEvent('popstate', { state: window.history.state });
3
+ window.dispatchEvent(evt);
4
+ }
package/src/index.ts ADDED
@@ -0,0 +1,2 @@
1
+ export type { RenderFnParams, ProviderParams } from './type';
2
+ export { dispatchPopstateEnv } from './env';
package/src/type.ts ADDED
@@ -0,0 +1,12 @@
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
+ }
@@ -0,0 +1 @@
1
+ /// <reference types="vite/client" />
package/tsconfig.json ADDED
@@ -0,0 +1,41 @@
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
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "compilerOptions": {
3
+ "composite": true,
4
+ "skipLibCheck": true,
5
+ "module": "ESNext",
6
+ "moduleResolution": "bundler",
7
+ "allowSyntheticDefaultImports": true,
8
+ "strict": true
9
+ },
10
+ "include": ["vite.config.ts"]
11
+ }
package/vite.config.ts ADDED
@@ -0,0 +1,16 @@
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
+ });