@rspack/binding 1.6.0 → 1.6.2

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 CHANGED
@@ -5,7 +5,8 @@
5
5
  # @rspack/binding
6
6
 
7
7
  Private node binding crate for rspack.
8
- > Rspack's internal package, don't use it directly in your project, This package does *NOT* follow [semantic versioning](https://semver.org/).
8
+
9
+ > Rspack's internal package, don't use it directly in your project, This package does _NOT_ follow [semantic versioning](https://semver.org/).
9
10
 
10
11
  ## Documentation
11
12
 
package/napi-binding.d.ts CHANGED
@@ -545,6 +545,7 @@ export declare enum BuiltinPluginName {
545
545
  ProvideSharedPlugin = 'ProvideSharedPlugin',
546
546
  ConsumeSharedPlugin = 'ConsumeSharedPlugin',
547
547
  ModuleFederationRuntimePlugin = 'ModuleFederationRuntimePlugin',
548
+ ModuleFederationManifestPlugin = 'ModuleFederationManifestPlugin',
548
549
  NamedModuleIdsPlugin = 'NamedModuleIdsPlugin',
549
550
  NaturalModuleIdsPlugin = 'NaturalModuleIdsPlugin',
550
551
  DeterministicModuleIdsPlugin = 'DeterministicModuleIdsPlugin',
@@ -707,11 +708,11 @@ export interface JsBeforeEmitData {
707
708
  }
708
709
 
709
710
  export interface JsBuildMeta {
710
- strictEsmModule: boolean
711
- hasTopLevelAwait: boolean
712
- esm: boolean
713
- exportsType: 'unset' | 'default' | 'namespace' | 'flagged' | 'dynamic'
714
- defaultObject: 'false' | 'redirect' | JsBuildMetaDefaultObjectRedirectWarn
711
+ strictEsmModule?: boolean
712
+ hasTopLevelAwait?: boolean
713
+ esm?: boolean
714
+ exportsType?: undefined | 'unset' | 'default' | 'namespace' | 'flagged' | 'dynamic'
715
+ defaultObject?: undefined | 'false' | 'redirect' | JsBuildMetaDefaultObjectRedirectWarn
715
716
  sideEffectFree?: boolean
716
717
  exportsFinalName?: Array<[string, string]> | undefined
717
718
  }
@@ -2434,6 +2435,32 @@ export interface RawLimitChunkCountPluginOptions {
2434
2435
  maxChunks: number
2435
2436
  }
2436
2437
 
2438
+ export interface RawManifestExposeOption {
2439
+ path: string
2440
+ name: string
2441
+ }
2442
+
2443
+ export interface RawManifestSharedOption {
2444
+ name: string
2445
+ version?: string
2446
+ requiredVersion?: string
2447
+ singleton?: boolean
2448
+ }
2449
+
2450
+ export interface RawModuleFederationManifestPluginOptions {
2451
+ name?: string
2452
+ globalName?: string
2453
+ fileName?: string
2454
+ filePath?: string
2455
+ statsFileName?: string
2456
+ manifestFileName?: string
2457
+ disableAssetsAnalyze?: boolean
2458
+ remoteAliasMap?: Record<string, RawRemoteAliasTarget>
2459
+ exposes?: Array<RawManifestExposeOption>
2460
+ shared?: Array<RawManifestSharedOption>
2461
+ buildInfo?: RawStatsBuildInfo
2462
+ }
2463
+
2437
2464
  export interface RawModuleFederationRuntimePluginOptions {
2438
2465
  entryRuntime?: string | undefined
2439
2466
  }
@@ -2656,6 +2683,11 @@ export interface RawRelated {
2656
2683
  sourceMap?: string
2657
2684
  }
2658
2685
 
2686
+ export interface RawRemoteAliasTarget {
2687
+ name: string
2688
+ entry?: string
2689
+ }
2690
+
2659
2691
  export interface RawRemoteOptions {
2660
2692
  key: string
2661
2693
  external: Array<string>
@@ -2732,12 +2764,6 @@ export interface RawRslibPluginOptions {
2732
2764
  * @default `false`
2733
2765
  */
2734
2766
  interceptApiPlugin?: boolean
2735
- /**
2736
- * Use the compact runtime for dynamic import from `modern-module`, commonly used in CommonJS output.
2737
- * This field should not be set to `true` when using `modern-module` with ESM output, as it is already in use.
2738
- * @default `false`
2739
- */
2740
- compactExternalModuleDynamicImport?: boolean
2741
2767
  /**
2742
2768
  * Add shims for javascript/esm modules
2743
2769
  * @default `false`
@@ -2821,6 +2847,11 @@ export interface RawSplitChunksOptions {
2821
2847
  maxInitialSize?: number | RawSplitChunkSizes
2822
2848
  }
2823
2849
 
2850
+ export interface RawStatsBuildInfo {
2851
+ buildVersion: string
2852
+ buildName?: string
2853
+ }
2854
+
2824
2855
  export interface RawStatsOptions {
2825
2856
  colors: boolean
2826
2857
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspack/binding",
3
- "version": "1.6.0",
3
+ "version": "1.6.2",
4
4
  "license": "MIT",
5
5
  "description": "Node binding for rspack",
6
6
  "main": "binding.js",
@@ -51,16 +51,16 @@
51
51
  }
52
52
  },
53
53
  "optionalDependencies": {
54
- "@rspack/binding-linux-arm64-gnu": "1.6.0",
55
- "@rspack/binding-win32-arm64-msvc": "1.6.0",
56
- "@rspack/binding-linux-arm64-musl": "1.6.0",
57
- "@rspack/binding-win32-ia32-msvc": "1.6.0",
58
- "@rspack/binding-darwin-x64": "1.6.0",
59
- "@rspack/binding-wasm32-wasi": "1.6.0",
60
- "@rspack/binding-linux-x64-gnu": "1.6.0",
61
- "@rspack/binding-win32-x64-msvc": "1.6.0",
62
- "@rspack/binding-linux-x64-musl": "1.6.0",
63
- "@rspack/binding-darwin-arm64": "1.6.0"
54
+ "@rspack/binding-darwin-arm64": "1.6.2",
55
+ "@rspack/binding-win32-arm64-msvc": "1.6.2",
56
+ "@rspack/binding-win32-ia32-msvc": "1.6.2",
57
+ "@rspack/binding-linux-arm64-gnu": "1.6.2",
58
+ "@rspack/binding-linux-arm64-musl": "1.6.2",
59
+ "@rspack/binding-wasm32-wasi": "1.6.2",
60
+ "@rspack/binding-darwin-x64": "1.6.2",
61
+ "@rspack/binding-win32-x64-msvc": "1.6.2",
62
+ "@rspack/binding-linux-x64-gnu": "1.6.2",
63
+ "@rspack/binding-linux-x64-musl": "1.6.2"
64
64
  },
65
65
  "scripts": {
66
66
  "build:dev": "node scripts/build.js",