Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@module-federation/native-federation-typescript

Package Overview
Dependencies
Maintainers
7
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@module-federation/native-federation-typescript - npm Package Compare versions

Comparing version 0.2.6 to 1.0.0-canary.1

dist/chunk-P5PXJORB.js

76

CHANGELOG.md

@@ -7,90 +7,66 @@ # Changelog

## [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)
## [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)
## [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)
## [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)
### Bug Fixes
* .at(-1) ([8dd0520](https://github.com/module-federation/nextjs-mf/commit/8dd0520b5464c49e89c63307c5388450e4bebbf8))
- .at(-1) ([8dd0520](https://github.com/module-federation/nextjs-mf/commit/8dd0520b5464c49e89c63307c5388450e4bebbf8))
## [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)
### Bug Fixes
* [#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))
* downgrade next to v13.3.1 ([0032452](https://github.com/module-federation/nextjs-mf/commit/0032452980c70b211b6c04332326b7973f7c8446))
* removed lock ([82f578e](https://github.com/module-federation/nextjs-mf/commit/82f578e713734f7f6b06e09b794fab4f66af248a))
- [#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))
- downgrade next to v13.3.1 ([0032452](https://github.com/module-federation/nextjs-mf/commit/0032452980c70b211b6c04332326b7973f7c8446))
- removed lock ([82f578e](https://github.com/module-federation/nextjs-mf/commit/82f578e713734f7f6b06e09b794fab4f66af248a))
# [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)
### Bug Fixes
* removed any from error logger type ([fb9fcc3](https://github.com/module-federation/nextjs-mf/commit/fb9fcc3a54a13be36335830f076a86557b75bb4a))
* subpath ([1548501](https://github.com/module-federation/nextjs-mf/commit/1548501bb4679c0c534c02609cb6bc5459f224a4))
* subpath ([aaad665](https://github.com/module-federation/nextjs-mf/commit/aaad665307d80b49ee19496a5b8b400df243558e))
- removed any from error logger type ([fb9fcc3](https://github.com/module-federation/nextjs-mf/commit/fb9fcc3a54a13be36335830f076a86557b75bb4a))
- subpath ([1548501](https://github.com/module-federation/nextjs-mf/commit/1548501bb4679c0c534c02609cb6bc5459f224a4))
- subpath ([aaad665](https://github.com/module-federation/nextjs-mf/commit/aaad665307d80b49ee19496a5b8b400df243558e))
### Features
* 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))
- 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))
## [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)
### Bug Fixes
* native build chunks ([d6c9f8a](https://github.com/module-federation/nextjs-mf/commit/d6c9f8a957ed00a8d92332ccc38ed9780f01d54e))
- native build chunks ([d6c9f8a](https://github.com/module-federation/nextjs-mf/commit/d6c9f8a957ed00a8d92332ccc38ed9780f01d54e))
### Reverts
* Revert "chore(native-federation-typescript): release version 0.1.1" ([91786df](https://github.com/module-federation/nextjs-mf/commit/91786df726e5c078ed78e745b6b105e11bd2e39b))
* Revert "chore(native-federation-typescript): release version 0.1.1" ([097f188](https://github.com/module-federation/nextjs-mf/commit/097f188458835457a2713d98bf3eaf291d5ad102))
- Revert "chore(native-federation-typescript): release version 0.1.1" ([91786df](https://github.com/module-federation/nextjs-mf/commit/91786df726e5c078ed78e745b6b105e11bd2e39b))
- Revert "chore(native-federation-typescript): release version 0.1.1" ([097f188](https://github.com/module-federation/nextjs-mf/commit/097f188458835457a2713d98bf3eaf291d5ad102))
# 0.1.0 (2023-04-05)
### Bug Fixes
* build ([d0b2f72](https://github.com/module-federation/nextjs-mf/commit/d0b2f72f4fc3647825412be1574311c3152cf167))
* build step ([a217170](https://github.com/module-federation/nextjs-mf/commit/a21717096cbc09bff20d3aeebfea2f3533afb0d7))
* compiler instance ([e5c249d](https://github.com/module-federation/nextjs-mf/commit/e5c249d41d68339886268337654ff47b31b06a3a))
* deps ([a378441](https://github.com/module-federation/nextjs-mf/commit/a37844194a3f189cc5863bbdd4776259bce69fa4))
* dirtree tests ([5cb49fd](https://github.com/module-federation/nextjs-mf/commit/5cb49fd1c6520311a7d2e7d2b37a93389a500715))
* eslintrc ([0f69dee](https://github.com/module-federation/nextjs-mf/commit/0f69dee253c2c608b2367d545c7d4a57ad0c2ca5))
* format ([25fb765](https://github.com/module-federation/nextjs-mf/commit/25fb7659481287a791e9de4fe839e980dbf06968))
* readme ([eaca0b3](https://github.com/module-federation/nextjs-mf/commit/eaca0b311d3b8d9e73309cb92d9a9488f9fc23c0))
* readme ([fc0e5dc](https://github.com/module-federation/nextjs-mf/commit/fc0e5dc26e617664224e1c10548b151a44f8dff9))
* README.md ([9159171](https://github.com/module-federation/nextjs-mf/commit/91591712e9a103fff351f0a168c149470c0d69ad))
* remove changelog ([724918e](https://github.com/module-federation/nextjs-mf/commit/724918ebf888297689b6ed700bd14ec01fd1ef35))
* ts build ([9ed3a52](https://github.com/module-federation/nextjs-mf/commit/9ed3a527d0ba903b6cfa6023a7ad5da63781970c))
- build ([d0b2f72](https://github.com/module-federation/nextjs-mf/commit/d0b2f72f4fc3647825412be1574311c3152cf167))
- build step ([a217170](https://github.com/module-federation/nextjs-mf/commit/a21717096cbc09bff20d3aeebfea2f3533afb0d7))
- compiler instance ([e5c249d](https://github.com/module-federation/nextjs-mf/commit/e5c249d41d68339886268337654ff47b31b06a3a))
- deps ([a378441](https://github.com/module-federation/nextjs-mf/commit/a37844194a3f189cc5863bbdd4776259bce69fa4))
- dirtree tests ([5cb49fd](https://github.com/module-federation/nextjs-mf/commit/5cb49fd1c6520311a7d2e7d2b37a93389a500715))
- eslintrc ([0f69dee](https://github.com/module-federation/nextjs-mf/commit/0f69dee253c2c608b2367d545c7d4a57ad0c2ca5))
- format ([25fb765](https://github.com/module-federation/nextjs-mf/commit/25fb7659481287a791e9de4fe839e980dbf06968))
- readme ([eaca0b3](https://github.com/module-federation/nextjs-mf/commit/eaca0b311d3b8d9e73309cb92d9a9488f9fc23c0))
- readme ([fc0e5dc](https://github.com/module-federation/nextjs-mf/commit/fc0e5dc26e617664224e1c10548b151a44f8dff9))
- README.md ([9159171](https://github.com/module-federation/nextjs-mf/commit/91591712e9a103fff351f0a168c149470c0d69ad))
- remove changelog ([724918e](https://github.com/module-federation/nextjs-mf/commit/724918ebf888297689b6ed700bd14ec01fd1ef35))
- ts build ([9ed3a52](https://github.com/module-federation/nextjs-mf/commit/9ed3a527d0ba903b6cfa6023a7ad5da63781970c))
### Features
* federated tests plugin ([063ab33](https://github.com/module-federation/nextjs-mf/commit/063ab336c4830aff4f5bd3b9894df60b4651a9be))
* native-federation-typescript plugin ([#692](https://github.com/module-federation/nextjs-mf/issues/692)) ([b41c5aa](https://github.com/module-federation/nextjs-mf/commit/b41c5aacfeda0fada5b426086658235edfd86cdd))
* test command ([3ade629](https://github.com/module-federation/nextjs-mf/commit/3ade629488f4ea1549314b82b41caef9a046da9f))
- federated tests plugin ([063ab33](https://github.com/module-federation/nextjs-mf/commit/063ab336c4830aff4f5bd3b9894df60b4651a9be))
- native-federation-typescript plugin ([#692](https://github.com/module-federation/nextjs-mf/issues/692)) ([b41c5aa](https://github.com/module-federation/nextjs-mf/commit/b41c5aacfeda0fada5b426086658235edfd86cdd))
- test command ([3ade629](https://github.com/module-federation/nextjs-mf/commit/3ade629488f4ea1549314b82b41caef9a046da9f))

@@ -1,1 +0,1 @@

"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk5DG6MWZHjs = require('./chunk-5DG6MWZH.js');var i=_chunk5DG6MWZHjs.a.esbuild,r= exports.NativeFederationTypeScriptHost =_chunk5DG6MWZHjs.b.esbuild;exports.NativeFederationTypeScriptHost = r; exports.NativeFederationTypeScriptRemote = i;
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkP5PXJORBjs = require('./chunk-P5PXJORB.js');var i=_chunkP5PXJORBjs.a.esbuild,r= exports.NativeFederationTypeScriptHost =_chunkP5PXJORBjs.b.esbuild;exports.NativeFederationTypeScriptHost = r; exports.NativeFederationTypeScriptRemote = i;

@@ -1,1 +0,1 @@

"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk5DG6MWZHjs = require('./chunk-5DG6MWZH.js');exports.NativeFederationTypeScriptHost = _chunk5DG6MWZHjs.b; exports.NativeFederationTypeScriptRemote = _chunk5DG6MWZHjs.a;
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkP5PXJORBjs = require('./chunk-P5PXJORB.js');exports.NativeFederationTypeScriptHost = _chunkP5PXJORBjs.b; exports.NativeFederationTypeScriptRemote = _chunkP5PXJORBjs.a;
import { R as RemoteOptions, H as HostOptions } from './RemoteOptions-ce85caac.js';
declare const NativeFederationTypeScriptRemote: (options: RemoteOptions) => undefined | undefined[];
declare const NativeFederationTypeScriptHost: (options: HostOptions) => undefined | undefined[];
declare const NativeFederationTypeScriptRemote: (options: RemoteOptions) => undefined<any> | undefined<any>[];
declare const NativeFederationTypeScriptHost: (options: HostOptions) => undefined<any> | undefined<any>[];
export { NativeFederationTypeScriptHost, NativeFederationTypeScriptRemote };

@@ -1,1 +0,1 @@

"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk5DG6MWZHjs = require('./chunk-5DG6MWZH.js');var r=_chunk5DG6MWZHjs.a.rollup,i= exports.NativeFederationTypeScriptHost =_chunk5DG6MWZHjs.b.rollup;exports.NativeFederationTypeScriptHost = i; exports.NativeFederationTypeScriptRemote = r;
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkP5PXJORBjs = require('./chunk-P5PXJORB.js');var r=_chunkP5PXJORBjs.a.rollup,i= exports.NativeFederationTypeScriptHost =_chunkP5PXJORBjs.b.rollup;exports.NativeFederationTypeScriptHost = i; exports.NativeFederationTypeScriptRemote = r;

@@ -1,1 +0,1 @@

"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk5DG6MWZHjs = require('./chunk-5DG6MWZH.js');var r=_chunk5DG6MWZHjs.a.rspack,a= exports.NativeFederationTypeScriptHost =_chunk5DG6MWZHjs.b.rspack;exports.NativeFederationTypeScriptHost = a; exports.NativeFederationTypeScriptRemote = r;
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkP5PXJORBjs = require('./chunk-P5PXJORB.js');var r=_chunkP5PXJORBjs.a.rspack,a= exports.NativeFederationTypeScriptHost =_chunkP5PXJORBjs.b.rspack;exports.NativeFederationTypeScriptHost = a; exports.NativeFederationTypeScriptRemote = r;

@@ -1,1 +0,1 @@

"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk5DG6MWZHjs = require('./chunk-5DG6MWZH.js');var i=_chunk5DG6MWZHjs.a.vite,p= exports.NativeFederationTypeScriptHost =_chunk5DG6MWZHjs.b.vite;exports.NativeFederationTypeScriptHost = p; exports.NativeFederationTypeScriptRemote = i;
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkP5PXJORBjs = require('./chunk-P5PXJORB.js');var i=_chunkP5PXJORBjs.a.vite,p= exports.NativeFederationTypeScriptHost =_chunkP5PXJORBjs.b.vite;exports.NativeFederationTypeScriptHost = p; exports.NativeFederationTypeScriptRemote = i;

@@ -1,1 +0,1 @@

"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk5DG6MWZHjs = require('./chunk-5DG6MWZH.js');var a=_chunk5DG6MWZHjs.a.webpack,r= exports.NativeFederationTypeScriptHost =_chunk5DG6MWZHjs.b.webpack;exports.NativeFederationTypeScriptHost = r; exports.NativeFederationTypeScriptRemote = a;
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkP5PXJORBjs = require('./chunk-P5PXJORB.js');var a=_chunkP5PXJORBjs.a.webpack,r= exports.NativeFederationTypeScriptHost =_chunkP5PXJORBjs.b.webpack;exports.NativeFederationTypeScriptHost = r; exports.NativeFederationTypeScriptRemote = a;
{
"name": "@module-federation/native-federation-typescript",
"version": "0.2.6",
"version": "1.0.0-canary.1",
"description": "Bundler agnostic unplugin to share federated types",

@@ -12,3 +12,3 @@ "keywords": [

"publishConfig": {
"registry": "https://registry.npmjs.org/"
"access": "public"
},

@@ -15,0 +15,0 @@ "exports": {

@@ -14,5 +14,7 @@ # native-federation-typescript

### NativeFederationTypeScriptRemote
This plugin is used to build the federated types.
#### Configuration
```typescript

@@ -31,2 +33,3 @@ {

#### Additional configuration
Note that, for Webpack, the plugin automatically inject the `devServer.static.directory` configuration.

@@ -36,2 +39,3 @@ For the other bundlers, you should configure it by yourself.

### NativeFederationTypeScriptHost
This plugin is used to download the federated types.

@@ -56,26 +60,31 @@

// vite.config.ts
import {NativeFederationTypeScriptHost, NativeFederationTypeScriptRemote} from '@module-federation/native-federation-typescript/vite'
import { NativeFederationTypeScriptHost, NativeFederationTypeScriptRemote } from '@module-federation/native-federation-typescript/vite';
export default defineConfig({
plugins: [
NativeFederationTypeScriptRemote({ /* options */ }),
NativeFederationTypeScriptHost({ /* options */ }),
NativeFederationTypeScriptRemote({
/* options */
}),
NativeFederationTypeScriptHost({
/* options */
}),
],
/* ... */
server: { // This is needed to emulate the devServer.static.directory of WebPack and correctly serve the zip file
server: {
// This is needed to emulate the devServer.static.directory of WebPack and correctly serve the zip file
/* ... */
proxy: {
'/@mf-types.zip': {
target: 'http://localhost:3000',
changeOrigin: true,
rewrite: () => `/@fs/${process.cwd()}/dist/@mf-types.zip`
}
target: 'http://localhost:3000',
changeOrigin: true,
rewrite: () => `/@fs/${process.cwd()}/dist/@mf-types.zip`,
},
},
fs: {
/* ... */
allow: ['./dist']
allow: ['./dist'],
/* ... */
}
}
})
},
},
});
```

@@ -90,10 +99,14 @@

// rollup.config.js
import {NativeFederationTypeScriptHost, NativeFederationTypeScriptRemote} from '@module-federation/native-federation-typescript/rollup'
import { NativeFederationTypeScriptHost, NativeFederationTypeScriptRemote } from '@module-federation/native-federation-typescript/rollup';
export default {
plugins: [
NativeFederationTypeScriptRemote({ /* options */ }),
NativeFederationTypeScriptHost({ /* options */ }),
NativeFederationTypeScriptRemote({
/* options */
}),
NativeFederationTypeScriptHost({
/* options */
}),
],
}
};
```

@@ -108,10 +121,14 @@

// webpack.config.js
const {NativeFederationTypeScriptHost, NativeFederationTypeScriptRemote} = require('@module-federation/native-federation-typescript/webpack')
const { NativeFederationTypeScriptHost, NativeFederationTypeScriptRemote } = require('@module-federation/native-federation-typescript/webpack');
module.exports = {
/* ... */
plugins: [
NativeFederationTypeScriptRemote({ /* options */ }),
NativeFederationTypeScriptHost({ /* options */ })
]
}
NativeFederationTypeScriptRemote({
/* options */
}),
NativeFederationTypeScriptHost({
/* options */
}),
],
};
```

@@ -126,11 +143,15 @@

// esbuild.config.js
import { build } from 'esbuild'
import {NativeFederationTypeScriptHost, NativeFederationTypeScriptRemote} from '@module-federation/native-federation-typescript/esbuild'
import { build } from 'esbuild';
import { NativeFederationTypeScriptHost, NativeFederationTypeScriptRemote } from '@module-federation/native-federation-typescript/esbuild';
build({
plugins: [
NativeFederationTypeScriptRemote({ /* options */ }),
NativeFederationTypeScriptHost({ /* options */ })
NativeFederationTypeScriptRemote({
/* options */
}),
NativeFederationTypeScriptHost({
/* options */
}),
],
})
});
```

@@ -145,10 +166,14 @@

// rspack.config.js
const {NativeFederationTypeScriptHost, NativeFederationTypeScriptRemote} = require('@module-federation/native-federation-typescript/rspack')
const { NativeFederationTypeScriptHost, NativeFederationTypeScriptRemote } = require('@module-federation/native-federation-typescript/rspack');
module.exports = {
/* ... */
plugins: [
NativeFederationTypeScriptRemote({ /* options */ }),
NativeFederationTypeScriptHost({ /* options */ })
]
}
NativeFederationTypeScriptRemote({
/* options */
}),
NativeFederationTypeScriptHost({
/* options */
}),
],
};
```

@@ -164,3 +189,3 @@

```json
{
{
"paths": {

@@ -167,0 +192,0 @@ "*": ["./@mf-types/*"]

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc