@rspack/binding 1.7.7 → 1.7.9

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.
Files changed (2) hide show
  1. package/napi-binding.d.ts +58 -38
  2. package/package.json +12 -12
package/napi-binding.d.ts CHANGED
@@ -707,6 +707,14 @@ export interface JsBeforeEmitData {
707
707
  uid?: number
708
708
  }
709
709
 
710
+ export interface JsBeforeModuleIdsArg {
711
+ modules: Array<JsModuleForIds>
712
+ }
713
+
714
+ export interface JsBeforeModuleIdsResult {
715
+ assignments: Record<string, string | number>
716
+ }
717
+
710
718
  export interface JsBuildMeta {
711
719
  strictEsmModule?: boolean
712
720
  hasTopLevelAwait?: boolean
@@ -970,6 +978,10 @@ export interface JsModuleDescriptor {
970
978
  id?: string | number | null
971
979
  }
972
980
 
981
+ export interface JsModuleForIds {
982
+ identifier: string
983
+ }
984
+
973
985
  export interface JsNormalModuleFactoryCreateModuleArgs {
974
986
  dependencyType: string
975
987
  rawRequest: string
@@ -1093,6 +1105,11 @@ export interface JsRsdoctorExportInfo {
1093
1105
  sideEffects: Array<number>
1094
1106
  }
1095
1107
 
1108
+ export interface JsRsdoctorJsonModuleSize {
1109
+ identifier: string
1110
+ size: number
1111
+ }
1112
+
1096
1113
  export interface JsRsdoctorModule {
1097
1114
  ukey: number
1098
1115
  identifier: string
@@ -1141,6 +1158,7 @@ export interface JsRsdoctorModuleOriginalSource {
1141
1158
 
1142
1159
  export interface JsRsdoctorModuleSourcesPatch {
1143
1160
  moduleOriginalSources: Array<JsRsdoctorModuleOriginalSource>
1161
+ jsonModuleSizes: Array<JsRsdoctorJsonModuleSize>
1144
1162
  }
1145
1163
 
1146
1164
  export interface JsRsdoctorSideEffect {
@@ -1853,7 +1871,7 @@ export interface RawConsumeOptions {
1853
1871
  import?: string
1854
1872
  importResolved?: string
1855
1873
  shareKey: string
1856
- shareScope: string
1874
+ shareScope: string | Array<string>
1857
1875
  requiredVersion?: string | false | undefined
1858
1876
  packageName?: string
1859
1877
  strictVersion: boolean
@@ -1868,7 +1886,7 @@ export interface RawConsumeSharedPluginOptions {
1868
1886
 
1869
1887
  export interface RawContainerPluginOptions {
1870
1888
  name: string
1871
- shareScope: string
1889
+ shareScope: string | Array<string>
1872
1890
  library: JsLibraryOptions
1873
1891
  runtime?: false | string
1874
1892
  filename?: string
@@ -1879,7 +1897,7 @@ export interface RawContainerPluginOptions {
1879
1897
  export interface RawContainerReferencePluginOptions {
1880
1898
  remoteType: string
1881
1899
  remotes: Array<RawRemoteOptions>
1882
- shareScope?: string
1900
+ shareScope?: string | Array<string> | undefined | null
1883
1901
  enhanced: boolean
1884
1902
  }
1885
1903
 
@@ -2693,7 +2711,7 @@ export interface RawProgressPluginOptions {
2693
2711
  export interface RawProvideOptions {
2694
2712
  key: string
2695
2713
  shareKey: string
2696
- shareScope: string
2714
+ shareScope: string | Array<string>
2697
2715
  version?: string | false | undefined
2698
2716
  eager: boolean
2699
2717
  singleton?: boolean
@@ -2713,7 +2731,7 @@ export interface RawRemoteAliasTarget {
2713
2731
  export interface RawRemoteOptions {
2714
2732
  key: string
2715
2733
  external: Array<string>
2716
- shareScope: string
2734
+ shareScope: string | Array<string>
2717
2735
  }
2718
2736
 
2719
2737
  export interface RawResolveOptions {
@@ -2962,39 +2980,40 @@ export declare enum RegisterJsTapKind {
2962
2980
  CompilationAfterOptimizeModules = 14,
2963
2981
  CompilationOptimizeTree = 15,
2964
2982
  CompilationOptimizeChunkModules = 16,
2965
- CompilationAdditionalTreeRuntimeRequirements = 17,
2966
- CompilationRuntimeRequirementInTree = 18,
2967
- CompilationRuntimeModule = 19,
2968
- CompilationChunkHash = 20,
2969
- CompilationChunkAsset = 21,
2970
- CompilationProcessAssets = 22,
2971
- CompilationAfterProcessAssets = 23,
2972
- CompilationSeal = 24,
2973
- CompilationAfterSeal = 25,
2974
- NormalModuleFactoryBeforeResolve = 26,
2975
- NormalModuleFactoryFactorize = 27,
2976
- NormalModuleFactoryResolve = 28,
2977
- NormalModuleFactoryAfterResolve = 29,
2978
- NormalModuleFactoryCreateModule = 30,
2979
- NormalModuleFactoryResolveForScheme = 31,
2980
- ContextModuleFactoryBeforeResolve = 32,
2981
- ContextModuleFactoryAfterResolve = 33,
2982
- JavascriptModulesChunkHash = 34,
2983
- HtmlPluginBeforeAssetTagGeneration = 35,
2984
- HtmlPluginAlterAssetTags = 36,
2985
- HtmlPluginAlterAssetTagGroups = 37,
2986
- HtmlPluginAfterTemplateExecution = 38,
2987
- HtmlPluginBeforeEmit = 39,
2988
- HtmlPluginAfterEmit = 40,
2989
- RuntimePluginCreateScript = 41,
2990
- RuntimePluginCreateLink = 42,
2991
- RuntimePluginLinkPreload = 43,
2992
- RuntimePluginLinkPrefetch = 44,
2993
- RsdoctorPluginModuleGraph = 45,
2994
- RsdoctorPluginChunkGraph = 46,
2995
- RsdoctorPluginModuleIds = 47,
2996
- RsdoctorPluginModuleSources = 48,
2997
- RsdoctorPluginAssets = 49
2983
+ CompilationBeforeModuleIds = 17,
2984
+ CompilationAdditionalTreeRuntimeRequirements = 18,
2985
+ CompilationRuntimeRequirementInTree = 19,
2986
+ CompilationRuntimeModule = 20,
2987
+ CompilationChunkHash = 21,
2988
+ CompilationChunkAsset = 22,
2989
+ CompilationProcessAssets = 23,
2990
+ CompilationAfterProcessAssets = 24,
2991
+ CompilationSeal = 25,
2992
+ CompilationAfterSeal = 26,
2993
+ NormalModuleFactoryBeforeResolve = 27,
2994
+ NormalModuleFactoryFactorize = 28,
2995
+ NormalModuleFactoryResolve = 29,
2996
+ NormalModuleFactoryAfterResolve = 30,
2997
+ NormalModuleFactoryCreateModule = 31,
2998
+ NormalModuleFactoryResolveForScheme = 32,
2999
+ ContextModuleFactoryBeforeResolve = 33,
3000
+ ContextModuleFactoryAfterResolve = 34,
3001
+ JavascriptModulesChunkHash = 35,
3002
+ HtmlPluginBeforeAssetTagGeneration = 36,
3003
+ HtmlPluginAlterAssetTags = 37,
3004
+ HtmlPluginAlterAssetTagGroups = 38,
3005
+ HtmlPluginAfterTemplateExecution = 39,
3006
+ HtmlPluginBeforeEmit = 40,
3007
+ HtmlPluginAfterEmit = 41,
3008
+ RuntimePluginCreateScript = 42,
3009
+ RuntimePluginCreateLink = 43,
3010
+ RuntimePluginLinkPreload = 44,
3011
+ RuntimePluginLinkPrefetch = 45,
3012
+ RsdoctorPluginModuleGraph = 46,
3013
+ RsdoctorPluginChunkGraph = 47,
3014
+ RsdoctorPluginModuleIds = 48,
3015
+ RsdoctorPluginModuleSources = 49,
3016
+ RsdoctorPluginAssets = 50
2998
3017
  }
2999
3018
 
3000
3019
  export interface RegisterJsTaps {
@@ -3018,6 +3037,7 @@ export interface RegisterJsTaps {
3018
3037
  registerCompilationAfterOptimizeModulesTaps: (stages: Array<number>) => Array<{ function: (() => void); stage: number; }>
3019
3038
  registerCompilationOptimizeTreeTaps: (stages: Array<number>) => Array<{ function: (() => Promise<void>); stage: number; }>
3020
3039
  registerCompilationOptimizeChunkModulesTaps: (stages: Array<number>) => Array<{ function: (() => Promise<boolean | undefined>); stage: number; }>
3040
+ registerCompilationBeforeModuleIdsTaps: (stages: Array<number>) => Array<{ function: ((arg: JsBeforeModuleIdsArg) => JsBeforeModuleIdsResult); stage: number; }>
3021
3041
  registerCompilationChunkHashTaps: (stages: Array<number>) => Array<{ function: ((arg: Chunk) => Buffer); stage: number; }>
3022
3042
  registerCompilationChunkAssetTaps: (stages: Array<number>) => Array<{ function: ((arg: JsChunkAssetArgs) => void); stage: number; }>
3023
3043
  registerCompilationProcessAssetsTaps: (stages: Array<number>) => Array<{ function: ((arg: JsCompilation) => Promise<void>); stage: number; }>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspack/binding",
3
- "version": "1.7.7",
3
+ "version": "1.7.9",
4
4
  "license": "MIT",
5
5
  "description": "Node binding for rspack",
6
6
  "main": "binding.js",
@@ -21,7 +21,7 @@
21
21
  "devDependencies": {
22
22
  "@napi-rs/cli": "3.0.4",
23
23
  "@napi-rs/wasm-runtime": "1.0.7",
24
- "emnapi": "^1.8.1",
24
+ "emnapi": "1.8.1",
25
25
  "typescript": "^5.9.3"
26
26
  },
27
27
  "napi": {
@@ -50,16 +50,16 @@
50
50
  }
51
51
  },
52
52
  "optionalDependencies": {
53
- "@rspack/binding-darwin-arm64": "1.7.7",
54
- "@rspack/binding-win32-arm64-msvc": "1.7.7",
55
- "@rspack/binding-linux-arm64-gnu": "1.7.7",
56
- "@rspack/binding-linux-arm64-musl": "1.7.7",
57
- "@rspack/binding-win32-ia32-msvc": "1.7.7",
58
- "@rspack/binding-wasm32-wasi": "1.7.7",
59
- "@rspack/binding-darwin-x64": "1.7.7",
60
- "@rspack/binding-win32-x64-msvc": "1.7.7",
61
- "@rspack/binding-linux-x64-gnu": "1.7.7",
62
- "@rspack/binding-linux-x64-musl": "1.7.7"
53
+ "@rspack/binding-linux-arm64-gnu": "1.7.9",
54
+ "@rspack/binding-darwin-arm64": "1.7.9",
55
+ "@rspack/binding-win32-arm64-msvc": "1.7.9",
56
+ "@rspack/binding-win32-ia32-msvc": "1.7.9",
57
+ "@rspack/binding-darwin-x64": "1.7.9",
58
+ "@rspack/binding-wasm32-wasi": "1.7.9",
59
+ "@rspack/binding-win32-x64-msvc": "1.7.9",
60
+ "@rspack/binding-linux-x64-musl": "1.7.9",
61
+ "@rspack/binding-linux-arm64-musl": "1.7.9",
62
+ "@rspack/binding-linux-x64-gnu": "1.7.9"
63
63
  },
64
64
  "scripts": {
65
65
  "build:dev": "node scripts/build.js",