@module-federation/native-federation-typescript 0.1.1 → 0.1.2
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/LICENSE +21 -0
- package/README.md +80 -32
- package/dist/CHANGELOG.md +336 -0
- package/dist/DTSManagerOptions-3369791f.d.ts +9 -0
- package/dist/HostOptions-cf22e0ab.d.ts +23 -0
- package/dist/README.md +214 -0
- package/dist/chunk-2NC7LVYZ.js +864 -0
- package/dist/chunk-CF5CH54A.mjs +864 -0
- package/dist/chunk-JLWFNRJL.js +179 -0
- package/dist/chunk-QYHGZU7D.mjs +244 -0
- package/dist/chunk-VHQW5BQS.js +244 -0
- package/dist/chunk-VKKLMSMI.mjs +179 -0
- package/dist/esbuild.d.mts +9 -0
- package/dist/esbuild.d.ts +6 -3
- package/dist/esbuild.js +14 -1
- package/dist/esbuild.mjs +14 -1
- package/dist/helpers.d.mts +160 -0
- package/dist/helpers.d.ts +160 -0
- package/dist/helpers.js +40 -0
- package/dist/helpers.mjs +40 -0
- package/dist/index.d.mts +16 -0
- package/dist/index.d.ts +13 -4
- package/dist/index.js +10 -1
- package/dist/index.mjs +10 -1
- package/dist/lib/forkGenerateDts.d.mts +9 -0
- package/dist/lib/forkGenerateDts.d.ts +9 -0
- package/dist/lib/forkGenerateDts.js +18 -0
- package/dist/lib/forkGenerateDts.mjs +18 -0
- package/dist/package.json +103 -0
- package/dist/rolldown.d.mts +9 -0
- package/dist/rolldown.d.ts +9 -0
- package/dist/rolldown.js +14 -0
- package/dist/rolldown.mjs +14 -0
- package/dist/rollup.d.mts +9 -0
- package/dist/rollup.d.ts +6 -3
- package/dist/rollup.js +14 -1
- package/dist/rollup.mjs +14 -1
- package/dist/rspack.d.mts +9 -0
- package/dist/rspack.d.ts +6 -3
- package/dist/rspack.js +14 -1
- package/dist/rspack.mjs +14 -1
- package/dist/vite.d.mts +9 -0
- package/dist/vite.d.ts +6 -3
- package/dist/vite.js +14 -1
- package/dist/vite.mjs +14 -1
- package/dist/webpack.d.mts +9 -0
- package/dist/webpack.d.ts +6 -3
- package/dist/webpack.js +14 -1
- package/dist/webpack.mjs +14 -1
- package/package.json +48 -6
- package/CHANGELOG.md +0 -43
- package/dist/RemoteOptions-ce85caac.d.ts +0 -17
- package/dist/chunk-46UH43EM.js +0 -2
- package/dist/chunk-APBNWJ3C.mjs +0 -2
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2022 Matteo Pietro Dazzi and NearForm Limited
|
|
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
CHANGED
|
@@ -11,9 +11,11 @@ npm i -D @module-federation/native-federation-typescript
|
|
|
11
11
|
This module provides two plugins:
|
|
12
12
|
|
|
13
13
|
### NativeFederationTypeScriptRemote
|
|
14
|
+
|
|
14
15
|
This plugin is used to build the federated types.
|
|
15
16
|
|
|
16
17
|
#### Configuration
|
|
18
|
+
|
|
17
19
|
```typescript
|
|
18
20
|
{
|
|
19
21
|
moduleFederationConfig: any; // the configuration same configuration provided to the module federation plugin, it is MANDATORY
|
|
@@ -27,10 +29,12 @@ This plugin is used to build the federated types.
|
|
|
27
29
|
```
|
|
28
30
|
|
|
29
31
|
#### Additional configuration
|
|
32
|
+
|
|
30
33
|
Note that, for Webpack, the plugin automatically inject the `devServer.static.directory` configuration.
|
|
31
34
|
For the other bundlers, you should configure it by yourself.
|
|
32
35
|
|
|
33
36
|
### NativeFederationTypeScriptHost
|
|
37
|
+
|
|
34
38
|
This plugin is used to download the federated types.
|
|
35
39
|
|
|
36
40
|
### Configuration
|
|
@@ -40,6 +44,7 @@ This plugin is used to download the federated types.
|
|
|
40
44
|
moduleFederationConfig: any; // the configuration same configuration provided to the module federation plugin, it is MANDATORY
|
|
41
45
|
typesFolder?: string; // folder where all the files will be stored, default is '@mf-types',
|
|
42
46
|
deleteTypesFolder?: boolean; // indicate if the types folder will be deleted before the job starts, default is 'true'
|
|
47
|
+
maxRetries?: number; // The number of times the plugin will try to download the types before failing, default is 3
|
|
43
48
|
}
|
|
44
49
|
```
|
|
45
50
|
|
|
@@ -50,30 +55,35 @@ This plugin is used to download the federated types.
|
|
|
50
55
|
|
|
51
56
|
```ts
|
|
52
57
|
// vite.config.ts
|
|
53
|
-
import {NativeFederationTypeScriptHost, NativeFederationTypeScriptRemote} from '@module-federation/native-federation-typescript/vite'
|
|
58
|
+
import { NativeFederationTypeScriptHost, NativeFederationTypeScriptRemote } from '@module-federation/native-federation-typescript/vite';
|
|
54
59
|
|
|
55
60
|
export default defineConfig({
|
|
56
61
|
plugins: [
|
|
57
|
-
NativeFederationTypeScriptRemote({
|
|
58
|
-
|
|
62
|
+
NativeFederationTypeScriptRemote({
|
|
63
|
+
/* options */
|
|
64
|
+
}),
|
|
65
|
+
NativeFederationTypeScriptHost({
|
|
66
|
+
/* options */
|
|
67
|
+
}),
|
|
59
68
|
],
|
|
60
69
|
/* ... */
|
|
61
|
-
server: {
|
|
70
|
+
server: {
|
|
71
|
+
// This is needed to emulate the devServer.static.directory of WebPack and correctly serve the zip file
|
|
62
72
|
/* ... */
|
|
63
73
|
proxy: {
|
|
64
74
|
'/@mf-types.zip': {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
}
|
|
75
|
+
target: 'http://localhost:3000',
|
|
76
|
+
changeOrigin: true,
|
|
77
|
+
rewrite: () => `/@fs/${process.cwd()}/dist/@mf-types.zip`,
|
|
78
|
+
},
|
|
69
79
|
},
|
|
70
80
|
fs: {
|
|
71
81
|
/* ... */
|
|
72
|
-
allow: ['./dist']
|
|
82
|
+
allow: ['./dist'],
|
|
73
83
|
/* ... */
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
})
|
|
84
|
+
},
|
|
85
|
+
},
|
|
86
|
+
});
|
|
77
87
|
```
|
|
78
88
|
|
|
79
89
|
<br>
|
|
@@ -83,14 +93,18 @@ export default defineConfig({
|
|
|
83
93
|
|
|
84
94
|
```ts
|
|
85
95
|
// rollup.config.js
|
|
86
|
-
import {NativeFederationTypeScriptHost, NativeFederationTypeScriptRemote} from '@module-federation/native-federation-typescript/rollup'
|
|
96
|
+
import { NativeFederationTypeScriptHost, NativeFederationTypeScriptRemote } from '@module-federation/native-federation-typescript/rollup';
|
|
87
97
|
|
|
88
98
|
export default {
|
|
89
99
|
plugins: [
|
|
90
|
-
NativeFederationTypeScriptRemote({
|
|
91
|
-
|
|
100
|
+
NativeFederationTypeScriptRemote({
|
|
101
|
+
/* options */
|
|
102
|
+
}),
|
|
103
|
+
NativeFederationTypeScriptHost({
|
|
104
|
+
/* options */
|
|
105
|
+
}),
|
|
92
106
|
],
|
|
93
|
-
}
|
|
107
|
+
};
|
|
94
108
|
```
|
|
95
109
|
|
|
96
110
|
<br>
|
|
@@ -100,14 +114,18 @@ export default {
|
|
|
100
114
|
|
|
101
115
|
```ts
|
|
102
116
|
// webpack.config.js
|
|
103
|
-
const {NativeFederationTypeScriptHost, NativeFederationTypeScriptRemote} = require('@module-federation/native-federation-typescript/webpack')
|
|
117
|
+
const { NativeFederationTypeScriptHost, NativeFederationTypeScriptRemote } = require('@module-federation/native-federation-typescript/webpack');
|
|
104
118
|
module.exports = {
|
|
105
119
|
/* ... */
|
|
106
120
|
plugins: [
|
|
107
|
-
NativeFederationTypeScriptRemote({
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
121
|
+
NativeFederationTypeScriptRemote({
|
|
122
|
+
/* options */
|
|
123
|
+
}),
|
|
124
|
+
NativeFederationTypeScriptHost({
|
|
125
|
+
/* options */
|
|
126
|
+
}),
|
|
127
|
+
],
|
|
128
|
+
};
|
|
111
129
|
```
|
|
112
130
|
|
|
113
131
|
<br>
|
|
@@ -117,15 +135,19 @@ module.exports = {
|
|
|
117
135
|
|
|
118
136
|
```ts
|
|
119
137
|
// esbuild.config.js
|
|
120
|
-
import { build } from 'esbuild'
|
|
121
|
-
import {NativeFederationTypeScriptHost, NativeFederationTypeScriptRemote} from '@module-federation/native-federation-typescript/esbuild'
|
|
138
|
+
import { build } from 'esbuild';
|
|
139
|
+
import { NativeFederationTypeScriptHost, NativeFederationTypeScriptRemote } from '@module-federation/native-federation-typescript/esbuild';
|
|
122
140
|
|
|
123
141
|
build({
|
|
124
142
|
plugins: [
|
|
125
|
-
NativeFederationTypeScriptRemote({
|
|
126
|
-
|
|
143
|
+
NativeFederationTypeScriptRemote({
|
|
144
|
+
/* options */
|
|
145
|
+
}),
|
|
146
|
+
NativeFederationTypeScriptHost({
|
|
147
|
+
/* options */
|
|
148
|
+
}),
|
|
127
149
|
],
|
|
128
|
-
})
|
|
150
|
+
});
|
|
129
151
|
```
|
|
130
152
|
|
|
131
153
|
<br>
|
|
@@ -135,14 +157,40 @@ build({
|
|
|
135
157
|
|
|
136
158
|
```ts
|
|
137
159
|
// rspack.config.js
|
|
138
|
-
const {NativeFederationTypeScriptHost, NativeFederationTypeScriptRemote} = require('@module-federation/native-federation-typescript/rspack')
|
|
160
|
+
const { NativeFederationTypeScriptHost, NativeFederationTypeScriptRemote } = require('@module-federation/native-federation-typescript/rspack');
|
|
139
161
|
module.exports = {
|
|
140
162
|
/* ... */
|
|
141
163
|
plugins: [
|
|
142
|
-
NativeFederationTypeScriptRemote({
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
164
|
+
NativeFederationTypeScriptRemote({
|
|
165
|
+
/* options */
|
|
166
|
+
}),
|
|
167
|
+
NativeFederationTypeScriptHost({
|
|
168
|
+
/* options */
|
|
169
|
+
}),
|
|
170
|
+
],
|
|
171
|
+
};
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
<br>
|
|
175
|
+
</details>
|
|
176
|
+
|
|
177
|
+
<details>
|
|
178
|
+
<summary>Rolldown</summary><br>
|
|
179
|
+
|
|
180
|
+
```ts
|
|
181
|
+
// rolldown.config.js
|
|
182
|
+
import { NativeFederationTypeScriptHost, NativeFederationTypeScriptRemote } from '@module-federation/native-federation-typescript/rolldown';
|
|
183
|
+
|
|
184
|
+
export default {
|
|
185
|
+
plugins: [
|
|
186
|
+
NativeFederationTypeScriptRemote({
|
|
187
|
+
/* options */
|
|
188
|
+
}),
|
|
189
|
+
NativeFederationTypeScriptHost({
|
|
190
|
+
/* options */
|
|
191
|
+
}),
|
|
192
|
+
],
|
|
193
|
+
};
|
|
146
194
|
```
|
|
147
195
|
|
|
148
196
|
<br>
|
|
@@ -153,7 +201,7 @@ module.exports = {
|
|
|
153
201
|
To have the type definitions automatically found for imports, add paths to the `compilerOptions` in the `tsconfig.json`:
|
|
154
202
|
|
|
155
203
|
```json
|
|
156
|
-
{
|
|
204
|
+
{
|
|
157
205
|
"paths": {
|
|
158
206
|
"*": ["./@mf-types/*"]
|
|
159
207
|
}
|
|
@@ -0,0 +1,336 @@
|
|
|
1
|
+
# [1.0.0-canary.1](https://github.com/module-federation/universe/compare/native-federation-typescript-0.2.6...native-federation-typescript-1.0.0-canary.1) (2023-11-06)
|
|
2
|
+
|
|
3
|
+
## 0.1.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- c8c0ad2: feat: enhance type capability
|
|
8
|
+
- Updated dependencies [c8c0ad2]
|
|
9
|
+
- @module-federation/third-party-dts-extractor@0.0.18
|
|
10
|
+
- @module-federation/sdk@0.1.2
|
|
11
|
+
- @module-federation/managers@0.1.2
|
|
12
|
+
|
|
13
|
+
## 0.4.0
|
|
14
|
+
|
|
15
|
+
### Minor Changes
|
|
16
|
+
|
|
17
|
+
- b152df2: feat: rolldown support
|
|
18
|
+
|
|
19
|
+
## 0.3.1
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- bc053b8: fix: behaviour during vite dev mode
|
|
24
|
+
|
|
25
|
+
## 0.3.0
|
|
26
|
+
|
|
27
|
+
### Minor Changes
|
|
28
|
+
|
|
29
|
+
- bb0302b: feat: configurable maxRetries package unzip
|
|
30
|
+
|
|
31
|
+
### Bug Fixes
|
|
32
|
+
|
|
33
|
+
- **deps:** update dependency antd to v4.24.14 ([#1309](https://github.com/module-federation/universe/issues/1309)) ([d0a2314](https://github.com/module-federation/universe/commit/d0a231470e37dbad85a11df1f12695657ba3b984))
|
|
34
|
+
- **deps:** update dependency axios to v1.5.0 ([#1275](https://github.com/module-federation/universe/issues/1275)) ([f163df1](https://github.com/module-federation/universe/commit/f163df1073740bf4218bb35ba57cea5dc409fe43))
|
|
35
|
+
- **deps:** update dependency axios to v1.5.1 ([ae9a06a](https://github.com/module-federation/universe/commit/ae9a06a0cc35fad27a0b493a25370b92617c39fb))
|
|
36
|
+
- **deps:** update dependency core-js to v3.32.2 ([18d2746](https://github.com/module-federation/universe/commit/18d2746763f38fe295a14df3f1bcd4218fade5b8))
|
|
37
|
+
- **deps:** update dependency core-js to v3.33.0 ([30894ca](https://github.com/module-federation/universe/commit/30894cafbe5dea4350dc7c633548038d7ec5f8a8))
|
|
38
|
+
- **deps:** update dependency fast-glob to v3.3.1 ([#1197](https://github.com/module-federation/universe/issues/1197)) ([5743543](https://github.com/module-federation/universe/commit/57435430bd0912e3bf370ce08b46f610b12d00e3))
|
|
39
|
+
- **deps:** update dependency react-router-dom to v6.15.0 ([#1276](https://github.com/module-federation/universe/issues/1276)) ([850e2fa](https://github.com/module-federation/universe/commit/850e2fac60f49b456aef3b5df9827fc3ac5a6006))
|
|
40
|
+
- **deps:** update dependency react-router-dom to v6.16.0 ([0618339](https://github.com/module-federation/universe/commit/061833912f7e5748011cd60ed679a68c1b659f77))
|
|
41
|
+
- **deps:** update dependency typedoc to ^0.25.0 ([#1277](https://github.com/module-federation/universe/issues/1277)) ([8d6a72e](https://github.com/module-federation/universe/commit/8d6a72e18a57b69b2f63802621e8b4b479554fed))
|
|
42
|
+
- **deps:** update dependency typedoc to v0.25.1 ([#1304](https://github.com/module-federation/universe/issues/1304)) ([abf84fe](https://github.com/module-federation/universe/commit/abf84fefd5c20b5de7c9a74d1c49235f44d36dc6))
|
|
43
|
+
- **deps:** update dependency typedoc to v0.25.2 ([46c6524](https://github.com/module-federation/universe/commit/46c65247e187cee9e15625402c1570ac351bb1fe))
|
|
44
|
+
- **deps:** update dependency undici to v5.24.0 ([573e644](https://github.com/module-federation/universe/commit/573e644333da6d24cb4286ce08221a1aa82415e4))
|
|
45
|
+
- **deps:** update dependency undici to v5.25.2 ([da3e539](https://github.com/module-federation/universe/commit/da3e539a41ed23ccb5086b1dd428fbee0f8d652c))
|
|
46
|
+
- **deps:** update dependency undici to v5.25.4 ([1d4f91e](https://github.com/module-federation/universe/commit/1d4f91ec93da4326c8a42eef28f150d5d09738bb))
|
|
47
|
+
- **deps:** update dependency undici to v5.26.2 [security] ([410a8b8](https://github.com/module-federation/universe/commit/410a8b8bd1558dfb5119ae10941d2b3816a0d0e0))
|
|
48
|
+
- **deps:** update dependency unplugin to v1.5.0 ([936b3f8](https://github.com/module-federation/universe/commit/936b3f8d8061fd9d481d1788fb35b88588928d14))
|
|
49
|
+
- Fix call undefined delegate ([#1149](https://github.com/module-federation/universe/issues/1149)) ([87a5896](https://github.com/module-federation/universe/commit/87a5896221a726578c3433071755fba3465824f4)), closes [#1151](https://github.com/module-federation/universe/issues/1151)
|
|
50
|
+
- override semantic-release-plugin-decorators ([18675de](https://github.com/module-federation/universe/commit/18675defef65570d2b3bb6a9caa3fd039badee29))
|
|
51
|
+
- switch to @goestav/nx-semantic-release ([63a3350](https://github.com/module-federation/universe/commit/63a3350a6a1a12235e3c9f1e7c724d54f0476356))
|
|
52
|
+
|
|
53
|
+
### Features
|
|
54
|
+
|
|
55
|
+
- core package for module federation ([#1093](https://github.com/module-federation/universe/issues/1093)) ([d460400](https://github.com/module-federation/universe/commit/d46040053e9b627321b5fe8e05556c5bb727c238)), closes [#851](https://github.com/module-federation/universe/issues/851) [#864](https://github.com/module-federation/universe/issues/864) [#835](https://github.com/module-federation/universe/issues/835) [#851](https://github.com/module-federation/universe/issues/851) [#864](https://github.com/module-federation/universe/issues/864) [#871](https://github.com/module-federation/universe/issues/871) [#851](https://github.com/module-federation/universe/issues/851) [#864](https://github.com/module-federation/universe/issues/864) [#872](https://github.com/module-federation/universe/issues/872) [#875](https://github.com/module-federation/universe/issues/875) [#884](https://github.com/module-federation/universe/issues/884) [#887](https://github.com/module-federation/universe/issues/887) [#893](https://github.com/module-federation/universe/issues/893) [#885](https://github.com/module-federation/universe/issues/885) [#899](https://github.com/module-federation/universe/issues/899) [#904](https://github.com/module-federation/universe/issues/904) [#932](https://github.com/module-federation/universe/issues/932) [#936](https://github.com/module-federation/universe/issues/936) [#959](https://github.com/module-federation/universe/issues/959) [#960](https://github.com/module-federation/universe/issues/960) [#969](https://github.com/module-federation/universe/issues/969) [#971](https://github.com/module-federation/universe/issues/971) [#1234](https://github.com/module-federation/universe/issues/1234) [#1235](https://github.com/module-federation/universe/issues/1235)
|
|
56
|
+
- Dynamic Filesystem ([#1274](https://github.com/module-federation/universe/issues/1274)) ([2bec98a](https://github.com/module-federation/universe/commit/2bec98a2472b44898a7f14ec6868a2368cfb6d82))
|
|
57
|
+
- fork module federation ([0ad7430](https://github.com/module-federation/universe/commit/0ad7430f6170458a47144be392133b7b2fa1ade0))
|
|
58
|
+
- improved async init ([ae3a450](https://github.com/module-federation/universe/commit/ae3a4503ff9de86492b13029d6334b281ddd9493))
|
|
59
|
+
- native self forming node federation ([#1291](https://github.com/module-federation/universe/issues/1291)) ([1dd5ed1](https://github.com/module-federation/universe/commit/1dd5ed17c981e036336925e807203e94b58c36d6))
|
|
60
|
+
- new actions, remove gpt integration ([370229e](https://github.com/module-federation/universe/commit/370229e02cc352fcfaeaa0f3cf1f9f2d4966d1bb))
|
|
61
|
+
- **node:** node federation demo/testing apps added ([27d545d](https://github.com/module-federation/universe/commit/27d545d99095da7134c392dbcd9fb135a170f6ef))
|
|
62
|
+
- **typedoc-parsetr:** merged main ([cf6e65a](https://github.com/module-federation/universe/commit/cf6e65a4aa895d7c2dba8fdbd8ec22ec7bd8f514))
|
|
63
|
+
- **typedoc-parsetr:** merged main ([2ff0d5a](https://github.com/module-federation/universe/commit/2ff0d5a075df3f241742cc7e516cd0378e8e1b3e))
|
|
64
|
+
- **typedoc-parsetr:** python script implementation ([0a533cb](https://github.com/module-federation/universe/commit/0a533cb60e0c3ca269ab45df740c1367be175e80))
|
|
65
|
+
|
|
66
|
+
### BREAKING CHANGES
|
|
67
|
+
|
|
68
|
+
- automaticAsyncBoundary option has been removed
|
|
69
|
+
|
|
70
|
+
- fix: exclude specific pages from page map automatically
|
|
71
|
+
|
|
72
|
+
- refactor: conslidate codebase
|
|
73
|
+
|
|
74
|
+
- fix: improve hot reload share recovery
|
|
75
|
+
|
|
76
|
+
- refactor: remove server jsonp template
|
|
77
|
+
|
|
78
|
+
- chore: remove dead code from runtime modules
|
|
79
|
+
|
|
80
|
+
- fix: clean up jsonp getCustomJsonpCode
|
|
81
|
+
|
|
82
|
+
getting chunk loading global from compiler output options
|
|
83
|
+
|
|
84
|
+
- feat: adding cleanInitArrays runtime helper
|
|
85
|
+
|
|
86
|
+
- chore: remove share scope hoist and module hoisting system
|
|
87
|
+
|
|
88
|
+
- chore: cleanup code
|
|
89
|
+
|
|
90
|
+
- chore: remove dead code from add module runtime plugin
|
|
91
|
+
|
|
92
|
+
likely can remove whole plugin in future
|
|
93
|
+
|
|
94
|
+
- chore: remove logs from delegate modules
|
|
95
|
+
|
|
96
|
+
- chore: remove old utils
|
|
97
|
+
|
|
98
|
+
- fix: add warning on auto page stitch
|
|
99
|
+
|
|
100
|
+
- fix: remove commented out code from InvertedContainerPlugin.ts
|
|
101
|
+
|
|
102
|
+
- chore: improve logging to see if its local load or remote load
|
|
103
|
+
|
|
104
|
+
- chore: clean up old custom promises factories
|
|
105
|
+
|
|
106
|
+
- fix: remove container proxy code
|
|
107
|
+
|
|
108
|
+
- fix: remove container proxy code
|
|
109
|
+
- automaticAsyncBoundary option has been removed
|
|
110
|
+
|
|
111
|
+
- fix: exclude specific pages from page map automatically
|
|
112
|
+
|
|
113
|
+
- refactor: conslidate codebase
|
|
114
|
+
|
|
115
|
+
- fix: improve hot reload share recovery
|
|
116
|
+
|
|
117
|
+
- refactor: remove server jsonp template
|
|
118
|
+
|
|
119
|
+
- chore: remove dead code from runtime modules
|
|
120
|
+
|
|
121
|
+
- fix: clean up jsonp getCustomJsonpCode
|
|
122
|
+
|
|
123
|
+
getting chunk loading global from compiler output options
|
|
124
|
+
|
|
125
|
+
- feat: adding cleanInitArrays runtime helper
|
|
126
|
+
|
|
127
|
+
- chore: remove share scope hoist and module hoisting system
|
|
128
|
+
|
|
129
|
+
- chore: cleanup code
|
|
130
|
+
|
|
131
|
+
- chore: remove dead code from add module runtime plugin
|
|
132
|
+
|
|
133
|
+
likely can remove whole plugin in future
|
|
134
|
+
|
|
135
|
+
- chore: remove logs from delegate modules
|
|
136
|
+
|
|
137
|
+
- chore: remove old utils
|
|
138
|
+
|
|
139
|
+
- fix: add warning on auto page stitch
|
|
140
|
+
|
|
141
|
+
- fix: remove commented out code from InvertedContainerPlugin.ts
|
|
142
|
+
|
|
143
|
+
- chore: improve logging to see if its local load or remote load
|
|
144
|
+
|
|
145
|
+
- chore: clean up old custom promises factories
|
|
146
|
+
|
|
147
|
+
- fix: remove container proxy code
|
|
148
|
+
|
|
149
|
+
- fix: remove container proxy code
|
|
150
|
+
|
|
151
|
+
- chore: fix project.json
|
|
152
|
+
|
|
153
|
+
- debugging
|
|
154
|
+
|
|
155
|
+
- fix: resolve backmerge issues with build
|
|
156
|
+
|
|
157
|
+
- Merge branch 'kill_child_compilers' into fix_backmerge_issues
|
|
158
|
+
|
|
159
|
+
# Conflicts:
|
|
160
|
+
|
|
161
|
+
# package-lock.json
|
|
162
|
+
|
|
163
|
+
# package.json
|
|
164
|
+
|
|
165
|
+
# packages/nextjs-mf/src/plugins/NextFederationPlugin/index.ts
|
|
166
|
+
|
|
167
|
+
# packages/nextjs-mf/src/plugins/container/InvertedContainerPlugin.ts
|
|
168
|
+
|
|
169
|
+
# packages/nextjs-mf/src/plugins/container/InvertedContainerRuntimeModule.ts
|
|
170
|
+
|
|
171
|
+
- feat: enable eager sharing
|
|
172
|
+
|
|
173
|
+
- refactor: improve module hooks for eager loading and search
|
|
174
|
+
|
|
175
|
+
- refactor: cleanup custom jsonp and make es5
|
|
176
|
+
|
|
177
|
+
- refactor: cleanup inverted container code
|
|
178
|
+
|
|
179
|
+
- refactor: cleanup inverted container code
|
|
180
|
+
- automaticAsyncBoundary option has been removed
|
|
181
|
+
|
|
182
|
+
- fix: exclude specific pages from page map automatically
|
|
183
|
+
|
|
184
|
+
- refactor: conslidate codebase
|
|
185
|
+
|
|
186
|
+
- fix: improve hot reload share recovery
|
|
187
|
+
|
|
188
|
+
- refactor: remove server jsonp template
|
|
189
|
+
|
|
190
|
+
- chore: remove dead code from runtime modules
|
|
191
|
+
|
|
192
|
+
- fix: clean up jsonp getCustomJsonpCode
|
|
193
|
+
|
|
194
|
+
getting chunk loading global from compiler output options
|
|
195
|
+
|
|
196
|
+
- feat: adding cleanInitArrays runtime helper
|
|
197
|
+
|
|
198
|
+
- chore: remove share scope hoist and module hoisting system
|
|
199
|
+
|
|
200
|
+
- chore: cleanup code
|
|
201
|
+
|
|
202
|
+
- chore: remove dead code from add module runtime plugin
|
|
203
|
+
|
|
204
|
+
likely can remove whole plugin in future
|
|
205
|
+
|
|
206
|
+
- chore: remove logs from delegate modules
|
|
207
|
+
|
|
208
|
+
- chore: remove old utils
|
|
209
|
+
|
|
210
|
+
- fix: add warning on auto page stitch
|
|
211
|
+
|
|
212
|
+
- fix: remove commented out code from InvertedContainerPlugin.ts
|
|
213
|
+
|
|
214
|
+
- chore: improve logging to see if its local load or remote load
|
|
215
|
+
|
|
216
|
+
- chore: clean up old custom promises factories
|
|
217
|
+
|
|
218
|
+
- fix: remove container proxy code
|
|
219
|
+
|
|
220
|
+
- fix: remove container proxy code
|
|
221
|
+
|
|
222
|
+
- fix: resolve backmerge issues with build
|
|
223
|
+
|
|
224
|
+
- Merge branch 'kill_child_compilers' into fix_backmerge_issues
|
|
225
|
+
|
|
226
|
+
# Conflicts:
|
|
227
|
+
|
|
228
|
+
# package-lock.json
|
|
229
|
+
|
|
230
|
+
# package.json
|
|
231
|
+
|
|
232
|
+
# packages/nextjs-mf/src/plugins/NextFederationPlugin/index.ts
|
|
233
|
+
|
|
234
|
+
# packages/nextjs-mf/src/plugins/container/InvertedContainerPlugin.ts
|
|
235
|
+
|
|
236
|
+
# packages/nextjs-mf/src/plugins/container/InvertedContainerRuntimeModule.ts
|
|
237
|
+
|
|
238
|
+
- feat: enable eager sharing
|
|
239
|
+
|
|
240
|
+
- refactor: improve module hooks for eager loading and search
|
|
241
|
+
|
|
242
|
+
- refactor: cleanup custom jsonp and make es5
|
|
243
|
+
|
|
244
|
+
- refactor: cleanup inverted container code
|
|
245
|
+
|
|
246
|
+
- refactor: cleanup inverted container code
|
|
247
|
+
|
|
248
|
+
- ci: fix install step with npm and NX
|
|
249
|
+
|
|
250
|
+
- test: remove tests for now
|
|
251
|
+
|
|
252
|
+
- chore(utils): release version 1.7.3-beta.0
|
|
253
|
+
|
|
254
|
+
- chore(utils): release version 1.7.3
|
|
255
|
+
|
|
256
|
+
- chore(node): release version 0.14.4-beta.0
|
|
257
|
+
|
|
258
|
+
- chore(node): release version 0.14.4
|
|
259
|
+
|
|
260
|
+
- chore(nextjs-mf): release version 6.4.1-beta.4
|
|
261
|
+
|
|
262
|
+
- fix: remove debugging runtime variable
|
|
263
|
+
|
|
264
|
+
- chore(nextjs-mf): release version 6.4.1-beta.5
|
|
265
|
+
|
|
266
|
+
# Changelog
|
|
267
|
+
|
|
268
|
+
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
269
|
+
|
|
270
|
+
## [0.2.6](https://github.com/module-federation/nextjs-mf/compare/native-federation-typescript-0.2.5...native-federation-typescript-0.2.6) (2023-07-01)
|
|
271
|
+
|
|
272
|
+
## [0.2.5](https://github.com/module-federation/nextjs-mf/compare/native-federation-typescript-0.2.4...native-federation-typescript-0.2.5) (2023-07-01)
|
|
273
|
+
|
|
274
|
+
## [0.2.4](https://github.com/module-federation/nextjs-mf/compare/native-federation-typescript-0.2.3...native-federation-typescript-0.2.4) (2023-07-01)
|
|
275
|
+
|
|
276
|
+
## [0.2.3](https://github.com/module-federation/nextjs-mf/compare/native-federation-typescript-0.2.2...native-federation-typescript-0.2.3) (2023-07-01)
|
|
277
|
+
|
|
278
|
+
## [0.2.2](https://github.com/module-federation/nextjs-mf/compare/native-federation-typescript-0.2.1...native-federation-typescript-0.2.2) (2023-06-28)
|
|
279
|
+
|
|
280
|
+
### Bug Fixes
|
|
281
|
+
|
|
282
|
+
- .at(-1) ([8dd0520](https://github.com/module-federation/nextjs-mf/commit/8dd0520b5464c49e89c63307c5388450e4bebbf8))
|
|
283
|
+
|
|
284
|
+
## [0.2.1](https://github.com/module-federation/nextjs-mf/compare/native-federation-typescript-0.2.0...native-federation-typescript-0.2.1) (2023-05-13)
|
|
285
|
+
|
|
286
|
+
### Bug Fixes
|
|
287
|
+
|
|
288
|
+
- [#857](https://github.com/module-federation/nextjs-mf/issues/857) ([#859](https://github.com/module-federation/nextjs-mf/issues/859)) ([2fb609e](https://github.com/module-federation/nextjs-mf/commit/2fb609efb9a3c8f3e6740e0159510d649c1d229d))
|
|
289
|
+
- downgrade next to v13.3.1 ([0032452](https://github.com/module-federation/nextjs-mf/commit/0032452980c70b211b6c04332326b7973f7c8446))
|
|
290
|
+
- removed lock ([82f578e](https://github.com/module-federation/nextjs-mf/commit/82f578e713734f7f6b06e09b794fab4f66af248a))
|
|
291
|
+
|
|
292
|
+
# [0.2.0](https://github.com/module-federation/nextjs-mf/compare/native-federation-typescript-0.1.1...native-federation-typescript-0.2.0) (2023-04-29)
|
|
293
|
+
|
|
294
|
+
### Bug Fixes
|
|
295
|
+
|
|
296
|
+
- removed any from error logger type ([fb9fcc3](https://github.com/module-federation/nextjs-mf/commit/fb9fcc3a54a13be36335830f076a86557b75bb4a))
|
|
297
|
+
- subpath ([1548501](https://github.com/module-federation/nextjs-mf/commit/1548501bb4679c0c534c02609cb6bc5459f224a4))
|
|
298
|
+
- subpath ([aaad665](https://github.com/module-federation/nextjs-mf/commit/aaad665307d80b49ee19496a5b8b400df243558e))
|
|
299
|
+
|
|
300
|
+
### Features
|
|
301
|
+
|
|
302
|
+
- release to npm with next tag to not ruine latest one ([#763](https://github.com/module-federation/nextjs-mf/issues/763)) ([f2d199b](https://github.com/module-federation/nextjs-mf/commit/f2d199b3b3fbbd428514b1ce1f139efc82f7fff0))
|
|
303
|
+
|
|
304
|
+
## [0.1.1](https://github.com/module-federation/nextjs-mf/compare/native-federation-typescript-0.1.0...native-federation-typescript-0.1.1) (2023-04-12)
|
|
305
|
+
|
|
306
|
+
### Bug Fixes
|
|
307
|
+
|
|
308
|
+
- native build chunks ([d6c9f8a](https://github.com/module-federation/nextjs-mf/commit/d6c9f8a957ed00a8d92332ccc38ed9780f01d54e))
|
|
309
|
+
|
|
310
|
+
### Reverts
|
|
311
|
+
|
|
312
|
+
- Revert "chore(native-federation-typescript): release version 0.1.1" ([91786df](https://github.com/module-federation/nextjs-mf/commit/91786df726e5c078ed78e745b6b105e11bd2e39b))
|
|
313
|
+
- Revert "chore(native-federation-typescript): release version 0.1.1" ([097f188](https://github.com/module-federation/nextjs-mf/commit/097f188458835457a2713d98bf3eaf291d5ad102))
|
|
314
|
+
|
|
315
|
+
# 0.1.0 (2023-04-05)
|
|
316
|
+
|
|
317
|
+
### Bug Fixes
|
|
318
|
+
|
|
319
|
+
- build ([d0b2f72](https://github.com/module-federation/nextjs-mf/commit/d0b2f72f4fc3647825412be1574311c3152cf167))
|
|
320
|
+
- build step ([a217170](https://github.com/module-federation/nextjs-mf/commit/a21717096cbc09bff20d3aeebfea2f3533afb0d7))
|
|
321
|
+
- compiler instance ([e5c249d](https://github.com/module-federation/nextjs-mf/commit/e5c249d41d68339886268337654ff47b31b06a3a))
|
|
322
|
+
- deps ([a378441](https://github.com/module-federation/nextjs-mf/commit/a37844194a3f189cc5863bbdd4776259bce69fa4))
|
|
323
|
+
- dirtree tests ([5cb49fd](https://github.com/module-federation/nextjs-mf/commit/5cb49fd1c6520311a7d2e7d2b37a93389a500715))
|
|
324
|
+
- eslintrc ([0f69dee](https://github.com/module-federation/nextjs-mf/commit/0f69dee253c2c608b2367d545c7d4a57ad0c2ca5))
|
|
325
|
+
- format ([25fb765](https://github.com/module-federation/nextjs-mf/commit/25fb7659481287a791e9de4fe839e980dbf06968))
|
|
326
|
+
- readme ([eaca0b3](https://github.com/module-federation/nextjs-mf/commit/eaca0b311d3b8d9e73309cb92d9a9488f9fc23c0))
|
|
327
|
+
- readme ([fc0e5dc](https://github.com/module-federation/nextjs-mf/commit/fc0e5dc26e617664224e1c10548b151a44f8dff9))
|
|
328
|
+
- README.md ([9159171](https://github.com/module-federation/nextjs-mf/commit/91591712e9a103fff351f0a168c149470c0d69ad))
|
|
329
|
+
- remove changelog ([724918e](https://github.com/module-federation/nextjs-mf/commit/724918ebf888297689b6ed700bd14ec01fd1ef35))
|
|
330
|
+
- ts build ([9ed3a52](https://github.com/module-federation/nextjs-mf/commit/9ed3a527d0ba903b6cfa6023a7ad5da63781970c))
|
|
331
|
+
|
|
332
|
+
### Features
|
|
333
|
+
|
|
334
|
+
- federated tests plugin ([063ab33](https://github.com/module-federation/nextjs-mf/commit/063ab336c4830aff4f5bd3b9894df60b4651a9be))
|
|
335
|
+
- native-federation-typescript plugin ([#692](https://github.com/module-federation/nextjs-mf/issues/692)) ([b41c5aa](https://github.com/module-federation/nextjs-mf/commit/b41c5aacfeda0fada5b426086658235edfd86cdd))
|
|
336
|
+
- test command ([3ade629](https://github.com/module-federation/nextjs-mf/commit/3ade629488f4ea1549314b82b41caef9a046da9f))
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { moduleFederationPlugin } from '@module-federation/sdk';
|
|
2
|
+
|
|
3
|
+
interface RemoteOptions extends moduleFederationPlugin.DtsRemoteOptions {
|
|
4
|
+
moduleFederationConfig: moduleFederationPlugin.ModuleFederationPluginOptions;
|
|
5
|
+
context?: string;
|
|
6
|
+
implementation?: string;
|
|
7
|
+
hostRemoteTypesFolder?: string;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
interface HostOptions extends moduleFederationPlugin.DtsHostOptions {
|
|
11
|
+
moduleFederationConfig: moduleFederationPlugin.ModuleFederationPluginOptions;
|
|
12
|
+
context?: string;
|
|
13
|
+
implementation?: string;
|
|
14
|
+
}
|
|
15
|
+
interface RemoteInfo {
|
|
16
|
+
name: string;
|
|
17
|
+
url: string;
|
|
18
|
+
alias: string;
|
|
19
|
+
zipUrl?: string;
|
|
20
|
+
apiTypeUrl?: string;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export { HostOptions as H, RemoteOptions as R, RemoteInfo as a };
|