@rspack/binding 1.5.0-rc.0 → 1.5.1

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 +8 -12
  2. package/package.json +11 -11
package/napi-binding.d.ts CHANGED
@@ -495,6 +495,10 @@ export declare class VirtualFileStore {
495
495
  }
496
496
  export type JsVirtualFileStore = VirtualFileStore
497
497
 
498
+ export interface AssetInfoRelated {
499
+ sourceMap?: string | null
500
+ }
501
+
498
502
  export declare function async(path: string, request: string): Promise<ResolveResult>
499
503
 
500
504
  export interface BuiltinPlugin {
@@ -674,10 +678,6 @@ export interface JsAssetEmittedArgs {
674
678
  targetPath: string
675
679
  }
676
680
 
677
- export interface JsAssetInfoRelated {
678
- sourceMap?: string
679
- }
680
-
681
681
  export interface JsBannerContentFnCtx {
682
682
  hash: string
683
683
  chunk: Chunk
@@ -1503,7 +1503,7 @@ export interface KnownAssetInfo {
1503
1503
  /** when asset is javascript and an ESM */
1504
1504
  javascriptModule?: boolean
1505
1505
  /** related object to other assets, keyed by type of relation (only points from parent to child) */
1506
- related?: JsAssetInfoRelated
1506
+ related?: AssetInfoRelated
1507
1507
  /** unused css local ident for the css chunk */
1508
1508
  cssUnusedIdents?: Array<string>
1509
1509
  /** whether this asset is over the size limit */
@@ -2144,6 +2144,7 @@ export interface RawExternalItemFnResult {
2144
2144
  export interface RawExternalsPluginOptions {
2145
2145
  type: string
2146
2146
  externals: (string | RegExp | Record<string, string | boolean | string[] | Record<string, string[]>> | ((...args: any[]) => any))[]
2147
+ placeInInitial: boolean
2147
2148
  }
2148
2149
 
2149
2150
  export interface RawExternalsPresets {
@@ -2347,11 +2348,11 @@ export interface RawJsonParserOptions {
2347
2348
  }
2348
2349
 
2349
2350
  export interface RawLazyCompilationOption {
2350
- module: ((err: Error | null, arg: RawModuleArg) => RawModuleInfo)
2351
+ currentActiveModules: ((err: Error | null, ) => Set<string>)
2351
2352
  test?: RawLazyCompilationTest
2352
2353
  entries: boolean
2353
2354
  imports: boolean
2354
- cacheable: boolean
2355
+ client: string
2355
2356
  }
2356
2357
 
2357
2358
  export interface RawLibManifestPluginOptions {
@@ -2409,11 +2410,6 @@ export interface RawLimitChunkCountPluginOptions {
2409
2410
  maxChunks: number
2410
2411
  }
2411
2412
 
2412
- export interface RawModuleArg {
2413
- module: string
2414
- path: string
2415
- }
2416
-
2417
2413
  export interface RawModuleFederationRuntimePluginOptions {
2418
2414
  entryRuntime?: string | undefined
2419
2415
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspack/binding",
3
- "version": "1.5.0-rc.0",
3
+ "version": "1.5.1",
4
4
  "license": "MIT",
5
5
  "description": "Node binding for rspack",
6
6
  "main": "binding.js",
@@ -50,16 +50,16 @@
50
50
  }
51
51
  },
52
52
  "optionalDependencies": {
53
- "@rspack/binding-darwin-arm64": "1.5.0-rc.0",
54
- "@rspack/binding-win32-arm64-msvc": "1.5.0-rc.0",
55
- "@rspack/binding-linux-arm64-gnu": "1.5.0-rc.0",
56
- "@rspack/binding-linux-arm64-musl": "1.5.0-rc.0",
57
- "@rspack/binding-win32-ia32-msvc": "1.5.0-rc.0",
58
- "@rspack/binding-darwin-x64": "1.5.0-rc.0",
59
- "@rspack/binding-wasm32-wasi": "1.5.0-rc.0",
60
- "@rspack/binding-win32-x64-msvc": "1.5.0-rc.0",
61
- "@rspack/binding-linux-x64-gnu": "1.5.0-rc.0",
62
- "@rspack/binding-linux-x64-musl": "1.5.0-rc.0"
53
+ "@rspack/binding-darwin-arm64": "1.5.1",
54
+ "@rspack/binding-linux-arm64-gnu": "1.5.1",
55
+ "@rspack/binding-win32-ia32-msvc": "1.5.1",
56
+ "@rspack/binding-linux-arm64-musl": "1.5.1",
57
+ "@rspack/binding-wasm32-wasi": "1.5.1",
58
+ "@rspack/binding-darwin-x64": "1.5.1",
59
+ "@rspack/binding-win32-arm64-msvc": "1.5.1",
60
+ "@rspack/binding-win32-x64-msvc": "1.5.1",
61
+ "@rspack/binding-linux-x64-gnu": "1.5.1",
62
+ "@rspack/binding-linux-x64-musl": "1.5.1"
63
63
  },
64
64
  "scripts": {
65
65
  "build:dev": "node scripts/build.js",