rollup 3.17.0 → 3.17.2

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.
package/dist/bin/rollup CHANGED
@@ -2,8 +2,8 @@
2
2
 
3
3
  /*
4
4
  @license
5
- Rollup.js v3.17.0
6
- Sat, 18 Feb 2023 05:06:04 GMT - commit 0c33497a7de91e150a7d242125e8da9dd4e4a3ac
5
+ Rollup.js v3.17.2
6
+ Mon, 20 Feb 2023 05:45:09 GMT - commit 47061d8516922087cec1e50e40878313e220183e
7
7
 
8
8
  https://github.com/rollup/rollup
9
9
 
package/dist/es/rollup.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.17.0
4
- Sat, 18 Feb 2023 05:06:04 GMT - commit 0c33497a7de91e150a7d242125e8da9dd4e4a3ac
3
+ Rollup.js v3.17.2
4
+ Mon, 20 Feb 2023 05:45:09 GMT - commit 47061d8516922087cec1e50e40878313e220183e
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.17.0
4
- Sat, 18 Feb 2023 05:06:04 GMT - commit 0c33497a7de91e150a7d242125e8da9dd4e4a3ac
3
+ Rollup.js v3.17.2
4
+ Mon, 20 Feb 2023 05:45:09 GMT - commit 47061d8516922087cec1e50e40878313e220183e
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -16,7 +16,7 @@ import { lstat, realpath, readdir, readFile, mkdir, writeFile } from 'node:fs/pr
16
16
  import { EventEmitter } from 'node:events';
17
17
  import * as tty from 'tty';
18
18
 
19
- var version$1 = "3.17.0";
19
+ var version$1 = "3.17.2";
20
20
 
21
21
  const comma = ','.charCodeAt(0);
22
22
  const semicolon = ';'.charCodeAt(0);
@@ -7172,6 +7172,7 @@ const knownGlobals = {
7172
7172
  defineProperties: MUTATES_ARG_WITHOUT_ACCESSOR,
7173
7173
  freeze: MUTATES_ARG_WITHOUT_ACCESSOR,
7174
7174
  getOwnPropertyDescriptor: PF,
7175
+ getOwnPropertyDescriptors: PF,
7175
7176
  getOwnPropertyNames: PF,
7176
7177
  getOwnPropertySymbols: PF,
7177
7178
  getPrototypeOf: PF,
@@ -7191,6 +7192,8 @@ const knownGlobals = {
7191
7192
  __proto__: null,
7192
7193
  [ValueProperties]: IMPURE,
7193
7194
  all: O,
7195
+ allSettled: O,
7196
+ any: O,
7194
7197
  prototype: O,
7195
7198
  race: O,
7196
7199
  reject: O,
@@ -8017,9 +8020,12 @@ class Identifier extends NodeBase {
8017
8020
  // return cached value to avoid issues with the next tree-shaking pass
8018
8021
  if (this.isTDZAccess !== null)
8019
8022
  return this.isTDZAccess;
8020
- if (!(this.variable instanceof LocalVariable) ||
8021
- !this.variable.kind ||
8022
- !(this.variable.kind in tdzVariableKinds)) {
8023
+ if (!(this.variable instanceof LocalVariable &&
8024
+ this.variable.kind &&
8025
+ this.variable.kind in tdzVariableKinds &&
8026
+ // we ignore possible TDZs due to circular module dependencies as
8027
+ // otherwise we get many false positives
8028
+ this.variable.module === this.context.module)) {
8023
8029
  return (this.isTDZAccess = false);
8024
8030
  }
8025
8031
  let decl_id;
@@ -13292,6 +13298,9 @@ class Module {
13292
13298
  }
13293
13299
  if (importerForSideEffects) {
13294
13300
  setAlternativeExporterIfCyclic(variable, importerForSideEffects, this);
13301
+ if (this.info.moduleSideEffects) {
13302
+ getOrCreate(importerForSideEffects.sideEffectDependenciesByVariable, variable, (getNewSet)).add(this);
13303
+ }
13295
13304
  }
13296
13305
  return [variable];
13297
13306
  }
@@ -13306,8 +13315,8 @@ class Module {
13306
13315
  searchedNamesAndModules
13307
13316
  });
13308
13317
  if (importerForSideEffects) {
13309
- getOrCreate(importerForSideEffects.sideEffectDependenciesByVariable, variable, (getNewSet)).add(this);
13310
13318
  setAlternativeExporterIfCyclic(variable, importerForSideEffects, this);
13319
+ getOrCreate(importerForSideEffects.sideEffectDependenciesByVariable, variable, (getNewSet)).add(this);
13311
13320
  }
13312
13321
  return [variable];
13313
13322
  }
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.17.0
4
- Sat, 18 Feb 2023 05:06:04 GMT - commit 0c33497a7de91e150a7d242125e8da9dd4e4a3ac
3
+ Rollup.js v3.17.2
4
+ Mon, 20 Feb 2023 05:45:09 GMT - commit 47061d8516922087cec1e50e40878313e220183e
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -0,0 +1,18 @@
1
+ import type { MergedRollupOptions, RollupWarning } from './rollup';
2
+
3
+ export interface BatchWarnings {
4
+ add: (warning: RollupWarning) => void;
5
+ readonly count: number;
6
+ flush: () => void;
7
+ readonly warningOccurred: boolean;
8
+ }
9
+
10
+ export type LoadConfigFile = typeof loadConfigFile;
11
+
12
+ export function loadConfigFile(
13
+ fileName: string,
14
+ commandOptions: any
15
+ ): Promise<{
16
+ options: MergedRollupOptions[];
17
+ warnings: BatchWarnings;
18
+ }>;
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.17.0
4
- Sat, 18 Feb 2023 05:06:04 GMT - commit 0c33497a7de91e150a7d242125e8da9dd4e4a3ac
3
+ Rollup.js v3.17.2
4
+ Mon, 20 Feb 2023 05:45:09 GMT - commit 47061d8516922087cec1e50e40878313e220183e
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
package/dist/rollup.d.ts CHANGED
@@ -135,6 +135,7 @@ export interface MinimalPluginContext {
135
135
  export interface EmittedAsset {
136
136
  fileName?: string;
137
137
  name?: string;
138
+ needsCodeReference?: boolean;
138
139
  source?: string | Uint8Array;
139
140
  type: 'asset';
140
141
  }
package/dist/rollup.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.17.0
4
- Sat, 18 Feb 2023 05:06:04 GMT - commit 0c33497a7de91e150a7d242125e8da9dd4e4a3ac
3
+ Rollup.js v3.17.2
4
+ Mon, 20 Feb 2023 05:45:09 GMT - commit 47061d8516922087cec1e50e40878313e220183e
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.17.0
4
- Sat, 18 Feb 2023 05:06:04 GMT - commit 0c33497a7de91e150a7d242125e8da9dd4e4a3ac
3
+ Rollup.js v3.17.2
4
+ Mon, 20 Feb 2023 05:45:09 GMT - commit 47061d8516922087cec1e50e40878313e220183e
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.17.0
4
- Sat, 18 Feb 2023 05:06:04 GMT - commit 0c33497a7de91e150a7d242125e8da9dd4e4a3ac
3
+ Rollup.js v3.17.2
4
+ Mon, 20 Feb 2023 05:45:09 GMT - commit 47061d8516922087cec1e50e40878313e220183e
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.17.0
4
- Sat, 18 Feb 2023 05:06:04 GMT - commit 0c33497a7de91e150a7d242125e8da9dd4e4a3ac
3
+ Rollup.js v3.17.2
4
+ Mon, 20 Feb 2023 05:45:09 GMT - commit 47061d8516922087cec1e50e40878313e220183e
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -387,7 +387,7 @@ async function requireOrImport(pluginPath) {
387
387
  }
388
388
  }
389
389
 
390
- async function loadConfigFile(fileName, commandOptions = {}) {
390
+ const loadConfigFile = async (fileName, commandOptions = {}) => {
391
391
  const configs = await getConfigList(getDefaultFromCjs(await getConfigFileExport(fileName, commandOptions)), commandOptions);
392
392
  const warnings = batchWarnings();
393
393
  try {
@@ -403,7 +403,7 @@ async function loadConfigFile(fileName, commandOptions = {}) {
403
403
  warnings.flush();
404
404
  throw error_;
405
405
  }
406
- }
406
+ };
407
407
  async function getConfigFileExport(fileName, commandOptions) {
408
408
  if (commandOptions.configPlugin || commandOptions.bundleConfigAsCjs) {
409
409
  try {
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.17.0
4
- Sat, 18 Feb 2023 05:06:04 GMT - commit 0c33497a7de91e150a7d242125e8da9dd4e4a3ac
3
+ Rollup.js v3.17.2
4
+ Mon, 20 Feb 2023 05:45:09 GMT - commit 47061d8516922087cec1e50e40878313e220183e
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -31,7 +31,7 @@ function _interopNamespaceDefault(e) {
31
31
 
32
32
  const tty__namespace = /*#__PURE__*/_interopNamespaceDefault(tty);
33
33
 
34
- var version$1 = "3.17.0";
34
+ var version$1 = "3.17.2";
35
35
 
36
36
  function ensureArray$1(items) {
37
37
  if (Array.isArray(items)) {
@@ -7669,6 +7669,7 @@ const knownGlobals = {
7669
7669
  defineProperties: MUTATES_ARG_WITHOUT_ACCESSOR,
7670
7670
  freeze: MUTATES_ARG_WITHOUT_ACCESSOR,
7671
7671
  getOwnPropertyDescriptor: PF,
7672
+ getOwnPropertyDescriptors: PF,
7672
7673
  getOwnPropertyNames: PF,
7673
7674
  getOwnPropertySymbols: PF,
7674
7675
  getPrototypeOf: PF,
@@ -7688,6 +7689,8 @@ const knownGlobals = {
7688
7689
  __proto__: null,
7689
7690
  [ValueProperties]: IMPURE,
7690
7691
  all: O,
7692
+ allSettled: O,
7693
+ any: O,
7691
7694
  prototype: O,
7692
7695
  race: O,
7693
7696
  reject: O,
@@ -8514,9 +8517,12 @@ class Identifier extends NodeBase {
8514
8517
  // return cached value to avoid issues with the next tree-shaking pass
8515
8518
  if (this.isTDZAccess !== null)
8516
8519
  return this.isTDZAccess;
8517
- if (!(this.variable instanceof LocalVariable) ||
8518
- !this.variable.kind ||
8519
- !(this.variable.kind in tdzVariableKinds)) {
8520
+ if (!(this.variable instanceof LocalVariable &&
8521
+ this.variable.kind &&
8522
+ this.variable.kind in tdzVariableKinds &&
8523
+ // we ignore possible TDZs due to circular module dependencies as
8524
+ // otherwise we get many false positives
8525
+ this.variable.module === this.context.module)) {
8520
8526
  return (this.isTDZAccess = false);
8521
8527
  }
8522
8528
  let decl_id;
@@ -13789,6 +13795,9 @@ class Module {
13789
13795
  }
13790
13796
  if (importerForSideEffects) {
13791
13797
  setAlternativeExporterIfCyclic(variable, importerForSideEffects, this);
13798
+ if (this.info.moduleSideEffects) {
13799
+ getOrCreate(importerForSideEffects.sideEffectDependenciesByVariable, variable, (getNewSet)).add(this);
13800
+ }
13792
13801
  }
13793
13802
  return [variable];
13794
13803
  }
@@ -13803,8 +13812,8 @@ class Module {
13803
13812
  searchedNamesAndModules
13804
13813
  });
13805
13814
  if (importerForSideEffects) {
13806
- getOrCreate(importerForSideEffects.sideEffectDependenciesByVariable, variable, (getNewSet)).add(this);
13807
13815
  setAlternativeExporterIfCyclic(variable, importerForSideEffects, this);
13816
+ getOrCreate(importerForSideEffects.sideEffectDependenciesByVariable, variable, (getNewSet)).add(this);
13808
13817
  }
13809
13818
  return [variable];
13810
13819
  }
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.17.0
4
- Sat, 18 Feb 2023 05:06:04 GMT - commit 0c33497a7de91e150a7d242125e8da9dd4e4a3ac
3
+ Rollup.js v3.17.2
4
+ Mon, 20 Feb 2023 05:45:09 GMT - commit 47061d8516922087cec1e50e40878313e220183e
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.17.0
4
- Sat, 18 Feb 2023 05:06:04 GMT - commit 0c33497a7de91e150a7d242125e8da9dd4e4a3ac
3
+ Rollup.js v3.17.2
4
+ Mon, 20 Feb 2023 05:45:09 GMT - commit 47061d8516922087cec1e50e40878313e220183e
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.17.0
4
- Sat, 18 Feb 2023 05:06:04 GMT - commit 0c33497a7de91e150a7d242125e8da9dd4e4a3ac
3
+ Rollup.js v3.17.2
4
+ Mon, 20 Feb 2023 05:45:09 GMT - commit 47061d8516922087cec1e50e40878313e220183e
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rollup",
3
- "version": "3.17.0",
3
+ "version": "3.17.2",
4
4
  "description": "Next-generation ES module bundler",
5
5
  "main": "dist/rollup.js",
6
6
  "module": "dist/es/rollup.js",
@@ -162,7 +162,11 @@
162
162
  "require": "./dist/rollup.js",
163
163
  "import": "./dist/es/rollup.js"
164
164
  },
165
- "./loadConfigFile": "./dist/loadConfigFile.js",
165
+ "./loadConfigFile": {
166
+ "types": "./dist/loadConfigFile.d.ts",
167
+ "require": "./dist/loadConfigFile.js",
168
+ "default": "./dist/loadConfigFile.js"
169
+ },
166
170
  "./dist/*": "./dist/*"
167
171
  }
168
172
  }