@module-federation/native-federation-tests 0.5.1 → 0.6.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.
- package/README.md +22 -0
- package/dist/CHANGELOG.md +13 -1
- package/dist/README.md +22 -0
- package/dist/{RemoteOptions-817643e7.d.ts → RemoteOptions-BW2OrGcM.d.ts} +1 -1
- package/dist/esbuild.d.mts +1 -1
- package/dist/esbuild.d.ts +1 -1
- package/dist/farm.d.mts +7 -0
- package/dist/farm.d.ts +7 -0
- package/dist/farm.js +1 -0
- package/dist/farm.mjs +1 -0
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/package.json +13 -8
- package/dist/rolldown.d.mts +1 -1
- package/dist/rolldown.d.ts +1 -1
- package/dist/rollup.d.mts +3 -3
- package/dist/rollup.d.ts +3 -3
- package/dist/rspack.d.mts +1 -1
- package/dist/rspack.d.ts +1 -1
- package/dist/vite.d.mts +1 -1
- package/dist/vite.d.ts +1 -1
- package/dist/webpack.d.mts +1 -1
- package/dist/webpack.d.ts +1 -1
- package/package.json +13 -8
package/README.md
CHANGED
|
@@ -200,6 +200,28 @@ export default {
|
|
|
200
200
|
<br>
|
|
201
201
|
</details>
|
|
202
202
|
|
|
203
|
+
<details>
|
|
204
|
+
<summary>Farm</summary><br>
|
|
205
|
+
|
|
206
|
+
```ts
|
|
207
|
+
// farm.config.ts
|
|
208
|
+
import { NativeFederationTestsHost, NativeFederationTestsRemote } from '@module-federation/native-federation-tests/farm';
|
|
209
|
+
|
|
210
|
+
const config: UserConfig = {
|
|
211
|
+
plugins: [
|
|
212
|
+
NativeFederationTestsRemote({
|
|
213
|
+
/* options */
|
|
214
|
+
}),
|
|
215
|
+
NativeFederationTestsHost({
|
|
216
|
+
/* options */
|
|
217
|
+
}),
|
|
218
|
+
],
|
|
219
|
+
};
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
<br>
|
|
223
|
+
</details>
|
|
224
|
+
|
|
203
225
|
## Examples
|
|
204
226
|
|
|
205
227
|
To use it in a `host` module, refer to [this example](https://github.com/module-federation/module-federation-examples/tree/master/native-federation-tests-typescript-plugins/host).
|
package/dist/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @module-federation/native-federation-tests
|
|
2
|
+
|
|
3
|
+
## 0.6.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 297c9a7: chore: bump axios to resolve vulnerabilities in form-data dependency
|
|
8
|
+
|
|
9
|
+
## 0.6.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- 8941ef4: feat: support for farm, drop support for node < 16
|
|
2
14
|
|
|
3
15
|
## 0.5.1
|
|
4
16
|
|
package/dist/README.md
CHANGED
|
@@ -200,6 +200,28 @@ export default {
|
|
|
200
200
|
<br>
|
|
201
201
|
</details>
|
|
202
202
|
|
|
203
|
+
<details>
|
|
204
|
+
<summary>Farm</summary><br>
|
|
205
|
+
|
|
206
|
+
```ts
|
|
207
|
+
// farm.config.ts
|
|
208
|
+
import { NativeFederationTestsHost, NativeFederationTestsRemote } from '@module-federation/native-federation-tests/farm';
|
|
209
|
+
|
|
210
|
+
const config: UserConfig = {
|
|
211
|
+
plugins: [
|
|
212
|
+
NativeFederationTestsRemote({
|
|
213
|
+
/* options */
|
|
214
|
+
}),
|
|
215
|
+
NativeFederationTestsHost({
|
|
216
|
+
/* options */
|
|
217
|
+
}),
|
|
218
|
+
],
|
|
219
|
+
};
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
<br>
|
|
223
|
+
</details>
|
|
224
|
+
|
|
203
225
|
## Examples
|
|
204
226
|
|
|
205
227
|
To use it in a `host` module, refer to [this example](https://github.com/module-federation/module-federation-examples/tree/master/native-federation-tests-typescript-plugins/host).
|
package/dist/esbuild.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { R as RemoteOptions, H as HostOptions } from './RemoteOptions-
|
|
1
|
+
import { R as RemoteOptions, H as HostOptions } from './RemoteOptions-BW2OrGcM.js';
|
|
2
2
|
import 'tsup';
|
|
3
3
|
|
|
4
4
|
declare const NativeFederationTestsRemote: (options: RemoteOptions) => undefined;
|
package/dist/esbuild.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { R as RemoteOptions, H as HostOptions } from './RemoteOptions-
|
|
1
|
+
import { R as RemoteOptions, H as HostOptions } from './RemoteOptions-BW2OrGcM.js';
|
|
2
2
|
import 'tsup';
|
|
3
3
|
|
|
4
4
|
declare const NativeFederationTestsRemote: (options: RemoteOptions) => undefined;
|
package/dist/farm.d.mts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { R as RemoteOptions, H as HostOptions } from './RemoteOptions-BW2OrGcM.js';
|
|
2
|
+
import 'tsup';
|
|
3
|
+
|
|
4
|
+
declare const NativeFederationTestsRemote: (options: RemoteOptions) => JsPlugin;
|
|
5
|
+
declare const NativeFederationTestsHost: (options: HostOptions) => JsPlugin;
|
|
6
|
+
|
|
7
|
+
export { NativeFederationTestsHost, NativeFederationTestsRemote };
|
package/dist/farm.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { R as RemoteOptions, H as HostOptions } from './RemoteOptions-BW2OrGcM.js';
|
|
2
|
+
import 'tsup';
|
|
3
|
+
|
|
4
|
+
declare const NativeFederationTestsRemote: (options: RemoteOptions) => JsPlugin;
|
|
5
|
+
declare const NativeFederationTestsHost: (options: HostOptions) => JsPlugin;
|
|
6
|
+
|
|
7
|
+
export { NativeFederationTestsHost, NativeFederationTestsRemote };
|
package/dist/farm.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkUQAU264Cjs = require('./chunk-UQAU264C.js');var s=_chunkUQAU264Cjs.a.farm,a= exports.NativeFederationTestsHost =_chunkUQAU264Cjs.b.farm;exports.NativeFederationTestsHost = a; exports.NativeFederationTestsRemote = s;
|
package/dist/farm.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e,b as t}from"./chunk-XQKXJQ5G.mjs";var s=e.farm,a=t.farm;export{a as NativeFederationTestsHost,s as NativeFederationTestsRemote};
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as unplugin from 'unplugin';
|
|
2
|
-
import { R as RemoteOptions, H as HostOptions } from './RemoteOptions-
|
|
2
|
+
import { R as RemoteOptions, H as HostOptions } from './RemoteOptions-BW2OrGcM.js';
|
|
3
3
|
import 'tsup';
|
|
4
4
|
|
|
5
5
|
declare const NativeFederationTestsRemote: unplugin.UnpluginInstance<RemoteOptions, boolean>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as unplugin from 'unplugin';
|
|
2
|
-
import { R as RemoteOptions, H as HostOptions } from './RemoteOptions-
|
|
2
|
+
import { R as RemoteOptions, H as HostOptions } from './RemoteOptions-BW2OrGcM.js';
|
|
3
3
|
import 'tsup';
|
|
4
4
|
|
|
5
5
|
declare const NativeFederationTestsRemote: unplugin.UnpluginInstance<RemoteOptions, boolean>;
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@module-federation/native-federation-tests",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.1",
|
|
4
4
|
"description": "Bundler agnostic unplugin to share federated tests",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
],
|
|
12
12
|
"exports": {
|
|
13
13
|
".": {
|
|
14
|
+
"types": "./dist/index.d.ts",
|
|
14
15
|
"import": "./dist/index.mjs",
|
|
15
|
-
"require": "./dist/index.js"
|
|
16
|
-
"types": "./dist/index.d.ts"
|
|
16
|
+
"require": "./dist/index.js"
|
|
17
17
|
},
|
|
18
18
|
"./rollup": {
|
|
19
19
|
"types": "./dist/rollup.d.ts",
|
|
@@ -50,13 +50,18 @@
|
|
|
50
50
|
"federated tests"
|
|
51
51
|
],
|
|
52
52
|
"author": "Matteo Pietro Dazzi <matteopietro.dazzi@gmail.com> (https://github.com/ilteoood)",
|
|
53
|
+
"repository": {
|
|
54
|
+
"type": "git",
|
|
55
|
+
"url": "https://github.com/module-federation/core/",
|
|
56
|
+
"directory": "packages/native-federation-tests"
|
|
57
|
+
},
|
|
53
58
|
"license": "MIT",
|
|
54
59
|
"dependencies": {
|
|
55
|
-
"adm-zip": "^0.5.
|
|
60
|
+
"adm-zip": "^0.5.14",
|
|
56
61
|
"ansi-colors": "^4.1.3",
|
|
57
|
-
"axios": "^1.
|
|
58
|
-
"rambda": "^9.1
|
|
59
|
-
"tsup": "
|
|
60
|
-
"unplugin": "^1.
|
|
62
|
+
"axios": "^1.11.0",
|
|
63
|
+
"rambda": "^9.2.1",
|
|
64
|
+
"tsup": "8.3.5",
|
|
65
|
+
"unplugin": "^1.10.1"
|
|
61
66
|
}
|
|
62
67
|
}
|
package/dist/rolldown.d.mts
CHANGED
package/dist/rolldown.d.ts
CHANGED
package/dist/rollup.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { R as RemoteOptions, H as HostOptions } from './RemoteOptions-
|
|
1
|
+
import { R as RemoteOptions, H as HostOptions } from './RemoteOptions-BW2OrGcM.js';
|
|
2
2
|
import * as unplugin from 'unplugin';
|
|
3
3
|
import 'tsup';
|
|
4
4
|
|
|
5
|
-
declare const NativeFederationTestsRemote: (options: RemoteOptions) => unplugin.RollupPlugin | unplugin.RollupPlugin[];
|
|
6
|
-
declare const NativeFederationTestsHost: (options: HostOptions) => unplugin.RollupPlugin | unplugin.RollupPlugin[];
|
|
5
|
+
declare const NativeFederationTestsRemote: (options: RemoteOptions) => unplugin.RollupPlugin<any> | unplugin.RollupPlugin<any>[];
|
|
6
|
+
declare const NativeFederationTestsHost: (options: HostOptions) => unplugin.RollupPlugin<any> | unplugin.RollupPlugin<any>[];
|
|
7
7
|
|
|
8
8
|
export { NativeFederationTestsHost, NativeFederationTestsRemote };
|
package/dist/rollup.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { R as RemoteOptions, H as HostOptions } from './RemoteOptions-
|
|
1
|
+
import { R as RemoteOptions, H as HostOptions } from './RemoteOptions-BW2OrGcM.js';
|
|
2
2
|
import * as unplugin from 'unplugin';
|
|
3
3
|
import 'tsup';
|
|
4
4
|
|
|
5
|
-
declare const NativeFederationTestsRemote: (options: RemoteOptions) => unplugin.RollupPlugin | unplugin.RollupPlugin[];
|
|
6
|
-
declare const NativeFederationTestsHost: (options: HostOptions) => unplugin.RollupPlugin | unplugin.RollupPlugin[];
|
|
5
|
+
declare const NativeFederationTestsRemote: (options: RemoteOptions) => unplugin.RollupPlugin<any> | unplugin.RollupPlugin<any>[];
|
|
6
|
+
declare const NativeFederationTestsHost: (options: HostOptions) => unplugin.RollupPlugin<any> | unplugin.RollupPlugin<any>[];
|
|
7
7
|
|
|
8
8
|
export { NativeFederationTestsHost, NativeFederationTestsRemote };
|
package/dist/rspack.d.mts
CHANGED
package/dist/rspack.d.ts
CHANGED
package/dist/vite.d.mts
CHANGED
package/dist/vite.d.ts
CHANGED
package/dist/webpack.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { WebpackPluginInstance } from 'unplugin';
|
|
2
|
-
import { R as RemoteOptions, H as HostOptions } from './RemoteOptions-
|
|
2
|
+
import { R as RemoteOptions, H as HostOptions } from './RemoteOptions-BW2OrGcM.js';
|
|
3
3
|
import 'tsup';
|
|
4
4
|
|
|
5
5
|
declare const NativeFederationTestsRemote: (options: RemoteOptions) => WebpackPluginInstance;
|
package/dist/webpack.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { WebpackPluginInstance } from 'unplugin';
|
|
2
|
-
import { R as RemoteOptions, H as HostOptions } from './RemoteOptions-
|
|
2
|
+
import { R as RemoteOptions, H as HostOptions } from './RemoteOptions-BW2OrGcM.js';
|
|
3
3
|
import 'tsup';
|
|
4
4
|
|
|
5
5
|
declare const NativeFederationTestsRemote: (options: RemoteOptions) => WebpackPluginInstance;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@module-federation/native-federation-tests",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.1",
|
|
4
4
|
"description": "Bundler agnostic unplugin to share federated tests",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
],
|
|
12
12
|
"exports": {
|
|
13
13
|
".": {
|
|
14
|
+
"types": "./dist/index.d.ts",
|
|
14
15
|
"import": "./dist/index.mjs",
|
|
15
|
-
"require": "./dist/index.js"
|
|
16
|
-
"types": "./dist/index.d.ts"
|
|
16
|
+
"require": "./dist/index.js"
|
|
17
17
|
},
|
|
18
18
|
"./rollup": {
|
|
19
19
|
"types": "./dist/rollup.d.ts",
|
|
@@ -50,13 +50,18 @@
|
|
|
50
50
|
"federated tests"
|
|
51
51
|
],
|
|
52
52
|
"author": "Matteo Pietro Dazzi <matteopietro.dazzi@gmail.com> (https://github.com/ilteoood)",
|
|
53
|
+
"repository": {
|
|
54
|
+
"type": "git",
|
|
55
|
+
"url": "https://github.com/module-federation/core/",
|
|
56
|
+
"directory": "packages/native-federation-tests"
|
|
57
|
+
},
|
|
53
58
|
"license": "MIT",
|
|
54
59
|
"dependencies": {
|
|
55
|
-
"adm-zip": "^0.5.
|
|
60
|
+
"adm-zip": "^0.5.14",
|
|
56
61
|
"ansi-colors": "^4.1.3",
|
|
57
|
-
"axios": "^1.
|
|
58
|
-
"rambda": "^9.1
|
|
59
|
-
"tsup": "
|
|
60
|
-
"unplugin": "^1.
|
|
62
|
+
"axios": "^1.11.0",
|
|
63
|
+
"rambda": "^9.2.1",
|
|
64
|
+
"tsup": "8.3.5",
|
|
65
|
+
"unplugin": "^1.10.1"
|
|
61
66
|
}
|
|
62
67
|
}
|