rollup 4.4.1 → 4.5.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.4.1
5
- Tue, 14 Nov 2023 05:24:21 GMT - commit 01d8c9d1b68919c2c429427ae7e60f503a8bb5f4
4
+ Rollup.js v4.5.0
5
+ Sat, 18 Nov 2023 05:51:43 GMT - commit 86efc769f693516a29047c8d160c6d7287fb965d
6
6
 
7
7
  https://github.com/rollup/rollup
8
8
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.4.1
4
- Tue, 14 Nov 2023 05:24:21 GMT - commit 01d8c9d1b68919c2c429427ae7e60f503a8bb5f4
3
+ Rollup.js v4.5.0
4
+ Sat, 18 Nov 2023 05:51:43 GMT - commit 86efc769f693516a29047c8d160c6d7287fb965d
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.4.1
4
- Tue, 14 Nov 2023 05:24:21 GMT - commit 01d8c9d1b68919c2c429427ae7e60f503a8bb5f4
3
+ Rollup.js v4.5.0
4
+ Sat, 18 Nov 2023 05:51:43 GMT - commit 86efc769f693516a29047c8d160c6d7287fb965d
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.4.1
4
- Tue, 14 Nov 2023 05:24:21 GMT - commit 01d8c9d1b68919c2c429427ae7e60f503a8bb5f4
3
+ Rollup.js v4.5.0
4
+ Sat, 18 Nov 2023 05:51:43 GMT - commit 86efc769f693516a29047c8d160c6d7287fb965d
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.4.1
4
- Tue, 14 Nov 2023 05:24:21 GMT - commit 01d8c9d1b68919c2c429427ae7e60f503a8bb5f4
3
+ Rollup.js v4.5.0
4
+ Sat, 18 Nov 2023 05:51:43 GMT - commit 86efc769f693516a29047c8d160c6d7287fb965d
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -16,7 +16,7 @@ import { xxhashBase64Url } from '../../native.js';
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.4.1";
19
+ var version = "4.5.0";
20
20
 
21
21
  const comma = ','.charCodeAt(0);
22
22
  const semicolon = ';'.charCodeAt(0);
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.4.1
4
- Tue, 14 Nov 2023 05:24:21 GMT - commit 01d8c9d1b68919c2c429427ae7e60f503a8bb5f4
3
+ Rollup.js v4.5.0
4
+ Sat, 18 Nov 2023 05:51:43 GMT - commit 86efc769f693516a29047c8d160c6d7287fb965d
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.4.1
4
- Tue, 14 Nov 2023 05:24:21 GMT - commit 01d8c9d1b68919c2c429427ae7e60f503a8bb5f4
3
+ Rollup.js v4.5.0
4
+ Sat, 18 Nov 2023 05:51:43 GMT - commit 86efc769f693516a29047c8d160c6d7287fb965d
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.4.1
4
- Tue, 14 Nov 2023 05:24:21 GMT - commit 01d8c9d1b68919c2c429427ae7e60f503a8bb5f4
3
+ Rollup.js v4.5.0
4
+ Sat, 18 Nov 2023 05:51:43 GMT - commit 86efc769f693516a29047c8d160c6d7287fb965d
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.4.1
4
- Tue, 14 Nov 2023 05:24:21 GMT - commit 01d8c9d1b68919c2c429427ae7e60f503a8bb5f4
3
+ Rollup.js v4.5.0
4
+ Sat, 18 Nov 2023 05:51:43 GMT - commit 86efc769f693516a29047c8d160c6d7287fb965d
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
package/dist/native.js CHANGED
@@ -14,7 +14,7 @@ const bindingsByPlatformAndArch = {
14
14
  x64: { base: 'darwin-x64' }
15
15
  },
16
16
  linux: {
17
- arm: { base: 'linux-arm-gnueabihf' },
17
+ arm: { base: 'linux-arm-gnueabihf', musl: null },
18
18
  arm64: { base: 'linux-arm64-gnu', musl: 'linux-arm64-musl' },
19
19
  x64: { base: 'linux-x64-gnu', musl: 'linux-x64-musl' }
20
20
  },
@@ -25,8 +25,9 @@ const bindingsByPlatformAndArch = {
25
25
  }
26
26
  };
27
27
 
28
- const imported = bindingsByPlatformAndArch[platform]?.[arch];
29
- if (!imported) {
28
+ const packageBase = getPackageBase();
29
+
30
+ if (!packageBase) {
30
31
  throw new Error(
31
32
  `Your current platform "${platform}" and architecture "${arch}" combination is not yet supported by the native Rollup build. Please use the WASM build "@rollup/wasm-node" instead.
32
33
 
@@ -44,7 +45,17 @@ If this is important to you, please consider supporting Rollup to make a native
44
45
  );
45
46
  }
46
47
 
47
- const packageBase = imported.musl && isMusl() ? imported.musl : imported.base;
48
+ function getPackageBase() {
49
+ const imported = bindingsByPlatformAndArch[platform]?.[arch];
50
+ if (!imported) {
51
+ return null;
52
+ }
53
+ if ('musl' in imported && isMusl()) {
54
+ return imported.musl;
55
+ }
56
+ return imported.base;
57
+ }
58
+
48
59
  const localName = `./rollup.${packageBase}.node`;
49
60
  const { parse, parseAsync, xxhashBase64Url } = require(
50
61
  existsSync(join(__dirname, localName)) ? localName : `@rollup/rollup-${packageBase}`
package/dist/parseAst.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.4.1
4
- Tue, 14 Nov 2023 05:24:21 GMT - commit 01d8c9d1b68919c2c429427ae7e60f503a8bb5f4
3
+ Rollup.js v4.5.0
4
+ Sat, 18 Nov 2023 05:51:43 GMT - commit 86efc769f693516a29047c8d160c6d7287fb965d
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.4.1
4
- Tue, 14 Nov 2023 05:24:21 GMT - commit 01d8c9d1b68919c2c429427ae7e60f503a8bb5f4
3
+ Rollup.js v4.5.0
4
+ Sat, 18 Nov 2023 05:51:43 GMT - commit 86efc769f693516a29047c8d160c6d7287fb965d
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.4.1
4
- Tue, 14 Nov 2023 05:24:21 GMT - commit 01d8c9d1b68919c2c429427ae7e60f503a8bb5f4
3
+ Rollup.js v4.5.0
4
+ Sat, 18 Nov 2023 05:51:43 GMT - commit 86efc769f693516a29047c8d160c6d7287fb965d
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.4.1
4
- Tue, 14 Nov 2023 05:24:21 GMT - commit 01d8c9d1b68919c2c429427ae7e60f503a8bb5f4
3
+ Rollup.js v4.5.0
4
+ Sat, 18 Nov 2023 05:51:43 GMT - commit 86efc769f693516a29047c8d160c6d7287fb965d
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.4.1
4
- Tue, 14 Nov 2023 05:24:21 GMT - commit 01d8c9d1b68919c2c429427ae7e60f503a8bb5f4
3
+ Rollup.js v4.5.0
4
+ Sat, 18 Nov 2023 05:51:43 GMT - commit 86efc769f693516a29047c8d160c6d7287fb965d
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.4.1
4
- Tue, 14 Nov 2023 05:24:21 GMT - commit 01d8c9d1b68919c2c429427ae7e60f503a8bb5f4
3
+ Rollup.js v4.5.0
4
+ Sat, 18 Nov 2023 05:51:43 GMT - commit 86efc769f693516a29047c8d160c6d7287fb965d
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.4.1
4
- Tue, 14 Nov 2023 05:24:21 GMT - commit 01d8c9d1b68919c2c429427ae7e60f503a8bb5f4
3
+ Rollup.js v4.5.0
4
+ Sat, 18 Nov 2023 05:51:43 GMT - commit 86efc769f693516a29047c8d160c6d7287fb965d
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.4.1";
34
+ var version = "4.5.0";
35
35
 
36
36
  function ensureArray$1(items) {
37
37
  if (Array.isArray(items)) {
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.4.1
4
- Tue, 14 Nov 2023 05:24:21 GMT - commit 01d8c9d1b68919c2c429427ae7e60f503a8bb5f4
3
+ Rollup.js v4.5.0
4
+ Sat, 18 Nov 2023 05:51:43 GMT - commit 86efc769f693516a29047c8d160c6d7287fb965d
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.4.1
4
- Tue, 14 Nov 2023 05:24:21 GMT - commit 01d8c9d1b68919c2c429427ae7e60f503a8bb5f4
3
+ Rollup.js v4.5.0
4
+ Sat, 18 Nov 2023 05:51:43 GMT - commit 86efc769f693516a29047c8d160c6d7287fb965d
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.4.1
4
- Tue, 14 Nov 2023 05:24:21 GMT - commit 01d8c9d1b68919c2c429427ae7e60f503a8bb5f4
3
+ Rollup.js v4.5.0
4
+ Sat, 18 Nov 2023 05:51:43 GMT - commit 86efc769f693516a29047c8d160c6d7287fb965d
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.4.1",
3
+ "version": "4.5.0",
4
4
  "description": "Next-generation ES module bundler",
5
5
  "main": "dist/rollup.js",
6
6
  "module": "dist/es/rollup.js",
@@ -100,18 +100,18 @@
100
100
  "homepage": "https://rollupjs.org/",
101
101
  "optionalDependencies": {
102
102
  "fsevents": "~2.3.2",
103
- "@rollup/rollup-darwin-arm64": "4.4.1",
104
- "@rollup/rollup-android-arm64": "4.4.1",
105
- "@rollup/rollup-win32-arm64-msvc": "4.4.1",
106
- "@rollup/rollup-linux-arm64-gnu": "4.4.1",
107
- "@rollup/rollup-linux-arm64-musl": "4.4.1",
108
- "@rollup/rollup-android-arm-eabi": "4.4.1",
109
- "@rollup/rollup-linux-arm-gnueabihf": "4.4.1",
110
- "@rollup/rollup-win32-ia32-msvc": "4.4.1",
111
- "@rollup/rollup-darwin-x64": "4.4.1",
112
- "@rollup/rollup-win32-x64-msvc": "4.4.1",
113
- "@rollup/rollup-linux-x64-gnu": "4.4.1",
114
- "@rollup/rollup-linux-x64-musl": "4.4.1"
103
+ "@rollup/rollup-darwin-arm64": "4.5.0",
104
+ "@rollup/rollup-android-arm64": "4.5.0",
105
+ "@rollup/rollup-win32-arm64-msvc": "4.5.0",
106
+ "@rollup/rollup-linux-arm64-gnu": "4.5.0",
107
+ "@rollup/rollup-linux-arm64-musl": "4.5.0",
108
+ "@rollup/rollup-android-arm-eabi": "4.5.0",
109
+ "@rollup/rollup-linux-arm-gnueabihf": "4.5.0",
110
+ "@rollup/rollup-win32-ia32-msvc": "4.5.0",
111
+ "@rollup/rollup-darwin-x64": "4.5.0",
112
+ "@rollup/rollup-win32-x64-msvc": "4.5.0",
113
+ "@rollup/rollup-linux-x64-gnu": "4.5.0",
114
+ "@rollup/rollup-linux-x64-musl": "4.5.0"
115
115
  },
116
116
  "devDependenciesComments": {
117
117
  "@rollup/plugin-typescript": "It appears that 11.1.3 breaks sourcemaps"
@@ -136,11 +136,11 @@
136
136
  "@rollup/plugin-typescript": "11.1.5",
137
137
  "@rollup/pluginutils": "^5.0.5",
138
138
  "@types/estree": "1.0.5",
139
- "@types/mocha": "^10.0.3",
139
+ "@types/mocha": "^10.0.4",
140
140
  "@types/node": "18.0.0",
141
- "@types/yargs-parser": "^21.0.2",
142
- "@typescript-eslint/eslint-plugin": "^6.10.0",
143
- "@typescript-eslint/parser": "^6.10.0",
141
+ "@types/yargs-parser": "^21.0.3",
142
+ "@typescript-eslint/eslint-plugin": "^6.11.0",
143
+ "@typescript-eslint/parser": "^6.11.0",
144
144
  "@vue/eslint-config-prettier": "^8.0.0",
145
145
  "@vue/eslint-config-typescript": "^12.0.0",
146
146
  "acorn": "^8.11.2",
@@ -165,19 +165,19 @@
165
165
  "fs-extra": "^11.1.1",
166
166
  "github-api": "^3.4.0",
167
167
  "husky": "^8.0.3",
168
- "inquirer": "^9.2.11",
168
+ "inquirer": "^9.2.12",
169
169
  "is-reference": "^3.0.2",
170
- "lint-staged": "^15.0.2",
170
+ "lint-staged": "^15.1.0",
171
171
  "locate-character": "^3.0.0",
172
172
  "magic-string": "^0.30.5",
173
173
  "mocha": "^10.2.0",
174
174
  "nyc": "^15.1.0",
175
175
  "pinia": "^2.1.7",
176
- "prettier": "^3.0.3",
176
+ "prettier": "^3.1.0",
177
177
  "pretty-bytes": "^6.1.1",
178
178
  "pretty-ms": "^8.0.0",
179
179
  "requirejs": "^2.3.6",
180
- "rollup": "^4.3.1",
180
+ "rollup": "^4.4.0",
181
181
  "rollup-plugin-license": "^3.2.0",
182
182
  "rollup-plugin-string": "^3.0.0",
183
183
  "rollup-plugin-thatworks": "^1.0.4",
@@ -198,7 +198,7 @@
198
198
  "yargs-parser": "^21.1.1"
199
199
  },
200
200
  "overrides": {
201
- "axios": "^1.6.0",
201
+ "axios": "^1.6.1",
202
202
  "semver": "^7.5.4"
203
203
  },
204
204
  "files": [