@module-federation/node
Advanced tools
Comparing version 0.16.1 to 0.16.2
@@ -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 @@ |
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
135027
1430
166
+ Added@module-federation/utilities@1.9.1(transitive)
- Removed@module-federation/utilities@1.9.0(transitive)