Socket
Socket
Sign inDemoInstall

@module-federation/node

Package Overview
Dependencies
Maintainers
5
Versions
612
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@module-federation/node - npm Package Compare versions

Comparing version 0.16.1 to 0.16.2

8

CHANGELOG.md

@@ -5,2 +5,10 @@ # Changelog

## [0.16.2](https://github.com/module-federation/nextjs-mf/compare/node-0.16.1...node-0.16.2) (2023-06-30)
### Dependency Updates
* `utils` updated to version `1.9.1`
* `utils` updated to version `1.9.1`
## [0.16.1](https://github.com/module-federation/nextjs-mf/compare/node-0.16.0...node-0.16.1) (2023-06-29)

@@ -7,0 +15,0 @@

4

package.json
{
"public": true,
"name": "@module-federation/node",
"version": "0.16.1",
"version": "0.16.2",
"type": "commonjs",

@@ -38,3 +38,3 @@ "main": "src/index.js",

"node-fetch": "^2.6.7",
"@module-federation/utilities": "1.9.0"
"@module-federation/utilities": "1.9.1"
},

@@ -41,0 +41,0 @@ "peerDependencies": {

@@ -132,2 +132,4 @@ <p align="center">

*Note*: To ensure that changes made to files in remotes are picked up `revalidate`, you can set the remotes webpack [output.filename](https://webpack.js.org/configuration/output/#outputfilename) to `[name]-[contenthash].js` (or similar). This will cause the remoteEntry.js file to be regenerated with a unique hash every time a new build occurs. The revalidate method intelligently detects changes by comparing the hashes of the remoteEntry.js files. By incorporating [contenthash] into the remote's webpack configuration, you enable the shell to seamlessly incorporate the updated files from the remotes.
**Hot reloading Express.js**

@@ -134,0 +136,0 @@

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

export const usedChunks: Set<any>;
export function flushChunks(): Promise<any[]>;
export declare const usedChunks: Set<unknown>;
export declare const flushChunks: () => Promise<unknown[]>;

@@ -5,5 +5,8 @@ "use strict";

exports.usedChunks = new Set();
//@ts-ignore
global.usedChunks = exports.usedChunks;
const flushChunks = async () => {
const allFlushed = await Promise.all(Array.from(exports.usedChunks).map(async (chunk) => {
const allFlushed = await Promise.all(
//@ts-ignore
Array.from(exports.usedChunks).map(async (chunk) => {
const chunks = new Set();

@@ -25,2 +28,3 @@ const [remote, request] = chunk.split('->');

Object.values(chunk).forEach((chunk) => {
//@ts-ignore
chunk.forEach((chunk) => {

@@ -27,0 +31,0 @@ chunks.add(prefix + chunk);

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

export * from "./hot-reload";
export * from "./flush-chunks";
export * from './hot-reload';
export * from './flush-chunks';

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