rollup 4.17.1 → 4.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
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  /*
3
3
  @license
4
- Rollup.js v4.17.1
5
- Mon, 29 Apr 2024 04:57:19 GMT - commit dbf0a2e5d3c3eae09ac4d502646d0ecab63f40fd
4
+ Rollup.js v4.17.2
5
+ Tue, 30 Apr 2024 05:00:09 GMT - commit 5e955a1c2c5e080f80f20f650da9b44909d65d56
6
6
 
7
7
  https://github.com/rollup/rollup
8
8
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.17.1
4
- Mon, 29 Apr 2024 04:57:19 GMT - commit dbf0a2e5d3c3eae09ac4d502646d0ecab63f40fd
3
+ Rollup.js v4.17.2
4
+ Tue, 30 Apr 2024 05:00:09 GMT - commit 5e955a1c2c5e080f80f20f650da9b44909d65d56
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.17.1
4
- Mon, 29 Apr 2024 04:57:19 GMT - commit dbf0a2e5d3c3eae09ac4d502646d0ecab63f40fd
3
+ Rollup.js v4.17.2
4
+ Tue, 30 Apr 2024 05:00:09 GMT - commit 5e955a1c2c5e080f80f20f650da9b44909d65d56
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.17.1
4
- Mon, 29 Apr 2024 04:57:19 GMT - commit dbf0a2e5d3c3eae09ac4d502646d0ecab63f40fd
3
+ Rollup.js v4.17.2
4
+ Tue, 30 Apr 2024 05:00:09 GMT - commit 5e955a1c2c5e080f80f20f650da9b44909d65d56
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.17.1
4
- Mon, 29 Apr 2024 04:57:19 GMT - commit dbf0a2e5d3c3eae09ac4d502646d0ecab63f40fd
3
+ Rollup.js v4.17.2
4
+ Tue, 30 Apr 2024 05:00:09 GMT - commit 5e955a1c2c5e080f80f20f650da9b44909d65d56
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.17.1";
19
+ var version = "4.17.2";
20
20
 
21
21
  const comma = ','.charCodeAt(0);
22
22
  const semicolon = ';'.charCodeAt(0);
@@ -7952,6 +7952,9 @@ class FunctionBase extends NodeBase {
7952
7952
  const parameter = this.params[position];
7953
7953
  // Only the "this" argument arg[0] can be null
7954
7954
  const argument = args[position + 1];
7955
+ if (argument instanceof SpreadElement) {
7956
+ this.deoptimizeParameterVariableValues();
7957
+ }
7955
7958
  if (hasRest || parameter instanceof RestElement) {
7956
7959
  hasRest = true;
7957
7960
  argument.deoptimizePath(UNKNOWN_PATH);
@@ -13531,7 +13534,7 @@ function getPersistedLabel(label, level) {
13531
13534
  return label;
13532
13535
  }
13533
13536
  default: {
13534
- return `${' '.repeat(level - 4)}- ${label}`;
13537
+ return `- ${label}`;
13535
13538
  }
13536
13539
  }
13537
13540
  }
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.17.1
4
- Mon, 29 Apr 2024 04:57:19 GMT - commit dbf0a2e5d3c3eae09ac4d502646d0ecab63f40fd
3
+ Rollup.js v4.17.2
4
+ Tue, 30 Apr 2024 05:00:09 GMT - commit 5e955a1c2c5e080f80f20f650da9b44909d65d56
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.17.1
4
- Mon, 29 Apr 2024 04:57:19 GMT - commit dbf0a2e5d3c3eae09ac4d502646d0ecab63f40fd
3
+ Rollup.js v4.17.2
4
+ Tue, 30 Apr 2024 05:00:09 GMT - commit 5e955a1c2c5e080f80f20f650da9b44909d65d56
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.17.1
4
- Mon, 29 Apr 2024 04:57:19 GMT - commit dbf0a2e5d3c3eae09ac4d502646d0ecab63f40fd
3
+ Rollup.js v4.17.2
4
+ Tue, 30 Apr 2024 05:00:09 GMT - commit 5e955a1c2c5e080f80f20f650da9b44909d65d56
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.17.1
4
- Mon, 29 Apr 2024 04:57:19 GMT - commit dbf0a2e5d3c3eae09ac4d502646d0ecab63f40fd
3
+ Rollup.js v4.17.2
4
+ Tue, 30 Apr 2024 05:00:09 GMT - commit 5e955a1c2c5e080f80f20f650da9b44909d65d56
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.17.1
4
- Mon, 29 Apr 2024 04:57:19 GMT - commit dbf0a2e5d3c3eae09ac4d502646d0ecab63f40fd
3
+ Rollup.js v4.17.2
4
+ Tue, 30 Apr 2024 05:00:09 GMT - commit 5e955a1c2c5e080f80f20f650da9b44909d65d56
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.17.1
4
- Mon, 29 Apr 2024 04:57:19 GMT - commit dbf0a2e5d3c3eae09ac4d502646d0ecab63f40fd
3
+ Rollup.js v4.17.2
4
+ Tue, 30 Apr 2024 05:00:09 GMT - commit 5e955a1c2c5e080f80f20f650da9b44909d65d56
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.17.1
4
- Mon, 29 Apr 2024 04:57:19 GMT - commit dbf0a2e5d3c3eae09ac4d502646d0ecab63f40fd
3
+ Rollup.js v4.17.2
4
+ Tue, 30 Apr 2024 05:00:09 GMT - commit 5e955a1c2c5e080f80f20f650da9b44909d65d56
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.17.1
4
- Mon, 29 Apr 2024 04:57:19 GMT - commit dbf0a2e5d3c3eae09ac4d502646d0ecab63f40fd
3
+ Rollup.js v4.17.2
4
+ Tue, 30 Apr 2024 05:00:09 GMT - commit 5e955a1c2c5e080f80f20f650da9b44909d65d56
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.17.1
4
- Mon, 29 Apr 2024 04:57:19 GMT - commit dbf0a2e5d3c3eae09ac4d502646d0ecab63f40fd
3
+ Rollup.js v4.17.2
4
+ Tue, 30 Apr 2024 05:00:09 GMT - commit 5e955a1c2c5e080f80f20f650da9b44909d65d56
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.17.1
4
- Mon, 29 Apr 2024 04:57:19 GMT - commit dbf0a2e5d3c3eae09ac4d502646d0ecab63f40fd
3
+ Rollup.js v4.17.2
4
+ Tue, 30 Apr 2024 05:00:09 GMT - commit 5e955a1c2c5e080f80f20f650da9b44909d65d56
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.17.1
4
- Mon, 29 Apr 2024 04:57:19 GMT - commit dbf0a2e5d3c3eae09ac4d502646d0ecab63f40fd
3
+ Rollup.js v4.17.2
4
+ Tue, 30 Apr 2024 05:00:09 GMT - commit 5e955a1c2c5e080f80f20f650da9b44909d65d56
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.17.1";
34
+ var version = "4.17.2";
35
35
 
36
36
  function ensureArray$1(items) {
37
37
  if (Array.isArray(items)) {
@@ -9394,6 +9394,9 @@ class FunctionBase extends NodeBase {
9394
9394
  const parameter = this.params[position];
9395
9395
  // Only the "this" argument arg[0] can be null
9396
9396
  const argument = args[position + 1];
9397
+ if (argument instanceof SpreadElement) {
9398
+ this.deoptimizeParameterVariableValues();
9399
+ }
9397
9400
  if (hasRest || parameter instanceof RestElement) {
9398
9401
  hasRest = true;
9399
9402
  argument.deoptimizePath(UNKNOWN_PATH);
@@ -14966,7 +14969,7 @@ function getPersistedLabel(label, level) {
14966
14969
  return label;
14967
14970
  }
14968
14971
  default: {
14969
- return `${' '.repeat(level - 4)}- ${label}`;
14972
+ return `- ${label}`;
14970
14973
  }
14971
14974
  }
14972
14975
  }
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.17.1
4
- Mon, 29 Apr 2024 04:57:19 GMT - commit dbf0a2e5d3c3eae09ac4d502646d0ecab63f40fd
3
+ Rollup.js v4.17.2
4
+ Tue, 30 Apr 2024 05:00:09 GMT - commit 5e955a1c2c5e080f80f20f650da9b44909d65d56
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.17.1
4
- Mon, 29 Apr 2024 04:57:19 GMT - commit dbf0a2e5d3c3eae09ac4d502646d0ecab63f40fd
3
+ Rollup.js v4.17.2
4
+ Tue, 30 Apr 2024 05:00:09 GMT - commit 5e955a1c2c5e080f80f20f650da9b44909d65d56
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.17.1",
3
+ "version": "4.17.2",
4
4
  "description": "Next-generation ES module bundler",
5
5
  "main": "dist/rollup.js",
6
6
  "module": "dist/es/rollup.js",
@@ -50,6 +50,7 @@
50
50
  "dev": "vitepress dev docs",
51
51
  "build:cjs": "rollup --config rollup.config.ts --configPlugin typescript --configTest --forceExit",
52
52
  "build:bootstrap": "shx mv dist dist-build && node dist-build/bin/rollup --config rollup.config.ts --configPlugin typescript --forceExit && shx rm -rf dist-build",
53
+ "build:bootstrap:cjs": "shx mv dist dist-build && node dist-build/bin/rollup --config rollup.config.ts --configPlugin typescript --configTest --forceExit && shx rm -rf dist-build",
53
54
  "build:docs": "vitepress build docs",
54
55
  "build:ast-converters": "node scripts/generate-ast-converters.js",
55
56
  "preview:docs": "vitepress preview docs",
@@ -66,7 +67,7 @@
66
67
  "lint:markdown:nofix": "prettier --check \"**/*.md\"",
67
68
  "lint:rust": "cd rust && cargo fmt && cargo clippy --fix --allow-dirty",
68
69
  "lint:rust:nofix": "cd rust && cargo fmt --check && cargo clippy",
69
- "perf": "npm run build && node --expose-gc scripts/perf-report/index.js",
70
+ "perf": "npm run build:bootstrap:cjs && node --expose-gc scripts/perf-report/index.js",
70
71
  "prepare": "husky && node scripts/check-release.js || npm run build:prepare",
71
72
  "prepublishOnly": "node scripts/check-release.js && node scripts/prepublish.js",
72
73
  "postpublish": "node scripts/postpublish.js",
@@ -104,22 +105,22 @@
104
105
  "homepage": "https://rollupjs.org/",
105
106
  "optionalDependencies": {
106
107
  "fsevents": "~2.3.2",
107
- "@rollup/rollup-darwin-arm64": "4.17.1",
108
- "@rollup/rollup-android-arm64": "4.17.1",
109
- "@rollup/rollup-win32-arm64-msvc": "4.17.1",
110
- "@rollup/rollup-linux-arm64-gnu": "4.17.1",
111
- "@rollup/rollup-linux-arm64-musl": "4.17.1",
112
- "@rollup/rollup-android-arm-eabi": "4.17.1",
113
- "@rollup/rollup-linux-arm-gnueabihf": "4.17.1",
114
- "@rollup/rollup-linux-arm-musleabihf": "4.17.1",
115
- "@rollup/rollup-win32-ia32-msvc": "4.17.1",
116
- "@rollup/rollup-linux-riscv64-gnu": "4.17.1",
117
- "@rollup/rollup-linux-powerpc64le-gnu": "4.17.1",
118
- "@rollup/rollup-linux-s390x-gnu": "4.17.1",
119
- "@rollup/rollup-darwin-x64": "4.17.1",
120
- "@rollup/rollup-win32-x64-msvc": "4.17.1",
121
- "@rollup/rollup-linux-x64-gnu": "4.17.1",
122
- "@rollup/rollup-linux-x64-musl": "4.17.1"
108
+ "@rollup/rollup-darwin-arm64": "4.17.2",
109
+ "@rollup/rollup-android-arm64": "4.17.2",
110
+ "@rollup/rollup-win32-arm64-msvc": "4.17.2",
111
+ "@rollup/rollup-linux-arm64-gnu": "4.17.2",
112
+ "@rollup/rollup-linux-arm64-musl": "4.17.2",
113
+ "@rollup/rollup-android-arm-eabi": "4.17.2",
114
+ "@rollup/rollup-linux-arm-gnueabihf": "4.17.2",
115
+ "@rollup/rollup-linux-arm-musleabihf": "4.17.2",
116
+ "@rollup/rollup-win32-ia32-msvc": "4.17.2",
117
+ "@rollup/rollup-linux-riscv64-gnu": "4.17.2",
118
+ "@rollup/rollup-linux-powerpc64le-gnu": "4.17.2",
119
+ "@rollup/rollup-linux-s390x-gnu": "4.17.2",
120
+ "@rollup/rollup-darwin-x64": "4.17.2",
121
+ "@rollup/rollup-win32-x64-msvc": "4.17.2",
122
+ "@rollup/rollup-linux-x64-gnu": "4.17.2",
123
+ "@rollup/rollup-linux-x64-musl": "4.17.2"
123
124
  },
124
125
  "dependencies": {
125
126
  "@types/estree": "1.0.5"