@module-federation/native-federation-typescript 0.5.2 → 0.6.0
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/README.md +22 -0
- package/dist/CHANGELOG.md +6 -0
- package/dist/README.md +22 -0
- package/dist/farm.d.mts +6 -0
- package/dist/farm.d.ts +6 -0
- package/dist/farm.js +1 -0
- package/dist/farm.mjs +1 -0
- package/dist/package.json +5 -5
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -196,6 +196,28 @@ export default {
|
|
|
196
196
|
<br>
|
|
197
197
|
</details>
|
|
198
198
|
|
|
199
|
+
<details>
|
|
200
|
+
<summary>Farm</summary><br>
|
|
201
|
+
|
|
202
|
+
```ts
|
|
203
|
+
// farm.config.ts
|
|
204
|
+
import { NativeFederationTypeScriptHost, NativeFederationTypeScriptRemote } from '@module-federation/native-federation-typescript/farm';
|
|
205
|
+
|
|
206
|
+
const config: UserConfig = {
|
|
207
|
+
plugins: [
|
|
208
|
+
NativeFederationTypeScriptRemote({
|
|
209
|
+
/* options */
|
|
210
|
+
}),
|
|
211
|
+
NativeFederationTypeScriptHost({
|
|
212
|
+
/* options */
|
|
213
|
+
}),
|
|
214
|
+
]
|
|
215
|
+
}
|
|
216
|
+
```
|
|
217
|
+
|
|
218
|
+
<br>
|
|
219
|
+
</details>
|
|
220
|
+
|
|
199
221
|
## TypeScript configuration
|
|
200
222
|
|
|
201
223
|
To have the type definitions automatically found for imports, add paths to the `compilerOptions` in the `tsconfig.json`:
|
package/dist/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# [1.0.0-canary.1](https://github.com/module-federation/core/compare/native-federation-typescript-0.2.6...native-federation-typescript-1.0.0-canary.1) (2023-11-06)
|
|
2
2
|
|
|
3
|
+
## 0.6.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 8941ef4: feat: support for farm, drop support for node < 16
|
|
8
|
+
|
|
3
9
|
## 0.5.2
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/dist/README.md
CHANGED
|
@@ -196,6 +196,28 @@ export default {
|
|
|
196
196
|
<br>
|
|
197
197
|
</details>
|
|
198
198
|
|
|
199
|
+
<details>
|
|
200
|
+
<summary>Farm</summary><br>
|
|
201
|
+
|
|
202
|
+
```ts
|
|
203
|
+
// farm.config.ts
|
|
204
|
+
import { NativeFederationTypeScriptHost, NativeFederationTypeScriptRemote } from '@module-federation/native-federation-typescript/farm';
|
|
205
|
+
|
|
206
|
+
const config: UserConfig = {
|
|
207
|
+
plugins: [
|
|
208
|
+
NativeFederationTypeScriptRemote({
|
|
209
|
+
/* options */
|
|
210
|
+
}),
|
|
211
|
+
NativeFederationTypeScriptHost({
|
|
212
|
+
/* options */
|
|
213
|
+
}),
|
|
214
|
+
]
|
|
215
|
+
}
|
|
216
|
+
```
|
|
217
|
+
|
|
218
|
+
<br>
|
|
219
|
+
</details>
|
|
220
|
+
|
|
199
221
|
## TypeScript configuration
|
|
200
222
|
|
|
201
223
|
To have the type definitions automatically found for imports, add paths to the `compilerOptions` in the `tsconfig.json`:
|
package/dist/farm.d.mts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { R as RemoteOptions, H as HostOptions } from './RemoteOptions-8173ef89.js';
|
|
2
|
+
|
|
3
|
+
declare const NativeFederationTypeScriptRemote: (options: RemoteOptions) => JsPlugin;
|
|
4
|
+
declare const NativeFederationTypeScriptHost: (options: HostOptions) => JsPlugin;
|
|
5
|
+
|
|
6
|
+
export { NativeFederationTypeScriptHost, NativeFederationTypeScriptRemote };
|
package/dist/farm.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { R as RemoteOptions, H as HostOptions } from './RemoteOptions-8173ef89.js';
|
|
2
|
+
|
|
3
|
+
declare const NativeFederationTypeScriptRemote: (options: RemoteOptions) => JsPlugin;
|
|
4
|
+
declare const NativeFederationTypeScriptHost: (options: HostOptions) => JsPlugin;
|
|
5
|
+
|
|
6
|
+
export { NativeFederationTypeScriptHost, NativeFederationTypeScriptRemote };
|
package/dist/farm.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk6KP4ELTFjs = require('./chunk-6KP4ELTF.js');var r=_chunk6KP4ELTFjs.a.farm,a= exports.NativeFederationTypeScriptHost =_chunk6KP4ELTFjs.b.farm;exports.NativeFederationTypeScriptHost = a; exports.NativeFederationTypeScriptRemote = r;
|
package/dist/farm.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e,b as t}from"./chunk-RFGP2BOW.mjs";var r=e.farm,a=t.farm;export{a as NativeFederationTypeScriptHost,r as NativeFederationTypeScriptRemote};
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@module-federation/native-federation-typescript",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"description": "Bundler agnostic unplugin to share federated types",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"module federation",
|
|
@@ -52,11 +52,11 @@
|
|
|
52
52
|
"author": "Matteo Pietro Dazzi <matteopietro.dazzi@gmail.com> (https://github.com/ilteoood)",
|
|
53
53
|
"license": "MIT",
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"adm-zip": "^0.5.
|
|
55
|
+
"adm-zip": "^0.5.14",
|
|
56
56
|
"ansi-colors": "^4.1.3",
|
|
57
|
-
"axios": "^1.
|
|
58
|
-
"rambda": "^9.1
|
|
59
|
-
"unplugin": "^1.
|
|
57
|
+
"axios": "^1.7.2",
|
|
58
|
+
"rambda": "^9.2.1",
|
|
59
|
+
"unplugin": "^1.10.1"
|
|
60
60
|
},
|
|
61
61
|
"peerDependencies": {
|
|
62
62
|
"typescript": "^4.9.0 || ^5.0.0",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@module-federation/native-federation-typescript",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"description": "Bundler agnostic unplugin to share federated types",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"module federation",
|
|
@@ -52,11 +52,11 @@
|
|
|
52
52
|
"author": "Matteo Pietro Dazzi <matteopietro.dazzi@gmail.com> (https://github.com/ilteoood)",
|
|
53
53
|
"license": "MIT",
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"adm-zip": "^0.5.
|
|
55
|
+
"adm-zip": "^0.5.14",
|
|
56
56
|
"ansi-colors": "^4.1.3",
|
|
57
|
-
"axios": "^1.
|
|
58
|
-
"rambda": "^9.1
|
|
59
|
-
"unplugin": "^1.
|
|
57
|
+
"axios": "^1.7.2",
|
|
58
|
+
"rambda": "^9.2.1",
|
|
59
|
+
"unplugin": "^1.10.1"
|
|
60
60
|
},
|
|
61
61
|
"peerDependencies": {
|
|
62
62
|
"typescript": "^4.9.0 || ^5.0.0",
|