Comparing version 0.13.2-snapshot-4caa0a9-20240927003238 to 0.13.2-snapshot-50d3fda-20241009003304
@@ -245,2 +245,3 @@ type MaybePromise<T> = T | Promise<T> | ||
experimental?: BindingExperimentalOptions | ||
profilerNames?: boolean | ||
} | ||
@@ -396,2 +397,3 @@ | ||
extensions?: Array<string> | ||
extensionAlias?: Array<ExtensionAliasItem> | ||
mainFields?: Array<string> | ||
@@ -448,2 +450,7 @@ mainFiles?: Array<string> | ||
export interface ExtensionAliasItem { | ||
target: string | ||
replacements: Array<string> | ||
} | ||
/** TypeScript Isolated Declarations for Standalone DTS Emit */ | ||
@@ -450,0 +457,0 @@ export declare function isolatedDeclaration(filename: string, sourceText: string, options?: IsolatedDeclarationsOptions | undefined | null): IsolatedDeclarationsResult |
@@ -15,2 +15,3 @@ import type { ObjectSchema } from './types'; | ||
conditionNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; | ||
extensionAlias: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>; | ||
exportsFields: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString, "many">, "many">>; | ||
@@ -27,2 +28,3 @@ extensions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; | ||
conditionNames?: string[] | undefined; | ||
extensionAlias?: Record<string, string[]> | undefined; | ||
exportsFields?: string[][] | undefined; | ||
@@ -39,2 +41,3 @@ extensions?: string[] | undefined; | ||
conditionNames?: string[] | undefined; | ||
extensionAlias?: Record<string, string[]> | undefined; | ||
exportsFields?: string[][] | undefined; | ||
@@ -71,2 +74,3 @@ extensions?: string[] | undefined; | ||
inject: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>>>; | ||
profilerNames: z.ZodOptional<z.ZodBoolean>; | ||
}, { | ||
@@ -76,3 +80,3 @@ external: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; | ||
treeshake: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>; | ||
}>, "input" | "plugins" | "resolve" | "onLog" | "onwarn" | "experimental">>, Omit<z.objectUtil.extendShape<{ | ||
}>, "input" | "plugins" | "resolve" | "onLog" | "onwarn" | "experimental" | "profilerNames">>, Omit<z.objectUtil.extendShape<{ | ||
dir: z.ZodOptional<z.ZodString>; | ||
@@ -178,4 +182,4 @@ exports: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodLiteral<"named">]>, z.ZodLiteral<"default">]>, z.ZodLiteral<"none">]>>; | ||
esModule?: boolean | undefined; | ||
entryFileNames?: string | ((args_0: import("../..").PreRenderedChunk, ...args_1: unknown[]) => string) | undefined; | ||
chunkFileNames?: string | ((args_0: import("../..").PreRenderedChunk, ...args_1: unknown[]) => string) | undefined; | ||
entryFileNames?: string | ((args_0: import("../..").PreRenderedChunk, ...args: unknown[]) => string) | undefined; | ||
chunkFileNames?: string | ((args_0: import("../..").PreRenderedChunk, ...args: unknown[]) => string) | undefined; | ||
assetFileNames?: string | undefined; | ||
@@ -214,4 +218,4 @@ minify?: boolean | undefined; | ||
esModule?: boolean | undefined; | ||
entryFileNames?: string | ((args_0: import("../..").PreRenderedChunk, ...args_1: unknown[]) => string) | undefined; | ||
chunkFileNames?: string | ((args_0: import("../..").PreRenderedChunk, ...args_1: unknown[]) => string) | undefined; | ||
entryFileNames?: string | ((args_0: import("../..").PreRenderedChunk, ...args: unknown[]) => string) | undefined; | ||
chunkFileNames?: string | ((args_0: import("../..").PreRenderedChunk, ...args: unknown[]) => string) | undefined; | ||
assetFileNames?: string | undefined; | ||
@@ -218,0 +222,0 @@ minify?: boolean | undefined; |
export { defineParallelPlugin } from './plugin/parallel-plugin'; | ||
export { experimental_scan as scan } from './rolldown'; | ||
export { transform } from './binding'; | ||
export type { TransformOptions, TransformResult } from './binding'; | ||
export { composeJsPlugins as composePlugins } from './utils/compose-js-plugins'; | ||
export { modulePreloadPolyfillPlugin, dynamicImportVarsPlugin, wasmHelperPlugin, wasmFallbackPlugin, importGlobPlugin, manifestPlugin, loadFallbackPlugin, transformPlugin, aliasPlugin, jsonPlugin, buildImportAnalysisPlugin, replacePlugin, } from './plugin/builtin-plugin'; |
@@ -6,5 +6,11 @@ import type { LoggingFunction, LogHandler, RollupError } from '../rollup'; | ||
import type { NormalizedInputOptions } from '../options/normalized-input-options'; | ||
export interface PluginContextMeta { | ||
rollupVersion: string; | ||
rolldownVersion: string; | ||
watchMode: boolean; | ||
} | ||
export declare class MinimalPluginContext { | ||
debug: LoggingFunction; | ||
info: LoggingFunction; | ||
meta: PluginContextMeta; | ||
warn: LoggingFunction; | ||
@@ -11,0 +17,0 @@ readonly error: (error: RollupError | string) => never; |
@@ -14,2 +14,3 @@ import type { RolldownPluginRec } from '../plugin'; | ||
conditionNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; | ||
extensionAlias: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>; | ||
exportsFields: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString, "many">, "many">>; | ||
@@ -26,2 +27,3 @@ extensions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; | ||
conditionNames?: string[] | undefined; | ||
extensionAlias?: Record<string, string[]> | undefined; | ||
exportsFields?: string[][] | undefined; | ||
@@ -38,2 +40,3 @@ extensions?: string[] | undefined; | ||
conditionNames?: string[] | undefined; | ||
extensionAlias?: Record<string, string[]> | undefined; | ||
exportsFields?: string[][] | undefined; | ||
@@ -70,6 +73,7 @@ extensions?: string[] | undefined; | ||
inject: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>>>; | ||
profilerNames: z.ZodOptional<z.ZodBoolean>; | ||
}, "strict", z.ZodTypeAny, { | ||
input?: string | string[] | Record<string, string> | undefined; | ||
plugins?: RolldownPluginRec[] | undefined; | ||
external?: string | RegExp | (string | RegExp)[] | ((args_0: string, args_1: string | undefined, args_2: boolean, ...args_3: unknown[]) => boolean | void | null | undefined) | undefined; | ||
external?: string | RegExp | (string | RegExp)[] | ((args_0: string, args_1: string | undefined, args_2: boolean, ...args: unknown[]) => boolean | void | null | undefined) | undefined; | ||
resolve?: { | ||
@@ -79,2 +83,3 @@ alias?: Record<string, string> | undefined; | ||
conditionNames?: string[] | undefined; | ||
extensionAlias?: Record<string, string[]> | undefined; | ||
exportsFields?: string[][] | undefined; | ||
@@ -93,4 +98,4 @@ extensions?: string[] | undefined; | ||
logLevel?: "info" | "debug" | "warn" | "silent" | undefined; | ||
onLog?: ((args_0: "info" | "debug" | "warn", args_1: any, args_2: (args_0: "info" | "debug" | "warn" | "error", args_1: any, ...args_2: unknown[]) => unknown, ...args_3: unknown[]) => unknown) | undefined; | ||
onwarn?: ((args_0: any, args_1: (args_0: any, ...args_1: unknown[]) => unknown, ...args_2: unknown[]) => unknown) | undefined; | ||
onLog?: ((args_0: "info" | "debug" | "warn", args_1: any, args_2: (args_0: "info" | "debug" | "warn" | "error", args_1: any, ...args: unknown[]) => unknown, ...args: unknown[]) => unknown) | undefined; | ||
onwarn?: ((args_0: any, args_1: (args_0: any, ...args: unknown[]) => unknown, ...args: unknown[]) => unknown) | undefined; | ||
moduleTypes?: Record<string, "js" | "jsx" | "ts" | "tsx" | "json" | "text" | "base64" | "dataurl" | "binary" | "empty"> | undefined; | ||
@@ -104,6 +109,7 @@ experimental?: { | ||
inject?: Record<string, string | [string, string]> | undefined; | ||
profilerNames?: boolean | undefined; | ||
}, { | ||
input?: string | string[] | Record<string, string> | undefined; | ||
plugins?: RolldownPluginRec[] | undefined; | ||
external?: string | RegExp | (string | RegExp)[] | ((args_0: string, args_1: string | undefined, args_2: boolean, ...args_3: unknown[]) => boolean | void | null | undefined) | undefined; | ||
external?: string | RegExp | (string | RegExp)[] | ((args_0: string, args_1: string | undefined, args_2: boolean, ...args: unknown[]) => boolean | void | null | undefined) | undefined; | ||
resolve?: { | ||
@@ -113,2 +119,3 @@ alias?: Record<string, string> | undefined; | ||
conditionNames?: string[] | undefined; | ||
extensionAlias?: Record<string, string[]> | undefined; | ||
exportsFields?: string[][] | undefined; | ||
@@ -127,4 +134,4 @@ extensions?: string[] | undefined; | ||
logLevel?: "info" | "debug" | "warn" | "silent" | undefined; | ||
onLog?: ((args_0: "info" | "debug" | "warn", args_1: any, args_2: (args_0: "info" | "debug" | "warn" | "error", args_1: any, ...args_2: unknown[]) => unknown, ...args_3: unknown[]) => unknown) | undefined; | ||
onwarn?: ((args_0: any, args_1: (args_0: any, ...args_1: unknown[]) => unknown, ...args_2: unknown[]) => unknown) | undefined; | ||
onLog?: ((args_0: "info" | "debug" | "warn", args_1: any, args_2: (args_0: "info" | "debug" | "warn" | "error", args_1: any, ...args: unknown[]) => unknown, ...args: unknown[]) => unknown) | undefined; | ||
onwarn?: ((args_0: any, args_1: (args_0: any, ...args: unknown[]) => unknown, ...args: unknown[]) => unknown) | undefined; | ||
moduleTypes?: Record<string, "js" | "jsx" | "ts" | "tsx" | "json" | "text" | "base64" | "dataurl" | "binary" | "empty"> | undefined; | ||
@@ -138,2 +145,3 @@ experimental?: { | ||
inject?: Record<string, string | [string, string]> | undefined; | ||
profilerNames?: boolean | undefined; | ||
}>; | ||
@@ -148,2 +156,3 @@ export declare const inputCliOptionsSchema: z.ZodObject<Omit<z.objectUtil.extendShape<{ | ||
conditionNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; | ||
extensionAlias: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>; | ||
exportsFields: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString, "many">, "many">>; | ||
@@ -160,2 +169,3 @@ extensions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; | ||
conditionNames?: string[] | undefined; | ||
extensionAlias?: Record<string, string[]> | undefined; | ||
exportsFields?: string[][] | undefined; | ||
@@ -172,2 +182,3 @@ extensions?: string[] | undefined; | ||
conditionNames?: string[] | undefined; | ||
extensionAlias?: Record<string, string[]> | undefined; | ||
exportsFields?: string[][] | undefined; | ||
@@ -204,2 +215,3 @@ extensions?: string[] | undefined; | ||
inject: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>>>; | ||
profilerNames: z.ZodOptional<z.ZodBoolean>; | ||
}, { | ||
@@ -209,3 +221,3 @@ external: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; | ||
treeshake: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>; | ||
}>, "input" | "plugins" | "resolve" | "onLog" | "onwarn" | "experimental">, "strict", z.ZodTypeAny, { | ||
}>, "input" | "plugins" | "resolve" | "onLog" | "onwarn" | "experimental" | "profilerNames">, "strict", z.ZodTypeAny, { | ||
external?: string[] | undefined; | ||
@@ -212,0 +224,0 @@ cwd?: string | undefined; |
@@ -69,6 +69,6 @@ import type { PreRenderedChunk, RenderedChunk } from '../binding'; | ||
}, "strict", z.ZodTypeAny, { | ||
footer?: string | ((args_0: RenderedChunk, ...args_1: unknown[]) => string | Promise<string>) | undefined; | ||
banner?: string | ((args_0: RenderedChunk, ...args_1: unknown[]) => string | Promise<string>) | undefined; | ||
intro?: string | ((args_0: RenderedChunk, ...args_1: unknown[]) => string | Promise<string>) | undefined; | ||
outro?: string | ((args_0: RenderedChunk, ...args_1: unknown[]) => string | Promise<string>) | undefined; | ||
footer?: string | ((args_0: RenderedChunk, ...args: unknown[]) => string | Promise<string>) | undefined; | ||
banner?: string | ((args_0: RenderedChunk, ...args: unknown[]) => string | Promise<string>) | undefined; | ||
intro?: string | ((args_0: RenderedChunk, ...args: unknown[]) => string | Promise<string>) | undefined; | ||
outro?: string | ((args_0: RenderedChunk, ...args: unknown[]) => string | Promise<string>) | undefined; | ||
name?: string | undefined; | ||
@@ -83,4 +83,4 @@ exports?: "auto" | "named" | "default" | "none" | undefined; | ||
esModule?: boolean | "if-default-prop" | undefined; | ||
entryFileNames?: string | ((args_0: PreRenderedChunk, ...args_1: unknown[]) => string) | undefined; | ||
chunkFileNames?: string | ((args_0: PreRenderedChunk, ...args_1: unknown[]) => string) | undefined; | ||
entryFileNames?: string | ((args_0: PreRenderedChunk, ...args: unknown[]) => string) | undefined; | ||
chunkFileNames?: string | ((args_0: PreRenderedChunk, ...args: unknown[]) => string) | undefined; | ||
assetFileNames?: string | undefined; | ||
@@ -103,6 +103,6 @@ minify?: boolean | undefined; | ||
}, { | ||
footer?: string | ((args_0: RenderedChunk, ...args_1: unknown[]) => string | Promise<string>) | undefined; | ||
banner?: string | ((args_0: RenderedChunk, ...args_1: unknown[]) => string | Promise<string>) | undefined; | ||
intro?: string | ((args_0: RenderedChunk, ...args_1: unknown[]) => string | Promise<string>) | undefined; | ||
outro?: string | ((args_0: RenderedChunk, ...args_1: unknown[]) => string | Promise<string>) | undefined; | ||
footer?: string | ((args_0: RenderedChunk, ...args: unknown[]) => string | Promise<string>) | undefined; | ||
banner?: string | ((args_0: RenderedChunk, ...args: unknown[]) => string | Promise<string>) | undefined; | ||
intro?: string | ((args_0: RenderedChunk, ...args: unknown[]) => string | Promise<string>) | undefined; | ||
outro?: string | ((args_0: RenderedChunk, ...args: unknown[]) => string | Promise<string>) | undefined; | ||
name?: string | undefined; | ||
@@ -117,4 +117,4 @@ exports?: "auto" | "named" | "default" | "none" | undefined; | ||
esModule?: boolean | "if-default-prop" | undefined; | ||
entryFileNames?: string | ((args_0: PreRenderedChunk, ...args_1: unknown[]) => string) | undefined; | ||
chunkFileNames?: string | ((args_0: PreRenderedChunk, ...args_1: unknown[]) => string) | undefined; | ||
entryFileNames?: string | ((args_0: PreRenderedChunk, ...args: unknown[]) => string) | undefined; | ||
chunkFileNames?: string | ((args_0: PreRenderedChunk, ...args: unknown[]) => string) | undefined; | ||
assetFileNames?: string | undefined; | ||
@@ -229,4 +229,4 @@ minify?: boolean | undefined; | ||
esModule?: boolean | undefined; | ||
entryFileNames?: string | ((args_0: PreRenderedChunk, ...args_1: unknown[]) => string) | undefined; | ||
chunkFileNames?: string | ((args_0: PreRenderedChunk, ...args_1: unknown[]) => string) | undefined; | ||
entryFileNames?: string | ((args_0: PreRenderedChunk, ...args: unknown[]) => string) | undefined; | ||
chunkFileNames?: string | ((args_0: PreRenderedChunk, ...args: unknown[]) => string) | undefined; | ||
assetFileNames?: string | undefined; | ||
@@ -253,4 +253,4 @@ minify?: boolean | undefined; | ||
esModule?: boolean | undefined; | ||
entryFileNames?: string | ((args_0: PreRenderedChunk, ...args_1: unknown[]) => string) | undefined; | ||
chunkFileNames?: string | ((args_0: PreRenderedChunk, ...args_1: unknown[]) => string) | undefined; | ||
entryFileNames?: string | ((args_0: PreRenderedChunk, ...args: unknown[]) => string) | undefined; | ||
chunkFileNames?: string | ((args_0: PreRenderedChunk, ...args: unknown[]) => string) | undefined; | ||
assetFileNames?: string | undefined; | ||
@@ -257,0 +257,0 @@ minify?: boolean | undefined; |
@@ -12,3 +12,3 @@ import { BindingPluginContext } from '../binding'; | ||
getModuleInfo(id: string, context: BindingPluginContext): ModuleInfo | null; | ||
getModuleIds(context: BindingPluginContext): IterableIterator<string>; | ||
getModuleIds(context: BindingPluginContext): ArrayIterator<string>; | ||
saveResolveOptions(options: PluginContextResolveOptions): number; | ||
@@ -15,0 +15,0 @@ getSavedResolveOptions(receipt: number): PluginContextResolveOptions | undefined; |
{ | ||
"name": "rolldown", | ||
"version": "0.13.2-snapshot-4caa0a9-20240927003238", | ||
"version": "0.13.2-snapshot-50d3fda-20241009003304", | ||
"description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.", | ||
@@ -106,17 +106,17 @@ "homepage": "https://rolldown.rs/", | ||
"@rolldown/testing": "0.0.1", | ||
"rolldown": "0.13.2-snapshot-4caa0a9-20240927003238" | ||
"rolldown": "0.13.2-snapshot-50d3fda-20241009003304" | ||
}, | ||
"optionalDependencies": { | ||
"@rolldown/binding-darwin-arm64": "0.13.2-snapshot-4caa0a9-20240927003238", | ||
"@rolldown/binding-darwin-x64": "0.13.2-snapshot-4caa0a9-20240927003238", | ||
"@rolldown/binding-freebsd-x64": "0.13.2-snapshot-4caa0a9-20240927003238", | ||
"@rolldown/binding-linux-arm-gnueabihf": "0.13.2-snapshot-4caa0a9-20240927003238", | ||
"@rolldown/binding-linux-x64-gnu": "0.13.2-snapshot-4caa0a9-20240927003238", | ||
"@rolldown/binding-linux-arm64-gnu": "0.13.2-snapshot-4caa0a9-20240927003238", | ||
"@rolldown/binding-linux-x64-musl": "0.13.2-snapshot-4caa0a9-20240927003238", | ||
"@rolldown/binding-wasm32-wasi": "0.13.2-snapshot-4caa0a9-20240927003238", | ||
"@rolldown/binding-win32-arm64-msvc": "0.13.2-snapshot-4caa0a9-20240927003238", | ||
"@rolldown/binding-win32-ia32-msvc": "0.13.2-snapshot-4caa0a9-20240927003238", | ||
"@rolldown/binding-win32-x64-msvc": "0.13.2-snapshot-4caa0a9-20240927003238", | ||
"@rolldown/binding-linux-arm64-musl": "0.13.2-snapshot-4caa0a9-20240927003238" | ||
"@rolldown/binding-darwin-arm64": "0.13.2-snapshot-50d3fda-20241009003304", | ||
"@rolldown/binding-darwin-x64": "0.13.2-snapshot-50d3fda-20241009003304", | ||
"@rolldown/binding-freebsd-x64": "0.13.2-snapshot-50d3fda-20241009003304", | ||
"@rolldown/binding-linux-arm64-gnu": "0.13.2-snapshot-50d3fda-20241009003304", | ||
"@rolldown/binding-linux-arm-gnueabihf": "0.13.2-snapshot-50d3fda-20241009003304", | ||
"@rolldown/binding-linux-arm64-musl": "0.13.2-snapshot-50d3fda-20241009003304", | ||
"@rolldown/binding-linux-x64-gnu": "0.13.2-snapshot-50d3fda-20241009003304", | ||
"@rolldown/binding-wasm32-wasi": "0.13.2-snapshot-50d3fda-20241009003304", | ||
"@rolldown/binding-linux-x64-musl": "0.13.2-snapshot-50d3fda-20241009003304", | ||
"@rolldown/binding-win32-x64-msvc": "0.13.2-snapshot-50d3fda-20241009003304", | ||
"@rolldown/binding-win32-ia32-msvc": "0.13.2-snapshot-50d3fda-20241009003304", | ||
"@rolldown/binding-win32-arm64-msvc": "0.13.2-snapshot-50d3fda-20241009003304" | ||
}, | ||
@@ -123,0 +123,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
641443
15896
100
2