@rspack/binding 0.4.2 → 0.4.3

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/binding.d.ts +19 -3
  2. package/package.json +10 -10
package/binding.d.ts CHANGED
@@ -96,13 +96,23 @@ export class Rspack {
96
96
  unsafe_drop(): void
97
97
  }
98
98
 
99
+ export function __chunk_graph_inner_get_chunk_entry_dependent_chunks_iterable(jsChunkUkey: number, compilation: JsCompilation): Array<JsChunk>
100
+
101
+ export function __chunk_graph_inner_get_chunk_entry_modules(jsChunkUkey: number, compilation: JsCompilation): Array<JsModule>
102
+
103
+ export function __chunk_graph_inner_get_chunk_modules(jsChunkUkey: number, compilation: JsCompilation): Array<JsModule>
104
+
105
+ export function __chunk_graph_inner_get_chunk_modules_iterable_by_source_type(jsChunkUkey: number, sourceType: string, compilation: JsCompilation): Array<JsModule>
106
+
99
107
  export function __chunk_group_inner_get_chunk_group(ukey: number, compilation: JsCompilation): JsChunkGroup
100
108
 
101
109
  export function __chunk_inner_can_be_initial(jsChunkUkey: number, compilation: JsCompilation): boolean
102
110
 
103
- export function __chunk_inner_get_chunk_entry_modules(jsChunkUkey: number, compilation: JsCompilation): Array<JsModule>
111
+ export function __chunk_inner_get_all_async_chunks(jsChunkUkey: number, compilation: JsCompilation): Array<JsChunk>
104
112
 
105
- export function __chunk_inner_get_chunk_modules(jsChunkUkey: number, compilation: JsCompilation): Array<JsModule>
113
+ export function __chunk_inner_get_all_initial_chunks(jsChunkUkey: number, compilation: JsCompilation): Array<JsChunk>
114
+
115
+ export function __chunk_inner_get_all_referenced_chunks(jsChunkUkey: number, compilation: JsCompilation): Array<JsChunk>
106
116
 
107
117
  export function __chunk_inner_has_runtime(jsChunkUkey: number, compilation: JsCompilation): boolean
108
118
 
@@ -144,6 +154,7 @@ export const enum BuiltinPluginName {
144
154
  ModuleChunkFormatPlugin = 'ModuleChunkFormatPlugin',
145
155
  HotModuleReplacementPlugin = 'HotModuleReplacementPlugin',
146
156
  LimitChunkCountPlugin = 'LimitChunkCountPlugin',
157
+ WorkerPlugin = 'WorkerPlugin',
147
158
  WebWorkerTemplatePlugin = 'WebWorkerTemplatePlugin',
148
159
  MergeDuplicateChunksPlugin = 'MergeDuplicateChunksPlugin',
149
160
  SplitChunksPlugin = 'SplitChunksPlugin',
@@ -349,6 +360,7 @@ export interface JsLoaderContext {
349
360
  }
350
361
 
351
362
  export interface JsModule {
363
+ context?: string
352
364
  originalSource?: JsCompatSource
353
365
  resource?: string
354
366
  moduleIdentifier: string
@@ -427,7 +439,6 @@ export interface JsStatsChunkGroupAsset {
427
439
  export interface JsStatsError {
428
440
  message: string
429
441
  formatted: string
430
- title: string
431
442
  }
432
443
 
433
444
  export interface JsStatsGetAssets {
@@ -583,10 +594,12 @@ export interface RawCacheGroupOptions {
583
594
  key: string
584
595
  priority?: number
585
596
  test?: RegExp | string | Function
597
+ filename?: string
586
598
  idHint?: string
587
599
  /** What kind of chunks should be selected. */
588
600
  chunks?: RegExp | 'async' | 'initial' | 'all'
589
601
  type?: RegExp | string
602
+ automaticNameDelimiter?: string
590
603
  minChunks?: number
591
604
  minSize?: number
592
605
  maxSize?: number
@@ -756,6 +769,7 @@ export interface RawFallbackCacheGroupOptions {
756
769
  maxSize?: number
757
770
  maxAsyncSize?: number
758
771
  maxInitialSize?: number
772
+ automaticNameDelimiter?: string
759
773
  }
760
774
 
761
775
  export interface RawFuncUseCtx {
@@ -1125,9 +1139,11 @@ export interface RawSplitChunksOptions {
1125
1139
  cacheGroups?: Array<RawCacheGroupOptions>
1126
1140
  /** What kind of chunks should be selected. */
1127
1141
  chunks?: RegExp | 'async' | 'initial' | 'all'
1142
+ automaticNameDelimiter?: string
1128
1143
  maxAsyncRequests?: number
1129
1144
  maxInitialRequests?: number
1130
1145
  minChunks?: number
1146
+ hidePathInfo?: boolean
1131
1147
  minSize?: number
1132
1148
  enforceSizeThreshold?: number
1133
1149
  minRemainingSize?: number
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspack/binding",
3
- "version": "0.4.2",
3
+ "version": "0.4.3",
4
4
  "license": "MIT",
5
5
  "description": "Node binding for rspack",
6
6
  "main": "binding.js",
@@ -22,15 +22,15 @@
22
22
  "binaryName": "rspack"
23
23
  },
24
24
  "optionalDependencies": {
25
- "@rspack/binding-darwin-arm64": "0.4.2",
26
- "@rspack/binding-win32-arm64-msvc": "0.4.2",
27
- "@rspack/binding-linux-arm64-gnu": "0.4.2",
28
- "@rspack/binding-linux-arm64-musl": "0.4.2",
29
- "@rspack/binding-darwin-x64": "0.4.2",
30
- "@rspack/binding-win32-ia32-msvc": "0.4.2",
31
- "@rspack/binding-win32-x64-msvc": "0.4.2",
32
- "@rspack/binding-linux-x64-musl": "0.4.2",
33
- "@rspack/binding-linux-x64-gnu": "0.4.2"
25
+ "@rspack/binding-darwin-arm64": "0.4.3",
26
+ "@rspack/binding-win32-arm64-msvc": "0.4.3",
27
+ "@rspack/binding-linux-arm64-gnu": "0.4.3",
28
+ "@rspack/binding-linux-arm64-musl": "0.4.3",
29
+ "@rspack/binding-win32-ia32-msvc": "0.4.3",
30
+ "@rspack/binding-darwin-x64": "0.4.3",
31
+ "@rspack/binding-win32-x64-msvc": "0.4.3",
32
+ "@rspack/binding-linux-x64-gnu": "0.4.3",
33
+ "@rspack/binding-linux-x64-musl": "0.4.3"
34
34
  },
35
35
  "scripts": {
36
36
  "build:debug": "node scripts/build.js",