Comparing version 3.29.3 to 4.4.1
/* | ||
@license | ||
Rollup.js v3.29.3 | ||
Sun, 24 Sep 2023 05:31:36 GMT - commit 353e4628284b1ef4d8a8b47d895881e5ce6546f4 | ||
Rollup.js v4.4.1 | ||
Tue, 14 Nov 2023 05:24:21 GMT - commit 01d8c9d1b68919c2c429427ae7e60f503a8bb5f4 | ||
@@ -6,0 +6,0 @@ https://github.com/rollup/rollup |
/* | ||
@license | ||
Rollup.js v3.29.3 | ||
Sun, 24 Sep 2023 05:31:36 GMT - commit 353e4628284b1ef4d8a8b47d895881e5ce6546f4 | ||
Rollup.js v4.4.1 | ||
Tue, 14 Nov 2023 05:24:21 GMT - commit 01d8c9d1b68919c2c429427ae7e60f503a8bb5f4 | ||
@@ -11,2 +11,4 @@ https://github.com/rollup/rollup | ||
export { version as VERSION, defineConfig, rollup, watch } from './shared/node-entry.js'; | ||
import './shared/parseAst.js'; | ||
import '../native.js'; | ||
import 'node:path'; | ||
@@ -16,4 +18,3 @@ import 'path'; | ||
import 'node:perf_hooks'; | ||
import 'node:crypto'; | ||
import 'node:fs/promises'; | ||
import 'tty'; |
/* | ||
@license | ||
Rollup.js v3.29.3 | ||
Sun, 24 Sep 2023 05:31:36 GMT - commit 353e4628284b1ef4d8a8b47d895881e5ce6546f4 | ||
Rollup.js v4.4.1 | ||
Tue, 14 Nov 2023 05:24:21 GMT - commit 01d8c9d1b68919c2c429427ae7e60f503a8bb5f4 | ||
@@ -6,0 +6,0 @@ https://github.com/rollup/rollup |
/* | ||
@license | ||
Rollup.js v3.29.3 | ||
Sun, 24 Sep 2023 05:31:36 GMT - commit 353e4628284b1ef4d8a8b47d895881e5ce6546f4 | ||
Rollup.js v4.4.1 | ||
Tue, 14 Nov 2023 05:24:21 GMT - commit 01d8c9d1b68919c2c429427ae7e60f503a8bb5f4 | ||
@@ -19,2 +19,3 @@ https://github.com/rollup/rollup | ||
require('./shared/rollup.js'); | ||
require('./shared/parseAst.js'); | ||
const loadConfigFile_js = require('./shared/loadConfigFile.js'); | ||
@@ -24,3 +25,3 @@ require('tty'); | ||
require('node:perf_hooks'); | ||
require('node:crypto'); | ||
require('./native.js'); | ||
require('./getLogFilter.js'); | ||
@@ -27,0 +28,0 @@ |
@@ -18,4 +18,2 @@ export const VERSION: string; | ||
export type RollupWarning = RollupLog; | ||
export interface RollupLog { | ||
@@ -60,3 +58,3 @@ binding?: string; | ||
sources: string[]; | ||
sourcesContent?: (string | null)[]; | ||
sourcesContent?: string[]; | ||
version: number; | ||
@@ -72,3 +70,3 @@ x_google_ignoreList?: number[]; | ||
sources: string[]; | ||
sourcesContent?: (string | null)[]; | ||
sourcesContent?: string[]; | ||
version: number; | ||
@@ -90,3 +88,3 @@ x_google_ignoreList?: number[]; | ||
sources: string[]; | ||
sourcesContent: (string | null)[]; | ||
sourcesContent?: string[]; | ||
version: number; | ||
@@ -100,3 +98,3 @@ toString(): string; | ||
interface ModuleOptions { | ||
assertions: Record<string, string>; | ||
attributes: Record<string, string>; | ||
meta: CustomPluginOptions; | ||
@@ -108,3 +106,3 @@ moduleSideEffects: boolean | 'no-treeshake'; | ||
export interface SourceDescription extends Partial<PartialNull<ModuleOptions>> { | ||
ast?: AcornNode; | ||
ast?: AstNode; | ||
code: string; | ||
@@ -115,3 +113,3 @@ map?: SourceMapInput; | ||
export interface TransformModuleJSON { | ||
ast?: AcornNode; | ||
ast?: AstNode; | ||
code: string; | ||
@@ -127,3 +125,3 @@ // note if plugins use new this.cache to opt-out auto transform cache | ||
export interface ModuleJSON extends TransformModuleJSON, ModuleOptions { | ||
ast: AcornNode; | ||
ast: AstNode; | ||
dependencies: string[]; | ||
@@ -184,3 +182,3 @@ id: string; | ||
interface ModuleInfo extends ModuleOptions { | ||
ast: AcornNode | null; | ||
ast: AstNode | null; | ||
code: string | null; | ||
@@ -193,4 +191,2 @@ dynamicImporters: readonly string[]; | ||
hasDefaultExport: boolean | null; | ||
/** @deprecated Use `moduleSideEffects` instead */ | ||
hasModuleSideEffects: boolean | 'no-treeshake'; | ||
id: string; | ||
@@ -218,2 +214,17 @@ implicitlyLoadedAfterOneOf: readonly string[]; | ||
export type ParseAst = ( | ||
input: string, | ||
options?: { allowReturnOutsideFunction?: boolean } | ||
) => AstNode; | ||
// declare AbortSignal here for environments without DOM lib or @types/node | ||
declare global { | ||
interface AbortSignal {} | ||
} | ||
export type ParseAstAsync = ( | ||
input: string, | ||
options?: { allowReturnOutsideFunction?: boolean; signal?: AbortSignal } | ||
) => Promise<AstNode>; | ||
export interface PluginContext extends MinimalPluginContext { | ||
@@ -233,5 +244,3 @@ addWatchFile: (id: string) => void; | ||
) => Promise<ModuleInfo>; | ||
/** @deprecated Use `this.getModuleIds` instead */ | ||
moduleIds: IterableIterator<string>; | ||
parse: (input: string, options?: any) => AcornNode; | ||
parse: ParseAst; | ||
resolve: ( | ||
@@ -241,3 +250,3 @@ source: string, | ||
options?: { | ||
assertions?: Record<string, string>; | ||
attributes?: Record<string, string>; | ||
custom?: CustomPluginOptions; | ||
@@ -281,3 +290,3 @@ isEntry?: boolean; | ||
importer: string | undefined, | ||
options: { assertions: Record<string, string>; custom?: CustomPluginOptions; isEntry: boolean } | ||
options: { attributes: Record<string, string>; custom?: CustomPluginOptions; isEntry: boolean } | ||
) => ResolveIdResult; | ||
@@ -288,3 +297,3 @@ | ||
options: { | ||
ast: AcornNode; | ||
ast: AstNode; | ||
code: string; | ||
@@ -305,4 +314,2 @@ id: string; | ||
export type IsPureModule = (id: string) => boolean | NullValue; | ||
export type HasModuleSideEffects = (id: string, external: boolean) => boolean; | ||
@@ -342,5 +349,5 @@ | ||
this: PluginContext, | ||
specifier: string | AcornNode, | ||
specifier: string | AstNode, | ||
importer: string, | ||
options: { assertions: Record<string, string> } | ||
options: { attributes: Record<string, string> } | ||
) => ResolveIdResult; | ||
@@ -586,4 +593,2 @@ | ||
export interface InputOptions { | ||
acorn?: Record<string, unknown>; | ||
acornInjectPlugins?: ((...arguments_: any[]) => unknown)[] | ((...arguments_: any[]) => unknown); | ||
cache?: boolean | RollupCache; | ||
@@ -594,12 +599,6 @@ context?: string; | ||
external?: ExternalOption; | ||
/** @deprecated Use the "inlineDynamicImports" output option instead. */ | ||
inlineDynamicImports?: boolean; | ||
input?: InputOption; | ||
logLevel?: LogLevelOption; | ||
makeAbsoluteExternalsRelative?: boolean | 'ifRelativeSource'; | ||
/** @deprecated Use the "manualChunks" output option instead. */ | ||
manualChunks?: ManualChunksOption; | ||
maxParallelFileOps?: number; | ||
/** @deprecated Use the "maxParallelFileOps" option instead. */ | ||
maxParallelFileReads?: number; | ||
moduleContext?: ((id: string) => string | NullValue) | { [id: string]: string }; | ||
@@ -611,4 +610,2 @@ onLog?: LogHandlerWithDefault; | ||
preserveEntrySignatures?: PreserveEntrySignaturesOption; | ||
/** @deprecated Use the "preserveModules" output option instead. */ | ||
preserveModules?: boolean; | ||
preserveSymlinks?: boolean; | ||
@@ -626,4 +623,2 @@ shimMissingExports?: boolean; | ||
export interface NormalizedInputOptions { | ||
acorn: Record<string, unknown>; | ||
acornInjectPlugins: (() => unknown)[]; | ||
cache: false | undefined | RollupCache; | ||
@@ -634,20 +629,11 @@ context: string; | ||
external: IsExternal; | ||
/** @deprecated Use the "inlineDynamicImports" output option instead. */ | ||
inlineDynamicImports: boolean | undefined; | ||
input: string[] | { [entryAlias: string]: string }; | ||
logLevel: LogLevelOption; | ||
makeAbsoluteExternalsRelative: boolean | 'ifRelativeSource'; | ||
/** @deprecated Use the "manualChunks" output option instead. */ | ||
manualChunks: ManualChunksOption | undefined; | ||
maxParallelFileOps: number; | ||
/** @deprecated Use the "maxParallelFileOps" option instead. */ | ||
maxParallelFileReads: number; | ||
moduleContext: (id: string) => string; | ||
onLog: LogHandler; | ||
onwarn: (warning: RollupLog) => void; | ||
perf: boolean; | ||
plugins: Plugin[]; | ||
preserveEntrySignatures: PreserveEntrySignaturesOption; | ||
/** @deprecated Use the "preserveModules" output option instead. */ | ||
preserveModules: boolean | undefined; | ||
preserveSymlinks: boolean; | ||
@@ -728,13 +714,11 @@ shimMissingExports: boolean; | ||
dir?: string; | ||
/** @deprecated Use the "renderDynamicImport" plugin hook instead. */ | ||
dynamicImportFunction?: string; | ||
dynamicImportInCjs?: boolean; | ||
entryFileNames?: string | ((chunkInfo: PreRenderedChunk) => string); | ||
esModule?: boolean | 'if-default-prop'; | ||
/** @deprecated This option is no longer needed and ignored. */ | ||
experimentalDeepDynamicChunkOptimization?: boolean; | ||
experimentalMinChunkSize?: number; | ||
exports?: 'default' | 'named' | 'none' | 'auto'; | ||
extend?: boolean; | ||
/** @deprecated Use "externalImportAttributes" instead. */ | ||
externalImportAssertions?: boolean; | ||
externalImportAttributes?: boolean; | ||
externalLiveBindings?: boolean; | ||
@@ -756,4 +740,2 @@ // only required for bundle.write | ||
name?: string; | ||
/** @deprecated Use "generatedCode.symbols" instead. */ | ||
namespaceToStringTag?: boolean; | ||
noConflict?: boolean; | ||
@@ -763,4 +745,2 @@ outro?: string | AddonFunction; | ||
plugins?: OutputPluginOption; | ||
/** @deprecated Use "generatedCode.constBindings" instead. */ | ||
preferConst?: boolean; | ||
preserveModules?: boolean; | ||
@@ -788,13 +768,11 @@ preserveModulesRoot?: string; | ||
dir: string | undefined; | ||
/** @deprecated Use the "renderDynamicImport" plugin hook instead. */ | ||
dynamicImportFunction: string | undefined; | ||
dynamicImportInCjs: boolean; | ||
entryFileNames: string | ((chunkInfo: PreRenderedChunk) => string); | ||
esModule: boolean | 'if-default-prop'; | ||
/** @deprecated This option is no longer needed and ignored. */ | ||
experimentalDeepDynamicChunkOptimization: boolean; | ||
experimentalMinChunkSize: number; | ||
exports: 'default' | 'named' | 'none' | 'auto'; | ||
extend: boolean; | ||
/** @deprecated Use "externalImportAttributes" instead. */ | ||
externalImportAssertions: boolean; | ||
externalImportAttributes: boolean; | ||
externalLiveBindings: boolean; | ||
@@ -815,4 +793,2 @@ file: string | undefined; | ||
name: string | undefined; | ||
/** @deprecated Use "generatedCode.symbols" instead. */ | ||
namespaceToStringTag: boolean; | ||
noConflict: boolean; | ||
@@ -822,4 +798,2 @@ outro: AddonFunction; | ||
plugins: OutputPlugin[]; | ||
/** @deprecated Use "generatedCode.constBindings" instead. */ | ||
preferConst: boolean; | ||
preserveModules: boolean; | ||
@@ -1028,3 +1002,3 @@ preserveModulesRoot: string | undefined; | ||
interface AcornNode { | ||
interface AstNode { | ||
end: number; | ||
@@ -1031,0 +1005,0 @@ start: number; |
/* | ||
@license | ||
Rollup.js v3.29.3 | ||
Sun, 24 Sep 2023 05:31:36 GMT - commit 353e4628284b1ef4d8a8b47d895881e5ce6546f4 | ||
Rollup.js v4.4.1 | ||
Tue, 14 Nov 2023 05:24:21 GMT - commit 01d8c9d1b68919c2c429427ae7e60f503a8bb5f4 | ||
@@ -16,8 +16,9 @@ https://github.com/rollup/rollup | ||
const watchProxy = require('./shared/watch-proxy.js'); | ||
require('./shared/parseAst.js'); | ||
require('./native.js'); | ||
require('node:path'); | ||
require('node:process'); | ||
require('tty'); | ||
require('node:path'); | ||
require('path'); | ||
require('node:perf_hooks'); | ||
require('node:crypto'); | ||
require('node:fs/promises'); | ||
@@ -24,0 +25,0 @@ require('./shared/fsevents-importer.js'); |
/* | ||
@license | ||
Rollup.js v3.29.3 | ||
Sun, 24 Sep 2023 05:31:36 GMT - commit 353e4628284b1ef4d8a8b47d895881e5ce6546f4 | ||
Rollup.js v4.4.1 | ||
Tue, 14 Nov 2023 05:24:21 GMT - commit 01d8c9d1b68919c2c429427ae7e60f503a8bb5f4 | ||
@@ -6,0 +6,0 @@ https://github.com/rollup/rollup |
/* | ||
@license | ||
Rollup.js v3.29.3 | ||
Sun, 24 Sep 2023 05:31:36 GMT - commit 353e4628284b1ef4d8a8b47d895881e5ce6546f4 | ||
Rollup.js v4.4.1 | ||
Tue, 14 Nov 2023 05:24:21 GMT - commit 01d8c9d1b68919c2c429427ae7e60f503a8bb5f4 | ||
@@ -17,2 +17,3 @@ https://github.com/rollup/rollup | ||
const rollup = require('./rollup.js'); | ||
const parseAst_js = require('./parseAst.js'); | ||
const getLogFilter_js = require('../getLogFilter.js'); | ||
@@ -61,6 +62,6 @@ | ||
switch (level) { | ||
case rollup.LOGLEVEL_WARN: { | ||
case parseAst_js.LOGLEVEL_WARN: { | ||
return add(log); | ||
} | ||
case rollup.LOGLEVEL_DEBUG: { | ||
case parseAst_js.LOGLEVEL_DEBUG: { | ||
if (!silent) { | ||
@@ -88,3 +89,3 @@ rollup.stderr(rollup.bold(rollup.blue(log.message))); | ||
title(`Missing shims for Node.js built-ins`); | ||
rollup.stderr(`Creating a browser bundle that depends on ${rollup.printQuotedStringList(warning.ids)}. You might need to include https://github.com/FredKSchott/rollup-plugin-polyfill-node`); | ||
rollup.stderr(`Creating a browser bundle that depends on ${parseAst_js.printQuotedStringList(warning.ids)}. You might need to include https://github.com/FredKSchott/rollup-plugin-polyfill-node`); | ||
}, | ||
@@ -101,3 +102,3 @@ UNKNOWN_OPTION(warning) { | ||
for (const warning of displayed) { | ||
rollup.stderr(warning.ids.map(rollup.relativeId).join(' -> ')); | ||
rollup.stderr(warning.ids.map(parseAst_js.relativeId).join(' -> ')); | ||
} | ||
@@ -110,7 +111,7 @@ if (warnings.length > displayed.length) { | ||
title(`Generated${warnings.length === 1 ? ' an' : ''} empty ${warnings.length > 1 ? 'chunks' : 'chunk'}`); | ||
rollup.stderr(rollup.printQuotedStringList(warnings.map(warning => warning.names[0]))); | ||
rollup.stderr(parseAst_js.printQuotedStringList(warnings.map(warning => warning.names[0]))); | ||
}, | ||
EVAL(warnings) { | ||
title('Use of eval is strongly discouraged'); | ||
info(rollup.getRollupUrl(rollup.URL_AVOIDING_EVAL)); | ||
info(parseAst_js.getRollupUrl(parseAst_js.URL_AVOIDING_EVAL)); | ||
showTruncatedWarnings(warnings); | ||
@@ -120,6 +121,6 @@ }, | ||
title('Missing exports'); | ||
info(rollup.getRollupUrl(rollup.URL_NAME_IS_NOT_EXPORTED)); | ||
info(parseAst_js.getRollupUrl(parseAst_js.URL_NAME_IS_NOT_EXPORTED)); | ||
for (const warning of warnings) { | ||
rollup.stderr(rollup.bold(rollup.relativeId(warning.id))); | ||
rollup.stderr(`${warning.binding} is not exported by ${rollup.relativeId(warning.exporter)}`); | ||
rollup.stderr(rollup.bold(parseAst_js.relativeId(warning.id))); | ||
rollup.stderr(`${warning.binding} is not exported by ${parseAst_js.relativeId(warning.exporter)}`); | ||
rollup.stderr(rollup.gray(warning.frame)); | ||
@@ -130,3 +131,3 @@ } | ||
title(`Missing global variable ${warnings.length > 1 ? 'names' : 'name'}`); | ||
info(rollup.getRollupUrl(rollup.URL_OUTPUT_GLOBALS)); | ||
info(parseAst_js.getRollupUrl(parseAst_js.URL_OUTPUT_GLOBALS)); | ||
rollup.stderr(`Use "output.globals" to specify browser global variable names corresponding to external modules:`); | ||
@@ -139,3 +140,3 @@ for (const warning of warnings) { | ||
title('Mixing named and default exports'); | ||
info(rollup.getRollupUrl(rollup.URL_OUTPUT_EXPORTS)); | ||
info(parseAst_js.getRollupUrl(parseAst_js.URL_OUTPUT_EXPORTS)); | ||
rollup.stderr(rollup.bold('The following entry modules are using named and default exports together:')); | ||
@@ -145,3 +146,3 @@ warnings.sort((a, b) => (a.id < b.id ? -1 : 1)); | ||
for (const warning of displayedWarnings) { | ||
rollup.stderr(rollup.relativeId(warning.id)); | ||
rollup.stderr(parseAst_js.relativeId(warning.id)); | ||
} | ||
@@ -156,3 +157,3 @@ if (displayedWarnings.length < warnings.length) { | ||
for (const warning of warnings) { | ||
rollup.stderr(`"${rollup.bold(rollup.relativeId(warning.reexporter))}" re-exports "${warning.binding}" from both "${rollup.relativeId(warning.ids[0])}" and "${rollup.relativeId(warning.ids[1])}" (will be ignored).`); | ||
rollup.stderr(`"${rollup.bold(parseAst_js.relativeId(warning.reexporter))}" re-exports "${warning.binding}" from both "${parseAst_js.relativeId(warning.ids[0])}" and "${parseAst_js.relativeId(warning.ids[1])}" (will be ignored).`); | ||
} | ||
@@ -172,3 +173,3 @@ }, | ||
if (id) { | ||
let loc = rollup.relativeId(id); | ||
let loc = parseAst_js.relativeId(id); | ||
if (warning.loc) { | ||
@@ -187,9 +188,9 @@ loc += `: (${warning.loc.line}:${warning.loc.column})`; | ||
title(`Broken sourcemap`); | ||
info(rollup.getRollupUrl(rollup.URL_SOURCEMAP_IS_LIKELY_TO_BE_INCORRECT)); | ||
info(parseAst_js.getRollupUrl(parseAst_js.URL_SOURCEMAP_IS_LIKELY_TO_BE_INCORRECT)); | ||
const plugins = [...new Set(warnings.map(({ plugin }) => plugin).filter(Boolean))]; | ||
rollup.stderr(`Plugins that transform code (such as ${rollup.printQuotedStringList(plugins)}) should generate accompanying sourcemaps.`); | ||
rollup.stderr(`Plugins that transform code (such as ${parseAst_js.printQuotedStringList(plugins)}) should generate accompanying sourcemaps.`); | ||
}, | ||
THIS_IS_UNDEFINED(warnings) { | ||
title('"this" has been rewritten to "undefined"'); | ||
info(rollup.getRollupUrl(rollup.URL_THIS_IS_UNDEFINED)); | ||
info(parseAst_js.getRollupUrl(parseAst_js.URL_THIS_IS_UNDEFINED)); | ||
showTruncatedWarnings(warnings); | ||
@@ -199,9 +200,9 @@ }, | ||
title('Unresolved dependencies'); | ||
info(rollup.getRollupUrl(rollup.URL_TREATING_MODULE_AS_EXTERNAL_DEPENDENCY)); | ||
info(parseAst_js.getRollupUrl(parseAst_js.URL_TREATING_MODULE_AS_EXTERNAL_DEPENDENCY)); | ||
const dependencies = new Map(); | ||
for (const warning of warnings) { | ||
rollup.getOrCreate(dependencies, rollup.relativeId(warning.exporter), rollup.getNewArray).push(rollup.relativeId(warning.id)); | ||
rollup.getOrCreate(dependencies, parseAst_js.relativeId(warning.exporter), rollup.getNewArray).push(parseAst_js.relativeId(warning.id)); | ||
} | ||
for (const [dependency, importers] of dependencies) { | ||
rollup.stderr(`${rollup.bold(dependency)} (imported by ${rollup.printQuotedStringList(importers)})`); | ||
rollup.stderr(`${rollup.bold(dependency)} (imported by ${parseAst_js.printQuotedStringList(importers)})`); | ||
} | ||
@@ -216,3 +217,3 @@ }, | ||
'" but never used in ' + | ||
rollup.printQuotedStringList(warning.ids.map(rollup.relativeId)) + | ||
parseAst_js.printQuotedStringList(warning.ids.map(parseAst_js.relativeId)) + | ||
'.'); | ||
@@ -224,8 +225,8 @@ } | ||
if (log.url) { | ||
info(rollup.getRollupUrl(log.url)); | ||
info(parseAst_js.getRollupUrl(log.url)); | ||
} | ||
const id = log.loc?.file || log.id; | ||
if (id) { | ||
const loc = log.loc ? `${rollup.relativeId(id)} (${log.loc.line}:${log.loc.column})` : rollup.relativeId(id); | ||
rollup.stderr(rollup.bold(rollup.relativeId(loc))); | ||
const loc = log.loc ? `${parseAst_js.relativeId(id)} (${log.loc.line}:${log.loc.column})` : parseAst_js.relativeId(id); | ||
rollup.stderr(rollup.bold(parseAst_js.relativeId(loc))); | ||
} | ||
@@ -261,3 +262,3 @@ if (log.frame) | ||
for (const { key: id, items } of displayedByModule) { | ||
rollup.stderr(rollup.bold(rollup.relativeId(id))); | ||
rollup.stderr(rollup.bold(parseAst_js.relativeId(id))); | ||
rollup.stderr(rollup.gray(items[0].frame)); | ||
@@ -467,3 +468,3 @@ if (items.length > 1) { | ||
if (error_.message.includes('not defined in ES module scope')) { | ||
return rollup.error(rollup.logCannotBundleConfigAsEsm(error_)); | ||
return parseAst_js.error(parseAst_js.logCannotBundleConfigAsEsm(error_)); | ||
} | ||
@@ -490,6 +491,6 @@ throw error_; | ||
if (cannotLoadEsm) { | ||
return rollup.error(rollup.logCannotLoadConfigAsCjs(error_)); | ||
return parseAst_js.error(parseAst_js.logCannotLoadConfigAsCjs(error_)); | ||
} | ||
if (error_.message.includes('not defined in ES module scope')) { | ||
return rollup.error(rollup.logCannotLoadConfigAsEsm(error_)); | ||
return parseAst_js.error(parseAst_js.logCannotLoadConfigAsEsm(error_)); | ||
} | ||
@@ -535,3 +536,3 @@ throw error_; | ||
if (!silent && warnings.count > 0) { | ||
rollup.stderr(rollup.bold(`loaded ${rollup.relativeId(fileName)} with warnings`)); | ||
rollup.stderr(rollup.bold(`loaded ${parseAst_js.relativeId(fileName)} with warnings`)); | ||
warnings.flush(); | ||
@@ -547,4 +548,3 @@ } | ||
finally { | ||
// Not awaiting here saves some ms while potentially hiding a non-critical error | ||
promises.unlink(bundledFileName); | ||
promises.unlink(bundledFileName).catch(error => console.warn(error?.message || error)); | ||
} | ||
@@ -557,3 +557,3 @@ } | ||
if (Object.keys(config).length === 0) { | ||
return rollup.error(rollup.logMissingConfig()); | ||
return parseAst_js.error(parseAst_js.logMissingConfig()); | ||
} | ||
@@ -560,0 +560,0 @@ return Array.isArray(config) ? config : [config]; |
/* | ||
@license | ||
Rollup.js v3.29.3 | ||
Sun, 24 Sep 2023 05:31:36 GMT - commit 353e4628284b1ef4d8a8b47d895881e5ce6546f4 | ||
Rollup.js v4.4.1 | ||
Tue, 14 Nov 2023 05:24:21 GMT - commit 01d8c9d1b68919c2c429427ae7e60f503a8bb5f4 | ||
@@ -19,2 +19,3 @@ https://github.com/rollup/rollup | ||
const rollup = require('./rollup.js'); | ||
const parseAst_js = require('./parseAst.js'); | ||
const loadConfigFile_js = require('./loadConfigFile.js'); | ||
@@ -33,3 +34,3 @@ const node_child_process = require('node:child_process'); | ||
require('node:perf_hooks'); | ||
require('node:crypto'); | ||
require('../native.js'); | ||
require('node:url'); | ||
@@ -516,3 +517,3 @@ require('../getLogFilter.js'); | ||
} | ||
rollup.stderr(rollup.cyan$1(`bundles ${rollup.bold(input)} → ${rollup.bold(event.output.map(rollup.relativeId).join(', '))}...`)); | ||
rollup.stderr(rollup.cyan$1(`bundles ${rollup.bold(input)} → ${rollup.bold(event.output.map(parseAst_js.relativeId).join(', '))}...`)); | ||
} | ||
@@ -525,3 +526,3 @@ runWatchHook('onBundleStart'); | ||
if (!silent) | ||
rollup.stderr(rollup.green(`created ${rollup.bold(event.output.map(rollup.relativeId).join(', '))} in ${rollup.bold(cli.prettyMilliseconds(event.duration))}`)); | ||
rollup.stderr(rollup.green(`created ${rollup.bold(event.output.map(parseAst_js.relativeId).join(', '))} in ${rollup.bold(cli.prettyMilliseconds(event.duration))}`)); | ||
runWatchHook('onBundleEnd'); | ||
@@ -528,0 +529,0 @@ if (event.result && event.result.getTimings) { |
/* | ||
@license | ||
Rollup.js v3.29.3 | ||
Sun, 24 Sep 2023 05:31:36 GMT - commit 353e4628284b1ef4d8a8b47d895881e5ce6546f4 | ||
Rollup.js v4.4.1 | ||
Tue, 14 Nov 2023 05:24:21 GMT - commit 01d8c9d1b68919c2c429427ae7e60f503a8bb5f4 | ||
@@ -13,2 +13,3 @@ https://github.com/rollup/rollup | ||
const rollup = require('./rollup.js'); | ||
const parseAst_js = require('./parseAst.js'); | ||
const fseventsImporter = require('./fsevents-importer.js'); | ||
@@ -80,3 +81,3 @@ | ||
if (watchOptionsList.length === 0) { | ||
return rollup.error(rollup.logInvalidOption('watch', rollup.URL_WATCH, 'there must be at least one config where "watch" is not set to "false"')); | ||
return parseAst_js.error(parseAst_js.logInvalidOption('watch', parseAst_js.URL_WATCH, 'there must be at least one config where "watch" is not set to "false"')); | ||
} | ||
@@ -83,0 +84,0 @@ await fseventsImporter.loadFsEvents(); |
/* | ||
@license | ||
Rollup.js v3.29.3 | ||
Sun, 24 Sep 2023 05:31:36 GMT - commit 353e4628284b1ef4d8a8b47d895881e5ce6546f4 | ||
Rollup.js v4.4.1 | ||
Tue, 14 Nov 2023 05:24:21 GMT - commit 01d8c9d1b68919c2c429427ae7e60f503a8bb5f4 | ||
@@ -19,6 +19,7 @@ https://github.com/rollup/rollup | ||
const index = require('./index.js'); | ||
require('./parseAst.js'); | ||
require('../native.js'); | ||
require('tty'); | ||
require('path'); | ||
require('node:perf_hooks'); | ||
require('node:crypto'); | ||
require('node:fs/promises'); | ||
@@ -25,0 +26,0 @@ require('fs'); |
@@ -55,67 +55,2 @@ # Rollup core license | ||
## acorn | ||
License: MIT | ||
By: Marijn Haverbeke, Ingvar Stepanyan, Adrian Heine | ||
Repository: https://github.com/acornjs/acorn.git | ||
> MIT License | ||
> | ||
> Copyright (C) 2012-2022 by various contributors (see AUTHORS) | ||
> | ||
> Permission is hereby granted, free of charge, to any person obtaining a copy | ||
> of this software and associated documentation files (the "Software"), to deal | ||
> in the Software without restriction, including without limitation the rights | ||
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
> copies of the Software, and to permit persons to whom the Software is | ||
> furnished to do so, subject to the following conditions: | ||
> | ||
> The above copyright notice and this permission notice shall be included in | ||
> all copies or substantial portions of the Software. | ||
> | ||
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
> THE SOFTWARE. | ||
--------------------------------------- | ||
## acorn-import-assertions | ||
License: MIT | ||
By: Sven Sauleau | ||
Repository: https://github.com/xtuc/acorn-import-assertions | ||
--------------------------------------- | ||
## acorn-walk | ||
License: MIT | ||
By: Marijn Haverbeke, Ingvar Stepanyan, Adrian Heine | ||
Repository: https://github.com/acornjs/acorn.git | ||
> MIT License | ||
> | ||
> Copyright (C) 2012-2020 by various contributors (see AUTHORS) | ||
> | ||
> Permission is hereby granted, free of charge, to any person obtaining a copy | ||
> of this software and associated documentation files (the "Software"), to deal | ||
> in the Software without restriction, including without limitation the rights | ||
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
> copies of the Software, and to permit persons to whom the Software is | ||
> furnished to do so, subject to the following conditions: | ||
> | ||
> The above copyright notice and this permission notice shall be included in | ||
> all copies or substantial portions of the Software. | ||
> | ||
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
> THE SOFTWARE. | ||
--------------------------------------- | ||
## anymatch | ||
@@ -122,0 +57,0 @@ License: ISC |
169
package.json
{ | ||
"name": "rollup", | ||
"version": "3.29.3", | ||
"version": "4.4.1", | ||
"description": "Next-generation ES module bundler", | ||
@@ -11,23 +11,62 @@ "main": "dist/rollup.js", | ||
}, | ||
"napi": { | ||
"name": "rollup", | ||
"package": { | ||
"name": "@rollup/rollup" | ||
}, | ||
"triples": { | ||
"defaults": false, | ||
"additional": [ | ||
"aarch64-apple-darwin", | ||
"aarch64-linux-android", | ||
"aarch64-pc-windows-msvc", | ||
"aarch64-unknown-linux-gnu", | ||
"aarch64-unknown-linux-musl", | ||
"armv7-linux-androideabi", | ||
"armv7-unknown-linux-gnueabihf", | ||
"i686-pc-windows-msvc", | ||
"x86_64-apple-darwin", | ||
"x86_64-pc-windows-msvc", | ||
"x86_64-unknown-linux-gnu", | ||
"x86_64-unknown-linux-musl" | ||
] | ||
} | ||
}, | ||
"scripts": { | ||
"build": "rollup --config rollup.config.ts --configPlugin typescript", | ||
"build": "npm run build:wasm && concurrently -c green,blue \"npm run build:napi -- --release\" \"npm:build:js\" && npm run build:copy-native", | ||
"build:quick": "concurrently -c green,blue 'npm:build:napi' 'npm:build:cjs' && npm run build:copy-native", | ||
"build:napi": "napi build --platform --dts native.d.ts --js false --cargo-cwd rust -p bindings_napi --cargo-name bindings_napi", | ||
"build:wasm": "wasm-pack build rust/bindings_wasm --out-dir ../../wasm --target web --no-pack && shx rm wasm/.gitignore", | ||
"build:wasm:node": "wasm-pack build rust/bindings_wasm --out-dir ../../wasm-node --target nodejs --no-pack && shx rm wasm-node/.gitignore", | ||
"update:napi": "npm run build:napi && npm run build:copy-native", | ||
"build:js": "rollup --config rollup.config.ts --configPlugin typescript --forceExit", | ||
"build:js:node": "rollup --config rollup.config.ts --configPlugin typescript --configIsBuildNode --forceExit", | ||
"build:prepare": "concurrently -c green,blue \"npm run build:napi -- --release\" \"npm:build:js:node\" && npm run build:copy-native", | ||
"update:js": "npm run build:js && npm run build:copy-native", | ||
"build:copy-native": "shx mkdir -p dist && shx cp rollup.*.node dist/", | ||
"dev": "vitepress dev docs", | ||
"build:cjs": "rollup --config rollup.config.ts --configPlugin typescript --configTest", | ||
"build:bootstrap": "node dist/bin/rollup --config rollup.config.ts --configPlugin typescript", | ||
"build:cjs": "rollup --config rollup.config.ts --configPlugin typescript --configTest --forceExit", | ||
"build:bootstrap": "shx mv dist dist-build && node dist-build/bin/rollup --config rollup.config.ts --configPlugin typescript --forceExit && shx rm -rf dist-build", | ||
"build:docs": "vitepress build docs", | ||
"preview:docs": "vitepress preview docs", | ||
"ci:lint": "concurrently 'npm:lint:js:nofix' 'npm:lint:markdown:nofix'", | ||
"ci:test": "npm run build:cjs && npm run build:bootstrap && npm run test:all", | ||
"ci:test:only": "npm run build:cjs && npm run build:bootstrap && npm run test:only", | ||
"ci:coverage": "npm run build:cjs && npm run build:bootstrap && nyc --reporter lcovonly mocha", | ||
"lint": "concurrently -c red,green 'npm:lint:js' 'npm:lint:markdown'", | ||
"ci:artifacts": "napi artifacts", | ||
"ci:lint": "concurrently -c red,yellow,green,blue 'npm:lint:js:nofix' 'npm:lint:native-js' 'npm:lint:markdown:nofix' 'npm:lint:rust:nofix'", | ||
"ci:test:only": "npm run build:cjs && npm run build:copy-native && npm run build:bootstrap && npm run build:copy-native && npm run test:only", | ||
"ci:test:all": "npm run build:cjs && npm run build:copy-native && npm run build:bootstrap && npm run build:copy-native && concurrently --kill-others-on-fail -c green,blue,magenta,cyan 'npm:test:only' 'npm:test:typescript' 'npm:test:leak' 'npm:test:browser'", | ||
"ci:coverage": "npm run build:cjs && npm run build:copy-native && npm run build:bootstrap && npm run build:copy-native && nyc --reporter lcovonly mocha", | ||
"lint": "concurrently -c red,yellow,green,blue 'npm:lint:js' 'npm:lint:native-js' 'npm:lint:markdown' 'npm:lint:rust'", | ||
"lint:js": "eslint . --fix --cache", | ||
"lint:js:nofix": "eslint . --cache", | ||
"lint:native-js": "node scripts/lint-native-js.js", | ||
"lint:markdown": "prettier --write \"**/*.md\"", | ||
"lint:markdown:nofix": "prettier --check \"**/*.md\"", | ||
"lint:rust": "cd rust && cargo fmt && cargo clippy --fix --allow-dirty", | ||
"lint:rust:nofix": "cd rust && cargo fmt --check && cargo clippy", | ||
"perf": "npm run build:cjs && node --expose-gc scripts/perf.js", | ||
"perf:init": "node scripts/perf-init.js", | ||
"prepare": "husky install && node scripts/check-release.js || npm run build", | ||
"prepublishOnly": "node scripts/check-release.js", | ||
"release": "node scripts/release.js", | ||
"prepare": "husky install && node scripts/check-release.js || npm run build:prepare", | ||
"prepublishOnly": "node scripts/check-release.js && node scripts/prepublish.js", | ||
"postpublish": "node scripts/postpublish.js", | ||
"prepublish:napi": "napi prepublish --skip-gh-release", | ||
"release": "node scripts/prepare-release.js", | ||
"release:docs": "git fetch --update-head-ok origin master:master && git branch --force documentation-published master && git push origin documentation-published", | ||
@@ -64,3 +103,15 @@ "test": "npm run build && npm run test:all", | ||
"optionalDependencies": { | ||
"fsevents": "~2.3.2" | ||
"fsevents": "~2.3.2", | ||
"@rollup/rollup-darwin-arm64": "4.4.1", | ||
"@rollup/rollup-android-arm64": "4.4.1", | ||
"@rollup/rollup-win32-arm64-msvc": "4.4.1", | ||
"@rollup/rollup-linux-arm64-gnu": "4.4.1", | ||
"@rollup/rollup-linux-arm64-musl": "4.4.1", | ||
"@rollup/rollup-android-arm-eabi": "4.4.1", | ||
"@rollup/rollup-linux-arm-gnueabihf": "4.4.1", | ||
"@rollup/rollup-win32-ia32-msvc": "4.4.1", | ||
"@rollup/rollup-darwin-x64": "4.4.1", | ||
"@rollup/rollup-win32-x64-msvc": "4.4.1", | ||
"@rollup/rollup-linux-x64-gnu": "4.4.1", | ||
"@rollup/rollup-linux-x64-musl": "4.4.1" | ||
}, | ||
@@ -71,31 +122,30 @@ "devDependenciesComments": { | ||
"devDependencies": { | ||
"@codemirror/commands": "^6.2.5", | ||
"@codemirror/commands": "^6.3.0", | ||
"@codemirror/lang-javascript": "^6.2.1", | ||
"@codemirror/language": "^6.9.0", | ||
"@codemirror/search": "^6.5.3", | ||
"@codemirror/state": "^6.2.1", | ||
"@codemirror/view": "^6.19.0", | ||
"@codemirror/language": "^6.9.2", | ||
"@codemirror/search": "^6.5.4", | ||
"@codemirror/state": "^6.3.1", | ||
"@codemirror/view": "^6.22.0", | ||
"@jridgewell/sourcemap-codec": "^1.4.15", | ||
"@mermaid-js/mermaid-cli": "^10.4.0", | ||
"@rollup/plugin-alias": "^5.0.0", | ||
"@rollup/plugin-buble": "^1.0.2", | ||
"@rollup/plugin-commonjs": "^25.0.4", | ||
"@rollup/plugin-json": "^6.0.0", | ||
"@rollup/plugin-node-resolve": "^15.2.1", | ||
"@rollup/plugin-replace": "^5.0.2", | ||
"@rollup/plugin-terser": "^0.4.3", | ||
"@rollup/plugin-typescript": "11.1.2", | ||
"@rollup/pluginutils": "^5.0.4", | ||
"@types/estree": "1.0.1", | ||
"@types/mocha": "^10.0.1", | ||
"@types/node": "~14.18.61", | ||
"@types/yargs-parser": "^21.0.0", | ||
"@typescript-eslint/eslint-plugin": "^6.7.2", | ||
"@typescript-eslint/parser": "^6.7.2", | ||
"@mermaid-js/mermaid-cli": "^10.6.0", | ||
"@napi-rs/cli": "^2.16.5", | ||
"@rollup/plugin-alias": "^5.0.1", | ||
"@rollup/plugin-buble": "^1.0.3", | ||
"@rollup/plugin-commonjs": "^25.0.7", | ||
"@rollup/plugin-json": "^6.0.1", | ||
"@rollup/plugin-node-resolve": "^15.2.3", | ||
"@rollup/plugin-replace": "^5.0.5", | ||
"@rollup/plugin-terser": "^0.4.4", | ||
"@rollup/plugin-typescript": "11.1.5", | ||
"@rollup/pluginutils": "^5.0.5", | ||
"@types/estree": "1.0.5", | ||
"@types/mocha": "^10.0.3", | ||
"@types/node": "18.0.0", | ||
"@types/yargs-parser": "^21.0.2", | ||
"@typescript-eslint/eslint-plugin": "^6.10.0", | ||
"@typescript-eslint/parser": "^6.10.0", | ||
"@vue/eslint-config-prettier": "^8.0.0", | ||
"@vue/eslint-config-typescript": "^12.0.0", | ||
"acorn": "^8.10.0", | ||
"acorn": "^8.11.2", | ||
"acorn-import-assertions": "^1.9.0", | ||
"acorn-jsx": "^5.3.2", | ||
"acorn-walk": "^8.2.0", | ||
"buble": "^0.20.0", | ||
@@ -105,13 +155,13 @@ "builtin-modules": "^3.3.0", | ||
"colorette": "^2.0.20", | ||
"concurrently": "^8.2.1", | ||
"core-js": "^3.32.2", | ||
"concurrently": "^8.2.2", | ||
"core-js": "^3.33.2", | ||
"date-time": "^4.0.0", | ||
"es5-shim": "^4.6.7", | ||
"es6-shim": "^0.35.8", | ||
"eslint": "^8.49.0", | ||
"eslint": "^8.53.0", | ||
"eslint-config-prettier": "^9.0.0", | ||
"eslint-plugin-import": "^2.28.1", | ||
"eslint-plugin-prettier": "^5.0.0", | ||
"eslint-plugin-unicorn": "^48.0.1", | ||
"eslint-plugin-vue": "^9.17.0", | ||
"eslint-plugin-import": "^2.29.0", | ||
"eslint-plugin-prettier": "^5.0.1", | ||
"eslint-plugin-unicorn": "^49.0.0", | ||
"eslint-plugin-vue": "^9.18.1", | ||
"fixturify": "^3.0.0", | ||
@@ -121,12 +171,11 @@ "flru": "^1.0.2", | ||
"github-api": "^3.4.0", | ||
"hash.js": "^1.1.7", | ||
"husky": "^8.0.3", | ||
"inquirer": "^9.2.11", | ||
"is-reference": "^3.0.2", | ||
"lint-staged": "^14.0.1", | ||
"lint-staged": "^15.0.2", | ||
"locate-character": "^3.0.0", | ||
"magic-string": "^0.30.3", | ||
"magic-string": "^0.30.5", | ||
"mocha": "^10.2.0", | ||
"nyc": "^15.1.0", | ||
"pinia": "^2.1.6", | ||
"pinia": "^2.1.7", | ||
"prettier": "^3.0.3", | ||
@@ -136,4 +185,4 @@ "pretty-bytes": "^6.1.1", | ||
"requirejs": "^2.3.6", | ||
"rollup": "^3.29.2", | ||
"rollup-plugin-license": "^3.1.0", | ||
"rollup": "^4.3.1", | ||
"rollup-plugin-license": "^3.2.0", | ||
"rollup-plugin-string": "^3.0.0", | ||
@@ -147,8 +196,9 @@ "rollup-plugin-thatworks": "^1.0.4", | ||
"systemjs": "^6.14.2", | ||
"terser": "^5.19.4", | ||
"terser": "^5.24.0", | ||
"tslib": "^2.6.2", | ||
"typescript": "^5.2.2", | ||
"vite": "^4.4.9", | ||
"vitepress": "^1.0.0-rc.14", | ||
"vue": "^3.3.4", | ||
"vite": "^4.5.0", | ||
"vitepress": "^1.0.0-rc.25", | ||
"vue": "^3.3.8", | ||
"wasm-pack": "^0.12.1", | ||
"weak-napi": "^2.0.2", | ||
@@ -158,5 +208,7 @@ "yargs-parser": "^21.1.1" | ||
"overrides": { | ||
"axios": "^1.6.0", | ||
"semver": "^7.5.4" | ||
}, | ||
"files": [ | ||
"dist/*.node", | ||
"dist/**/*.js", | ||
@@ -168,3 +220,3 @@ "dist/*.d.ts", | ||
"engines": { | ||
"node": ">=14.18.0", | ||
"node": ">=18.0.0", | ||
"npm": ">=8.0.0" | ||
@@ -188,4 +240,9 @@ }, | ||
}, | ||
"./parseAst": { | ||
"types": "./dist/parseAst.d.ts", | ||
"require": "./dist/parseAst.js", | ||
"import": "./dist/es/parseAst.js" | ||
}, | ||
"./dist/*": "./dist/*" | ||
} | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
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
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
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
High entropy strings
Supply chain riskContains high entropy strings. This could be a sign of encrypted data, leaked secrets or obfuscated code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
79
28
15
2157467
13
53492