@module-federation/nextjs-mf 7.0.7 → 7.0.8

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 CHANGED
@@ -2,6 +2,21 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [7.0.8](https://github.com/module-federation/nextjs-mf/compare/nextjs-mf-7.0.7...nextjs-mf-7.0.8) (2023-08-14)
6
+
7
+ ### Dependency Updates
8
+
9
+ * `utils` updated to version `2.0.6`
10
+ * `node` updated to version `1.0.7`
11
+ * `utils` updated to version `2.0.6`
12
+ * `node` updated to version `1.0.7`
13
+
14
+ ### Bug Fixes
15
+
16
+ * workaround to self ref module error in prod ([e134caa](https://github.com/module-federation/nextjs-mf/commit/e134caa9a914da6a226e73dc877a108456b1053f))
17
+
18
+
19
+
5
20
  ## [7.0.7](https://github.com/module-federation/nextjs-mf/compare/nextjs-mf-7.0.6...nextjs-mf-7.0.7) (2023-08-11)
6
21
 
7
22
  ### Dependency Updates
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@module-federation/nextjs-mf",
3
- "version": "7.0.7",
3
+ "version": "7.0.8",
4
4
  "license": "MIT",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",
@@ -21,8 +21,8 @@
21
21
  "fast-glob": "^3.2.11",
22
22
  "node-fetch": "2.6.9",
23
23
  "webpack-sources": "^3.2.3",
24
- "@module-federation/node": "1.0.6",
25
- "@module-federation/utilities": "2.0.5"
24
+ "@module-federation/node": "1.0.7",
25
+ "@module-federation/utilities": "2.0.6"
26
26
  },
27
27
  "peerDependencies": {
28
28
  "next": "^12 || ^13",
@@ -1,13 +1,245 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const importDelegatedModule_1 = require("@module-federation/utilities/src/utils/importDelegatedModule");
3
+ let pure = {};
4
+ try {
5
+ // @ts-ignore
6
+ pure = process.env['REMOTES'] || {};
7
+ }
8
+ catch (e) {
9
+ // not in webpack bundle
10
+ }
11
+ const remoteVars = pure;
12
+ const extractUrlAndGlobal = (urlAndGlobal) => {
13
+ const index = urlAndGlobal.indexOf('@');
14
+ if (index <= 0 || index === urlAndGlobal.length - 1) {
15
+ throw new Error(`Invalid request "${urlAndGlobal}"`);
16
+ }
17
+ return [urlAndGlobal.substring(index + 1), urlAndGlobal.substring(0, index)];
18
+ };
19
+ const loadScript = (keyOrRuntimeRemoteItem) => {
20
+ const runtimeRemotes = getRuntimeRemotes();
21
+ // 1) Load remote container if needed
22
+ let asyncContainer;
23
+ const reference = typeof keyOrRuntimeRemoteItem === 'string'
24
+ ? runtimeRemotes[keyOrRuntimeRemoteItem]
25
+ : keyOrRuntimeRemoteItem;
26
+ if (reference.asyncContainer) {
27
+ asyncContainer =
28
+ typeof reference.asyncContainer.then === 'function'
29
+ ? reference.asyncContainer
30
+ : // @ts-ignore
31
+ reference.asyncContainer();
32
+ }
33
+ else {
34
+ // This casting is just to satisfy typescript,
35
+ // In reality remoteGlobal will always be a string;
36
+ const remoteGlobal = reference.global;
37
+ // Check if theres an override for container key if not use remote global
38
+ const containerKey = reference.uniqueKey
39
+ ? reference.uniqueKey
40
+ : remoteGlobal;
41
+ const __webpack_error__ = new Error();
42
+ // @ts-ignore
43
+ if (!globalThis.__remote_scope__) {
44
+ // create a global scope for container, similar to how remotes are set on window in the browser
45
+ // @ts-ignore
46
+ globalThis.__remote_scope__ = {
47
+ // @ts-ignore
48
+ _config: {},
49
+ };
50
+ }
51
+ // @ts-ignore
52
+ const globalScope =
53
+ // @ts-ignore
54
+ typeof window !== 'undefined' ? window : globalThis.__remote_scope__;
55
+ if (typeof window === 'undefined') {
56
+ globalScope['_config'][containerKey] = reference.url;
57
+ }
58
+ else {
59
+ // to match promise template system, can be removed once promise template is gone
60
+ if (!globalScope['remoteLoading']) {
61
+ globalScope['remoteLoading'] = {};
62
+ }
63
+ if (globalScope['remoteLoading'][containerKey]) {
64
+ return globalScope['remoteLoading'][containerKey];
65
+ }
66
+ }
67
+ // @ts-ignore
68
+ asyncContainer = new Promise(function (resolve, reject) {
69
+ function resolveRemoteGlobal() {
70
+ const asyncContainer = globalScope[remoteGlobal];
71
+ return resolve(asyncContainer);
72
+ }
73
+ if (typeof globalScope[remoteGlobal] !== 'undefined') {
74
+ return resolveRemoteGlobal();
75
+ }
76
+ __webpack_require__.l(reference.url, function (event) {
77
+ if (typeof globalScope[remoteGlobal] !== 'undefined') {
78
+ return resolveRemoteGlobal();
79
+ }
80
+ const errorType = event && (event.type === 'load' ? 'missing' : event.type);
81
+ const realSrc = event && event.target && event.target.src;
82
+ __webpack_error__.message =
83
+ 'Loading script failed.\n(' +
84
+ errorType +
85
+ ': ' +
86
+ realSrc +
87
+ ' or global var ' +
88
+ remoteGlobal +
89
+ ')';
90
+ __webpack_error__.name = 'ScriptExternalLoadError';
91
+ __webpack_error__.type = errorType;
92
+ __webpack_error__.request = realSrc;
93
+ reject(__webpack_error__);
94
+ }, containerKey);
95
+ }).catch(function (err) {
96
+ console.error('container is offline, returning fake remote');
97
+ console.error(err);
98
+ return {
99
+ fake: true,
100
+ // @ts-ignore
101
+ get: (arg) => {
102
+ console.warn('faking', arg, 'module on, its offline');
103
+ return Promise.resolve(() => {
104
+ return {
105
+ __esModule: true,
106
+ default: () => {
107
+ return null;
108
+ },
109
+ };
110
+ });
111
+ },
112
+ //eslint-disable-next-line
113
+ init: () => { },
114
+ };
115
+ });
116
+ if (typeof window !== 'undefined') {
117
+ globalScope['remoteLoading'][containerKey] = asyncContainer;
118
+ }
119
+ }
120
+ return asyncContainer;
121
+ };
122
+ const getRuntimeRemotes = () => {
123
+ try {
124
+ const runtimeRemotes = Object.entries(remoteVars).reduce(function (acc, item) {
125
+ const [key, value] = item;
126
+ // if its an object with a thenable (eagerly executing function)
127
+ if (typeof value === 'object' && typeof value.then === 'function') {
128
+ acc[key] = { asyncContainer: value };
129
+ }
130
+ // if its a function that must be called (lazily executing function)
131
+ else if (typeof value === 'function') {
132
+ // @ts-ignore
133
+ acc[key] = { asyncContainer: value };
134
+ }
135
+ // if its a delegate module, skip it
136
+ else if (typeof value === 'string' && value.startsWith('internal ')) {
137
+ const [request, query] = value.replace('internal ', '').split('?');
138
+ if (query) {
139
+ const remoteSyntax = new URLSearchParams(query).get('remote');
140
+ if (remoteSyntax) {
141
+ const [url, global] = extractUrlAndGlobal(remoteSyntax);
142
+ acc[key] = { global, url };
143
+ }
144
+ }
145
+ }
146
+ // if its just a string (global@url)
147
+ else if (typeof value === 'string') {
148
+ const [url, global] = extractUrlAndGlobal(value);
149
+ acc[key] = { global, url };
150
+ }
151
+ // we dont know or currently support this type
152
+ else {
153
+ //@ts-ignore
154
+ console.warn('remotes process', process.env.REMOTES);
155
+ throw new Error(`[mf] Invalid value received for runtime_remote "${key}"`);
156
+ }
157
+ return acc;
158
+ }, {});
159
+ return runtimeRemotes;
160
+ }
161
+ catch (err) {
162
+ console.warn('Unable to retrieve runtime remotes: ', err);
163
+ }
164
+ return {};
165
+ };
166
+ const importDelegatedModule = async (keyOrRuntimeRemoteItem) => {
167
+ // @ts-ignore
168
+ return loadScript(keyOrRuntimeRemoteItem)
169
+ .then((asyncContainer) => {
170
+ return asyncContainer;
171
+ })
172
+ .then((asyncContainer) => {
173
+ // most of this is only needed because of legacy promise based implementation
174
+ // can remove proxies once we remove promise based implementations
175
+ if (typeof window === 'undefined') {
176
+ if (!Object.hasOwnProperty.call(keyOrRuntimeRemoteItem, 'globalThis')) {
177
+ return asyncContainer;
178
+ }
179
+ // return asyncContainer;
180
+ //TODO: need to solve chunk flushing with delegated modules
181
+ return {
182
+ get: function (arg) {
183
+ //@ts-ignore
184
+ return asyncContainer.get(arg).then((f) => {
185
+ const m = f();
186
+ const result = {
187
+ __esModule: m.__esModule,
188
+ };
189
+ for (const prop in m) {
190
+ if (typeof m[prop] === 'function') {
191
+ Object.defineProperty(result, prop, {
192
+ get: function () {
193
+ return function () {
194
+ //@ts-ignore
195
+ if (globalThis.usedChunks)
196
+ //@ts-ignore
197
+ globalThis.usedChunks.add(
198
+ //@ts-ignore
199
+ `${keyOrRuntimeRemoteItem.global}->${arg}`);
200
+ //eslint-disable-next-line prefer-rest-params
201
+ return m[prop](...arguments);
202
+ };
203
+ },
204
+ enumerable: true,
205
+ });
206
+ }
207
+ else {
208
+ Object.defineProperty(result, prop, {
209
+ get: () => {
210
+ //@ts-ignore
211
+ if (globalThis.usedChunks)
212
+ //@ts-ignore
213
+ globalThis.usedChunks.add(
214
+ //@ts-ignore
215
+ `${keyOrRuntimeRemoteItem.global}->${arg}`);
216
+ return m[prop];
217
+ },
218
+ enumerable: true,
219
+ });
220
+ }
221
+ }
222
+ if (m.then) {
223
+ return Promise.resolve(() => result);
224
+ }
225
+ return () => result;
226
+ });
227
+ },
228
+ init: asyncContainer.init,
229
+ };
230
+ }
231
+ else {
232
+ return asyncContainer;
233
+ }
234
+ });
235
+ };
4
236
  // eslint-disable-next-line no-async-promise-executor
5
237
  module.exports = new Promise(async (resolve, reject) => {
6
238
  // eslint-disable-next-line no-undef
7
239
  const currentRequest = new URLSearchParams(__resourceQuery).get('remote');
8
240
  // @ts-ignore
9
241
  const [global, url] = currentRequest.split('@');
10
- (0, importDelegatedModule_1.importDelegatedModule)({
242
+ importDelegatedModule({
11
243
  global,
12
244
  url: url + '?' + Date.now(),
13
245
  })
@@ -1 +1 @@
1
- {"version":3,"file":"default-delegate.js","sourceRoot":"","sources":["../../../../packages/nextjs-mf/src/default-delegate.ts"],"names":[],"mappings":";;AAAA,wGAAoG;AAEpG,qDAAqD;AACrD,MAAM,CAAC,OAAO,GAAG,IAAI,OAAO,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE;IACrD,oCAAoC;IACpC,MAAM,cAAc,GAAG,IAAI,eAAe,CAAC,eAAe,CAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IAC1E,aAAa;IACb,MAAM,CAAC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C;QACF,aAAa;SACZ,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC;AACjC,CAAC,CAAC,CAAC"}
@@ -1,3 +0,0 @@
1
- import { importDelegatedModule as importDelegate } from "@module-federation/utilities/src/utils/importDelegatedModule";
2
- export declare const importDelegatedModule: (keyOrRuntimeRemoteItem: string | import("./utilities").RuntimeRemote) => Promise<any>;
3
- export default importDelegate;
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.importDelegatedModule = void 0;
4
- const importDelegatedModule_1 = require("@module-federation/utilities/src/utils/importDelegatedModule");
5
- exports.importDelegatedModule = importDelegatedModule_1.importDelegatedModule;
6
- exports.default = importDelegatedModule_1.importDelegatedModule;
7
- //# sourceMappingURL=importDelegatedModule.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"importDelegatedModule.js","sourceRoot":"","sources":["../../../packages/nextjs-mf/importDelegatedModule.ts"],"names":[],"mappings":";;;AAAA,wGAAqH;AACxG,QAAA,qBAAqB,GAAG,6CAAc,CAAC;AACpD,kBAAe,6CAAc,CAAC"}