@module-federation/node
Advanced tools
Comparing version 0.15.2-rc.0 to 0.15.2-rc1.0
@@ -5,2 +5,6 @@ # Changelog | ||
## [0.15.2-rc1.0](https://github.com/module-federation/nextjs-mf/compare/node-0.15.2-rc.0...node-0.15.2-rc1.0) (2023-05-25) | ||
## [0.15.2-rc.0](https://github.com/module-federation/nextjs-mf/compare/node-0.15.1...node-0.15.2-rc.0) (2023-05-23) | ||
@@ -7,0 +11,0 @@ |
{ | ||
"public": true, | ||
"name": "@module-federation/node", | ||
"version": "0.15.2-rc.0", | ||
"type": "commonjs", | ||
"version": "0.15.2-rc1.0", | ||
"main": "src/index.js", | ||
@@ -32,3 +31,3 @@ "exports": { | ||
"description": "Module Federation helper for Node", | ||
"repository": "https://github.com/module-federation/nextjs-mf/tree/main/packages/node", | ||
"repository": "https://github.com/module-federation/universe/tree/main/packages/node", | ||
"author": "Zack Jackson <zackary.l.jackson@gmail.com>", | ||
@@ -39,3 +38,3 @@ "license": "MIT", | ||
"node-fetch": "^2.6.7", | ||
"@module-federation/utilities": "1.8.1-rc.1", | ||
"@module-federation/utilities": "1.8.1-rc1.0", | ||
"webpack-sources": "3.2.3" | ||
@@ -42,0 +41,0 @@ }, |
@@ -9,3 +9,3 @@ import type { Compiler } from 'webpack'; | ||
asyncChunkLoading: boolean; | ||
verbose?: boolean; | ||
debug?: boolean; | ||
} | ||
@@ -12,0 +12,0 @@ declare class CommonJsChunkLoadingPlugin { |
@@ -8,3 +8,3 @@ import type { Chunk, Compiler } from 'webpack'; | ||
name?: string; | ||
verbose?: boolean; | ||
debug?: boolean; | ||
} | ||
@@ -11,0 +11,0 @@ interface ChunkLoadingContext { |
@@ -39,3 +39,3 @@ /* eslint-disable @typescript-eslint/no-var-requires */ | ||
_getLogger(...items) { | ||
if (!this.options.verbose) { | ||
if (!this.options.debug) { | ||
return ''; | ||
@@ -91,3 +91,2 @@ } | ||
} | ||
console.log('initialChunkIds', initialChunkIds); | ||
return initialChunkIds; | ||
@@ -235,2 +234,3 @@ }; | ||
*/ | ||
"console.log('global.__remote_scope__', global.__remote_scope__['checkout'])", | ||
this._getLogger(`'remotes keyed by global name'`, JSON.stringify(remotesByType.normal)), | ||
@@ -237,0 +237,0 @@ this._getLogger(`'remote scope configs'`, 'global.__remote_scope__._config'), |
@@ -5,3 +5,3 @@ import type { Compiler, container } from 'webpack'; | ||
experiments?: Record<string, unknown>; | ||
verbose?: boolean; | ||
debug?: boolean; | ||
} | ||
@@ -18,5 +18,5 @@ interface Context { | ||
private experiments; | ||
constructor({ experiments, verbose, ...options }: NodeFederationOptions, context: Context); | ||
constructor({ experiments, debug, ...options }: NodeFederationOptions, context: Context); | ||
apply(compiler: Compiler): void; | ||
} | ||
export default NodeFederationPlugin; |
@@ -97,3 +97,3 @@ 'use strict'; | ||
class NodeFederationPlugin { | ||
constructor({ experiments, verbose, ...options }, context) { | ||
constructor({ experiments, debug, ...options }, context) { | ||
this._options = options || {}; | ||
@@ -100,0 +100,0 @@ this.context = context || {}; |
@@ -5,3 +5,3 @@ import type { Compiler } from 'webpack'; | ||
promiseBaseURI?: string; | ||
verbose?: boolean; | ||
debug?: boolean; | ||
} | ||
@@ -8,0 +8,0 @@ declare class StreamingTargetPlugin { |
@@ -40,3 +40,3 @@ "use strict"; | ||
promiseBaseURI: this.options.promiseBaseURI, | ||
verbose: this.options.verbose, | ||
debug: this.options.debug, | ||
}).apply(compiler); | ||
@@ -43,0 +43,0 @@ } |
@@ -6,3 +6,3 @@ import { ModuleFederationPluginOptions } from '../types'; | ||
promiseBaseURI?: string; | ||
verbose?: boolean; | ||
debug?: boolean; | ||
} | ||
@@ -9,0 +9,0 @@ interface NodeFederationContext { |
@@ -12,7 +12,7 @@ "use strict"; | ||
apply(compiler) { | ||
const { isServer, verbose, ...options } = this._options; | ||
const { isServer, debug, ...options } = this._options; | ||
const { webpack } = compiler; | ||
if (isServer || compiler.options.name === 'server') { | ||
new NodeFederationPlugin_1.default(options, this.context).apply(compiler); | ||
new StreamingTargetPlugin_1.default({ ...options, verbose }).apply(compiler); | ||
new StreamingTargetPlugin_1.default({ ...options, debug }).apply(compiler); | ||
} | ||
@@ -19,0 +19,0 @@ else { |
@@ -24,2 +24,6 @@ "use strict"; | ||
}; | ||
//@ts-ignore | ||
globalThis.backupScope = {}; | ||
//@ts-ignore | ||
globalThis.factoryTracker = {}; | ||
Object.keys(req.cache).forEach((key) => { | ||
@@ -26,0 +30,0 @@ if (requireCacheRegex.test(key)) { |
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
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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
157845
1630
+ Added@module-federation/utilities@1.8.1-rc1.0(transitive)
- Removed@module-federation/utilities@1.8.1-rc.1(transitive)