@rspack/binding 0.0.3 → 0.0.6

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/binding.d.ts CHANGED
@@ -92,12 +92,12 @@ export interface RawOutputOptions {
92
92
  uniqueName?: string
93
93
  }
94
94
  export interface RawResolveOptions {
95
-
95
+ preferRelative?: boolean
96
96
  }
97
97
  export interface RawOptions {
98
98
  entry?: Record<string, string>
99
99
  mode?: string
100
- target?: string
100
+ target?: string[]
101
101
  context?: string
102
102
  output?: RawOutputOptions
103
103
  resolve?: RawResolveOptions
@@ -110,8 +110,17 @@ export interface OnLoadContext {
110
110
  id: string
111
111
  }
112
112
  export function initCustomTraceSubscriber(): void
113
+ export interface AssetContent {
114
+ buffer?: Buffer
115
+ source?: string
116
+ }
117
+ export interface UpdateAssetOptions {
118
+ asset: AssetContent
119
+ filename: string
120
+ }
113
121
  export interface PluginCallbacks {
114
122
  doneCallback: (...args: any[]) => any
123
+ processAssetsCallback: (...args: any[]) => any
115
124
  }
116
125
  export interface RspackError {
117
126
  message: string
@@ -122,7 +131,7 @@ export interface Stats {
122
131
  export function initTraceSubscriber(): void
123
132
  export function newRspack(options: RawOptions, pluginCallbacks?: PluginCallbacks | undefined | null): ExternalObject<RspackInternal>
124
133
  export function build(rspack: ExternalObject<RspackInternal>): Promise<Stats>
125
- export function rebuild(rspack: ExternalObject<RspackInternal>): Promise<Record<string, string>>
134
+ export function rebuild(rspack: ExternalObject<RspackInternal>, changedFile: string[]): Promise<Record<string, string>>
126
135
  export interface RspackInternal {
127
136
 
128
137
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspack/binding",
3
- "version": "0.0.3",
3
+ "version": "0.0.6",
4
4
  "description": "Node binding for rspack",
5
5
  "main": "binding.js",
6
6
  "types": "binding.d.ts",
@@ -12,15 +12,15 @@
12
12
  "binding.d.ts",
13
13
  "*.node"
14
14
  ],
15
- "scripts": {
16
- "build": "napi build --platform --js false --dts binding.d.ts --config napirs.rc.json",
17
- "build:release": "napi build --release --platform --js false --dts binding.d.ts --config napirs.rc.json"
18
- },
19
15
  "keywords": [],
20
16
  "author": "",
21
17
  "license": "ISC",
22
18
  "devDependencies": {
23
19
  "@napi-rs/cli": "^2.6.2",
24
20
  "why-is-node-running": "2.2.1"
21
+ },
22
+ "scripts": {
23
+ "build": "napi build --platform --js false --dts binding.d.ts --config napirs.rc.json",
24
+ "build:release": "napi build --release --platform --js false --dts binding.d.ts --config napirs.rc.json"
25
25
  }
26
26
  }
Binary file
package/CHANGELOG.md DELETED
@@ -1,7 +0,0 @@
1
- # @rspack/binding
2
-
3
- ## 0.0.2
4
-
5
- ### Patch Changes
6
-
7
- - bd57e818: first release
Binary file