@rspack/core
Advanced tools
Comparing version 1.1.5 to 1.1.6
@@ -1,10 +0,8 @@ | ||
import { BuiltinPluginName } from "@rspack/binding"; | ||
export declare const DeterministicModuleIdsPlugin: { | ||
new (): { | ||
name: BuiltinPluginName; | ||
_args: []; | ||
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined; | ||
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin; | ||
apply(compiler: import("..").Compiler): void; | ||
}; | ||
}; | ||
import { type BuiltinPlugin, BuiltinPluginName } from "@rspack/binding"; | ||
import type { Compiler } from "../Compiler"; | ||
import { RspackBuiltinPlugin } from "./base"; | ||
export declare class DeterministicModuleIdsPlugin extends RspackBuiltinPlugin { | ||
name: BuiltinPluginName; | ||
affectedHooks: "compilation"; | ||
raw(compiler: Compiler): BuiltinPlugin; | ||
} |
@@ -1,11 +0,10 @@ | ||
import { BuiltinPluginName } from "@rspack/binding"; | ||
import type { Externals } from ".."; | ||
export declare const ExternalsPlugin: { | ||
new (type: string, externals: Externals): { | ||
name: BuiltinPluginName; | ||
_args: [type: string, externals: Externals]; | ||
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined; | ||
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin; | ||
apply(compiler: import("..").Compiler): void; | ||
}; | ||
}; | ||
import { type BuiltinPlugin, BuiltinPluginName } from "@rspack/binding"; | ||
import type { Compiler, Externals } from ".."; | ||
import { RspackBuiltinPlugin } from "./base"; | ||
export declare class ExternalsPlugin extends RspackBuiltinPlugin { | ||
private type; | ||
private externals; | ||
name: BuiltinPluginName; | ||
constructor(type: string, externals: Externals); | ||
raw(compiler: Compiler): BuiltinPlugin | undefined; | ||
} |
@@ -1,10 +0,8 @@ | ||
import { BuiltinPluginName } from "@rspack/binding"; | ||
export declare const NaturalModuleIdsPlugin: { | ||
new (): { | ||
name: BuiltinPluginName; | ||
_args: []; | ||
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined; | ||
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin; | ||
apply(compiler: import("..").Compiler): void; | ||
}; | ||
}; | ||
import { type BuiltinPlugin, BuiltinPluginName } from "@rspack/binding"; | ||
import type { Compiler } from "../Compiler"; | ||
import { RspackBuiltinPlugin } from "./base"; | ||
export declare class NaturalModuleIdsPlugin extends RspackBuiltinPlugin { | ||
name: BuiltinPluginName; | ||
affectedHooks: "compilation"; | ||
raw(compiler: Compiler): BuiltinPlugin; | ||
} |
@@ -29,3 +29,3 @@ /** | ||
import type { EntryNormalized, OutputNormalized, RspackOptionsNormalized, RspackPluginInstance } from "./config"; | ||
import type { InputFileSystem, OutputFileSystem, WatchFileSystem } from "./util/fs"; | ||
import type { InputFileSystem, IntermediateFileSystem, OutputFileSystem, WatchFileSystem } from "./util/fs"; | ||
export interface AssetEmittedInfo { | ||
@@ -83,3 +83,3 @@ content: Buffer; | ||
inputFileSystem: InputFileSystem | null; | ||
intermediateFileSystem: any; | ||
intermediateFileSystem: IntermediateFileSystem | null; | ||
outputFileSystem: OutputFileSystem | null; | ||
@@ -86,0 +86,0 @@ watchFileSystem: WatchFileSystem | null; |
@@ -144,2 +144,3 @@ "use strict"; | ||
const parseMeta = this.__internal__parseMeta; | ||
this.addDependency(filepath); | ||
let { publicPath } = this._compilation.outputOptions; | ||
@@ -146,0 +147,0 @@ if (typeof options.publicPath === "string") { |
import type { NodeFsStats, ThreadsafeNodeFS } from "@rspack/binding"; | ||
import { type IStats, type OutputFileSystem } from "./util/fs"; | ||
declare class ThreadsafeWritableNodeFS implements ThreadsafeNodeFS { | ||
import { type IStats, type IntermediateFileSystem, type OutputFileSystem } from "./util/fs"; | ||
declare class ThreadsafeOutputNodeFS implements ThreadsafeNodeFS { | ||
writeFile: (name: string, content: Buffer) => Promise<void> | void; | ||
@@ -13,6 +13,18 @@ removeFile: (name: string) => Promise<void> | void; | ||
lstat: (name: string) => Promise<NodeFsStats | void> | NodeFsStats | void; | ||
open: (name: string, flags: string) => Promise<number | void> | number | void; | ||
rename: (from: string, to: string) => Promise<void> | void; | ||
close: (fd: number) => Promise<void> | void; | ||
write: (fd: number, content: Buffer, position: number) => Promise<number | void> | number | void; | ||
writeAll: (fd: number, content: Buffer) => Promise<number | void> | number | void; | ||
read: (fd: number, length: number, position: number) => Promise<Buffer | void> | Buffer | void; | ||
readUntil: (fd: number, code: number, position: number) => Promise<Buffer | void> | Buffer | void; | ||
readToEnd: (fd: number, position: number) => Promise<Buffer | void> | Buffer | void; | ||
constructor(fs?: OutputFileSystem); | ||
static __to_binding(fs?: OutputFileSystem): ThreadsafeWritableNodeFS; | ||
static __to_binding(fs?: OutputFileSystem): ThreadsafeOutputNodeFS; | ||
static __to_binding_stat(stat: IStats): NodeFsStats; | ||
} | ||
export { ThreadsafeWritableNodeFS }; | ||
declare class ThreadsafeIntermediateNodeFS extends ThreadsafeOutputNodeFS { | ||
constructor(fs?: IntermediateFileSystem); | ||
static __to_binding(fs?: IntermediateFileSystem): ThreadsafeIntermediateNodeFS; | ||
} | ||
export { ThreadsafeOutputNodeFS, ThreadsafeIntermediateNodeFS }; |
@@ -15,3 +15,3 @@ /** | ||
import type { WatchOptions } from "./config"; | ||
import type { InputFileSystem, WatchFileSystem } from "./util/fs"; | ||
import type { InputFileSystem, IntermediateFileSystem, WatchFileSystem } from "./util/fs"; | ||
export interface MultiCompilerOptions { | ||
@@ -44,7 +44,7 @@ /** | ||
get watchFileSystem(): WatchFileSystem; | ||
get intermediateFileSystem(): void; | ||
get intermediateFileSystem(): IntermediateFileSystem; | ||
set inputFileSystem(value: InputFileSystem); | ||
set outputFileSystem(value: typeof import("fs")); | ||
set watchFileSystem(value: WatchFileSystem); | ||
set intermediateFileSystem(value: void); | ||
set intermediateFileSystem(value: IntermediateFileSystem); | ||
getInfrastructureLogger(name: string): import("./logging/Logger").Logger; | ||
@@ -51,0 +51,0 @@ /** |
@@ -72,3 +72,3 @@ /** | ||
export interface OutputFileSystem { | ||
writeFile: (arg0: string, arg1: string | Buffer, arg2: (arg0?: null | NodeJS.ErrnoException) => void) => void; | ||
writeFile: (arg0: string | number, arg1: string | Buffer, arg2: (arg0?: null | NodeJS.ErrnoException) => void) => void; | ||
mkdir: (arg0: string, arg1: (arg0?: null | NodeJS.ErrnoException) => void) => void; | ||
@@ -299,2 +299,37 @@ readdir: (arg0: string, arg1: (arg0?: null | NodeJS.ErrnoException, arg1?: (string | Buffer)[] | IDirent[]) => void) => void; | ||
}; | ||
export type IntermediateFileSystem = InputFileSystem & OutputFileSystem & IntermediateFileSystemExtras; | ||
export type WriteStreamOptions = { | ||
flags?: string; | ||
encoding?: "ascii" | "utf8" | "utf-8" | "utf16le" | "utf-16le" | "ucs2" | "ucs-2" | "latin1" | "binary" | "base64" | "base64url" | "hex"; | ||
fd?: any; | ||
mode?: number; | ||
}; | ||
export type MakeDirectoryOptions = { | ||
recursive?: boolean; | ||
mode?: string | number; | ||
}; | ||
export type MkdirSync = (path: PathLike, options: MakeDirectoryOptions) => undefined | string; | ||
export type ReadAsyncOptions<TBuffer extends ArrayBufferView = Buffer> = { | ||
offset?: number; | ||
length?: number; | ||
position?: null | number | bigint; | ||
buffer?: TBuffer; | ||
}; | ||
export type Read<TBuffer extends ArrayBufferView = Buffer> = (fd: number, options: ReadAsyncOptions<TBuffer>, callback: (err: null | NodeJS.ErrnoException, bytesRead: number, buffer: TBuffer) => void) => void; | ||
export type WriteAsyncOptions<TBuffer extends ArrayBufferView = Buffer> = { | ||
offset?: number; | ||
length?: number; | ||
position?: null | number | bigint; | ||
buffer?: TBuffer; | ||
}; | ||
export type Write<TBuffer extends ArrayBufferView = Buffer> = (fd: number, content: Buffer, options: WriteAsyncOptions<TBuffer>, callback: (err: null | NodeJS.ErrnoException, bytesWrite: number, buffer: TBuffer) => void) => void; | ||
export type Open = (file: PathLike, flags: undefined | string | number, callback: (arg0: null | NodeJS.ErrnoException, arg1?: number) => void) => void; | ||
export type IntermediateFileSystemExtras = { | ||
rename: (arg0: PathLike, arg1: PathLike, arg2: (arg0: null | NodeJS.ErrnoException) => void) => void; | ||
mkdirSync: MkdirSync; | ||
write: Write<Buffer>; | ||
open: Open; | ||
read: Read<Buffer>; | ||
close: (arg0: number, arg1: (arg0: null | NodeJS.ErrnoException) => void) => void; | ||
}; | ||
export declare function rmrf(fs: OutputFileSystem, p: string, callback: (err?: Error | null) => void): void; | ||
@@ -301,0 +336,0 @@ export declare const mkdirp: (fs: OutputFileSystem, p: string, callback: (error?: Error) => void) => void; |
{ | ||
"name": "@rspack/core", | ||
"version": "1.1.5", | ||
"version": "1.1.6", | ||
"webpackVersion": "5.75.0", | ||
@@ -64,3 +64,3 @@ "license": "MIT", | ||
"caniuse-lite": "^1.0.30001616", | ||
"@rspack/binding": "1.1.5" | ||
"@rspack/binding": "1.1.6" | ||
}, | ||
@@ -67,0 +67,0 @@ "peerDependencies": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
1953015
52028
+ Added@rspack/binding@1.1.6(transitive)
+ Added@rspack/binding-darwin-arm64@1.1.6(transitive)
+ Added@rspack/binding-darwin-x64@1.1.6(transitive)
+ Added@rspack/binding-linux-arm64-gnu@1.1.6(transitive)
+ Added@rspack/binding-linux-arm64-musl@1.1.6(transitive)
+ Added@rspack/binding-linux-x64-gnu@1.1.6(transitive)
+ Added@rspack/binding-linux-x64-musl@1.1.6(transitive)
+ Added@rspack/binding-win32-arm64-msvc@1.1.6(transitive)
+ Added@rspack/binding-win32-ia32-msvc@1.1.6(transitive)
+ Added@rspack/binding-win32-x64-msvc@1.1.6(transitive)
- Removed@rspack/binding@1.1.5(transitive)
- Removed@rspack/binding-darwin-arm64@1.1.5(transitive)
- Removed@rspack/binding-darwin-x64@1.1.5(transitive)
- Removed@rspack/binding-linux-arm64-gnu@1.1.5(transitive)
- Removed@rspack/binding-linux-arm64-musl@1.1.5(transitive)
- Removed@rspack/binding-linux-x64-gnu@1.1.5(transitive)
- Removed@rspack/binding-linux-x64-musl@1.1.5(transitive)
- Removed@rspack/binding-win32-arm64-msvc@1.1.5(transitive)
- Removed@rspack/binding-win32-ia32-msvc@1.1.5(transitive)
- Removed@rspack/binding-win32-x64-msvc@1.1.5(transitive)
Updated@rspack/binding@1.1.6