@rspack/binding
Advanced tools
Comparing version 0.0.10 to 0.0.11
@@ -17,3 +17,4 @@ /* tslint:disable */ | ||
*/ | ||
presetEnv: Array<string> | ||
presetEnv?: Array<string> | ||
modules?: boolean | ||
} | ||
@@ -84,2 +85,3 @@ export interface RawDecoratorOptions { | ||
treeShaking?: boolean | ||
sideEffects?: boolean | ||
progress?: RawProgressPluginConfig | ||
@@ -92,2 +94,6 @@ react?: RawReactOptions | ||
} | ||
export interface RawEntryItem { | ||
import: Array<string> | ||
runtime?: string | ||
} | ||
/** | ||
@@ -110,8 +116,31 @@ * `loader` is for js side loader, `builtin_loader` is for rust side loader, | ||
} | ||
export interface RawModuleRuleCondition { | ||
/** Condition can be either a `string` or `Regexp`. */ | ||
type: "string" | "regexp" | ||
/** | ||
* Based on the condition type, the value can be either a `string` or `Regexp`. | ||
* - "string": The value will be matched against the string. | ||
* - "regexp": The value will be matched against the raw regexp source from JS side. | ||
*/ | ||
matcher?: string | ||
} | ||
export interface RawModuleRule { | ||
test?: string | ||
resource?: string | ||
resourceQuery?: string | ||
/** | ||
* A condition matcher matching an absolute path. | ||
* - String: To match the input must start with the provided string. I. e. an absolute directory path, or absolute path to the file. | ||
* - Regexp: It's tested with the input. | ||
*/ | ||
test?: RawModuleRuleCondition | ||
/** | ||
* A condition matcher matching an absolute path. | ||
* See `test` above | ||
*/ | ||
resource?: RawModuleRuleCondition | ||
/** | ||
* A condition matcher against the resource query. | ||
* TODO: align with webpack's `?` prefixed `resourceQuery` | ||
*/ | ||
resourceQuery?: RawModuleRuleCondition | ||
func?: (...args: any[]) => any | ||
uses?: Array<RawModuleRuleUse> | ||
use?: Array<RawModuleRuleUse> | ||
type?: "js" | "jsx" | "ts" | "tsx" | "css" | "json" | "asset" | "asset/resource" | "asset/source" | "asset/inline" | ||
@@ -141,2 +170,4 @@ } | ||
chunkFilename?: string | ||
cssFilename?: string | ||
cssChunkFilename?: string | ||
uniqueName?: string | ||
@@ -153,6 +184,6 @@ } | ||
symlinks?: boolean | ||
tsconfig?: string | ||
tsConfigPath?: string | ||
} | ||
export interface RawSplitChunksOptions { | ||
cacheGroups: Record<string, RawCacheGroupOptions> | ||
cacheGroups?: Record<string, RawCacheGroupOptions> | ||
/** What kind of chunks should be selected. */ | ||
@@ -171,3 +202,3 @@ chunks?: string | ||
export interface RawOptions { | ||
entry?: Record<string, string> | ||
entry?: Record<string, RawEntryItem> | ||
mode?: string | ||
@@ -206,4 +237,5 @@ target?: string[] | ||
development: boolean | ||
/** when asset ships data for updating an existing application (HMR) */ | ||
hotModuleReplacement: boolean | ||
/** | ||
* when asset ships data for updating an existing application (HMR) | ||
* when asset is javascript and an ESM | ||
@@ -254,5 +286,7 @@ * related object to other assets, keyed by type of relation (only points from parent to child) | ||
info: JsStatsAssetInfo | ||
emitted: boolean | ||
} | ||
export interface JsStatsAssetInfo { | ||
development: boolean | ||
hotModuleReplacement: boolean | ||
} | ||
@@ -301,3 +335,5 @@ export interface JsStatsModule { | ||
getAssets(): Readonly<JsAsset>[] | ||
getAsset(name: string): JsAsset | null | ||
emitAsset(filename: string, source: JsCompatSource, assetInfo: JsAssetInfo): void | ||
deleteAsset(filename: string): void | ||
get assets(): Record<string, JsCompatSource> | ||
@@ -304,0 +340,0 @@ get entrypoints(): Record<string, JsChunkGroup> |
{ | ||
"name": "@rspack/binding", | ||
"version": "0.0.10", | ||
"version": "0.0.11", | ||
"description": "Node binding for rspack", | ||
@@ -20,7 +20,9 @@ "main": "binding.js", | ||
"@napi-rs/cli": "^2.6.2", | ||
"why-is-node-running": "2.2.1" | ||
"why-is-node-running": "2.2.1", | ||
"npm-run-all": "4.1.5" | ||
}, | ||
"scripts": { | ||
"build": "napi build --platform --js false --dts binding.d.ts --config napirs.rc.json", | ||
"build:release:all": "pnpm build:release && pnpm build:release:x64 && pnpm build:release:linux", | ||
"build:debug": "napi build --platform --js false --dts binding.d.ts --config napirs.rc.json", | ||
"build:debug:x64": "napi build --platform --js false --dts binding.d.ts --config napirs.rc.json --target x86_64-apple-darwin", | ||
"build:release:all": "run-p build:release build:release:x64 build:release:linux", | ||
"build:release": "napi build --release --platform --js false --dts binding.d.ts --config napirs.rc.json", | ||
@@ -27,0 +29,0 @@ "build:release:x64": "napi build --release --platform --js false --dts binding.d.ts --config napirs.rc.json --target x86_64-apple-darwin", |
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
158581322
579
2
3
4