@module-federation/storybook-addon 2.0.0 → 2.0.1

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.
Files changed (3) hide show
  1. package/package.json +8 -4
  2. package/CHANGELOG.md +0 -1148
  3. package/README.md +0 -129
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@module-federation/storybook-addon",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "Storybook addon to consume remote module federated apps/components",
5
5
  "license": "MIT",
6
6
  "repository": "https://github.com/module-federation/universe/tree/main/packages/storybook-addon",
@@ -18,15 +18,19 @@
18
18
  "@storybook/core-common": "7.4.6",
19
19
  "@storybook/node-logger": "7.4.6",
20
20
  "webpack": "5.88.2",
21
- "webpack-virtual-modules": "0.6.0",
22
- "@module-federation/utilities": "3.0.0"
21
+ "webpack-virtual-modules": "0.6.1",
22
+ "@module-federation/utilities": "3.0.0",
23
+ "@nx/react": "^17.1.3",
24
+ "@nx/webpack": "^17.1.3"
23
25
  },
24
26
  "peerDependencies": {
25
27
  "@storybook/core-common": "^6.5.16 || ^7.0.0",
26
28
  "@storybook/node-logger": "^6.5.16 || ^7.0.0",
27
29
  "webpack": "^5.75.0",
28
30
  "webpack-virtual-modules": "^0.5.0 || ^0.6.0",
29
- "@module-federation/utilities": "3.0.0"
31
+ "@module-federation/utilities": "3.0.0",
32
+ "@nx/react": "~16.0.0 || ~17.0.0",
33
+ "@nx/webpack": "~16.0.0 || ~17.0.0"
30
34
  },
31
35
  "main": "./src/index.js",
32
36
  "type": "commonjs"
package/CHANGELOG.md DELETED
@@ -1,1148 +0,0 @@
1
- # Changelog
2
-
3
- This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
-
5
- # 1.0.0 (2023-08-14)
6
-
7
- ### Dependency Updates
8
-
9
- - `utils` updated to version `2.0.7`
10
- - `utils` updated to version `2.0.7`
11
-
12
- ### Bug Fixes
13
-
14
- - add release tooling to storybook addon ([43c66bb](https://github.com/module-federation/nextjs-mf/commit/43c66bbc10af8198e908d35ffde7b7dc0058f9cb))
15
- - add release tooling to storybook addon ([#817](https://github.com/module-federation/nextjs-mf/issues/817)) ([63d27a8](https://github.com/module-federation/nextjs-mf/commit/63d27a8067a0734d04677948b50454b6704dc387))
16
- - ignore ts error ([86bb46b](https://github.com/module-federation/nextjs-mf/commit/86bb46b0a77617c28d5294c3cc5e266b9360eb65))
17
- - **storybook-addon:** update src path also for stories from v7 ([#1206](https://github.com/module-federation/nextjs-mf/issues/1206)) ([8af9066](https://github.com/module-federation/nextjs-mf/commit/8af906648c3abf8d9a344fec9153b54a02ad3e53)), closes [#1195](https://github.com/module-federation/nextjs-mf/issues/1195)
18
- - workaround to self ref module error in prod ([#1205](https://github.com/module-federation/nextjs-mf/issues/1205)) ([1d88beb](https://github.com/module-federation/nextjs-mf/commit/1d88beb0da629f036e132573fee9f05494b1f540))
19
-
20
- ### Features
21
-
22
- - add storybook addon that supports Module Federation remote containers ([#598](https://github.com/module-federation/nextjs-mf/issues/598)) ([7547b02](https://github.com/module-federation/nextjs-mf/commit/7547b02937fdef2831060d6a7bfd337d2cc3355c))
23
- - Next Federation 7 ([#726](https://github.com/module-federation/nextjs-mf/issues/726)) ([d50ca1e](https://github.com/module-federation/nextjs-mf/commit/d50ca1e4636c4e0a402190f6e9c3f69ed9ec8eac)), closes [#851](https://github.com/module-federation/nextjs-mf/issues/851) [#864](https://github.com/module-federation/nextjs-mf/issues/864) [#835](https://github.com/module-federation/nextjs-mf/issues/835) [#851](https://github.com/module-federation/nextjs-mf/issues/851) [#864](https://github.com/module-federation/nextjs-mf/issues/864) [#871](https://github.com/module-federation/nextjs-mf/issues/871) [#851](https://github.com/module-federation/nextjs-mf/issues/851) [#864](https://github.com/module-federation/nextjs-mf/issues/864) [#872](https://github.com/module-federation/nextjs-mf/issues/872) [#875](https://github.com/module-federation/nextjs-mf/issues/875) [#884](https://github.com/module-federation/nextjs-mf/issues/884) [#887](https://github.com/module-federation/nextjs-mf/issues/887) [#893](https://github.com/module-federation/nextjs-mf/issues/893) [#885](https://github.com/module-federation/nextjs-mf/issues/885) [#899](https://github.com/module-federation/nextjs-mf/issues/899) [#904](https://github.com/module-federation/nextjs-mf/issues/904) [#932](https://github.com/module-federation/nextjs-mf/issues/932) [#936](https://github.com/module-federation/nextjs-mf/issues/936) [#959](https://github.com/module-federation/nextjs-mf/issues/959) [#960](https://github.com/module-federation/nextjs-mf/issues/960) [#969](https://github.com/module-federation/nextjs-mf/issues/969) [#971](https://github.com/module-federation/nextjs-mf/issues/971) [#974](https://github.com/module-federation/nextjs-mf/issues/974) [#984](https://github.com/module-federation/nextjs-mf/issues/984) [#986](https://github.com/module-federation/nextjs-mf/issues/986) [#1015](https://github.com/module-federation/nextjs-mf/issues/1015) [#1086](https://github.com/module-federation/nextjs-mf/issues/1086) [#1084](https://github.com/module-federation/nextjs-mf/issues/1084)
24
- - **storybook-addon:** upgrade nx and refactor util `withModuleFederation` ([#829](https://github.com/module-federation/nextjs-mf/issues/829)) ([5eeab46](https://github.com/module-federation/nextjs-mf/commit/5eeab46861fa1e444b772cdd15ba5472414e5dd8))
25
-
26
- ### BREAKING CHANGES
27
-
28
- - automaticAsyncBoundary option has been removed
29
-
30
- - fix: exclude specific pages from page map automatically
31
-
32
- - refactor: conslidate codebase
33
-
34
- - fix: improve hot reload share recovery
35
-
36
- - refactor: remove server jsonp template
37
-
38
- - chore: remove dead code from runtime modules
39
-
40
- - fix: clean up jsonp getCustomJsonpCode
41
-
42
- getting chunk loading global from compiler output options
43
-
44
- - feat: adding cleanInitArrays runtime helper
45
-
46
- - chore: remove share scope hoist and module hoisting system
47
-
48
- - chore: cleanup code
49
-
50
- - chore: remove dead code from add module runtime plugin
51
-
52
- likely can remove whole plugin in future
53
-
54
- - chore: remove logs from delegate modules
55
-
56
- - chore: remove old utils
57
-
58
- - fix: add warning on auto page stitch
59
-
60
- - fix: remove commented out code from InvertedContainerPlugin.ts
61
-
62
- - chore: improve logging to see if its local load or remote load
63
-
64
- - chore: clean up old custom promises factories
65
-
66
- - fix: remove container proxy code
67
-
68
- - fix: remove container proxy code
69
- - automaticAsyncBoundary option has been removed
70
-
71
- - fix: exclude specific pages from page map automatically
72
-
73
- - refactor: conslidate codebase
74
-
75
- - fix: improve hot reload share recovery
76
-
77
- - refactor: remove server jsonp template
78
-
79
- - chore: remove dead code from runtime modules
80
-
81
- - fix: clean up jsonp getCustomJsonpCode
82
-
83
- getting chunk loading global from compiler output options
84
-
85
- - feat: adding cleanInitArrays runtime helper
86
-
87
- - chore: remove share scope hoist and module hoisting system
88
-
89
- - chore: cleanup code
90
-
91
- - chore: remove dead code from add module runtime plugin
92
-
93
- likely can remove whole plugin in future
94
-
95
- - chore: remove logs from delegate modules
96
-
97
- - chore: remove old utils
98
-
99
- - fix: add warning on auto page stitch
100
-
101
- - fix: remove commented out code from InvertedContainerPlugin.ts
102
-
103
- - chore: improve logging to see if its local load or remote load
104
-
105
- - chore: clean up old custom promises factories
106
-
107
- - fix: remove container proxy code
108
-
109
- - fix: remove container proxy code
110
-
111
- - chore: fix project.json
112
-
113
- - debugging
114
-
115
- - fix: resolve backmerge issues with build
116
-
117
- - Merge branch 'kill_child_compilers' into fix_backmerge_issues
118
-
119
- # Conflicts:
120
-
121
- # package-lock.json
122
-
123
- # package.json
124
-
125
- # packages/nextjs-mf/src/plugins/NextFederationPlugin/index.ts
126
-
127
- # packages/nextjs-mf/src/plugins/container/InvertedContainerPlugin.ts
128
-
129
- # packages/nextjs-mf/src/plugins/container/InvertedContainerRuntimeModule.ts
130
-
131
- - feat: enable eager sharing
132
-
133
- - refactor: improve module hooks for eager loading and search
134
-
135
- - refactor: cleanup custom jsonp and make es5
136
-
137
- - refactor: cleanup inverted container code
138
-
139
- - refactor: cleanup inverted container code
140
- - automaticAsyncBoundary option has been removed
141
-
142
- - fix: exclude specific pages from page map automatically
143
-
144
- - refactor: conslidate codebase
145
-
146
- - fix: improve hot reload share recovery
147
-
148
- - refactor: remove server jsonp template
149
-
150
- - chore: remove dead code from runtime modules
151
-
152
- - fix: clean up jsonp getCustomJsonpCode
153
-
154
- getting chunk loading global from compiler output options
155
-
156
- - feat: adding cleanInitArrays runtime helper
157
-
158
- - chore: remove share scope hoist and module hoisting system
159
-
160
- - chore: cleanup code
161
-
162
- - chore: remove dead code from add module runtime plugin
163
-
164
- likely can remove whole plugin in future
165
-
166
- - chore: remove logs from delegate modules
167
-
168
- - chore: remove old utils
169
-
170
- - fix: add warning on auto page stitch
171
-
172
- - fix: remove commented out code from InvertedContainerPlugin.ts
173
-
174
- - chore: improve logging to see if its local load or remote load
175
-
176
- - chore: clean up old custom promises factories
177
-
178
- - fix: remove container proxy code
179
-
180
- - fix: remove container proxy code
181
-
182
- - fix: resolve backmerge issues with build
183
-
184
- - Merge branch 'kill_child_compilers' into fix_backmerge_issues
185
-
186
- # Conflicts:
187
-
188
- # package-lock.json
189
-
190
- # package.json
191
-
192
- # packages/nextjs-mf/src/plugins/NextFederationPlugin/index.ts
193
-
194
- # packages/nextjs-mf/src/plugins/container/InvertedContainerPlugin.ts
195
-
196
- # packages/nextjs-mf/src/plugins/container/InvertedContainerRuntimeModule.ts
197
-
198
- - feat: enable eager sharing
199
-
200
- - refactor: improve module hooks for eager loading and search
201
-
202
- - refactor: cleanup custom jsonp and make es5
203
-
204
- - refactor: cleanup inverted container code
205
-
206
- - refactor: cleanup inverted container code
207
-
208
- - ci: fix install step with npm and NX
209
-
210
- - test: remove tests for now
211
-
212
- - chore(utils): release version 1.7.3-beta.0
213
-
214
- - chore(utils): release version 1.7.3
215
-
216
- - chore(node): release version 0.14.4-beta.0
217
-
218
- - chore(node): release version 0.14.4
219
-
220
- - chore(nextjs-mf): release version 6.4.1-beta.4
221
-
222
- - fix: remove debugging runtime variable
223
-
224
- - chore(nextjs-mf): release version 6.4.1-beta.5
225
-
226
- # [1.0.0](https://github.com/module-federation/nextjs-mf/compare/storybook-addon-0.2.0...storybook-addon-1.0.0) (2023-08-14)
227
-
228
- ### Dependency Updates
229
-
230
- - `utils` updated to version `2.0.7`
231
- - `utils` updated to version `2.0.7`
232
-
233
- ### Bug Fixes
234
-
235
- - ignore ts error ([86bb46b](https://github.com/module-federation/nextjs-mf/commit/86bb46b0a77617c28d5294c3cc5e266b9360eb65))
236
- - **storybook-addon:** update src path also for stories from v7 ([#1206](https://github.com/module-federation/nextjs-mf/issues/1206)) ([8af9066](https://github.com/module-federation/nextjs-mf/commit/8af906648c3abf8d9a344fec9153b54a02ad3e53)), closes [#1195](https://github.com/module-federation/nextjs-mf/issues/1195)
237
- - workaround to self ref module error in prod ([#1205](https://github.com/module-federation/nextjs-mf/issues/1205)) ([1d88beb](https://github.com/module-federation/nextjs-mf/commit/1d88beb0da629f036e132573fee9f05494b1f540))
238
-
239
- ### Features
240
-
241
- - Next Federation 7 ([#726](https://github.com/module-federation/nextjs-mf/issues/726)) ([d50ca1e](https://github.com/module-federation/nextjs-mf/commit/d50ca1e4636c4e0a402190f6e9c3f69ed9ec8eac)), closes [#851](https://github.com/module-federation/nextjs-mf/issues/851) [#864](https://github.com/module-federation/nextjs-mf/issues/864) [#835](https://github.com/module-federation/nextjs-mf/issues/835) [#851](https://github.com/module-federation/nextjs-mf/issues/851) [#864](https://github.com/module-federation/nextjs-mf/issues/864) [#871](https://github.com/module-federation/nextjs-mf/issues/871) [#851](https://github.com/module-federation/nextjs-mf/issues/851) [#864](https://github.com/module-federation/nextjs-mf/issues/864) [#872](https://github.com/module-federation/nextjs-mf/issues/872) [#875](https://github.com/module-federation/nextjs-mf/issues/875) [#884](https://github.com/module-federation/nextjs-mf/issues/884) [#887](https://github.com/module-federation/nextjs-mf/issues/887) [#893](https://github.com/module-federation/nextjs-mf/issues/893) [#885](https://github.com/module-federation/nextjs-mf/issues/885) [#899](https://github.com/module-federation/nextjs-mf/issues/899) [#904](https://github.com/module-federation/nextjs-mf/issues/904) [#932](https://github.com/module-federation/nextjs-mf/issues/932) [#936](https://github.com/module-federation/nextjs-mf/issues/936) [#959](https://github.com/module-federation/nextjs-mf/issues/959) [#960](https://github.com/module-federation/nextjs-mf/issues/960) [#969](https://github.com/module-federation/nextjs-mf/issues/969) [#971](https://github.com/module-federation/nextjs-mf/issues/971) [#974](https://github.com/module-federation/nextjs-mf/issues/974) [#984](https://github.com/module-federation/nextjs-mf/issues/984) [#986](https://github.com/module-federation/nextjs-mf/issues/986) [#1015](https://github.com/module-federation/nextjs-mf/issues/1015) [#1086](https://github.com/module-federation/nextjs-mf/issues/1086) [#1084](https://github.com/module-federation/nextjs-mf/issues/1084)
242
-
243
- ### BREAKING CHANGES
244
-
245
- - automaticAsyncBoundary option has been removed
246
-
247
- - fix: exclude specific pages from page map automatically
248
-
249
- - refactor: conslidate codebase
250
-
251
- - fix: improve hot reload share recovery
252
-
253
- - refactor: remove server jsonp template
254
-
255
- - chore: remove dead code from runtime modules
256
-
257
- - fix: clean up jsonp getCustomJsonpCode
258
-
259
- getting chunk loading global from compiler output options
260
-
261
- - feat: adding cleanInitArrays runtime helper
262
-
263
- - chore: remove share scope hoist and module hoisting system
264
-
265
- - chore: cleanup code
266
-
267
- - chore: remove dead code from add module runtime plugin
268
-
269
- likely can remove whole plugin in future
270
-
271
- - chore: remove logs from delegate modules
272
-
273
- - chore: remove old utils
274
-
275
- - fix: add warning on auto page stitch
276
-
277
- - fix: remove commented out code from InvertedContainerPlugin.ts
278
-
279
- - chore: improve logging to see if its local load or remote load
280
-
281
- - chore: clean up old custom promises factories
282
-
283
- - fix: remove container proxy code
284
-
285
- - fix: remove container proxy code
286
- - automaticAsyncBoundary option has been removed
287
-
288
- - fix: exclude specific pages from page map automatically
289
-
290
- - refactor: conslidate codebase
291
-
292
- - fix: improve hot reload share recovery
293
-
294
- - refactor: remove server jsonp template
295
-
296
- - chore: remove dead code from runtime modules
297
-
298
- - fix: clean up jsonp getCustomJsonpCode
299
-
300
- getting chunk loading global from compiler output options
301
-
302
- - feat: adding cleanInitArrays runtime helper
303
-
304
- - chore: remove share scope hoist and module hoisting system
305
-
306
- - chore: cleanup code
307
-
308
- - chore: remove dead code from add module runtime plugin
309
-
310
- likely can remove whole plugin in future
311
-
312
- - chore: remove logs from delegate modules
313
-
314
- - chore: remove old utils
315
-
316
- - fix: add warning on auto page stitch
317
-
318
- - fix: remove commented out code from InvertedContainerPlugin.ts
319
-
320
- - chore: improve logging to see if its local load or remote load
321
-
322
- - chore: clean up old custom promises factories
323
-
324
- - fix: remove container proxy code
325
-
326
- - fix: remove container proxy code
327
-
328
- - chore: fix project.json
329
-
330
- - debugging
331
-
332
- - fix: resolve backmerge issues with build
333
-
334
- - Merge branch 'kill_child_compilers' into fix_backmerge_issues
335
-
336
- # Conflicts:
337
-
338
- # package-lock.json
339
-
340
- # package.json
341
-
342
- # packages/nextjs-mf/src/plugins/NextFederationPlugin/index.ts
343
-
344
- # packages/nextjs-mf/src/plugins/container/InvertedContainerPlugin.ts
345
-
346
- # packages/nextjs-mf/src/plugins/container/InvertedContainerRuntimeModule.ts
347
-
348
- - feat: enable eager sharing
349
-
350
- - refactor: improve module hooks for eager loading and search
351
-
352
- - refactor: cleanup custom jsonp and make es5
353
-
354
- - refactor: cleanup inverted container code
355
-
356
- - refactor: cleanup inverted container code
357
- - automaticAsyncBoundary option has been removed
358
-
359
- - fix: exclude specific pages from page map automatically
360
-
361
- - refactor: conslidate codebase
362
-
363
- - fix: improve hot reload share recovery
364
-
365
- - refactor: remove server jsonp template
366
-
367
- - chore: remove dead code from runtime modules
368
-
369
- - fix: clean up jsonp getCustomJsonpCode
370
-
371
- getting chunk loading global from compiler output options
372
-
373
- - feat: adding cleanInitArrays runtime helper
374
-
375
- - chore: remove share scope hoist and module hoisting system
376
-
377
- - chore: cleanup code
378
-
379
- - chore: remove dead code from add module runtime plugin
380
-
381
- likely can remove whole plugin in future
382
-
383
- - chore: remove logs from delegate modules
384
-
385
- - chore: remove old utils
386
-
387
- - fix: add warning on auto page stitch
388
-
389
- - fix: remove commented out code from InvertedContainerPlugin.ts
390
-
391
- - chore: improve logging to see if its local load or remote load
392
-
393
- - chore: clean up old custom promises factories
394
-
395
- - fix: remove container proxy code
396
-
397
- - fix: remove container proxy code
398
-
399
- - fix: resolve backmerge issues with build
400
-
401
- - Merge branch 'kill_child_compilers' into fix_backmerge_issues
402
-
403
- # Conflicts:
404
-
405
- # package-lock.json
406
-
407
- # package.json
408
-
409
- # packages/nextjs-mf/src/plugins/NextFederationPlugin/index.ts
410
-
411
- # packages/nextjs-mf/src/plugins/container/InvertedContainerPlugin.ts
412
-
413
- # packages/nextjs-mf/src/plugins/container/InvertedContainerRuntimeModule.ts
414
-
415
- - feat: enable eager sharing
416
-
417
- - refactor: improve module hooks for eager loading and search
418
-
419
- - refactor: cleanup custom jsonp and make es5
420
-
421
- - refactor: cleanup inverted container code
422
-
423
- - refactor: cleanup inverted container code
424
-
425
- - ci: fix install step with npm and NX
426
-
427
- - test: remove tests for now
428
-
429
- - chore(utils): release version 1.7.3-beta.0
430
-
431
- - chore(utils): release version 1.7.3
432
-
433
- - chore(node): release version 0.14.4-beta.0
434
-
435
- - chore(node): release version 0.14.4
436
-
437
- - chore(nextjs-mf): release version 6.4.1-beta.4
438
-
439
- - fix: remove debugging runtime variable
440
-
441
- - chore(nextjs-mf): release version 6.4.1-beta.5
442
-
443
- # [1.0.0](https://github.com/module-federation/nextjs-mf/compare/storybook-addon-0.2.0...storybook-addon-1.0.0) (2023-08-14)
444
-
445
- ### Dependency Updates
446
-
447
- - `utils` updated to version `2.0.7`
448
- - `utils` updated to version `2.0.7`
449
-
450
- ### Bug Fixes
451
-
452
- - ignore ts error ([86bb46b](https://github.com/module-federation/nextjs-mf/commit/86bb46b0a77617c28d5294c3cc5e266b9360eb65))
453
- - **storybook-addon:** update src path also for stories from v7 ([#1206](https://github.com/module-federation/nextjs-mf/issues/1206)) ([8af9066](https://github.com/module-federation/nextjs-mf/commit/8af906648c3abf8d9a344fec9153b54a02ad3e53)), closes [#1195](https://github.com/module-federation/nextjs-mf/issues/1195)
454
- - workaround to self ref module error in prod ([#1205](https://github.com/module-federation/nextjs-mf/issues/1205)) ([1d88beb](https://github.com/module-federation/nextjs-mf/commit/1d88beb0da629f036e132573fee9f05494b1f540))
455
-
456
- ### Features
457
-
458
- - Next Federation 7 ([#726](https://github.com/module-federation/nextjs-mf/issues/726)) ([d50ca1e](https://github.com/module-federation/nextjs-mf/commit/d50ca1e4636c4e0a402190f6e9c3f69ed9ec8eac)), closes [#851](https://github.com/module-federation/nextjs-mf/issues/851) [#864](https://github.com/module-federation/nextjs-mf/issues/864) [#835](https://github.com/module-federation/nextjs-mf/issues/835) [#851](https://github.com/module-federation/nextjs-mf/issues/851) [#864](https://github.com/module-federation/nextjs-mf/issues/864) [#871](https://github.com/module-federation/nextjs-mf/issues/871) [#851](https://github.com/module-federation/nextjs-mf/issues/851) [#864](https://github.com/module-federation/nextjs-mf/issues/864) [#872](https://github.com/module-federation/nextjs-mf/issues/872) [#875](https://github.com/module-federation/nextjs-mf/issues/875) [#884](https://github.com/module-federation/nextjs-mf/issues/884) [#887](https://github.com/module-federation/nextjs-mf/issues/887) [#893](https://github.com/module-federation/nextjs-mf/issues/893) [#885](https://github.com/module-federation/nextjs-mf/issues/885) [#899](https://github.com/module-federation/nextjs-mf/issues/899) [#904](https://github.com/module-federation/nextjs-mf/issues/904) [#932](https://github.com/module-federation/nextjs-mf/issues/932) [#936](https://github.com/module-federation/nextjs-mf/issues/936) [#959](https://github.com/module-federation/nextjs-mf/issues/959) [#960](https://github.com/module-federation/nextjs-mf/issues/960) [#969](https://github.com/module-federation/nextjs-mf/issues/969) [#971](https://github.com/module-federation/nextjs-mf/issues/971) [#974](https://github.com/module-federation/nextjs-mf/issues/974) [#984](https://github.com/module-federation/nextjs-mf/issues/984) [#986](https://github.com/module-federation/nextjs-mf/issues/986) [#1015](https://github.com/module-federation/nextjs-mf/issues/1015) [#1086](https://github.com/module-federation/nextjs-mf/issues/1086) [#1084](https://github.com/module-federation/nextjs-mf/issues/1084)
459
-
460
- ### BREAKING CHANGES
461
-
462
- - automaticAsyncBoundary option has been removed
463
-
464
- - fix: exclude specific pages from page map automatically
465
-
466
- - refactor: conslidate codebase
467
-
468
- - fix: improve hot reload share recovery
469
-
470
- - refactor: remove server jsonp template
471
-
472
- - chore: remove dead code from runtime modules
473
-
474
- - fix: clean up jsonp getCustomJsonpCode
475
-
476
- getting chunk loading global from compiler output options
477
-
478
- - feat: adding cleanInitArrays runtime helper
479
-
480
- - chore: remove share scope hoist and module hoisting system
481
-
482
- - chore: cleanup code
483
-
484
- - chore: remove dead code from add module runtime plugin
485
-
486
- likely can remove whole plugin in future
487
-
488
- - chore: remove logs from delegate modules
489
-
490
- - chore: remove old utils
491
-
492
- - fix: add warning on auto page stitch
493
-
494
- - fix: remove commented out code from InvertedContainerPlugin.ts
495
-
496
- - chore: improve logging to see if its local load or remote load
497
-
498
- - chore: clean up old custom promises factories
499
-
500
- - fix: remove container proxy code
501
-
502
- - fix: remove container proxy code
503
- - automaticAsyncBoundary option has been removed
504
-
505
- - fix: exclude specific pages from page map automatically
506
-
507
- - refactor: conslidate codebase
508
-
509
- - fix: improve hot reload share recovery
510
-
511
- - refactor: remove server jsonp template
512
-
513
- - chore: remove dead code from runtime modules
514
-
515
- - fix: clean up jsonp getCustomJsonpCode
516
-
517
- getting chunk loading global from compiler output options
518
-
519
- - feat: adding cleanInitArrays runtime helper
520
-
521
- - chore: remove share scope hoist and module hoisting system
522
-
523
- - chore: cleanup code
524
-
525
- - chore: remove dead code from add module runtime plugin
526
-
527
- likely can remove whole plugin in future
528
-
529
- - chore: remove logs from delegate modules
530
-
531
- - chore: remove old utils
532
-
533
- - fix: add warning on auto page stitch
534
-
535
- - fix: remove commented out code from InvertedContainerPlugin.ts
536
-
537
- - chore: improve logging to see if its local load or remote load
538
-
539
- - chore: clean up old custom promises factories
540
-
541
- - fix: remove container proxy code
542
-
543
- - fix: remove container proxy code
544
-
545
- - chore: fix project.json
546
-
547
- - debugging
548
-
549
- - fix: resolve backmerge issues with build
550
-
551
- - Merge branch 'kill_child_compilers' into fix_backmerge_issues
552
-
553
- # Conflicts:
554
-
555
- # package-lock.json
556
-
557
- # package.json
558
-
559
- # packages/nextjs-mf/src/plugins/NextFederationPlugin/index.ts
560
-
561
- # packages/nextjs-mf/src/plugins/container/InvertedContainerPlugin.ts
562
-
563
- # packages/nextjs-mf/src/plugins/container/InvertedContainerRuntimeModule.ts
564
-
565
- - feat: enable eager sharing
566
-
567
- - refactor: improve module hooks for eager loading and search
568
-
569
- - refactor: cleanup custom jsonp and make es5
570
-
571
- - refactor: cleanup inverted container code
572
-
573
- - refactor: cleanup inverted container code
574
- - automaticAsyncBoundary option has been removed
575
-
576
- - fix: exclude specific pages from page map automatically
577
-
578
- - refactor: conslidate codebase
579
-
580
- - fix: improve hot reload share recovery
581
-
582
- - refactor: remove server jsonp template
583
-
584
- - chore: remove dead code from runtime modules
585
-
586
- - fix: clean up jsonp getCustomJsonpCode
587
-
588
- getting chunk loading global from compiler output options
589
-
590
- - feat: adding cleanInitArrays runtime helper
591
-
592
- - chore: remove share scope hoist and module hoisting system
593
-
594
- - chore: cleanup code
595
-
596
- - chore: remove dead code from add module runtime plugin
597
-
598
- likely can remove whole plugin in future
599
-
600
- - chore: remove logs from delegate modules
601
-
602
- - chore: remove old utils
603
-
604
- - fix: add warning on auto page stitch
605
-
606
- - fix: remove commented out code from InvertedContainerPlugin.ts
607
-
608
- - chore: improve logging to see if its local load or remote load
609
-
610
- - chore: clean up old custom promises factories
611
-
612
- - fix: remove container proxy code
613
-
614
- - fix: remove container proxy code
615
-
616
- - fix: resolve backmerge issues with build
617
-
618
- - Merge branch 'kill_child_compilers' into fix_backmerge_issues
619
-
620
- # Conflicts:
621
-
622
- # package-lock.json
623
-
624
- # package.json
625
-
626
- # packages/nextjs-mf/src/plugins/NextFederationPlugin/index.ts
627
-
628
- # packages/nextjs-mf/src/plugins/container/InvertedContainerPlugin.ts
629
-
630
- # packages/nextjs-mf/src/plugins/container/InvertedContainerRuntimeModule.ts
631
-
632
- - feat: enable eager sharing
633
-
634
- - refactor: improve module hooks for eager loading and search
635
-
636
- - refactor: cleanup custom jsonp and make es5
637
-
638
- - refactor: cleanup inverted container code
639
-
640
- - refactor: cleanup inverted container code
641
-
642
- - ci: fix install step with npm and NX
643
-
644
- - test: remove tests for now
645
-
646
- - chore(utils): release version 1.7.3-beta.0
647
-
648
- - chore(utils): release version 1.7.3
649
-
650
- - chore(node): release version 0.14.4-beta.0
651
-
652
- - chore(node): release version 0.14.4
653
-
654
- - chore(nextjs-mf): release version 6.4.1-beta.4
655
-
656
- - fix: remove debugging runtime variable
657
-
658
- - chore(nextjs-mf): release version 6.4.1-beta.5
659
-
660
- # [1.0.0](https://github.com/module-federation/nextjs-mf/compare/storybook-addon-0.2.0...storybook-addon-1.0.0) (2023-08-14)
661
-
662
- ### Dependency Updates
663
-
664
- - `utils` updated to version `2.0.7`
665
- - `utils` updated to version `2.0.7`
666
-
667
- ### Bug Fixes
668
-
669
- - ignore ts error ([86bb46b](https://github.com/module-federation/nextjs-mf/commit/86bb46b0a77617c28d5294c3cc5e266b9360eb65))
670
- - **storybook-addon:** update src path also for stories from v7 ([#1206](https://github.com/module-federation/nextjs-mf/issues/1206)) ([8af9066](https://github.com/module-federation/nextjs-mf/commit/8af906648c3abf8d9a344fec9153b54a02ad3e53)), closes [#1195](https://github.com/module-federation/nextjs-mf/issues/1195)
671
- - workaround to self ref module error in prod ([#1205](https://github.com/module-federation/nextjs-mf/issues/1205)) ([1d88beb](https://github.com/module-federation/nextjs-mf/commit/1d88beb0da629f036e132573fee9f05494b1f540))
672
-
673
- ### Features
674
-
675
- - Next Federation 7 ([#726](https://github.com/module-federation/nextjs-mf/issues/726)) ([d50ca1e](https://github.com/module-federation/nextjs-mf/commit/d50ca1e4636c4e0a402190f6e9c3f69ed9ec8eac)), closes [#851](https://github.com/module-federation/nextjs-mf/issues/851) [#864](https://github.com/module-federation/nextjs-mf/issues/864) [#835](https://github.com/module-federation/nextjs-mf/issues/835) [#851](https://github.com/module-federation/nextjs-mf/issues/851) [#864](https://github.com/module-federation/nextjs-mf/issues/864) [#871](https://github.com/module-federation/nextjs-mf/issues/871) [#851](https://github.com/module-federation/nextjs-mf/issues/851) [#864](https://github.com/module-federation/nextjs-mf/issues/864) [#872](https://github.com/module-federation/nextjs-mf/issues/872) [#875](https://github.com/module-federation/nextjs-mf/issues/875) [#884](https://github.com/module-federation/nextjs-mf/issues/884) [#887](https://github.com/module-federation/nextjs-mf/issues/887) [#893](https://github.com/module-federation/nextjs-mf/issues/893) [#885](https://github.com/module-federation/nextjs-mf/issues/885) [#899](https://github.com/module-federation/nextjs-mf/issues/899) [#904](https://github.com/module-federation/nextjs-mf/issues/904) [#932](https://github.com/module-federation/nextjs-mf/issues/932) [#936](https://github.com/module-federation/nextjs-mf/issues/936) [#959](https://github.com/module-federation/nextjs-mf/issues/959) [#960](https://github.com/module-federation/nextjs-mf/issues/960) [#969](https://github.com/module-federation/nextjs-mf/issues/969) [#971](https://github.com/module-federation/nextjs-mf/issues/971) [#974](https://github.com/module-federation/nextjs-mf/issues/974) [#984](https://github.com/module-federation/nextjs-mf/issues/984) [#986](https://github.com/module-federation/nextjs-mf/issues/986) [#1015](https://github.com/module-federation/nextjs-mf/issues/1015) [#1086](https://github.com/module-federation/nextjs-mf/issues/1086) [#1084](https://github.com/module-federation/nextjs-mf/issues/1084)
676
-
677
- ### BREAKING CHANGES
678
-
679
- - automaticAsyncBoundary option has been removed
680
-
681
- - fix: exclude specific pages from page map automatically
682
-
683
- - refactor: conslidate codebase
684
-
685
- - fix: improve hot reload share recovery
686
-
687
- - refactor: remove server jsonp template
688
-
689
- - chore: remove dead code from runtime modules
690
-
691
- - fix: clean up jsonp getCustomJsonpCode
692
-
693
- getting chunk loading global from compiler output options
694
-
695
- - feat: adding cleanInitArrays runtime helper
696
-
697
- - chore: remove share scope hoist and module hoisting system
698
-
699
- - chore: cleanup code
700
-
701
- - chore: remove dead code from add module runtime plugin
702
-
703
- likely can remove whole plugin in future
704
-
705
- - chore: remove logs from delegate modules
706
-
707
- - chore: remove old utils
708
-
709
- - fix: add warning on auto page stitch
710
-
711
- - fix: remove commented out code from InvertedContainerPlugin.ts
712
-
713
- - chore: improve logging to see if its local load or remote load
714
-
715
- - chore: clean up old custom promises factories
716
-
717
- - fix: remove container proxy code
718
-
719
- - fix: remove container proxy code
720
- - automaticAsyncBoundary option has been removed
721
-
722
- - fix: exclude specific pages from page map automatically
723
-
724
- - refactor: conslidate codebase
725
-
726
- - fix: improve hot reload share recovery
727
-
728
- - refactor: remove server jsonp template
729
-
730
- - chore: remove dead code from runtime modules
731
-
732
- - fix: clean up jsonp getCustomJsonpCode
733
-
734
- getting chunk loading global from compiler output options
735
-
736
- - feat: adding cleanInitArrays runtime helper
737
-
738
- - chore: remove share scope hoist and module hoisting system
739
-
740
- - chore: cleanup code
741
-
742
- - chore: remove dead code from add module runtime plugin
743
-
744
- likely can remove whole plugin in future
745
-
746
- - chore: remove logs from delegate modules
747
-
748
- - chore: remove old utils
749
-
750
- - fix: add warning on auto page stitch
751
-
752
- - fix: remove commented out code from InvertedContainerPlugin.ts
753
-
754
- - chore: improve logging to see if its local load or remote load
755
-
756
- - chore: clean up old custom promises factories
757
-
758
- - fix: remove container proxy code
759
-
760
- - fix: remove container proxy code
761
-
762
- - chore: fix project.json
763
-
764
- - debugging
765
-
766
- - fix: resolve backmerge issues with build
767
-
768
- - Merge branch 'kill_child_compilers' into fix_backmerge_issues
769
-
770
- # Conflicts:
771
-
772
- # package-lock.json
773
-
774
- # package.json
775
-
776
- # packages/nextjs-mf/src/plugins/NextFederationPlugin/index.ts
777
-
778
- # packages/nextjs-mf/src/plugins/container/InvertedContainerPlugin.ts
779
-
780
- # packages/nextjs-mf/src/plugins/container/InvertedContainerRuntimeModule.ts
781
-
782
- - feat: enable eager sharing
783
-
784
- - refactor: improve module hooks for eager loading and search
785
-
786
- - refactor: cleanup custom jsonp and make es5
787
-
788
- - refactor: cleanup inverted container code
789
-
790
- - refactor: cleanup inverted container code
791
- - automaticAsyncBoundary option has been removed
792
-
793
- - fix: exclude specific pages from page map automatically
794
-
795
- - refactor: conslidate codebase
796
-
797
- - fix: improve hot reload share recovery
798
-
799
- - refactor: remove server jsonp template
800
-
801
- - chore: remove dead code from runtime modules
802
-
803
- - fix: clean up jsonp getCustomJsonpCode
804
-
805
- getting chunk loading global from compiler output options
806
-
807
- - feat: adding cleanInitArrays runtime helper
808
-
809
- - chore: remove share scope hoist and module hoisting system
810
-
811
- - chore: cleanup code
812
-
813
- - chore: remove dead code from add module runtime plugin
814
-
815
- likely can remove whole plugin in future
816
-
817
- - chore: remove logs from delegate modules
818
-
819
- - chore: remove old utils
820
-
821
- - fix: add warning on auto page stitch
822
-
823
- - fix: remove commented out code from InvertedContainerPlugin.ts
824
-
825
- - chore: improve logging to see if its local load or remote load
826
-
827
- - chore: clean up old custom promises factories
828
-
829
- - fix: remove container proxy code
830
-
831
- - fix: remove container proxy code
832
-
833
- - fix: resolve backmerge issues with build
834
-
835
- - Merge branch 'kill_child_compilers' into fix_backmerge_issues
836
-
837
- # Conflicts:
838
-
839
- # package-lock.json
840
-
841
- # package.json
842
-
843
- # packages/nextjs-mf/src/plugins/NextFederationPlugin/index.ts
844
-
845
- # packages/nextjs-mf/src/plugins/container/InvertedContainerPlugin.ts
846
-
847
- # packages/nextjs-mf/src/plugins/container/InvertedContainerRuntimeModule.ts
848
-
849
- - feat: enable eager sharing
850
-
851
- - refactor: improve module hooks for eager loading and search
852
-
853
- - refactor: cleanup custom jsonp and make es5
854
-
855
- - refactor: cleanup inverted container code
856
-
857
- - refactor: cleanup inverted container code
858
-
859
- - ci: fix install step with npm and NX
860
-
861
- - test: remove tests for now
862
-
863
- - chore(utils): release version 1.7.3-beta.0
864
-
865
- - chore(utils): release version 1.7.3
866
-
867
- - chore(node): release version 0.14.4-beta.0
868
-
869
- - chore(node): release version 0.14.4
870
-
871
- - chore(nextjs-mf): release version 6.4.1-beta.4
872
-
873
- - fix: remove debugging runtime variable
874
-
875
- - chore(nextjs-mf): release version 6.4.1-beta.5
876
-
877
- # [1.0.0](https://github.com/module-federation/nextjs-mf/compare/storybook-addon-0.2.0...storybook-addon-1.0.0) (2023-08-14)
878
-
879
- ### Dependency Updates
880
-
881
- - `utils` updated to version `2.0.6`
882
- - `utils` updated to version `2.0.6`
883
-
884
- ### Bug Fixes
885
-
886
- - ignore ts error ([86bb46b](https://github.com/module-federation/nextjs-mf/commit/86bb46b0a77617c28d5294c3cc5e266b9360eb65))
887
- - **storybook-addon:** update src path also for stories from v7 ([#1206](https://github.com/module-federation/nextjs-mf/issues/1206)) ([8af9066](https://github.com/module-federation/nextjs-mf/commit/8af906648c3abf8d9a344fec9153b54a02ad3e53)), closes [#1195](https://github.com/module-federation/nextjs-mf/issues/1195)
888
-
889
- ### Features
890
-
891
- - Next Federation 7 ([#726](https://github.com/module-federation/nextjs-mf/issues/726)) ([d50ca1e](https://github.com/module-federation/nextjs-mf/commit/d50ca1e4636c4e0a402190f6e9c3f69ed9ec8eac)), closes [#851](https://github.com/module-federation/nextjs-mf/issues/851) [#864](https://github.com/module-federation/nextjs-mf/issues/864) [#835](https://github.com/module-federation/nextjs-mf/issues/835) [#851](https://github.com/module-federation/nextjs-mf/issues/851) [#864](https://github.com/module-federation/nextjs-mf/issues/864) [#871](https://github.com/module-federation/nextjs-mf/issues/871) [#851](https://github.com/module-federation/nextjs-mf/issues/851) [#864](https://github.com/module-federation/nextjs-mf/issues/864) [#872](https://github.com/module-federation/nextjs-mf/issues/872) [#875](https://github.com/module-federation/nextjs-mf/issues/875) [#884](https://github.com/module-federation/nextjs-mf/issues/884) [#887](https://github.com/module-federation/nextjs-mf/issues/887) [#893](https://github.com/module-federation/nextjs-mf/issues/893) [#885](https://github.com/module-federation/nextjs-mf/issues/885) [#899](https://github.com/module-federation/nextjs-mf/issues/899) [#904](https://github.com/module-federation/nextjs-mf/issues/904) [#932](https://github.com/module-federation/nextjs-mf/issues/932) [#936](https://github.com/module-federation/nextjs-mf/issues/936) [#959](https://github.com/module-federation/nextjs-mf/issues/959) [#960](https://github.com/module-federation/nextjs-mf/issues/960) [#969](https://github.com/module-federation/nextjs-mf/issues/969) [#971](https://github.com/module-federation/nextjs-mf/issues/971) [#974](https://github.com/module-federation/nextjs-mf/issues/974) [#984](https://github.com/module-federation/nextjs-mf/issues/984) [#986](https://github.com/module-federation/nextjs-mf/issues/986) [#1015](https://github.com/module-federation/nextjs-mf/issues/1015) [#1086](https://github.com/module-federation/nextjs-mf/issues/1086) [#1084](https://github.com/module-federation/nextjs-mf/issues/1084)
892
-
893
- ### BREAKING CHANGES
894
-
895
- - automaticAsyncBoundary option has been removed
896
-
897
- - fix: exclude specific pages from page map automatically
898
-
899
- - refactor: conslidate codebase
900
-
901
- - fix: improve hot reload share recovery
902
-
903
- - refactor: remove server jsonp template
904
-
905
- - chore: remove dead code from runtime modules
906
-
907
- - fix: clean up jsonp getCustomJsonpCode
908
-
909
- getting chunk loading global from compiler output options
910
-
911
- - feat: adding cleanInitArrays runtime helper
912
-
913
- - chore: remove share scope hoist and module hoisting system
914
-
915
- - chore: cleanup code
916
-
917
- - chore: remove dead code from add module runtime plugin
918
-
919
- likely can remove whole plugin in future
920
-
921
- - chore: remove logs from delegate modules
922
-
923
- - chore: remove old utils
924
-
925
- - fix: add warning on auto page stitch
926
-
927
- - fix: remove commented out code from InvertedContainerPlugin.ts
928
-
929
- - chore: improve logging to see if its local load or remote load
930
-
931
- - chore: clean up old custom promises factories
932
-
933
- - fix: remove container proxy code
934
-
935
- - fix: remove container proxy code
936
- - automaticAsyncBoundary option has been removed
937
-
938
- - fix: exclude specific pages from page map automatically
939
-
940
- - refactor: conslidate codebase
941
-
942
- - fix: improve hot reload share recovery
943
-
944
- - refactor: remove server jsonp template
945
-
946
- - chore: remove dead code from runtime modules
947
-
948
- - fix: clean up jsonp getCustomJsonpCode
949
-
950
- getting chunk loading global from compiler output options
951
-
952
- - feat: adding cleanInitArrays runtime helper
953
-
954
- - chore: remove share scope hoist and module hoisting system
955
-
956
- - chore: cleanup code
957
-
958
- - chore: remove dead code from add module runtime plugin
959
-
960
- likely can remove whole plugin in future
961
-
962
- - chore: remove logs from delegate modules
963
-
964
- - chore: remove old utils
965
-
966
- - fix: add warning on auto page stitch
967
-
968
- - fix: remove commented out code from InvertedContainerPlugin.ts
969
-
970
- - chore: improve logging to see if its local load or remote load
971
-
972
- - chore: clean up old custom promises factories
973
-
974
- - fix: remove container proxy code
975
-
976
- - fix: remove container proxy code
977
-
978
- - chore: fix project.json
979
-
980
- - debugging
981
-
982
- - fix: resolve backmerge issues with build
983
-
984
- - Merge branch 'kill_child_compilers' into fix_backmerge_issues
985
-
986
- # Conflicts:
987
-
988
- # package-lock.json
989
-
990
- # package.json
991
-
992
- # packages/nextjs-mf/src/plugins/NextFederationPlugin/index.ts
993
-
994
- # packages/nextjs-mf/src/plugins/container/InvertedContainerPlugin.ts
995
-
996
- # packages/nextjs-mf/src/plugins/container/InvertedContainerRuntimeModule.ts
997
-
998
- - feat: enable eager sharing
999
-
1000
- - refactor: improve module hooks for eager loading and search
1001
-
1002
- - refactor: cleanup custom jsonp and make es5
1003
-
1004
- - refactor: cleanup inverted container code
1005
-
1006
- - refactor: cleanup inverted container code
1007
- - automaticAsyncBoundary option has been removed
1008
-
1009
- - fix: exclude specific pages from page map automatically
1010
-
1011
- - refactor: conslidate codebase
1012
-
1013
- - fix: improve hot reload share recovery
1014
-
1015
- - refactor: remove server jsonp template
1016
-
1017
- - chore: remove dead code from runtime modules
1018
-
1019
- - fix: clean up jsonp getCustomJsonpCode
1020
-
1021
- getting chunk loading global from compiler output options
1022
-
1023
- - feat: adding cleanInitArrays runtime helper
1024
-
1025
- - chore: remove share scope hoist and module hoisting system
1026
-
1027
- - chore: cleanup code
1028
-
1029
- - chore: remove dead code from add module runtime plugin
1030
-
1031
- likely can remove whole plugin in future
1032
-
1033
- - chore: remove logs from delegate modules
1034
-
1035
- - chore: remove old utils
1036
-
1037
- - fix: add warning on auto page stitch
1038
-
1039
- - fix: remove commented out code from InvertedContainerPlugin.ts
1040
-
1041
- - chore: improve logging to see if its local load or remote load
1042
-
1043
- - chore: clean up old custom promises factories
1044
-
1045
- - fix: remove container proxy code
1046
-
1047
- - fix: remove container proxy code
1048
-
1049
- - fix: resolve backmerge issues with build
1050
-
1051
- - Merge branch 'kill_child_compilers' into fix_backmerge_issues
1052
-
1053
- # Conflicts:
1054
-
1055
- # package-lock.json
1056
-
1057
- # package.json
1058
-
1059
- # packages/nextjs-mf/src/plugins/NextFederationPlugin/index.ts
1060
-
1061
- # packages/nextjs-mf/src/plugins/container/InvertedContainerPlugin.ts
1062
-
1063
- # packages/nextjs-mf/src/plugins/container/InvertedContainerRuntimeModule.ts
1064
-
1065
- - feat: enable eager sharing
1066
-
1067
- - refactor: improve module hooks for eager loading and search
1068
-
1069
- - refactor: cleanup custom jsonp and make es5
1070
-
1071
- - refactor: cleanup inverted container code
1072
-
1073
- - refactor: cleanup inverted container code
1074
-
1075
- - ci: fix install step with npm and NX
1076
-
1077
- - test: remove tests for now
1078
-
1079
- - chore(utils): release version 1.7.3-beta.0
1080
-
1081
- - chore(utils): release version 1.7.3
1082
-
1083
- - chore(node): release version 0.14.4-beta.0
1084
-
1085
- - chore(node): release version 0.14.4
1086
-
1087
- - chore(nextjs-mf): release version 6.4.1-beta.4
1088
-
1089
- - fix: remove debugging runtime variable
1090
-
1091
- - chore(nextjs-mf): release version 6.4.1-beta.5
1092
-
1093
- # [0.2.0](https://github.com/module-federation/nextjs-mf/compare/storybook-addon-0.1.0...storybook-addon-0.2.0) (2023-05-03)
1094
-
1095
- ### Dependency Updates
1096
-
1097
- - `utils` updated to version `1.7.0`
1098
- - `utils` updated to version `1.7.0`
1099
-
1100
- ### Features
1101
-
1102
- - **storybook-addon:** upgrade nx and refactor util `withModuleFederation` ([#829](https://github.com/module-federation/nextjs-mf/issues/829)) ([5eeab46](https://github.com/module-federation/nextjs-mf/commit/5eeab46861fa1e444b772cdd15ba5472414e5dd8))
1103
-
1104
- # 0.1.0 (2023-04-27)
1105
-
1106
- ### Dependency Updates
1107
-
1108
- - `utils` updated to version `1.7.0`
1109
- - `utils` updated to version `1.7.0`
1110
-
1111
- ### Bug Fixes
1112
-
1113
- - add release tooling to storybook addon ([43c66bb](https://github.com/module-federation/nextjs-mf/commit/43c66bbc10af8198e908d35ffde7b7dc0058f9cb))
1114
- - add release tooling to storybook addon ([#817](https://github.com/module-federation/nextjs-mf/issues/817)) ([63d27a8](https://github.com/module-federation/nextjs-mf/commit/63d27a8067a0734d04677948b50454b6704dc387))
1115
-
1116
- ### Features
1117
-
1118
- - add storybook addon that supports Module Federation remote containers ([#598](https://github.com/module-federation/nextjs-mf/issues/598)) ([7547b02](https://github.com/module-federation/nextjs-mf/commit/7547b02937fdef2831060d6a7bfd337d2cc3355c))
1119
-
1120
- # 0.1.0 (2023-04-27)
1121
-
1122
- ### Dependency Updates
1123
-
1124
- - `utils` updated to version `1.7.0`
1125
- - `utils` updated to version `1.7.0`
1126
-
1127
- ### Bug Fixes
1128
-
1129
- - add release tooling to storybook addon ([#817](https://github.com/module-federation/nextjs-mf/issues/817)) ([63d27a8](https://github.com/module-federation/nextjs-mf/commit/63d27a8067a0734d04677948b50454b6704dc387))
1130
-
1131
- ### Features
1132
-
1133
- - add storybook addon that supports Module Federation remote containers ([#598](https://github.com/module-federation/nextjs-mf/issues/598)) ([7547b02](https://github.com/module-federation/nextjs-mf/commit/7547b02937fdef2831060d6a7bfd337d2cc3355c))
1134
-
1135
- # 0.1.0 (2023-04-27)
1136
-
1137
- ### Dependency Updates
1138
-
1139
- - `utils` updated to version `1.7.0`
1140
- - `utils` updated to version `1.7.0`
1141
-
1142
- ### Bug Fixes
1143
-
1144
- - add release tooling to storybook addon ([#817](https://github.com/module-federation/nextjs-mf/issues/817)) ([63d27a8](https://github.com/module-federation/nextjs-mf/commit/63d27a8067a0734d04677948b50454b6704dc387))
1145
-
1146
- ### Features
1147
-
1148
- - add storybook addon that supports Module Federation remote containers ([#598](https://github.com/module-federation/nextjs-mf/issues/598)) ([7547b02](https://github.com/module-federation/nextjs-mf/commit/7547b02937fdef2831060d6a7bfd337d2cc3355c))
package/README.md DELETED
@@ -1,129 +0,0 @@
1
- # Storybook addon for Module Federation
2
-
3
- This addon enables to consume remote Module Federated apps/components
4
-
5
- ## Install
6
-
7
- ```shell
8
- # with NPM
9
- npm install @module-federation/storybook-addon
10
-
11
- # with Yarn
12
- yarn add @module-federation/storybook-addon
13
- ```
14
-
15
- ## Configuration
16
-
17
- In file `./storybook/main.js`:
18
-
19
- ```js
20
- const moduleFederationConfig = {
21
- // Module Federation config
22
- };
23
-
24
- const storybookConfig = {
25
- stories: ['../src/**/*.stories.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx)'],
26
- addons: [
27
- // other addons,
28
- {
29
- name: '@module-federation/storybook-addon',
30
- options: {
31
- moduleFederationConfig,
32
- },
33
- },
34
- ],
35
- framework: '@storybook/react',
36
- core: {
37
- builder: '@storybook/builder-webpack5', // is required webpack 5 builder
38
- },
39
- };
40
-
41
- module.exports = storybookConfig;
42
- ```
43
-
44
- ---
45
-
46
- ### For the [NX](https://nx.dev/getting-started/intro) projects:
47
-
48
- Replace NX utils `withModuleFederation` in `webpack.config.js` with our utils `withModuleFederation`.
49
- Example:
50
-
51
- ```javascript
52
- const { composePlugins, withNx } = require('@nx/webpack');
53
- const { withReact } = require('@nx/react');
54
- const { withModuleFederation } = require('@module-federation/storybook-addon');
55
-
56
- const baseConfig = require('./module-federation.config');
57
-
58
- const config = {
59
- ...baseConfig,
60
- };
61
-
62
- module.exports = composePlugins(withNx(), withReact(), withModuleFederation(config));
63
- ```
64
-
65
- In file `./storybook/main.js`:
66
-
67
- ```js
68
- const nxModuleFederationConfig = {
69
- // Module Federation config
70
- };
71
-
72
- const storybookConfig = {
73
- stories: ['../src/**/*.stories.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx)'],
74
- addons: [
75
- // other addons,
76
- {
77
- name: '@module-federation/storybook-addon',
78
- options: {
79
- nxModuleFederationConfig,
80
- },
81
- },
82
- ],
83
- framework: '@storybook/react',
84
- core: {
85
- builder: '@storybook/builder-webpack5', // is required webpack 5 builder
86
- },
87
- };
88
-
89
- module.exports = storybookConfig;
90
- ```
91
-
92
- ## Usage
93
-
94
- ```jsx
95
- import React, { Suspense } from 'react';
96
-
97
- const LazyButton = React.lazy(() => import('remote/Button'));
98
-
99
- const Button = (props) => (
100
- <Suspense fallback={<p>Please wait...</p>}>
101
- <LazyButton {...props} />
102
- </Suspense>
103
- );
104
-
105
- export default {
106
- title: 'ModuleFederation/Button',
107
- component: Button,
108
- argTypes: {
109
- variant: {
110
- control: 'select',
111
- options: ['primary', 'secondary'],
112
- },
113
- },
114
- };
115
-
116
- const Template = (args) => <Button {...args} />;
117
-
118
- export const Primary = Template.bind({ variant: 'primary' });
119
- Primary.args = {
120
- variant: 'primary',
121
- children: 'Button',
122
- };
123
-
124
- export const Secondary = Template.bind({});
125
- Secondary.args = {
126
- variant: 'secondary',
127
- children: 'Button',
128
- };
129
- ```