rollup 4.27.0 → 4.27.1-0

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.0
5
- Fri, 15 Nov 2024 10:40:04 GMT - commit c035068dfebeb959a35a8acf3ff008a249e2af73
4
+ Rollup.js v4.27.1-0
5
+ Fri, 15 Nov 2024 13:27:36 GMT - commit a80f6a94d720224a44331d5a50745e9887619703
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.0
4
- Fri, 15 Nov 2024 10:40:04 GMT - commit c035068dfebeb959a35a8acf3ff008a249e2af73
3
+ Rollup.js v4.27.1-0
4
+ Fri, 15 Nov 2024 13:27:36 GMT - commit a80f6a94d720224a44331d5a50745e9887619703
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.0
4
- Fri, 15 Nov 2024 10:40:04 GMT - commit c035068dfebeb959a35a8acf3ff008a249e2af73
3
+ Rollup.js v4.27.1-0
4
+ Fri, 15 Nov 2024 13:27:36 GMT - commit a80f6a94d720224a44331d5a50745e9887619703
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.0
4
- Fri, 15 Nov 2024 10:40:04 GMT - commit c035068dfebeb959a35a8acf3ff008a249e2af73
3
+ Rollup.js v4.27.1-0
4
+ Fri, 15 Nov 2024 13:27:36 GMT - commit a80f6a94d720224a44331d5a50745e9887619703
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.0
4
- Fri, 15 Nov 2024 10:40:04 GMT - commit c035068dfebeb959a35a8acf3ff008a249e2af73
3
+ Rollup.js v4.27.1-0
4
+ Fri, 15 Nov 2024 13:27:36 GMT - commit a80f6a94d720224a44331d5a50745e9887619703
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.0";
19
+ var version = "4.27.1-0";
20
20
 
21
21
  const comma = ','.charCodeAt(0);
22
22
  const semicolon = ';'.charCodeAt(0);
@@ -6998,7 +6998,7 @@ function getChainElementLiteralValueAtPath(element, object, path, recursionTrack
6998
6998
  }
6999
6999
 
7000
7000
  // To avoid infinite recursions
7001
- const MAX_PATH_DEPTH = 7;
7001
+ const MAX_PATH_DEPTH = 6;
7002
7002
  function getResolvablePropertyKey(memberExpression) {
7003
7003
  return memberExpression.computed
7004
7004
  ? getResolvableComputedPropertyKey(memberExpression.property)
@@ -7123,11 +7123,13 @@ class MemberExpression extends NodeBase {
7123
7123
  if (this.variable) {
7124
7124
  this.variable.deoptimizePath(path);
7125
7125
  }
7126
- else if (!this.isUndefined && path.length < MAX_PATH_DEPTH) {
7126
+ else if (!this.isUndefined) {
7127
7127
  const propertyKey = this.getPropertyKey();
7128
7128
  this.object.deoptimizePath([
7129
7129
  propertyKey === UnknownKey ? UnknownNonAccessorKey : propertyKey,
7130
- ...path
7130
+ ...(path.length < MAX_PATH_DEPTH
7131
+ ? path
7132
+ : [...path.slice(0, MAX_PATH_DEPTH), UnknownKey])
7131
7133
  ]);
7132
7134
  }
7133
7135
  }
@@ -7219,7 +7221,12 @@ class MemberExpression extends NodeBase {
7219
7221
  includePath(path, context, includeChildrenRecursively) {
7220
7222
  if (!this.deoptimized)
7221
7223
  this.applyDeoptimizations();
7222
- this.includeProperties(path, [this.getPropertyKey(), ...path], context, includeChildrenRecursively);
7224
+ this.includeProperties(path, [
7225
+ this.getPropertyKey(),
7226
+ ...(path.length < MAX_PATH_DEPTH
7227
+ ? path
7228
+ : [...path.slice(0, MAX_PATH_DEPTH), UnknownKey])
7229
+ ], context, includeChildrenRecursively);
7223
7230
  }
7224
7231
  includeAsAssignmentTarget(context, includeChildrenRecursively, deoptimizeAccess) {
7225
7232
  if (!this.assignmentDeoptimized)
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.27.0
4
- Fri, 15 Nov 2024 10:40:04 GMT - commit c035068dfebeb959a35a8acf3ff008a249e2af73
3
+ Rollup.js v4.27.1-0
4
+ Fri, 15 Nov 2024 13:27:36 GMT - commit a80f6a94d720224a44331d5a50745e9887619703
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.0
4
- Fri, 15 Nov 2024 10:40:04 GMT - commit c035068dfebeb959a35a8acf3ff008a249e2af73
3
+ Rollup.js v4.27.1-0
4
+ Fri, 15 Nov 2024 13:27:36 GMT - commit a80f6a94d720224a44331d5a50745e9887619703
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.0
4
- Fri, 15 Nov 2024 10:40:04 GMT - commit c035068dfebeb959a35a8acf3ff008a249e2af73
3
+ Rollup.js v4.27.1-0
4
+ Fri, 15 Nov 2024 13:27:36 GMT - commit a80f6a94d720224a44331d5a50745e9887619703
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.0
4
- Fri, 15 Nov 2024 10:40:04 GMT - commit c035068dfebeb959a35a8acf3ff008a249e2af73
3
+ Rollup.js v4.27.1-0
4
+ Fri, 15 Nov 2024 13:27:36 GMT - commit a80f6a94d720224a44331d5a50745e9887619703
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.0
4
- Fri, 15 Nov 2024 10:40:04 GMT - commit c035068dfebeb959a35a8acf3ff008a249e2af73
3
+ Rollup.js v4.27.1-0
4
+ Fri, 15 Nov 2024 13:27:36 GMT - commit a80f6a94d720224a44331d5a50745e9887619703
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.0
4
- Fri, 15 Nov 2024 10:40:04 GMT - commit c035068dfebeb959a35a8acf3ff008a249e2af73
3
+ Rollup.js v4.27.1-0
4
+ Fri, 15 Nov 2024 13:27:36 GMT - commit a80f6a94d720224a44331d5a50745e9887619703
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.0
4
- Fri, 15 Nov 2024 10:40:04 GMT - commit c035068dfebeb959a35a8acf3ff008a249e2af73
3
+ Rollup.js v4.27.1-0
4
+ Fri, 15 Nov 2024 13:27:36 GMT - commit a80f6a94d720224a44331d5a50745e9887619703
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.0
4
- Fri, 15 Nov 2024 10:40:04 GMT - commit c035068dfebeb959a35a8acf3ff008a249e2af73
3
+ Rollup.js v4.27.1-0
4
+ Fri, 15 Nov 2024 13:27:36 GMT - commit a80f6a94d720224a44331d5a50745e9887619703
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.0
4
- Fri, 15 Nov 2024 10:40:04 GMT - commit c035068dfebeb959a35a8acf3ff008a249e2af73
3
+ Rollup.js v4.27.1-0
4
+ Fri, 15 Nov 2024 13:27:36 GMT - commit a80f6a94d720224a44331d5a50745e9887619703
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.0
4
- Fri, 15 Nov 2024 10:40:04 GMT - commit c035068dfebeb959a35a8acf3ff008a249e2af73
3
+ Rollup.js v4.27.1-0
4
+ Fri, 15 Nov 2024 13:27:36 GMT - commit a80f6a94d720224a44331d5a50745e9887619703
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.0
4
- Fri, 15 Nov 2024 10:40:04 GMT - commit c035068dfebeb959a35a8acf3ff008a249e2af73
3
+ Rollup.js v4.27.1-0
4
+ Fri, 15 Nov 2024 13:27:36 GMT - commit a80f6a94d720224a44331d5a50745e9887619703
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.0";
34
+ var version = "4.27.1-0";
35
35
 
36
36
  function ensureArray$1(items) {
37
37
  if (Array.isArray(items)) {
@@ -8501,7 +8501,7 @@ function getChainElementLiteralValueAtPath(element, object, path, recursionTrack
8501
8501
  }
8502
8502
 
8503
8503
  // To avoid infinite recursions
8504
- const MAX_PATH_DEPTH = 7;
8504
+ const MAX_PATH_DEPTH = 6;
8505
8505
  function getResolvablePropertyKey(memberExpression) {
8506
8506
  return memberExpression.computed
8507
8507
  ? getResolvableComputedPropertyKey(memberExpression.property)
@@ -8626,11 +8626,13 @@ class MemberExpression extends NodeBase {
8626
8626
  if (this.variable) {
8627
8627
  this.variable.deoptimizePath(path);
8628
8628
  }
8629
- else if (!this.isUndefined && path.length < MAX_PATH_DEPTH) {
8629
+ else if (!this.isUndefined) {
8630
8630
  const propertyKey = this.getPropertyKey();
8631
8631
  this.object.deoptimizePath([
8632
8632
  propertyKey === UnknownKey ? UnknownNonAccessorKey : propertyKey,
8633
- ...path
8633
+ ...(path.length < MAX_PATH_DEPTH
8634
+ ? path
8635
+ : [...path.slice(0, MAX_PATH_DEPTH), UnknownKey])
8634
8636
  ]);
8635
8637
  }
8636
8638
  }
@@ -8722,7 +8724,12 @@ class MemberExpression extends NodeBase {
8722
8724
  includePath(path, context, includeChildrenRecursively) {
8723
8725
  if (!this.deoptimized)
8724
8726
  this.applyDeoptimizations();
8725
- this.includeProperties(path, [this.getPropertyKey(), ...path], context, includeChildrenRecursively);
8727
+ this.includeProperties(path, [
8728
+ this.getPropertyKey(),
8729
+ ...(path.length < MAX_PATH_DEPTH
8730
+ ? path
8731
+ : [...path.slice(0, MAX_PATH_DEPTH), UnknownKey])
8732
+ ], context, includeChildrenRecursively);
8726
8733
  }
8727
8734
  includeAsAssignmentTarget(context, includeChildrenRecursively, deoptimizeAccess) {
8728
8735
  if (!this.assignmentDeoptimized)
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.27.0
4
- Fri, 15 Nov 2024 10:40:04 GMT - commit c035068dfebeb959a35a8acf3ff008a249e2af73
3
+ Rollup.js v4.27.1-0
4
+ Fri, 15 Nov 2024 13:27:36 GMT - commit a80f6a94d720224a44331d5a50745e9887619703
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.0
4
- Fri, 15 Nov 2024 10:40:04 GMT - commit c035068dfebeb959a35a8acf3ff008a249e2af73
3
+ Rollup.js v4.27.1-0
4
+ Fri, 15 Nov 2024 13:27:36 GMT - commit a80f6a94d720224a44331d5a50745e9887619703
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.0",
3
+ "version": "4.27.1-0",
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.0",
113
- "@rollup/rollup-android-arm64": "4.27.0",
114
- "@rollup/rollup-win32-arm64-msvc": "4.27.0",
115
- "@rollup/rollup-freebsd-arm64": "4.27.0",
116
- "@rollup/rollup-linux-arm64-gnu": "4.27.0",
117
- "@rollup/rollup-linux-arm64-musl": "4.27.0",
118
- "@rollup/rollup-android-arm-eabi": "4.27.0",
119
- "@rollup/rollup-linux-arm-gnueabihf": "4.27.0",
120
- "@rollup/rollup-linux-arm-musleabihf": "4.27.0",
121
- "@rollup/rollup-win32-ia32-msvc": "4.27.0",
122
- "@rollup/rollup-linux-riscv64-gnu": "4.27.0",
123
- "@rollup/rollup-linux-powerpc64le-gnu": "4.27.0",
124
- "@rollup/rollup-linux-s390x-gnu": "4.27.0",
125
- "@rollup/rollup-darwin-x64": "4.27.0",
126
- "@rollup/rollup-win32-x64-msvc": "4.27.0",
127
- "@rollup/rollup-freebsd-x64": "4.27.0",
128
- "@rollup/rollup-linux-x64-gnu": "4.27.0",
129
- "@rollup/rollup-linux-x64-musl": "4.27.0"
112
+ "@rollup/rollup-darwin-arm64": "4.27.1-0",
113
+ "@rollup/rollup-android-arm64": "4.27.1-0",
114
+ "@rollup/rollup-win32-arm64-msvc": "4.27.1-0",
115
+ "@rollup/rollup-freebsd-arm64": "4.27.1-0",
116
+ "@rollup/rollup-linux-arm64-gnu": "4.27.1-0",
117
+ "@rollup/rollup-linux-arm64-musl": "4.27.1-0",
118
+ "@rollup/rollup-android-arm-eabi": "4.27.1-0",
119
+ "@rollup/rollup-linux-arm-gnueabihf": "4.27.1-0",
120
+ "@rollup/rollup-linux-arm-musleabihf": "4.27.1-0",
121
+ "@rollup/rollup-win32-ia32-msvc": "4.27.1-0",
122
+ "@rollup/rollup-linux-riscv64-gnu": "4.27.1-0",
123
+ "@rollup/rollup-linux-powerpc64le-gnu": "4.27.1-0",
124
+ "@rollup/rollup-linux-s390x-gnu": "4.27.1-0",
125
+ "@rollup/rollup-darwin-x64": "4.27.1-0",
126
+ "@rollup/rollup-win32-x64-msvc": "4.27.1-0",
127
+ "@rollup/rollup-freebsd-x64": "4.27.1-0",
128
+ "@rollup/rollup-linux-x64-gnu": "4.27.1-0",
129
+ "@rollup/rollup-linux-x64-musl": "4.27.1-0"
130
130
  },
131
131
  "dependencies": {
132
132
  "@types/estree": "1.0.6"