@rspack/binding
Advanced tools
Comparing version 0.7.2 to 0.7.3-canary-607ec67-20240612123914
112
binding.d.ts
@@ -105,2 +105,16 @@ /* auto-generated by NAPI-RS */ | ||
export function __loader_item_debug(item: ExternalObject<'LoaderItem'>): string | ||
export function __loader_item_get_loader_data(item: ExternalObject<'LoaderItem'>): any | ||
export function __loader_item_get_normal_executed(item: ExternalObject<'LoaderItem'>): boolean | ||
export function __loader_item_get_pitch_executed(item: ExternalObject<'LoaderItem'>): boolean | ||
export function __loader_item_set_loader_data(item: ExternalObject<'LoaderItem'>, data: any): void | ||
export function __loader_item_set_normal_executed(item: ExternalObject<'LoaderItem'>): void | ||
export function __loader_item_set_pitch_executed(item: ExternalObject<'LoaderItem'>): void | ||
export interface BuiltinPlugin { | ||
@@ -180,3 +194,5 @@ name: BuiltinPluginName | ||
JsLoaderRspackPlugin = 'JsLoaderRspackPlugin', | ||
LazyCompilationPlugin = 'LazyCompilationPlugin' | ||
LazyCompilationPlugin = 'LazyCompilationPlugin', | ||
RSCClientEntryRspackPlugin = 'RSCClientEntryRspackPlugin', | ||
RSCClientReferenceManifestRspackPlugin = 'RSCClientReferenceManifestRspackPlugin' | ||
} | ||
@@ -362,2 +378,7 @@ | ||
export interface JsLoaderContext { | ||
resourceData: Readonly<JsResourceData> | ||
/** Will be deprecated. Use module.module_identifier instead */ | ||
_moduleIdentifier: Readonly<string> | ||
_module: JsModule | ||
hot: Readonly<boolean> | ||
/** Content maybe empty in pitching stage */ | ||
@@ -367,6 +388,2 @@ content: null | Buffer | ||
sourceMap?: Buffer | ||
resource: string | ||
resourcePath: string | ||
resourceQuery?: string | ||
resourceFragment?: string | ||
cacheable: boolean | ||
@@ -378,50 +395,18 @@ fileDependencies: Array<string> | ||
assetFilenames: Array<string> | ||
currentLoader: string | ||
isPitching: boolean | ||
/** | ||
* Loader index from JS. | ||
* If loaders are dispatched by JS loader runner, | ||
* then, this field is correspondence with loader index in JS side. | ||
* It is useful when loader dispatched on JS side has an builtin loader, for example: builtin:swc-loader, | ||
* Then this field will be used as an hack to test whether it should return an AST or string. | ||
*/ | ||
loaderIndexFromJs?: number | ||
/** | ||
* Internal additional data, contains more than `String` | ||
* @internal | ||
*/ | ||
additionalDataExternal: ExternalObject<'AdditionalData'> | ||
/** | ||
* Internal loader context | ||
* @internal | ||
*/ | ||
contextExternal: ExternalObject<'LoaderRunnerContext'> | ||
/** | ||
* Internal loader diagnostic | ||
* @internal | ||
*/ | ||
diagnosticsExternal: ExternalObject<'Diagnostic[]'> | ||
/** Will be deprecated. Use module.module_identifier instead */ | ||
_moduleIdentifier: string | ||
_module: JsModule | ||
hot: boolean | ||
loaderItems: Array<JsLoaderItem> | ||
loaderIndex: number | ||
loaderState: Readonly<JsLoaderState> | ||
} | ||
/** Only for dts generation */ | ||
export interface JsLoaderResult { | ||
/** Content in pitching stage can be empty */ | ||
content?: Buffer | ||
fileDependencies: Array<string> | ||
contextDependencies: Array<string> | ||
missingDependencies: Array<string> | ||
buildDependencies: Array<string> | ||
assetFilenames: Array<string> | ||
sourceMap?: Buffer | ||
additionalData?: Buffer | ||
additionalDataExternal: ExternalObject<'AdditionalData'> | ||
cacheable: boolean | ||
/** Used to instruct how rust loaders should execute */ | ||
isPitching: boolean | ||
export interface JsLoaderItem { | ||
request: string | ||
type: string | ||
inner: ExternalObject<'LoaderItem'> | ||
} | ||
export enum JsLoaderState { | ||
Pitching = 'Pitching', | ||
Normal = 'Normal' | ||
} | ||
export interface JsModule { | ||
@@ -892,2 +877,3 @@ context?: string | ||
rspackFuture: RawRspackFuture | ||
rsc: boolean | ||
} | ||
@@ -1109,3 +1095,3 @@ | ||
sideEffects?: boolean | ||
use?: RawModuleRuleUses | ||
use?: RawModuleRuleUse[] | ((arg: RawFuncUseCtx) => RawModuleRuleUse[]) | ||
type?: string | ||
@@ -1139,8 +1125,2 @@ parser?: RawParserOptions | ||
export interface RawModuleRuleUses { | ||
type: "array" | "function" | ||
arrayUse?: Array<RawModuleRuleUse> | ||
funcUse?: (arg: RawFuncUseCtx) => RawModuleRuleUse[] | ||
} | ||
export interface RawNodeOption { | ||
@@ -1179,2 +1159,3 @@ dirname: string | ||
bail: boolean | ||
__references: Record<string, any> | ||
} | ||
@@ -1254,2 +1235,5 @@ | ||
profile: boolean | ||
template: string | ||
tick?: string | Array<string> | ||
progressChars: string | ||
} | ||
@@ -1277,2 +1261,7 @@ | ||
export interface RawReactRoute { | ||
name: ChunkName | ||
import: RoutePath | ||
} | ||
export interface RawRegex { | ||
@@ -1328,2 +1317,10 @@ source: string | ||
export interface RawRscClientEntryRspackPluginOptions { | ||
routes?: Array<RawReactRoute> | ||
} | ||
export interface RawRscClientReferenceManifestRspackPluginOptions { | ||
routes?: Array<RawReactRoute> | ||
} | ||
export interface RawRspackFuture { | ||
@@ -1501,5 +1498,2 @@ | ||
/** Builtin loader runner */ | ||
export function runBuiltinLoader(builtin: string, options: string | undefined | null, loaderContext: JsLoaderContext): Promise<JsLoaderContext> | ||
export interface ThreadsafeNodeFS { | ||
@@ -1506,0 +1500,0 @@ writeFile: (name: string, content: Buffer) => Promise<void> | void |
{ | ||
"name": "@rspack/binding", | ||
"version": "0.7.2", | ||
"version": "0.7.3-canary-607ec67-20240612123914", | ||
"license": "MIT", | ||
@@ -25,11 +25,11 @@ "description": "Node binding for rspack", | ||
"optionalDependencies": { | ||
"@rspack/binding-darwin-arm64": "0.7.2", | ||
"@rspack/binding-win32-arm64-msvc": "0.7.2", | ||
"@rspack/binding-linux-arm64-gnu": "0.7.2", | ||
"@rspack/binding-win32-ia32-msvc": "0.7.2", | ||
"@rspack/binding-linux-arm64-musl": "0.7.2", | ||
"@rspack/binding-darwin-x64": "0.7.2", | ||
"@rspack/binding-win32-x64-msvc": "0.7.2", | ||
"@rspack/binding-linux-x64-musl": "0.7.2", | ||
"@rspack/binding-linux-x64-gnu": "0.7.2" | ||
"@rspack/binding-darwin-arm64": "0.7.3-canary-607ec67-20240612123914", | ||
"@rspack/binding-linux-arm64-gnu": "0.7.3-canary-607ec67-20240612123914", | ||
"@rspack/binding-linux-arm64-musl": "0.7.3-canary-607ec67-20240612123914", | ||
"@rspack/binding-linux-x64-musl": "0.7.3-canary-607ec67-20240612123914", | ||
"@rspack/binding-darwin-x64": "0.7.3-canary-607ec67-20240612123914", | ||
"@rspack/binding-linux-x64-gnu": "0.7.3-canary-607ec67-20240612123914", | ||
"@rspack/binding-win32-arm64-msvc": "0.7.3-canary-607ec67-20240612123914", | ||
"@rspack/binding-win32-x64-msvc": "0.7.3-canary-607ec67-20240612123914", | ||
"@rspack/binding-win32-ia32-msvc": "0.7.3-canary-607ec67-20240612123914" | ||
}, | ||
@@ -36,0 +36,0 @@ "scripts": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
55082
1524