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

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-13
4
- Thu, 24 Aug 2023 15:47:48 GMT - commit 07d3baeb218f6d1084e9d1b17a429ca84cb92561
3
+ Rollup.js v4.0.0-15
4
+ Fri, 15 Sep 2023 13:06:08 GMT - commit 6e6186636ebb169611373a0e430853eb3b6ce8e0
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-13
4
- Thu, 24 Aug 2023 15:47:48 GMT - commit 07d3baeb218f6d1084e9d1b17a429ca84cb92561
3
+ Rollup.js v4.0.0-15
4
+ Fri, 15 Sep 2023 13:06:08 GMT - commit 6e6186636ebb169611373a0e430853eb3b6ce8e0
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-13
4
- Thu, 24 Aug 2023 15:47:48 GMT - commit 07d3baeb218f6d1084e9d1b17a429ca84cb92561
3
+ Rollup.js v4.0.0-15
4
+ Fri, 15 Sep 2023 13:06:08 GMT - commit 6e6186636ebb169611373a0e430853eb3b6ce8e0
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
package/dist/rollup.d.ts CHANGED
@@ -93,7 +93,7 @@ export interface SourceMap {
93
93
  export type SourceMapInput = ExistingRawSourceMap | string | null | { mappings: '' };
94
94
 
95
95
  interface ModuleOptions {
96
- assertions: Record<string, string>;
96
+ attributes: Record<string, string>;
97
97
  meta: CustomPluginOptions;
98
98
  moduleSideEffects: boolean | 'no-treeshake';
99
99
  syntheticNamedExports: boolean | string;
@@ -164,6 +164,7 @@ export interface EmittedPrebuiltChunk {
164
164
  exports?: string[];
165
165
  fileName: string;
166
166
  map?: SourceMap;
167
+ sourcemapFileName?: string;
167
168
  type: 'prebuilt-chunk';
168
169
  }
169
170
 
@@ -225,7 +226,7 @@ export interface PluginContext extends MinimalPluginContext {
225
226
  source: string,
226
227
  importer?: string,
227
228
  options?: {
228
- assertions?: Record<string, string>;
229
+ attributes?: Record<string, string>;
229
230
  custom?: CustomPluginOptions;
230
231
  isEntry?: boolean;
231
232
  skipSelf?: boolean;
@@ -264,7 +265,7 @@ export type ResolveIdHook = (
264
265
  this: PluginContext,
265
266
  source: string,
266
267
  importer: string | undefined,
267
- options: { assertions: Record<string, string>; custom?: CustomPluginOptions; isEntry: boolean }
268
+ options: { attributes: Record<string, string>; custom?: CustomPluginOptions; isEntry: boolean }
268
269
  ) => ResolveIdResult;
269
270
 
270
271
  export type ShouldTransformCachedModuleHook = (
@@ -324,7 +325,7 @@ export type ResolveDynamicImportHook = (
324
325
  this: PluginContext,
325
326
  specifier: string | AstNode,
326
327
  importer: string,
327
- options: { assertions: Record<string, string> }
328
+ options: { attributes: Record<string, string> }
328
329
  ) => ResolveIdResult;
329
330
 
330
331
  export type ResolveImportMetaHook = (
@@ -369,7 +370,7 @@ export type WatchChangeHook = (
369
370
  * ```
370
371
  */
371
372
  // eslint-disable-next-line @typescript-eslint/ban-types
372
- export type PluginImpl<O extends object = object> = (options?: O) => Plugin;
373
+ export type PluginImpl<O extends object = object, A = any> = (options?: O) => Plugin<A>;
373
374
 
374
375
  export interface OutputBundle {
375
376
  [fileName: string]: OutputAsset | OutputChunk;
@@ -497,9 +498,9 @@ export interface OutputPlugin
497
498
  version?: string;
498
499
  }
499
500
 
500
- export interface Plugin extends OutputPlugin, Partial<PluginHooks> {
501
+ export interface Plugin<A = any> extends OutputPlugin, Partial<PluginHooks> {
501
502
  // for inter-plugin communication
502
- api?: any;
503
+ api?: A;
503
504
  }
504
505
 
505
506
  type TreeshakingPreset = 'smallest' | 'safest' | 'recommended';
@@ -708,7 +709,9 @@ export interface OutputOptions {
708
709
  experimentalMinChunkSize?: number;
709
710
  exports?: 'default' | 'named' | 'none' | 'auto';
710
711
  extend?: boolean;
712
+ /** @deprecated Use "externalImportAttributes" instead. */
711
713
  externalImportAssertions?: boolean;
714
+ externalImportAttributes?: boolean;
712
715
  externalLiveBindings?: boolean;
713
716
  // only required for bundle.write
714
717
  file?: string;
@@ -740,6 +743,7 @@ export interface OutputOptions {
740
743
  sourcemapBaseUrl?: string;
741
744
  sourcemapExcludeSources?: boolean;
742
745
  sourcemapFile?: string;
746
+ sourcemapFileNames?: string | ((chunkInfo: PreRenderedChunk) => string);
743
747
  sourcemapIgnoreList?: boolean | SourcemapIgnoreListOption;
744
748
  sourcemapPathTransform?: SourcemapPathTransformOption;
745
749
  strict?: boolean;
@@ -764,7 +768,9 @@ export interface NormalizedOutputOptions {
764
768
  experimentalMinChunkSize: number;
765
769
  exports: 'default' | 'named' | 'none' | 'auto';
766
770
  extend: boolean;
771
+ /** @deprecated Use "externalImportAttributes" instead. */
767
772
  externalImportAssertions: boolean;
773
+ externalImportAttributes: boolean;
768
774
  externalLiveBindings: boolean;
769
775
  file: string | undefined;
770
776
  footer: AddonFunction;
@@ -795,6 +801,7 @@ export interface NormalizedOutputOptions {
795
801
  sourcemapBaseUrl: string | undefined;
796
802
  sourcemapExcludeSources: boolean;
797
803
  sourcemapFile: string | undefined;
804
+ sourcemapFileNames: string | ((chunkInfo: PreRenderedChunk) => string) | undefined;
798
805
  sourcemapIgnoreList: SourcemapIgnoreListOption;
799
806
  sourcemapPathTransform: SourcemapPathTransformOption | undefined;
800
807
  strict: boolean;
@@ -858,6 +865,7 @@ export interface RenderedChunk extends PreRenderedChunk {
858
865
  export interface OutputChunk extends RenderedChunk {
859
866
  code: string;
860
867
  map: SourceMap | null;
868
+ sourcemapFileName: string | null;
861
869
  preliminaryFileName: string;
862
870
  }
863
871
 
package/dist/rollup.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.0.0-13
4
- Thu, 24 Aug 2023 15:47:48 GMT - commit 07d3baeb218f6d1084e9d1b17a429ca84cb92561
3
+ Rollup.js v4.0.0-15
4
+ Fri, 15 Sep 2023 13:06:08 GMT - commit 6e6186636ebb169611373a0e430853eb3b6ce8e0
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-13
4
- Thu, 24 Aug 2023 15:47:48 GMT - commit 07d3baeb218f6d1084e9d1b17a429ca84cb92561
3
+ Rollup.js v4.0.0-15
4
+ Fri, 15 Sep 2023 13:06:08 GMT - commit 6e6186636ebb169611373a0e430853eb3b6ce8e0
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-13
4
- Thu, 24 Aug 2023 15:47:48 GMT - commit 07d3baeb218f6d1084e9d1b17a429ca84cb92561
3
+ Rollup.js v4.0.0-15
4
+ Fri, 15 Sep 2023 13:06:08 GMT - commit 6e6186636ebb169611373a0e430853eb3b6ce8e0
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-13
4
- Thu, 24 Aug 2023 15:47:48 GMT - commit 07d3baeb218f6d1084e9d1b17a429ca84cb92561
3
+ Rollup.js v4.0.0-15
4
+ Fri, 15 Sep 2023 13:06:08 GMT - commit 6e6186636ebb169611373a0e430853eb3b6ce8e0
5
5
 
6
6
  https://github.com/rollup/rollup
7
7