rollup 3.21.1 → 3.21.3

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.21.1
6
- Sat, 29 Apr 2023 05:15:23 GMT - commit e01f0a2e7264e0bae267b2fab4b2231d7671d4c2
5
+ Rollup.js v3.21.3
6
+ Tue, 02 May 2023 04:37:56 GMT - commit ef6ca52fec43ec4a7d6f12c8ebdee82ee690c2ce
7
7
 
8
8
  https://github.com/rollup/rollup
9
9
 
@@ -1654,7 +1654,7 @@ async function runRollup(command) {
1654
1654
  if (rollup.isWatchEnabled(command.watch)) {
1655
1655
  await fseventsImporter.loadFsEvents();
1656
1656
  const { watch } = await Promise.resolve().then(() => require('../shared/watch-cli.js'));
1657
- watch(command);
1657
+ await watch(command);
1658
1658
  }
1659
1659
  else {
1660
1660
  try {
@@ -1705,7 +1705,7 @@ else {
1705
1705
  catch {
1706
1706
  // do nothing
1707
1707
  }
1708
- runRollup(command);
1708
+ runRollup(command).then(() => process$1.exit(0));
1709
1709
  }
1710
1710
 
1711
1711
  exports.getConfigPath = getConfigPath;
package/dist/es/rollup.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.21.1
4
- Sat, 29 Apr 2023 05:15:23 GMT - commit e01f0a2e7264e0bae267b2fab4b2231d7671d4c2
3
+ Rollup.js v3.21.3
4
+ Tue, 02 May 2023 04:37:56 GMT - commit ef6ca52fec43ec4a7d6f12c8ebdee82ee690c2ce
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.21.1
4
- Sat, 29 Apr 2023 05:15:23 GMT - commit e01f0a2e7264e0bae267b2fab4b2231d7671d4c2
3
+ Rollup.js v3.21.3
4
+ Tue, 02 May 2023 04:37:56 GMT - commit ef6ca52fec43ec4a7d6f12c8ebdee82ee690c2ce
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.21.1";
19
+ var version$1 = "3.21.3";
20
20
 
21
21
  const comma = ','.charCodeAt(0);
22
22
  const semicolon = ';'.charCodeAt(0);
@@ -7189,7 +7189,7 @@ const PC = {
7189
7189
  const ARRAY_TYPE = {
7190
7190
  __proto__: null,
7191
7191
  [ValueProperties]: PURE,
7192
- from: PF,
7192
+ from: O,
7193
7193
  of: PF,
7194
7194
  prototype: O
7195
7195
  };
@@ -7256,7 +7256,7 @@ const knownGlobals = {
7256
7256
  isNaN: PF,
7257
7257
  isPrototypeOf: O,
7258
7258
  JSON: O,
7259
- Map: PC,
7259
+ Map: C,
7260
7260
  Math: {
7261
7261
  __proto__: null,
7262
7262
  [ValueProperties]: IMPURE,
@@ -7329,7 +7329,7 @@ const knownGlobals = {
7329
7329
  isFrozen: PF,
7330
7330
  isSealed: PF,
7331
7331
  keys: PF,
7332
- fromEntries: PF,
7332
+ fromEntries: O,
7333
7333
  entries: PF,
7334
7334
  prototype: O
7335
7335
  },
@@ -7352,7 +7352,7 @@ const knownGlobals = {
7352
7352
  ReferenceError: PC,
7353
7353
  Reflect: O,
7354
7354
  RegExp: PC,
7355
- Set: PC,
7355
+ Set: C,
7356
7356
  SharedArrayBuffer: C,
7357
7357
  String: {
7358
7358
  __proto__: null,
@@ -7392,8 +7392,8 @@ const knownGlobals = {
7392
7392
  unescape: PF,
7393
7393
  URIError: PC,
7394
7394
  valueOf: O,
7395
- WeakMap: PC,
7396
- WeakSet: PC,
7395
+ WeakMap: C,
7396
+ WeakSet: C,
7397
7397
  // Additional globals shared by Node and Browser that are not strictly part of the language
7398
7398
  clearInterval: C,
7399
7399
  clearTimeout: C,
@@ -26014,7 +26014,6 @@ function handleError(error, recover = false) {
26014
26014
  }
26015
26015
  outputLines.push('', '');
26016
26016
  stderr(outputLines.join('\n'));
26017
- // eslint-disable-next-line unicorn/no-process-exit
26018
26017
  if (!recover)
26019
26018
  process$1.exit(1);
26020
26019
  }
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.21.1
4
- Sat, 29 Apr 2023 05:15:23 GMT - commit e01f0a2e7264e0bae267b2fab4b2231d7671d4c2
3
+ Rollup.js v3.21.3
4
+ Tue, 02 May 2023 04:37:56 GMT - commit ef6ca52fec43ec4a7d6f12c8ebdee82ee690c2ce
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -2661,6 +2661,10 @@ const setFsWatchFileListener = (path, fullPath, options, handlers) => {
2661
2661
  const {listener, rawEmitter} = handlers;
2662
2662
  let cont = FsWatchFileInstances.get(fullPath);
2663
2663
 
2664
+ /* eslint-disable no-unused-vars, prefer-destructuring */
2665
+ new Set();
2666
+ new Set();
2667
+
2664
2668
  const copts = cont && cont.options;
2665
2669
  if (copts && (copts.persistent < options.persistent || copts.interval > options.interval)) {
2666
2670
  fs$2.unwatchFile(fullPath);
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.21.1
4
- Sat, 29 Apr 2023 05:15:23 GMT - commit e01f0a2e7264e0bae267b2fab4b2231d7671d4c2
3
+ Rollup.js v3.21.3
4
+ Tue, 02 May 2023 04:37:56 GMT - commit ef6ca52fec43ec4a7d6f12c8ebdee82ee690c2ce
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
package/dist/rollup.d.ts CHANGED
@@ -519,7 +519,7 @@ export type InputPluginOption = MaybePromise<Plugin | NullValue | false | InputP
519
519
 
520
520
  export interface InputOptions {
521
521
  acorn?: Record<string, unknown>;
522
- acornInjectPlugins?: (() => unknown)[] | (() => unknown);
522
+ acornInjectPlugins?: ((...arguments_: any[]) => unknown)[] | ((...arguments_: any[]) => unknown);
523
523
  cache?: boolean | RollupCache;
524
524
  context?: string;
525
525
  experimentalCacheExpiry?: number;
package/dist/rollup.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.21.1
4
- Sat, 29 Apr 2023 05:15:23 GMT - commit e01f0a2e7264e0bae267b2fab4b2231d7671d4c2
3
+ Rollup.js v3.21.3
4
+ Tue, 02 May 2023 04:37:56 GMT - commit ef6ca52fec43ec4a7d6f12c8ebdee82ee690c2ce
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.21.1
4
- Sat, 29 Apr 2023 05:15:23 GMT - commit e01f0a2e7264e0bae267b2fab4b2231d7671d4c2
3
+ Rollup.js v3.21.3
4
+ Tue, 02 May 2023 04:37:56 GMT - commit ef6ca52fec43ec4a7d6f12c8ebdee82ee690c2ce
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.21.1
4
- Sat, 29 Apr 2023 05:15:23 GMT - commit e01f0a2e7264e0bae267b2fab4b2231d7671d4c2
3
+ Rollup.js v3.21.3
4
+ Tue, 02 May 2023 04:37:56 GMT - commit ef6ca52fec43ec4a7d6f12c8ebdee82ee690c2ce
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -2656,6 +2656,10 @@ const setFsWatchFileListener = (path, fullPath, options, handlers) => {
2656
2656
  const {listener, rawEmitter} = handlers;
2657
2657
  let cont = FsWatchFileInstances.get(fullPath);
2658
2658
 
2659
+ /* eslint-disable no-unused-vars, prefer-destructuring */
2660
+ new Set();
2661
+ new Set();
2662
+
2659
2663
  const copts = cont && cont.options;
2660
2664
  if (copts && (copts.persistent < options.persistent || copts.interval > options.interval)) {
2661
2665
  fs$2.unwatchFile(fullPath);
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.21.1
4
- Sat, 29 Apr 2023 05:15:23 GMT - commit e01f0a2e7264e0bae267b2fab4b2231d7671d4c2
3
+ Rollup.js v3.21.3
4
+ Tue, 02 May 2023 04:37:56 GMT - commit ef6ca52fec43ec4a7d6f12c8ebdee82ee690c2ce
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.21.1
4
- Sat, 29 Apr 2023 05:15:23 GMT - commit e01f0a2e7264e0bae267b2fab4b2231d7671d4c2
3
+ Rollup.js v3.21.3
4
+ Tue, 02 May 2023 04:37:56 GMT - commit ef6ca52fec43ec4a7d6f12c8ebdee82ee690c2ce
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.21.1";
34
+ var version$1 = "3.21.3";
35
35
 
36
36
  function ensureArray$1(items) {
37
37
  if (Array.isArray(items)) {
@@ -1282,7 +1282,6 @@ function handleError(error, recover = false) {
1282
1282
  }
1283
1283
  outputLines.push('', '');
1284
1284
  stderr(outputLines.join('\n'));
1285
- // eslint-disable-next-line unicorn/no-process-exit
1286
1285
  if (!recover)
1287
1286
  process$1.exit(1);
1288
1287
  }
@@ -7685,7 +7684,7 @@ const PC = {
7685
7684
  const ARRAY_TYPE = {
7686
7685
  __proto__: null,
7687
7686
  [ValueProperties]: PURE,
7688
- from: PF,
7687
+ from: O,
7689
7688
  of: PF,
7690
7689
  prototype: O
7691
7690
  };
@@ -7752,7 +7751,7 @@ const knownGlobals = {
7752
7751
  isNaN: PF,
7753
7752
  isPrototypeOf: O,
7754
7753
  JSON: O,
7755
- Map: PC,
7754
+ Map: C,
7756
7755
  Math: {
7757
7756
  __proto__: null,
7758
7757
  [ValueProperties]: IMPURE,
@@ -7825,7 +7824,7 @@ const knownGlobals = {
7825
7824
  isFrozen: PF,
7826
7825
  isSealed: PF,
7827
7826
  keys: PF,
7828
- fromEntries: PF,
7827
+ fromEntries: O,
7829
7828
  entries: PF,
7830
7829
  prototype: O
7831
7830
  },
@@ -7848,7 +7847,7 @@ const knownGlobals = {
7848
7847
  ReferenceError: PC,
7849
7848
  Reflect: O,
7850
7849
  RegExp: PC,
7851
- Set: PC,
7850
+ Set: C,
7852
7851
  SharedArrayBuffer: C,
7853
7852
  String: {
7854
7853
  __proto__: null,
@@ -7888,8 +7887,8 @@ const knownGlobals = {
7888
7887
  unescape: PF,
7889
7888
  URIError: PC,
7890
7889
  valueOf: O,
7891
- WeakMap: PC,
7892
- WeakSet: PC,
7890
+ WeakMap: C,
7891
+ WeakSet: C,
7893
7892
  // Additional globals shared by Node and Browser that are not strictly part of the language
7894
7893
  clearInterval: C,
7895
7894
  clearTimeout: C,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.21.1
4
- Sat, 29 Apr 2023 05:15:23 GMT - commit e01f0a2e7264e0bae267b2fab4b2231d7671d4c2
3
+ Rollup.js v3.21.3
4
+ Tue, 02 May 2023 04:37:56 GMT - commit ef6ca52fec43ec4a7d6f12c8ebdee82ee690c2ce
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -537,11 +537,10 @@ async function watch(command) {
537
537
  await watcher.close();
538
538
  if (configWatcher)
539
539
  configWatcher.close();
540
- if (code) {
541
- // eslint-disable-next-line unicorn/no-process-exit
542
- process$2.exit(code);
543
- }
540
+ process$2.exit(code || 0);
544
541
  }
542
+ // return a promise that never resolves to keep the process running
543
+ return new Promise(() => { });
545
544
  }
546
545
 
547
546
  exports.watch = watch;
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.21.1
4
- Sat, 29 Apr 2023 05:15:23 GMT - commit e01f0a2e7264e0bae267b2fab4b2231d7671d4c2
3
+ Rollup.js v3.21.3
4
+ Tue, 02 May 2023 04:37:56 GMT - commit ef6ca52fec43ec4a7d6f12c8ebdee82ee690c2ce
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.21.1
4
- Sat, 29 Apr 2023 05:15:23 GMT - commit e01f0a2e7264e0bae267b2fab4b2231d7671d4c2
3
+ Rollup.js v3.21.3
4
+ Tue, 02 May 2023 04:37:56 GMT - commit ef6ca52fec43ec4a7d6f12c8ebdee82ee690c2ce
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.21.1",
3
+ "version": "3.21.3",
4
4
  "description": "Next-generation ES module bundler",
5
5
  "main": "dist/rollup.js",
6
6
  "module": "dist/es/rollup.js",
@@ -81,6 +81,7 @@
81
81
  "@rollup/plugin-typescript": "^11.1.0",
82
82
  "@rollup/pluginutils": "^5.0.2",
83
83
  "@types/estree": "1.0.1",
84
+ "@types/mocha": "^10.0.1",
84
85
  "@types/node": "^14.18.42",
85
86
  "@types/yargs-parser": "^21.0.0",
86
87
  "@typescript-eslint/eslint-plugin": "^5.59.1",