Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@rspack/core

Package Overview
Dependencies
Maintainers
2
Versions
1211
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rspack/core - npm Package Compare versions

Comparing version
2.0.2
to
2.0.3
+4
-4
compiled/http-proxy-middleware/index.d.ts

@@ -185,3 +185,3 @@ import * as http from 'node:http';

/**
* Access the internal http-proxy server instance to customize behavior
* Access the internal `httpxy` server instance to customize behavior
*

@@ -211,3 +211,3 @@ * @example

/**
* Listen to http-proxy events
* Listen to `httpxy` events
* @see {@link OnProxyEvent} for available events

@@ -352,3 +352,3 @@ * @example

/**
* Subscribe to {@link https://www.npmjs.com/package/http-proxy#listening-for-proxy-events http-proxy error events} to prevent server from crashing.
* Subscribe to {@link https://github.com/unjs/httpxy#events `httpxy` error events} to prevent server from crashing.
* Errors are logged with {@link https://www.npmjs.com/package/debug debug} library.

@@ -363,3 +363,3 @@ */

/**
* Implements option.on object to subscribe to http-proxy events.
* Implements option.on object to subscribe to `httpxy` events.
*

@@ -366,0 +366,0 @@ * @example

@@ -1,1 +0,1 @@

{"name":"http-proxy-middleware","author":"Steven Chim","version":"4.0.0-beta.6","license":"MIT","types":"index.d.ts","type":"module"}
{"name":"http-proxy-middleware","author":"Steven Chim","version":"4.0.0","license":"MIT","types":"index.d.ts","type":"module"}

@@ -5,4 +5,4 @@ import { type BuiltinPlugin, BuiltinPluginName } from '@rspack/binding';

name: BuiltinPluginName;
affectedHooks: "compilation";
affectedHooks: 'compilation';
raw(): BuiltinPlugin;
}

@@ -5,4 +5,4 @@ import { type BuiltinPlugin, BuiltinPluginName } from '@rspack/binding';

name: BuiltinPluginName;
affectedHooks: "compilation";
affectedHooks: 'compilation';
raw(): BuiltinPlugin;
}

@@ -9,5 +9,5 @@ import { type BuiltinPlugin, BuiltinPluginName } from '@rspack/binding';

name: BuiltinPluginName;
affectedHooks: "make";
affectedHooks: 'make';
constructor(context: string, entry: EntryDynamicNormalized);
raw(compiler: Compiler): BuiltinPlugin | undefined;
}

@@ -6,5 +6,5 @@ import { type BuiltinPlugin, BuiltinPluginName } from '@rspack/binding';

name: BuiltinPluginName;
affectedHooks: "compilation";
affectedHooks: 'compilation';
constructor(global: boolean);
raw(): BuiltinPlugin;
}

@@ -33,5 +33,5 @@ import { type BuiltinPlugin, BuiltinPluginName, type RawHttpUriPluginOptions } from '@rspack/binding';

name: BuiltinPluginName;
affectedHooks: "compilation";
affectedHooks: 'compilation';
constructor(options: HttpUriPluginOptions);
raw(compiler: Compiler): BuiltinPlugin | undefined;
}

@@ -12,5 +12,5 @@ import { type BuiltinPlugin, BuiltinPluginName } from '@rspack/binding';

name: BuiltinPluginName;
affectedHooks: "compilation";
affectedHooks: 'compilation';
raw(): BuiltinPlugin;
static getCompilationHooks(compilation: Compilation): CompilationHooks;
}

@@ -6,5 +6,5 @@ import { type BuiltinPlugin, BuiltinPluginName } from '@rspack/binding';

name: BuiltinPluginName;
affectedHooks: "compilation";
affectedHooks: 'compilation';
constructor(deterministic: boolean);
raw(): BuiltinPlugin;
}

@@ -5,4 +5,4 @@ import { type BuiltinPlugin, BuiltinPluginName } from '@rspack/binding';

name: BuiltinPluginName;
affectedHooks: "compilation";
affectedHooks: 'compilation';
raw(): BuiltinPlugin;
}

@@ -5,4 +5,4 @@ import { type BuiltinPlugin, BuiltinPluginName } from '@rspack/binding';

name: BuiltinPluginName;
affectedHooks: "compilation";
affectedHooks: 'compilation';
raw(): BuiltinPlugin;
}

@@ -5,4 +5,4 @@ import { type BuiltinPlugin, BuiltinPluginName } from '@rspack/binding';

name: BuiltinPluginName;
affectedHooks: "compilation";
affectedHooks: 'compilation';
raw(): BuiltinPlugin;
}

@@ -10,3 +10,3 @@ import { RscClientPlugin } from './RscClientPlugin.js';

createPlugins: () => {
ServerPlugin: new (options?: Omit<RscServerPluginOptions, "coordinator">) => ServerPlugin;
ServerPlugin: new (options?: Omit<RscServerPluginOptions, 'coordinator'>) => ServerPlugin;
ClientPlugin: new () => ClientPlugin;

@@ -18,9 +18,9 @@ };

*/
readonly rsc: "react-server-components";
readonly rsc: 'react-server-components';
/**
* Server Side Rendering layer for app.
*/
readonly ssr: "server-side-rendering";
readonly ssr: 'server-side-rendering';
};
};
export {};

@@ -27,7 +27,14 @@ import type binding from '@rspack/binding';

entryJsFiles: string[];
cssLinkProps: RscCssLinkProps;
}
/** Full RSC manifest (all entries) passed to onManifest. Map from entry name to per-entry manifest. */
export type RscManifest = Record<string, RscManifestPerEntry>;
export type RscCssLinkProps = Record<string, string>;
export type RscCssLinkOptions = {
precedence?: string | false;
props?: RscCssLinkProps;
};
export type RscServerPluginOptions = {
coordinator: Coordinator;
cssLink?: RscCssLinkOptions | null;
onServerComponentChanges?: () => void | Promise<void>;

@@ -34,0 +41,0 @@ onManifest?: (manifest: RscManifest) => void | Promise<void>;

@@ -6,5 +6,5 @@ import { type BuiltinPlugin, BuiltinPluginName } from '@rspack/binding';

name: BuiltinPluginName;
affectedHooks: "compilation";
affectedHooks: 'compilation';
constructor(analyzeSideEffectsFree?: boolean);
raw(): BuiltinPlugin;
}
export declare const SizeLimitsPlugin: {
new (options: {
assetFilter?: (assetFilename: string) => boolean;
hints?: false | "warning" | "error";
hints?: false | 'warning' | 'error';
maxAssetSize?: number;

@@ -11,3 +11,3 @@ maxEntrypointSize?: number;

assetFilter?: (assetFilename: string) => boolean;
hints?: false | "warning" | "error";
hints?: false | 'warning' | 'error';
maxAssetSize?: number;

@@ -14,0 +14,0 @@ maxEntrypointSize?: number;

@@ -8,3 +8,3 @@ import { type BuiltinPlugin, BuiltinPluginName, type RawSplitChunksOptions } from '@rspack/binding';

name: BuiltinPluginName;
affectedHooks: "thisCompilation";
affectedHooks: 'thisCompilation';
constructor(options: OptimizationSplitChunksOptions);

@@ -11,0 +11,0 @@ raw(compiler: Compiler): BuiltinPlugin;

@@ -11,5 +11,5 @@ import { type BuiltinPlugin, BuiltinPluginName } from '@rspack/binding';

name: BuiltinPluginName;
affectedHooks: "compilation";
affectedHooks: 'compilation';
constructor(chunkLoading: ChunkLoading, wasmLoading: WasmLoading, module: OutputModule, workerPublicPath: WorkerPublicPath);
raw(compiler: Compiler): BuiltinPlugin;
}

@@ -238,3 +238,3 @@ /**

*/
get namedChunks(): ReadonlyMap<string, Readonly<binding.Chunk>>;
get namedChunks(): ReadonlyMap<string, Readonly<Chunk>>;
get entries(): Map<string, EntryData>;

@@ -241,0 +241,0 @@ get codeGenerationResults(): binding.CodeGenerationResults;

@@ -14,3 +14,3 @@ /**

*/
export declare const getDefaultTarget: (context: string) => "browserslist" | "web";
export declare const getDefaultTarget: (context: string) => 'browserslist' | 'web';
export type PlatformTargetProperties = {

@@ -17,0 +17,0 @@ /** web platform, importing of http(s) and std: is available */

@@ -47,3 +47,3 @@ declare const rspackVersion: string;

export declare const util: {
createHash: (algorithm: "xxhash64" | "md4" | "native-md4" | (string & {}) | (new () => import("./util/hash/index.js").default)) => import("./util/hash/index.js").default;
createHash: (algorithm: 'xxhash64' | 'md4' | 'native-md4' | (string & {}) | (new () => import("./util/hash/index.js").default)) => import("./util/hash/index.js").default;
cleverMerge: <First, Second>(first: First, second: Second) => First | Second | (First & Second);

@@ -50,0 +50,0 @@ };

@@ -137,4 +137,4 @@ /**

*/
providePromise<T>(identifier: string, etag: Etag | null, computer: () => Promise<T> | T): Promise<{} | T | null>;
providePromise<T>(identifier: string, etag: Etag | null, computer: () => Promise<T> | T): Promise<T | {} | null>;
}
export default CacheFacade;

@@ -48,3 +48,3 @@ /**

get inputFileSystem(): InputFileSystem;
get outputFileSystem(): typeof import("fs");
get outputFileSystem(): typeof import('fs');
get watchFileSystem(): WatchFileSystem;

@@ -51,0 +51,0 @@ get intermediateFileSystem(): IntermediateFileSystem;

export declare function normalizeUrl(url: string): string;
declare function noop(): void;
declare function cssReload(moduleId: string, options: Record<string, any>): typeof noop;
type DebouncedFunction<T extends (...args: any[]) => any> = (...args: Parameters<T>) => void;
declare function cssReload(moduleId: string, options: Record<string, any>): DebouncedFunction<() => void>;
export { cssReload };

@@ -1,1 +0,1 @@

export default function _default(): void;
export default function (): void;

@@ -355,3 +355,3 @@ /**

export declare function createCompilerRuntimeGlobals(compilerOptions?: RspackOptionsNormalized): Record<keyof typeof RuntimeGlobals, string>;
declare const DefaultRuntimeGlobals: Record<"module" | "publicPath" | "chunkName" | "moduleId" | "exports" | "require" | "global" | "system" | "requireScope" | "thisAsExports" | "returnExportsFromRuntime" | "moduleLoaded" | "entryModuleId" | "moduleCache" | "moduleFactories" | "moduleFactoriesAddOnly" | "ensureChunk" | "ensureChunkHandlers" | "ensureChunkIncludeEntries" | "prefetchChunk" | "prefetchChunkHandlers" | "preloadChunk" | "preloadChunkHandlers" | "definePropertyGetters" | "makeNamespaceObject" | "createFakeNamespaceObject" | "compatGetDefaultExport" | "harmonyModuleDecorator" | "nodeModuleDecorator" | "getFullHash" | "wasmInstances" | "instantiateWasm" | "uncaughtErrorHandler" | "scriptNonce" | "loadScript" | "createScript" | "createScriptUrl" | "getTrustedTypesPolicy" | "hasFetchPriority" | "runtimeId" | "getChunkScriptFilename" | "getChunkCssFilename" | "rspackVersion" | "hasCssModules" | "rspackUniqueId" | "getChunkUpdateScriptFilename" | "getChunkUpdateCssFilename" | "startup" | "startupNoDefault" | "startupOnlyAfter" | "startupOnlyBefore" | "chunkCallback" | "startupEntrypoint" | "startupChunkDependencies" | "onChunksLoaded" | "externalInstallChunk" | "interceptModuleExecution" | "shareScopeMap" | "initializeSharing" | "currentRemoteGetScope" | "getUpdateManifestFilename" | "hmrDownloadManifest" | "hmrDownloadUpdateHandlers" | "hmrModuleData" | "hmrInvalidateModuleHandlers" | "hmrRuntimeStatePrefix" | "amdDefine" | "amdOptions" | "hasOwnProperty" | "systemContext" | "baseURI" | "relativeUrl" | "asyncModule" | "asyncModuleExportSymbol" | "makeDeferredNamespaceObject" | "makeDeferredNamespaceObjectSymbol", string>;
declare const DefaultRuntimeGlobals: Record<"amdDefine" | "amdOptions" | "asyncModule" | "asyncModuleExportSymbol" | "baseURI" | "chunkCallback" | "chunkName" | "compatGetDefaultExport" | "createFakeNamespaceObject" | "createScript" | "createScriptUrl" | "currentRemoteGetScope" | "definePropertyGetters" | "ensureChunk" | "ensureChunkHandlers" | "ensureChunkIncludeEntries" | "entryModuleId" | "exports" | "externalInstallChunk" | "getChunkCssFilename" | "getChunkScriptFilename" | "getChunkUpdateCssFilename" | "getChunkUpdateScriptFilename" | "getFullHash" | "getTrustedTypesPolicy" | "getUpdateManifestFilename" | "global" | "harmonyModuleDecorator" | "hasCssModules" | "hasFetchPriority" | "hasOwnProperty" | "hmrDownloadManifest" | "hmrDownloadUpdateHandlers" | "hmrInvalidateModuleHandlers" | "hmrModuleData" | "hmrRuntimeStatePrefix" | "initializeSharing" | "instantiateWasm" | "interceptModuleExecution" | "loadScript" | "makeDeferredNamespaceObject" | "makeDeferredNamespaceObjectSymbol" | "makeNamespaceObject" | "module" | "moduleCache" | "moduleFactories" | "moduleFactoriesAddOnly" | "moduleId" | "moduleLoaded" | "nodeModuleDecorator" | "onChunksLoaded" | "prefetchChunk" | "prefetchChunkHandlers" | "preloadChunk" | "preloadChunkHandlers" | "publicPath" | "relativeUrl" | "require" | "requireScope" | "returnExportsFromRuntime" | "rspackUniqueId" | "rspackVersion" | "runtimeId" | "scriptNonce" | "shareScopeMap" | "startup" | "startupChunkDependencies" | "startupEntrypoint" | "startupNoDefault" | "startupOnlyAfter" | "startupOnlyBefore" | "system" | "systemContext" | "thisAsExports" | "uncaughtErrorHandler" | "wasmInstances", string>;
export { DefaultRuntimeGlobals as RuntimeGlobals };

@@ -34,3 +34,3 @@ import { type BuiltinPlugin, BuiltinPluginName } from '@rspack/binding';

eager: boolean;
treeShakingMode: "server-calc" | "runtime-infer" | undefined;
treeShakingMode: "runtime-infer" | "server-calc" | undefined;
}][];

@@ -49,3 +49,3 @@ export declare class ConsumeSharedPlugin extends RspackBuiltinPlugin {

eager: boolean;
treeShakingMode: "server-calc" | "runtime-infer" | undefined;
treeShakingMode: "runtime-infer" | "server-calc" | undefined;
}][];

@@ -52,0 +52,0 @@ enhanced: boolean;

@@ -38,6 +38,2 @@ import { type BuiltinPlugin, BuiltinPluginName, type RawProvideOptions } from '@rspack/binding';

} | {
singleton: boolean | undefined;
requiredVersion: string | false | undefined;
strictVersion: boolean | undefined;
treeShakingMode: "server-calc" | "runtime-infer" | undefined;
shareKey: string;

@@ -47,2 +43,6 @@ version: string | false | undefined;

eager: boolean;
singleton: boolean | undefined;
requiredVersion: string | false | undefined;
strictVersion: boolean | undefined;
treeShakingMode: "runtime-infer" | "server-calc" | undefined;
}][];

@@ -49,0 +49,0 @@ export declare class ProvideSharedPlugin<Enhanced extends boolean = false> extends RspackBuiltinPlugin {

@@ -42,3 +42,3 @@ import type { Compiler } from '../Compiler.js';

strictVersion: boolean | undefined;
treeShakingMode: "server-calc" | "runtime-infer" | undefined;
treeShakingMode: "runtime-infer" | "server-calc" | undefined;
};

@@ -56,3 +56,3 @@ }[];

eager: boolean | undefined;
treeShakingMode: "server-calc" | "runtime-infer" | undefined;
treeShakingMode: "runtime-infer" | "server-calc" | undefined;
};

@@ -72,3 +72,3 @@ }[];

eager: boolean | undefined;
treeShakingMode: "server-calc" | "runtime-infer" | undefined;
treeShakingMode: "runtime-infer" | "server-calc" | undefined;
};

@@ -85,3 +85,3 @@ }[];

strictVersion: boolean | undefined;
treeShakingMode: "server-calc" | "runtime-infer" | undefined;
treeShakingMode: "runtime-infer" | "server-calc" | undefined;
};

@@ -88,0 +88,0 @@ }[];

@@ -15,3 +15,3 @@ /**

export declare const compareSelect: <T, R>(getter: Selector<T, R>, comparator: Comparator) => Comparator;
export declare const compareNumbers: (a: number, b: number) => 0 | 1 | -1;
export declare const compareNumbers: (a: number, b: number) => -1 | 0 | 1;
export {};

@@ -16,2 +16,2 @@ /**

*/
export declare const createHash: (algorithm: "xxhash64" | "md4" | "native-md4" | (string & {}) | (new () => Hash)) => Hash;
export declare const createHash: (algorithm: 'xxhash64' | 'md4' | 'native-md4' | (string & {}) | (new () => Hash)) => Hash;

@@ -10,23 +10,50 @@ interface ParsedResource {

(context: string, identifier: string, associatedObjectForCache: object | undefined): string;
bindCache(associatedObjectForCache: object | undefined): ((arg0: string, arg1: string) => string);
bindContextCache(context: string, associatedObjectForCache: object | undefined): ((arg0: string) => string);
/**
* @param {Object=} associatedObjectForCache an object to which the cache will be attached
* @returns {function(string, string): string} cached function
*/
bindCache: (associatedObjectForCache: object | undefined) => ((arg0: string, arg1: string) => string);
/**
* @param {string} context context used to create relative path
* @param {Object=} associatedObjectForCache an object to which the cache will be attached
* @returns {function(string): string} cached function
*/
bindContextCache: (context: string, associatedObjectForCache: object | undefined) => ((arg0: string) => string);
};
export declare const contextify: {
(context: string, identifier: string, associatedObjectForCache: object | undefined): string;
bindCache(associatedObjectForCache: object | undefined): ((arg0: string, arg1: string) => string);
bindContextCache(context: string, associatedObjectForCache: object | undefined): ((arg0: string) => string);
/**
* @param {Object=} associatedObjectForCache an object to which the cache will be attached
* @returns {function(string, string): string} cached function
*/
bindCache: (associatedObjectForCache: object | undefined) => ((arg0: string, arg1: string) => string);
/**
* @param {string} context context used to create relative path
* @param {Object=} associatedObjectForCache an object to which the cache will be attached
* @returns {function(string): string} cached function
*/
bindContextCache: (context: string, associatedObjectForCache: object | undefined) => ((arg0: string) => string);
};
export declare const absolutify: {
(context: string, identifier: string, associatedObjectForCache: object | undefined): string;
bindCache(associatedObjectForCache: object | undefined): ((arg0: string, arg1: string) => string);
bindContextCache(context: string, associatedObjectForCache: object | undefined): ((arg0: string) => string);
/**
* @param {Object=} associatedObjectForCache an object to which the cache will be attached
* @returns {function(string, string): string} cached function
*/
bindCache: (associatedObjectForCache: object | undefined) => ((arg0: string, arg1: string) => string);
/**
* @param {string} context context used to create relative path
* @param {Object=} associatedObjectForCache an object to which the cache will be attached
* @returns {function(string): string} cached function
*/
bindContextCache: (context: string, associatedObjectForCache: object | undefined) => ((arg0: string) => string);
};
export declare const parseResource: {
(str: string, associatedObjectForCache?: object): ParsedResource;
bindCache(associatedObjectForCache: object): (str: string) => ParsedResource;
bindCache: (associatedObjectForCache: object) => (str: string) => ParsedResource;
};
export declare const parseResourceWithoutFragment: {
(str: string, associatedObjectForCache?: object): ParsedResourceWithoutFragment;
bindCache(associatedObjectForCache: object): (str: string) => ParsedResourceWithoutFragment;
bindCache: (associatedObjectForCache: object) => (str: string) => ParsedResourceWithoutFragment;
};
export {};

@@ -238,2 +238,8 @@ /**

) => Rspack.Context;
/**
* Available in server components when using the RSC plugins.
*/
rspackRsc?: {
loadCss(): any;
};
}

@@ -240,0 +246,0 @@

{
"name": "@rspack/core",
"version": "2.0.2",
"version": "2.0.3",
"webpackVersion": "5.75.0",

@@ -43,11 +43,11 @@ "license": "MIT",

"@rsbuild/plugin-node-polyfill": "^1.4.4",
"@rslib/core": "0.21.3",
"@rslib/core": "^0.21.4",
"@rspack/lite-tapable": "1.1.0",
"@swc/types": "0.1.26",
"@types/node": "^20.19.39",
"@types/node": "^20.19.40",
"browserslist-load-config": "^1.0.1",
"browserslist-to-es-version": "^1.4.1",
"connect-next": "^4.0.1",
"enhanced-resolve": "5.21.0",
"http-proxy-middleware": "^4.0.0-beta.6",
"enhanced-resolve": "5.21.2",
"http-proxy-middleware": "^4.0.0",
"memfs": "4.57.2",

@@ -62,3 +62,3 @@ "open": "^11.0.0",

"dependencies": {
"@rspack/binding": "2.0.2"
"@rspack/binding": "2.0.3"
},

@@ -65,0 +65,0 @@ "peerDependencies": {

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display