@rspack/binding
Advanced tools
Comparing version 1.1.0-beta.0 to 1.1.0
152
binding.d.ts
@@ -22,24 +22,2 @@ /* auto-generated by NAPI-RS */ | ||
} | ||
export class DependenciesBlockDto { | ||
get dependencies(): Array<JsDependency> | ||
get blocks(): Array<DependenciesBlockDto> | ||
} | ||
export type DependenciesBlockDTO = DependenciesBlockDto | ||
export class DependenciesDto { | ||
get fileDependencies(): Array<string> | ||
get addedFileDependencies(): Array<string> | ||
get removedFileDependencies(): Array<string> | ||
get contextDependencies(): Array<string> | ||
get addedContextDependencies(): Array<string> | ||
get removedContextDependencies(): Array<string> | ||
get missingDependencies(): Array<string> | ||
get addedMissingDependencies(): Array<string> | ||
get removedMissingDependencies(): Array<string> | ||
get buildDependencies(): Array<string> | ||
get addedBuildDependencies(): Array<string> | ||
get removedBuildDependencies(): Array<string> | ||
} | ||
export type DependenciesDTO = DependenciesDto | ||
export class EntryDataDto { | ||
@@ -77,4 +55,4 @@ get dependencies(): Array<JsDependency> | ||
getAssetSource(name: string): JsCompatSource | null | ||
get modules(): Array<ModuleDTO> | ||
get builtModules(): Array<ModuleDTO> | ||
get modules(): Array<JsModule> | ||
get builtModules(): Array<JsModule> | ||
getOptimizationBailout(): Array<JsStatsOptimizationBailout> | ||
@@ -97,3 +75,3 @@ getChunks(): Array<JsChunk> | ||
get hash(): string | null | ||
dependencies(): DependenciesDto | ||
dependencies(): JsDependencies | ||
pushDiagnostic(diagnostic: JsRspackDiagnostic): void | ||
@@ -127,4 +105,4 @@ spliceDiagnostic(start: number, end: number, replaceWith: Array<JsRspackDiagnostic>): void | ||
set request(request: string) | ||
get regExp(): RawRegex | undefined | ||
set regExp(rawRegExp: RawRegex | undefined) | ||
get regExp(): RegExp | undefined | ||
set regExp(rawRegExp: RegExp | undefined) | ||
get recursive(): boolean | ||
@@ -140,4 +118,4 @@ set recursive(recursive: boolean) | ||
set request(request: string) | ||
get regExp(): RawRegex | undefined | ||
set regExp(rawRegExp: RawRegex | undefined) | ||
get regExp(): RegExp | undefined | ||
set regExp(rawRegExp: RegExp | undefined) | ||
get recursive(): boolean | ||
@@ -147,2 +125,22 @@ set recursive(recursive: boolean) | ||
export class JsDependencies { | ||
get fileDependencies(): Array<string> | ||
get addedFileDependencies(): Array<string> | ||
get removedFileDependencies(): Array<string> | ||
get contextDependencies(): Array<string> | ||
get addedContextDependencies(): Array<string> | ||
get removedContextDependencies(): Array<string> | ||
get missingDependencies(): Array<string> | ||
get addedMissingDependencies(): Array<string> | ||
get removedMissingDependencies(): Array<string> | ||
get buildDependencies(): Array<string> | ||
get addedBuildDependencies(): Array<string> | ||
get removedBuildDependencies(): Array<string> | ||
} | ||
export class JsDependenciesBlock { | ||
get dependencies(): Array<JsDependency> | ||
get blocks(): Array<JsDependenciesBlock> | ||
} | ||
export class JsDependency { | ||
@@ -174,2 +172,22 @@ get type(): string | ||
export class JsModule { | ||
get context(): string | undefined | ||
get originalSource(): JsCompatSource | undefined | ||
get resource(): string | undefined | ||
get moduleIdentifier(): string | ||
get nameForCondition(): string | undefined | ||
get request(): string | undefined | ||
get userRequest(): string | undefined | ||
set userRequest(val: string) | ||
get rawRequest(): string | undefined | ||
get factoryMeta(): JsFactoryMeta | undefined | ||
get type(): string | ||
get layer(): string | undefined | ||
get blocks(): Array<JsDependenciesBlock> | ||
get dependencies(): Array<JsDependency> | ||
size(ty?: string | undefined | null): number | ||
get modules(): JsModule[] | undefined | ||
get useSourceMap(): boolean | ||
} | ||
export class JsResolver { | ||
@@ -192,20 +210,2 @@ resolveSync(path: string, request: string): string | false | ||
export class ModuleDto { | ||
get context(): string | undefined | ||
get originalSource(): JsCompatSource | undefined | ||
get resource(): string | undefined | ||
get moduleIdentifier(): string | ||
get nameForCondition(): string | undefined | ||
get request(): string | undefined | ||
get userRequest(): string | undefined | ||
get rawRequest(): string | undefined | ||
get factoryMeta(): JsFactoryMeta | undefined | ||
get type(): string | ||
get layer(): string | undefined | ||
get blocks(): Array<DependenciesBlockDto> | ||
size(ty?: string | undefined | null): number | ||
get modules(): ModuleDTO[] | undefined | ||
} | ||
export type ModuleDTO = ModuleDto | ||
export class Rspack { | ||
@@ -220,25 +220,25 @@ constructor(options: RawOptions, builtinPlugins: Array<BuiltinPlugin>, registerJsTaps: RegisterJsTaps, outputFilesystem: ThreadsafeNodeFS, resolverFactoryReference: JsResolverFactory) | ||
export function __chunk_graph_inner_get_chunk_entry_dependent_chunks_iterable(jsChunkUkey: number, compilation: JsCompilation): Array<JsChunk> | ||
export function __chunk_graph_inner_get_chunk_entry_dependent_chunks_iterable(jsChunkUkey: number, jsCompilation: JsCompilation): Array<JsChunk> | ||
export function __chunk_graph_inner_get_chunk_entry_modules(jsChunkUkey: number, compilation: JsCompilation): Array<JsModule> | ||
export function __chunk_graph_inner_get_chunk_entry_modules(jsChunkUkey: number, jsCompilation: JsCompilation): JsModule[] | ||
export function __chunk_graph_inner_get_chunk_modules(jsChunkUkey: number, compilation: JsCompilation): ModuleDTO[] | ||
export function __chunk_graph_inner_get_chunk_modules(jsChunkUkey: number, jsCompilation: JsCompilation): JsModule[] | ||
export function __chunk_graph_inner_get_chunk_modules_iterable_by_source_type(jsChunkUkey: number, sourceType: string, compilation: JsCompilation): Array<JsModule> | ||
export function __chunk_graph_inner_get_chunk_modules_iterable_by_source_type(jsChunkUkey: number, sourceType: string, jsCompilation: JsCompilation): JsModule[] | ||
export function __chunk_group_inner_get_chunk_group(ukey: number, compilation: JsCompilation): JsChunkGroup | ||
export function __chunk_group_inner_get_chunk_group(ukey: number, jsCompilation: JsCompilation): JsChunkGroup | ||
export function __chunk_inner_can_be_initial(jsChunkUkey: number, compilation: JsCompilation): boolean | ||
export function __chunk_inner_can_be_initial(jsChunkUkey: number, jsCompilation: JsCompilation): boolean | ||
export function __chunk_inner_get_all_async_chunks(jsChunkUkey: number, compilation: JsCompilation): Array<JsChunk> | ||
export function __chunk_inner_get_all_async_chunks(jsChunkUkey: number, jsCompilation: JsCompilation): Array<JsChunk> | ||
export function __chunk_inner_get_all_initial_chunks(jsChunkUkey: number, compilation: JsCompilation): Array<JsChunk> | ||
export function __chunk_inner_get_all_initial_chunks(jsChunkUkey: number, jsCompilation: JsCompilation): Array<JsChunk> | ||
export function __chunk_inner_get_all_referenced_chunks(jsChunkUkey: number, compilation: JsCompilation): Array<JsChunk> | ||
export function __chunk_inner_get_all_referenced_chunks(jsChunkUkey: number, jsCompilation: JsCompilation): Array<JsChunk> | ||
export function __chunk_inner_has_runtime(jsChunkUkey: number, compilation: JsCompilation): boolean | ||
export function __chunk_inner_has_runtime(jsChunkUkey: number, jsCompilation: JsCompilation): boolean | ||
export function __chunk_inner_is_only_initial(jsChunkUkey: number, compilation: JsCompilation): boolean | ||
export function __chunk_inner_is_only_initial(jsChunkUkey: number, jsCompilation: JsCompilation): boolean | ||
export function __entrypoint_inner_get_runtime_chunk(ukey: number, compilation: JsCompilation): JsChunk | ||
export function __entrypoint_inner_get_runtime_chunk(ukey: number, jsCompilation: JsCompilation): JsChunk | ||
@@ -337,3 +337,4 @@ export interface BuiltinPlugin { | ||
generator: () => String | ||
cacheable: boolean | ||
dependentHash: boolean | ||
fullHash: boolean | ||
isolate: boolean | ||
@@ -464,3 +465,3 @@ stage: number | ||
export interface JsCacheGroupTestCtx { | ||
module: ModuleDTO | ||
module: JsModule | ||
} | ||
@@ -502,3 +503,3 @@ | ||
export interface JsChunkGroupOrigin { | ||
module?: ModuleDTO | ||
module?: JsModule | undefined | ||
request?: string | ||
@@ -674,2 +675,3 @@ } | ||
loaderState: Readonly<JsLoaderState> | ||
__internal__error?: JsRspackError | ||
} | ||
@@ -690,17 +692,2 @@ | ||
export interface JsModule { | ||
context?: string | ||
originalSource?: JsCompatSource | ||
resource?: string | ||
moduleIdentifier: string | ||
nameForCondition?: string | ||
request?: string | ||
userRequest?: string | ||
rawRequest?: string | ||
factoryMeta?: JsFactoryMeta | ||
type: string | ||
layer?: string | ||
useSourceMap?: boolean | ||
} | ||
export interface JsModuleDescriptor { | ||
@@ -1221,6 +1208,6 @@ identifier: string | ||
export interface RawContextReplacementPluginOptions { | ||
resourceRegExp: RawRegex | ||
resourceRegExp: RegExp | ||
newContentResource?: string | ||
newContentRecursive?: boolean | ||
newContentRegExp?: RawRegex | ||
newContentRegExp?: RegExp | ||
newContentCreateContextMap?: Record<string, string> | ||
@@ -1756,7 +1743,2 @@ } | ||
export interface RawRegex { | ||
source: string | ||
flags: string | ||
} | ||
export interface RawRelated { | ||
@@ -1835,3 +1817,3 @@ sourceMap?: string | ||
string?: string | ||
regexp?: RawRegex | ||
regexp?: RegExp | ||
logical?: Array<RawRuleSetLogicalConditions> | ||
@@ -1838,0 +1820,0 @@ array?: Array<RawRuleSetCondition> |
{ | ||
"name": "@rspack/binding", | ||
"version": "1.1.0-beta.0", | ||
"version": "1.1.0", | ||
"license": "MIT", | ||
@@ -27,11 +27,11 @@ "description": "Node binding for rspack", | ||
"optionalDependencies": { | ||
"@rspack/binding-win32-arm64-msvc": "1.1.0-beta.0", | ||
"@rspack/binding-darwin-arm64": "1.1.0-beta.0", | ||
"@rspack/binding-linux-arm64-gnu": "1.1.0-beta.0", | ||
"@rspack/binding-linux-arm64-musl": "1.1.0-beta.0", | ||
"@rspack/binding-win32-ia32-msvc": "1.1.0-beta.0", | ||
"@rspack/binding-darwin-x64": "1.1.0-beta.0", | ||
"@rspack/binding-win32-x64-msvc": "1.1.0-beta.0", | ||
"@rspack/binding-linux-x64-gnu": "1.1.0-beta.0", | ||
"@rspack/binding-linux-x64-musl": "1.1.0-beta.0" | ||
"@rspack/binding-darwin-arm64": "1.1.0", | ||
"@rspack/binding-win32-arm64-msvc": "1.1.0", | ||
"@rspack/binding-linux-arm64-musl": "1.1.0", | ||
"@rspack/binding-linux-arm64-gnu": "1.1.0", | ||
"@rspack/binding-win32-ia32-msvc": "1.1.0", | ||
"@rspack/binding-darwin-x64": "1.1.0", | ||
"@rspack/binding-linux-x64-gnu": "1.1.0", | ||
"@rspack/binding-win32-x64-msvc": "1.1.0", | ||
"@rspack/binding-linux-x64-musl": "1.1.0" | ||
}, | ||
@@ -38,0 +38,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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
0
71180
2006