@rollup/wasm-node 4.0.0-12 → 4.0.0-13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.0.0-12
4
- Wed, 23 Aug 2023 14:39:48 GMT - commit b6eec18d711348e3b177ef58dc2836cdf75e0432
3
+ Rollup.js v4.0.0-13
4
+ Thu, 24 Aug 2023 15:47:48 GMT - commit 07d3baeb218f6d1084e9d1b17a429ca84cb92561
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.0.0-12
4
- Wed, 23 Aug 2023 14:39:48 GMT - commit b6eec18d711348e3b177ef58dc2836cdf75e0432
3
+ Rollup.js v4.0.0-13
4
+ Thu, 24 Aug 2023 15:47:48 GMT - commit 07d3baeb218f6d1084e9d1b17a429ca84cb92561
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.0.0-12
4
- Wed, 23 Aug 2023 14:39:48 GMT - commit b6eec18d711348e3b177ef58dc2836cdf75e0432
3
+ Rollup.js v4.0.0-13
4
+ Thu, 24 Aug 2023 15:47:48 GMT - commit 07d3baeb218f6d1084e9d1b17a429ca84cb92561
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
package/dist/rollup.d.ts CHANGED
@@ -100,13 +100,13 @@ interface ModuleOptions {
100
100
  }
101
101
 
102
102
  export interface SourceDescription extends Partial<PartialNull<ModuleOptions>> {
103
- ast?: AcornNode;
103
+ ast?: AstNode;
104
104
  code: string;
105
105
  map?: SourceMapInput;
106
106
  }
107
107
 
108
108
  export interface TransformModuleJSON {
109
- ast?: AcornNode;
109
+ ast?: AstNode;
110
110
  code: string;
111
111
  // note if plugins use new this.cache to opt-out auto transform cache
112
112
  customTransformCache: boolean;
@@ -117,7 +117,7 @@ export interface TransformModuleJSON {
117
117
  }
118
118
 
119
119
  export interface ModuleJSON extends TransformModuleJSON, ModuleOptions {
120
- ast: AcornNode;
120
+ ast: AstNode;
121
121
  dependencies: string[];
122
122
  id: string;
123
123
  resolvedIds: ResolvedIdMap;
@@ -172,7 +172,7 @@ export type EmittedFile = EmittedAsset | EmittedChunk | EmittedPrebuiltChunk;
172
172
  export type EmitFile = (emittedFile: EmittedFile) => string;
173
173
 
174
174
  interface ModuleInfo extends ModuleOptions {
175
- ast: AcornNode | null;
175
+ ast: AstNode | null;
176
176
  code: string | null;
177
177
  dynamicImporters: readonly string[];
178
178
  dynamicallyImportedIdResolutions: readonly ResolvedId[];
@@ -220,8 +220,7 @@ export interface PluginContext extends MinimalPluginContext {
220
220
  ) => Promise<ModuleInfo>;
221
221
  /** @deprecated Use `this.getModuleIds` instead */
222
222
  moduleIds: IterableIterator<string>;
223
- // TODO SWC remove acorn options from this.parse
224
- parse: (input: string, options?: any) => AcornNode;
223
+ parse: (input: string) => AstNode;
225
224
  resolve: (
226
225
  source: string,
227
226
  importer?: string,
@@ -271,7 +270,7 @@ export type ResolveIdHook = (
271
270
  export type ShouldTransformCachedModuleHook = (
272
271
  this: PluginContext,
273
272
  options: {
274
- ast: AcornNode;
273
+ ast: AstNode;
275
274
  code: string;
276
275
  id: string;
277
276
  meta: CustomPluginOptions;
@@ -323,7 +322,7 @@ export type RenderChunkHook = (
323
322
 
324
323
  export type ResolveDynamicImportHook = (
325
324
  this: PluginContext,
326
- specifier: string | AcornNode,
325
+ specifier: string | AstNode,
327
326
  importer: string,
328
327
  options: { assertions: Record<string, string> }
329
328
  ) => ResolveIdResult;
@@ -566,8 +565,6 @@ export type SourcemapIgnoreListOption = (
566
565
  export type InputPluginOption = MaybePromise<Plugin | NullValue | false | InputPluginOption[]>;
567
566
 
568
567
  export interface InputOptions {
569
- acorn?: Record<string, unknown>;
570
- acornInjectPlugins?: ((...arguments_: any[]) => unknown)[] | ((...arguments_: any[]) => unknown);
571
568
  cache?: boolean | RollupCache;
572
569
  context?: string;
573
570
  experimentalCacheExpiry?: number;
@@ -603,8 +600,6 @@ export interface InputOptionsWithPlugins extends InputOptions {
603
600
  }
604
601
 
605
602
  export interface NormalizedInputOptions {
606
- acorn: Record<string, unknown>;
607
- acornInjectPlugins: (() => unknown)[];
608
603
  cache: false | undefined | RollupCache;
609
604
  context: string;
610
605
  experimentalCacheExpiry: number;
@@ -994,7 +989,7 @@ export type RollupWatcher = AwaitingEventEmitter<{
994
989
 
995
990
  export function watch(config: RollupWatchOptions | RollupWatchOptions[]): RollupWatcher;
996
991
 
997
- interface AcornNode {
992
+ interface AstNode {
998
993
  end: number;
999
994
  start: number;
1000
995
  type: string;
package/dist/rollup.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.0.0-12
4
- Wed, 23 Aug 2023 14:39:48 GMT - commit b6eec18d711348e3b177ef58dc2836cdf75e0432
3
+ Rollup.js v4.0.0-13
4
+ Thu, 24 Aug 2023 15:47:48 GMT - commit 07d3baeb218f6d1084e9d1b17a429ca84cb92561
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.0.0-12
4
- Wed, 23 Aug 2023 14:39:48 GMT - commit b6eec18d711348e3b177ef58dc2836cdf75e0432
3
+ Rollup.js v4.0.0-13
4
+ Thu, 24 Aug 2023 15:47:48 GMT - commit 07d3baeb218f6d1084e9d1b17a429ca84cb92561
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.0.0-12
4
- Wed, 23 Aug 2023 14:39:48 GMT - commit b6eec18d711348e3b177ef58dc2836cdf75e0432
3
+ Rollup.js v4.0.0-13
4
+ Thu, 24 Aug 2023 15:47:48 GMT - commit 07d3baeb218f6d1084e9d1b17a429ca84cb92561
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.0.0-12
4
- Wed, 23 Aug 2023 14:39:48 GMT - commit b6eec18d711348e3b177ef58dc2836cdf75e0432
3
+ Rollup.js v4.0.0-13
4
+ Thu, 24 Aug 2023 15:47:48 GMT - commit 07d3baeb218f6d1084e9d1b17a429ca84cb92561
5
5
 
6
6
  https://github.com/rollup/rollup
7
7