rollup 4.27.1 → 4.27.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
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  /*
3
3
  @license
4
- Rollup.js v4.27.1
5
- Fri, 15 Nov 2024 16:07:10 GMT - commit aaf38b725dd142b1da4190a91de8b04c006fead5
4
+ Rollup.js v4.27.2
5
+ Fri, 15 Nov 2024 17:19:22 GMT - commit a503a4dd9982bf20fd38aeb171882a27828906ae
6
6
 
7
7
  https://github.com/rollup/rollup
8
8
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.27.1
4
- Fri, 15 Nov 2024 16:07:10 GMT - commit aaf38b725dd142b1da4190a91de8b04c006fead5
3
+ Rollup.js v4.27.2
4
+ Fri, 15 Nov 2024 17:19:22 GMT - commit a503a4dd9982bf20fd38aeb171882a27828906ae
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.27.1
4
- Fri, 15 Nov 2024 16:07:10 GMT - commit aaf38b725dd142b1da4190a91de8b04c006fead5
3
+ Rollup.js v4.27.2
4
+ Fri, 15 Nov 2024 17:19:22 GMT - commit a503a4dd9982bf20fd38aeb171882a27828906ae
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
package/dist/es/rollup.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.27.1
4
- Fri, 15 Nov 2024 16:07:10 GMT - commit aaf38b725dd142b1da4190a91de8b04c006fead5
3
+ Rollup.js v4.27.2
4
+ Fri, 15 Nov 2024 17:19:22 GMT - commit a503a4dd9982bf20fd38aeb171882a27828906ae
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.27.1
4
- Fri, 15 Nov 2024 16:07:10 GMT - commit aaf38b725dd142b1da4190a91de8b04c006fead5
3
+ Rollup.js v4.27.2
4
+ Fri, 15 Nov 2024 17:19:22 GMT - commit a503a4dd9982bf20fd38aeb171882a27828906ae
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -16,7 +16,7 @@ import { performance } from 'node:perf_hooks';
16
16
  import { lstat, realpath, readdir, readFile, mkdir, writeFile } from 'node:fs/promises';
17
17
  import * as tty from 'tty';
18
18
 
19
- var version = "4.27.1";
19
+ var version = "4.27.2";
20
20
 
21
21
  const comma = ','.charCodeAt(0);
22
22
  const semicolon = ';'.charCodeAt(0);
@@ -11034,8 +11034,21 @@ class ArrayPattern extends NodeBase {
11034
11034
  let included = false;
11035
11035
  const includedPatternPath = getIncludedPatternPath(destructuredInitPath);
11036
11036
  for (const element of this.elements) {
11037
- included =
11038
- element?.includeDestructuredIfNecessary(context, includedPatternPath, init) || included;
11037
+ if (element) {
11038
+ element.included ||= included;
11039
+ included =
11040
+ element.includeDestructuredIfNecessary(context, includedPatternPath, init) || included;
11041
+ }
11042
+ }
11043
+ if (included) {
11044
+ // This is necessary so that if any pattern element is included, all are
11045
+ // included for proper deconflicting
11046
+ for (const element of this.elements) {
11047
+ if (element && !element.included) {
11048
+ element.included = true;
11049
+ element.includeDestructuredIfNecessary(context, includedPatternPath, init);
11050
+ }
11051
+ }
11039
11052
  }
11040
11053
  return (this.included ||= included);
11041
11054
  }
@@ -11312,6 +11325,12 @@ class AssignmentPattern extends NodeBase {
11312
11325
  this.included;
11313
11326
  if ((included ||= this.right.shouldBeIncluded(context))) {
11314
11327
  this.right.includePath(UNKNOWN_PATH, context, false);
11328
+ if (!this.left.included) {
11329
+ this.left.included = true;
11330
+ // Unfortunately, we need to include the left side again now, so that
11331
+ // any declared variables are properly included.
11332
+ this.left.includeDestructuredIfNecessary(context, destructuredInitPath, init);
11333
+ }
11315
11334
  }
11316
11335
  return (this.included = included);
11317
11336
  }
@@ -13731,10 +13750,17 @@ class Property extends MethodBase {
13731
13750
  return this.value.hasEffectsWhenDestructuring?.(context, this.getPathInProperty(destructuredInitPath), init);
13732
13751
  }
13733
13752
  includeDestructuredIfNecessary(context, destructuredInitPath, init) {
13734
- let included = this.value.includeDestructuredIfNecessary(context, this.getPathInProperty(destructuredInitPath), init) || this.included;
13735
- included ||= this.key.hasEffects(createHasEffectsContext());
13736
- if (included) {
13753
+ const path = this.getPathInProperty(destructuredInitPath);
13754
+ let included = this.value.includeDestructuredIfNecessary(context, path, init) ||
13755
+ this.included;
13756
+ if ((included ||= this.key.hasEffects(createHasEffectsContext()))) {
13737
13757
  this.key.includePath(EMPTY_PATH, context, false);
13758
+ if (!this.value.included) {
13759
+ this.value.included = true;
13760
+ // Unfortunately, we need to include the value again now, so that any
13761
+ // declared variables are properly included.
13762
+ this.value.includeDestructuredIfNecessary(context, path, init);
13763
+ }
13738
13764
  }
13739
13765
  return (this.included = included);
13740
13766
  }
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.27.1
4
- Fri, 15 Nov 2024 16:07:10 GMT - commit aaf38b725dd142b1da4190a91de8b04c006fead5
3
+ Rollup.js v4.27.2
4
+ Fri, 15 Nov 2024 17:19:22 GMT - commit a503a4dd9982bf20fd38aeb171882a27828906ae
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.27.1
4
- Fri, 15 Nov 2024 16:07:10 GMT - commit aaf38b725dd142b1da4190a91de8b04c006fead5
3
+ Rollup.js v4.27.2
4
+ Fri, 15 Nov 2024 17:19:22 GMT - commit a503a4dd9982bf20fd38aeb171882a27828906ae
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.27.1
4
- Fri, 15 Nov 2024 16:07:10 GMT - commit aaf38b725dd142b1da4190a91de8b04c006fead5
3
+ Rollup.js v4.27.2
4
+ Fri, 15 Nov 2024 17:19:22 GMT - commit a503a4dd9982bf20fd38aeb171882a27828906ae
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.27.1
4
- Fri, 15 Nov 2024 16:07:10 GMT - commit aaf38b725dd142b1da4190a91de8b04c006fead5
3
+ Rollup.js v4.27.2
4
+ Fri, 15 Nov 2024 17:19:22 GMT - commit a503a4dd9982bf20fd38aeb171882a27828906ae
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
package/dist/parseAst.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.27.1
4
- Fri, 15 Nov 2024 16:07:10 GMT - commit aaf38b725dd142b1da4190a91de8b04c006fead5
3
+ Rollup.js v4.27.2
4
+ Fri, 15 Nov 2024 17:19:22 GMT - commit a503a4dd9982bf20fd38aeb171882a27828906ae
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
package/dist/rollup.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.27.1
4
- Fri, 15 Nov 2024 16:07:10 GMT - commit aaf38b725dd142b1da4190a91de8b04c006fead5
3
+ Rollup.js v4.27.2
4
+ Fri, 15 Nov 2024 17:19:22 GMT - commit a503a4dd9982bf20fd38aeb171882a27828906ae
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.27.1
4
- Fri, 15 Nov 2024 16:07:10 GMT - commit aaf38b725dd142b1da4190a91de8b04c006fead5
3
+ Rollup.js v4.27.2
4
+ Fri, 15 Nov 2024 17:19:22 GMT - commit a503a4dd9982bf20fd38aeb171882a27828906ae
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.27.1
4
- Fri, 15 Nov 2024 16:07:10 GMT - commit aaf38b725dd142b1da4190a91de8b04c006fead5
3
+ Rollup.js v4.27.2
4
+ Fri, 15 Nov 2024 17:19:22 GMT - commit a503a4dd9982bf20fd38aeb171882a27828906ae
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.27.1
4
- Fri, 15 Nov 2024 16:07:10 GMT - commit aaf38b725dd142b1da4190a91de8b04c006fead5
3
+ Rollup.js v4.27.2
4
+ Fri, 15 Nov 2024 17:19:22 GMT - commit a503a4dd9982bf20fd38aeb171882a27828906ae
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.27.1
4
- Fri, 15 Nov 2024 16:07:10 GMT - commit aaf38b725dd142b1da4190a91de8b04c006fead5
3
+ Rollup.js v4.27.2
4
+ Fri, 15 Nov 2024 17:19:22 GMT - commit a503a4dd9982bf20fd38aeb171882a27828906ae
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.27.1
4
- Fri, 15 Nov 2024 16:07:10 GMT - commit aaf38b725dd142b1da4190a91de8b04c006fead5
3
+ Rollup.js v4.27.2
4
+ Fri, 15 Nov 2024 17:19:22 GMT - commit a503a4dd9982bf20fd38aeb171882a27828906ae
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 = "4.27.1";
34
+ var version = "4.27.2";
35
35
 
36
36
  function ensureArray$1(items) {
37
37
  if (Array.isArray(items)) {
@@ -12537,8 +12537,21 @@ class ArrayPattern extends NodeBase {
12537
12537
  let included = false;
12538
12538
  const includedPatternPath = getIncludedPatternPath(destructuredInitPath);
12539
12539
  for (const element of this.elements) {
12540
- included =
12541
- element?.includeDestructuredIfNecessary(context, includedPatternPath, init) || included;
12540
+ if (element) {
12541
+ element.included ||= included;
12542
+ included =
12543
+ element.includeDestructuredIfNecessary(context, includedPatternPath, init) || included;
12544
+ }
12545
+ }
12546
+ if (included) {
12547
+ // This is necessary so that if any pattern element is included, all are
12548
+ // included for proper deconflicting
12549
+ for (const element of this.elements) {
12550
+ if (element && !element.included) {
12551
+ element.included = true;
12552
+ element.includeDestructuredIfNecessary(context, includedPatternPath, init);
12553
+ }
12554
+ }
12542
12555
  }
12543
12556
  return (this.included ||= included);
12544
12557
  }
@@ -12815,6 +12828,12 @@ class AssignmentPattern extends NodeBase {
12815
12828
  this.included;
12816
12829
  if ((included ||= this.right.shouldBeIncluded(context))) {
12817
12830
  this.right.includePath(UNKNOWN_PATH, context, false);
12831
+ if (!this.left.included) {
12832
+ this.left.included = true;
12833
+ // Unfortunately, we need to include the left side again now, so that
12834
+ // any declared variables are properly included.
12835
+ this.left.includeDestructuredIfNecessary(context, destructuredInitPath, init);
12836
+ }
12818
12837
  }
12819
12838
  return (this.included = included);
12820
12839
  }
@@ -15234,10 +15253,17 @@ class Property extends MethodBase {
15234
15253
  return this.value.hasEffectsWhenDestructuring?.(context, this.getPathInProperty(destructuredInitPath), init);
15235
15254
  }
15236
15255
  includeDestructuredIfNecessary(context, destructuredInitPath, init) {
15237
- let included = this.value.includeDestructuredIfNecessary(context, this.getPathInProperty(destructuredInitPath), init) || this.included;
15238
- included ||= this.key.hasEffects(createHasEffectsContext());
15239
- if (included) {
15256
+ const path = this.getPathInProperty(destructuredInitPath);
15257
+ let included = this.value.includeDestructuredIfNecessary(context, path, init) ||
15258
+ this.included;
15259
+ if ((included ||= this.key.hasEffects(createHasEffectsContext()))) {
15240
15260
  this.key.includePath(EMPTY_PATH, context, false);
15261
+ if (!this.value.included) {
15262
+ this.value.included = true;
15263
+ // Unfortunately, we need to include the value again now, so that any
15264
+ // declared variables are properly included.
15265
+ this.value.includeDestructuredIfNecessary(context, path, init);
15266
+ }
15241
15267
  }
15242
15268
  return (this.included = included);
15243
15269
  }
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.27.1
4
- Fri, 15 Nov 2024 16:07:10 GMT - commit aaf38b725dd142b1da4190a91de8b04c006fead5
3
+ Rollup.js v4.27.2
4
+ Fri, 15 Nov 2024 17:19:22 GMT - commit a503a4dd9982bf20fd38aeb171882a27828906ae
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.27.1
4
- Fri, 15 Nov 2024 16:07:10 GMT - commit aaf38b725dd142b1da4190a91de8b04c006fead5
3
+ Rollup.js v4.27.2
4
+ Fri, 15 Nov 2024 17:19:22 GMT - commit a503a4dd9982bf20fd38aeb171882a27828906ae
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": "4.27.1",
3
+ "version": "4.27.2",
4
4
  "description": "Next-generation ES module bundler",
5
5
  "main": "dist/rollup.js",
6
6
  "module": "dist/es/rollup.js",
@@ -109,24 +109,24 @@
109
109
  "homepage": "https://rollupjs.org/",
110
110
  "optionalDependencies": {
111
111
  "fsevents": "~2.3.2",
112
- "@rollup/rollup-darwin-arm64": "4.27.1",
113
- "@rollup/rollup-android-arm64": "4.27.1",
114
- "@rollup/rollup-win32-arm64-msvc": "4.27.1",
115
- "@rollup/rollup-freebsd-arm64": "4.27.1",
116
- "@rollup/rollup-linux-arm64-gnu": "4.27.1",
117
- "@rollup/rollup-linux-arm64-musl": "4.27.1",
118
- "@rollup/rollup-android-arm-eabi": "4.27.1",
119
- "@rollup/rollup-linux-arm-gnueabihf": "4.27.1",
120
- "@rollup/rollup-linux-arm-musleabihf": "4.27.1",
121
- "@rollup/rollup-win32-ia32-msvc": "4.27.1",
122
- "@rollup/rollup-linux-riscv64-gnu": "4.27.1",
123
- "@rollup/rollup-linux-powerpc64le-gnu": "4.27.1",
124
- "@rollup/rollup-linux-s390x-gnu": "4.27.1",
125
- "@rollup/rollup-darwin-x64": "4.27.1",
126
- "@rollup/rollup-win32-x64-msvc": "4.27.1",
127
- "@rollup/rollup-freebsd-x64": "4.27.1",
128
- "@rollup/rollup-linux-x64-gnu": "4.27.1",
129
- "@rollup/rollup-linux-x64-musl": "4.27.1"
112
+ "@rollup/rollup-darwin-arm64": "4.27.2",
113
+ "@rollup/rollup-android-arm64": "4.27.2",
114
+ "@rollup/rollup-win32-arm64-msvc": "4.27.2",
115
+ "@rollup/rollup-freebsd-arm64": "4.27.2",
116
+ "@rollup/rollup-linux-arm64-gnu": "4.27.2",
117
+ "@rollup/rollup-linux-arm64-musl": "4.27.2",
118
+ "@rollup/rollup-android-arm-eabi": "4.27.2",
119
+ "@rollup/rollup-linux-arm-gnueabihf": "4.27.2",
120
+ "@rollup/rollup-linux-arm-musleabihf": "4.27.2",
121
+ "@rollup/rollup-win32-ia32-msvc": "4.27.2",
122
+ "@rollup/rollup-linux-riscv64-gnu": "4.27.2",
123
+ "@rollup/rollup-linux-powerpc64le-gnu": "4.27.2",
124
+ "@rollup/rollup-linux-s390x-gnu": "4.27.2",
125
+ "@rollup/rollup-darwin-x64": "4.27.2",
126
+ "@rollup/rollup-win32-x64-msvc": "4.27.2",
127
+ "@rollup/rollup-freebsd-x64": "4.27.2",
128
+ "@rollup/rollup-linux-x64-gnu": "4.27.2",
129
+ "@rollup/rollup-linux-x64-musl": "4.27.2"
130
130
  },
131
131
  "dependencies": {
132
132
  "@types/estree": "1.0.6"