rollup 4.27.4 → 4.28.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.4
5
- Sat, 23 Nov 2024 06:59:50 GMT - commit e805b546405a4e6cfccd3fe73e9f4df770023824
4
+ Rollup.js v4.28.0
5
+ Sat, 30 Nov 2024 13:15:17 GMT - commit 0595e433edec3608bfc0331d8f02912374e7f7f7
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.4
4
- Sat, 23 Nov 2024 06:59:50 GMT - commit e805b546405a4e6cfccd3fe73e9f4df770023824
3
+ Rollup.js v4.28.0
4
+ Sat, 30 Nov 2024 13:15:17 GMT - commit 0595e433edec3608bfc0331d8f02912374e7f7f7
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.4
4
- Sat, 23 Nov 2024 06:59:50 GMT - commit e805b546405a4e6cfccd3fe73e9f4df770023824
3
+ Rollup.js v4.28.0
4
+ Sat, 30 Nov 2024 13:15:17 GMT - commit 0595e433edec3608bfc0331d8f02912374e7f7f7
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.4
4
- Sat, 23 Nov 2024 06:59:50 GMT - commit e805b546405a4e6cfccd3fe73e9f4df770023824
3
+ Rollup.js v4.28.0
4
+ Sat, 30 Nov 2024 13:15:17 GMT - commit 0595e433edec3608bfc0331d8f02912374e7f7f7
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.4
4
- Sat, 23 Nov 2024 06:59:50 GMT - commit e805b546405a4e6cfccd3fe73e9f4df770023824
3
+ Rollup.js v4.28.0
4
+ Sat, 30 Nov 2024 13:15:17 GMT - commit 0595e433edec3608bfc0331d8f02912374e7f7f7
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.4";
19
+ var version = "4.28.0";
20
20
 
21
21
  const comma = ','.charCodeAt(0);
22
22
  const semicolon = ';'.charCodeAt(0);
@@ -22035,6 +22035,7 @@ async function mergeOptions(config, watchMode, rawCommandOptions = EMPTY_COMMAND
22035
22035
  ...Object.keys(commandAliases),
22036
22036
  'bundleConfigAsCjs',
22037
22037
  'config',
22038
+ 'configImportAttributesKey',
22038
22039
  'configPlugin',
22039
22040
  'environment',
22040
22041
  'failAfterWarnings',
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.27.4
4
- Sat, 23 Nov 2024 06:59:50 GMT - commit e805b546405a4e6cfccd3fe73e9f4df770023824
3
+ Rollup.js v4.28.0
4
+ Sat, 30 Nov 2024 13:15:17 GMT - commit 0595e433edec3608bfc0331d8f02912374e7f7f7
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.4
4
- Sat, 23 Nov 2024 06:59:50 GMT - commit e805b546405a4e6cfccd3fe73e9f4df770023824
3
+ Rollup.js v4.28.0
4
+ Sat, 30 Nov 2024 13:15:17 GMT - commit 0595e433edec3608bfc0331d8f02912374e7f7f7
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.4
4
- Sat, 23 Nov 2024 06:59:50 GMT - commit e805b546405a4e6cfccd3fe73e9f4df770023824
3
+ Rollup.js v4.28.0
4
+ Sat, 30 Nov 2024 13:15:17 GMT - commit 0595e433edec3608bfc0331d8f02912374e7f7f7
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.4
4
- Sat, 23 Nov 2024 06:59:50 GMT - commit e805b546405a4e6cfccd3fe73e9f4df770023824
3
+ Rollup.js v4.28.0
4
+ Sat, 30 Nov 2024 13:15:17 GMT - commit 0595e433edec3608bfc0331d8f02912374e7f7f7
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.4
4
- Sat, 23 Nov 2024 06:59:50 GMT - commit e805b546405a4e6cfccd3fe73e9f4df770023824
3
+ Rollup.js v4.28.0
4
+ Sat, 30 Nov 2024 13:15:17 GMT - commit 0595e433edec3608bfc0331d8f02912374e7f7f7
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.4
4
- Sat, 23 Nov 2024 06:59:50 GMT - commit e805b546405a4e6cfccd3fe73e9f4df770023824
3
+ Rollup.js v4.28.0
4
+ Sat, 30 Nov 2024 13:15:17 GMT - commit 0595e433edec3608bfc0331d8f02912374e7f7f7
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.4
4
- Sat, 23 Nov 2024 06:59:50 GMT - commit e805b546405a4e6cfccd3fe73e9f4df770023824
3
+ Rollup.js v4.28.0
4
+ Sat, 30 Nov 2024 13:15:17 GMT - commit 0595e433edec3608bfc0331d8f02912374e7f7f7
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.4
4
- Sat, 23 Nov 2024 06:59:50 GMT - commit e805b546405a4e6cfccd3fe73e9f4df770023824
3
+ Rollup.js v4.28.0
4
+ Sat, 30 Nov 2024 13:15:17 GMT - commit 0595e433edec3608bfc0331d8f02912374e7f7f7
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.4
4
- Sat, 23 Nov 2024 06:59:50 GMT - commit e805b546405a4e6cfccd3fe73e9f4df770023824
3
+ Rollup.js v4.28.0
4
+ Sat, 30 Nov 2024 13:15:17 GMT - commit 0595e433edec3608bfc0331d8f02912374e7f7f7
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -486,8 +486,13 @@ async function getConfigFileExport(fileName, commandOptions, watchMode) {
486
486
  function getDefaultFromCjs(namespace) {
487
487
  return namespace.default || namespace;
488
488
  }
489
+ function getConfigImportAttributesKey(input) {
490
+ if (input === 'assert' || input === 'with')
491
+ return input;
492
+ return;
493
+ }
489
494
  async function loadTranspiledConfigFile(fileName, commandOptions) {
490
- const { bundleConfigAsCjs, configPlugin, silent } = commandOptions;
495
+ const { bundleConfigAsCjs, configPlugin, configImportAttributesKey, silent } = commandOptions;
491
496
  const warnings = batchWarnings(commandOptions);
492
497
  const inputOptions = {
493
498
  external: (id) => (id[0] !== '.' && !path.isAbsolute(id)) || id.slice(-5) === '.json',
@@ -501,6 +506,7 @@ async function loadTranspiledConfigFile(fileName, commandOptions) {
501
506
  const { output: [{ code }] } = await bundle.generate({
502
507
  exports: 'named',
503
508
  format: bundleConfigAsCjs ? 'cjs' : 'es',
509
+ importAttributesKey: getConfigImportAttributesKey(configImportAttributesKey),
504
510
  plugins: [
505
511
  {
506
512
  name: 'transpile-import-meta',
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.27.4
4
- Sat, 23 Nov 2024 06:59:50 GMT - commit e805b546405a4e6cfccd3fe73e9f4df770023824
3
+ Rollup.js v4.28.0
4
+ Sat, 30 Nov 2024 13:15:17 GMT - commit 0595e433edec3608bfc0331d8f02912374e7f7f7
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.4
4
- Sat, 23 Nov 2024 06:59:50 GMT - commit e805b546405a4e6cfccd3fe73e9f4df770023824
3
+ Rollup.js v4.28.0
4
+ Sat, 30 Nov 2024 13:15:17 GMT - commit 0595e433edec3608bfc0331d8f02912374e7f7f7
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.4";
34
+ var version = "4.28.0";
35
35
 
36
36
  function ensureArray$1(items) {
37
37
  if (Array.isArray(items)) {
@@ -1245,6 +1245,7 @@ async function mergeOptions(config, watchMode, rawCommandOptions = EMPTY_COMMAND
1245
1245
  ...Object.keys(commandAliases),
1246
1246
  'bundleConfigAsCjs',
1247
1247
  'config',
1248
+ 'configImportAttributesKey',
1248
1249
  'configPlugin',
1249
1250
  'environment',
1250
1251
  'failAfterWarnings',
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.27.4
4
- Sat, 23 Nov 2024 06:59:50 GMT - commit e805b546405a4e6cfccd3fe73e9f4df770023824
3
+ Rollup.js v4.28.0
4
+ Sat, 30 Nov 2024 13:15:17 GMT - commit 0595e433edec3608bfc0331d8f02912374e7f7f7
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.4
4
- Sat, 23 Nov 2024 06:59:50 GMT - commit e805b546405a4e6cfccd3fe73e9f4df770023824
3
+ Rollup.js v4.28.0
4
+ Sat, 30 Nov 2024 13:15:17 GMT - commit 0595e433edec3608bfc0331d8f02912374e7f7f7
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.4",
3
+ "version": "4.28.0",
4
4
  "description": "Next-generation ES module bundler",
5
5
  "main": "dist/rollup.js",
6
6
  "module": "dist/es/rollup.js",
@@ -60,7 +60,7 @@
60
60
  "ci:lint": "concurrently -c red,yellow,green,blue 'npm:lint:js:nofix' 'npm:lint:native-js' 'npm:lint:markdown:nofix' 'npm:lint:rust:nofix'",
61
61
  "ci:test:only": "npm run build:cjs && npm run build:copy-native && npm run build:bootstrap && npm run build:copy-native && npm run test:only",
62
62
  "ci:test:all": "npm run build:cjs && npm run build:copy-native && npm run build:bootstrap && npm run build:copy-native && concurrently --kill-others-on-fail -c green,blue,magenta,cyan 'npm:test:only' 'npm:test:typescript' 'npm:test:leak' 'npm:test:browser'",
63
- "ci:coverage": "npm run build:cjs && npm run build:copy-native && npm run build:bootstrap && npm run build:copy-native && nyc --reporter lcovonly mocha",
63
+ "ci:coverage": "npm run build:cjs && npm run build:copy-native && npm run build:bootstrap && npm run build:copy-native && NODE_OPTIONS=--no-experimental-detect-module nyc --reporter lcovonly mocha",
64
64
  "lint": "concurrently -c red,yellow,green,blue 'npm:lint:js' 'npm:lint:native-js' 'npm:lint:markdown' 'npm:lint:rust'",
65
65
  "lint:js": "eslint . --fix --cache",
66
66
  "lint:js:nofix": "eslint . --cache",
@@ -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.4",
113
- "@rollup/rollup-android-arm64": "4.27.4",
114
- "@rollup/rollup-win32-arm64-msvc": "4.27.4",
115
- "@rollup/rollup-freebsd-arm64": "4.27.4",
116
- "@rollup/rollup-linux-arm64-gnu": "4.27.4",
117
- "@rollup/rollup-linux-arm64-musl": "4.27.4",
118
- "@rollup/rollup-android-arm-eabi": "4.27.4",
119
- "@rollup/rollup-linux-arm-gnueabihf": "4.27.4",
120
- "@rollup/rollup-linux-arm-musleabihf": "4.27.4",
121
- "@rollup/rollup-win32-ia32-msvc": "4.27.4",
122
- "@rollup/rollup-linux-riscv64-gnu": "4.27.4",
123
- "@rollup/rollup-linux-powerpc64le-gnu": "4.27.4",
124
- "@rollup/rollup-linux-s390x-gnu": "4.27.4",
125
- "@rollup/rollup-darwin-x64": "4.27.4",
126
- "@rollup/rollup-win32-x64-msvc": "4.27.4",
127
- "@rollup/rollup-freebsd-x64": "4.27.4",
128
- "@rollup/rollup-linux-x64-gnu": "4.27.4",
129
- "@rollup/rollup-linux-x64-musl": "4.27.4"
112
+ "@rollup/rollup-darwin-arm64": "4.28.0",
113
+ "@rollup/rollup-android-arm64": "4.28.0",
114
+ "@rollup/rollup-win32-arm64-msvc": "4.28.0",
115
+ "@rollup/rollup-freebsd-arm64": "4.28.0",
116
+ "@rollup/rollup-linux-arm64-gnu": "4.28.0",
117
+ "@rollup/rollup-linux-arm64-musl": "4.28.0",
118
+ "@rollup/rollup-android-arm-eabi": "4.28.0",
119
+ "@rollup/rollup-linux-arm-gnueabihf": "4.28.0",
120
+ "@rollup/rollup-linux-arm-musleabihf": "4.28.0",
121
+ "@rollup/rollup-win32-ia32-msvc": "4.28.0",
122
+ "@rollup/rollup-linux-riscv64-gnu": "4.28.0",
123
+ "@rollup/rollup-linux-powerpc64le-gnu": "4.28.0",
124
+ "@rollup/rollup-linux-s390x-gnu": "4.28.0",
125
+ "@rollup/rollup-darwin-x64": "4.28.0",
126
+ "@rollup/rollup-win32-x64-msvc": "4.28.0",
127
+ "@rollup/rollup-freebsd-x64": "4.28.0",
128
+ "@rollup/rollup-linux-x64-gnu": "4.28.0",
129
+ "@rollup/rollup-linux-x64-musl": "4.28.0"
130
130
  },
131
131
  "dependencies": {
132
132
  "@types/estree": "1.0.6"
@@ -137,10 +137,10 @@
137
137
  "devDependencies": {
138
138
  "@codemirror/commands": "^6.7.1",
139
139
  "@codemirror/lang-javascript": "^6.2.2",
140
- "@codemirror/language": "^6.10.3",
141
- "@codemirror/search": "^6.5.7",
140
+ "@codemirror/language": "^6.10.4",
141
+ "@codemirror/search": "^6.5.8",
142
142
  "@codemirror/state": "^6.4.1",
143
- "@codemirror/view": "^6.34.3",
143
+ "@codemirror/view": "^6.35.0",
144
144
  "@eslint/js": "^9.15.0",
145
145
  "@inquirer/prompts": "^7.1.0",
146
146
  "@jridgewell/sourcemap-codec": "^1.5.0",
@@ -156,8 +156,8 @@
156
156
  "@rollup/plugin-typescript": "^12.1.1",
157
157
  "@rollup/pluginutils": "^5.1.3",
158
158
  "@shikijs/vitepress-twoslash": "^1.23.1",
159
- "@types/mocha": "^10.0.9",
160
- "@types/node": "^18.19.64",
159
+ "@types/mocha": "^10.0.10",
160
+ "@types/node": "^18.19.66",
161
161
  "@types/semver": "^7.5.8",
162
162
  "@types/yargs-parser": "^21.0.3",
163
163
  "@vue/language-server": "^2.1.10",
@@ -177,7 +177,7 @@
177
177
  "eslint": "^9.15.0",
178
178
  "eslint-config-prettier": "^9.1.0",
179
179
  "eslint-plugin-prettier": "^5.2.1",
180
- "eslint-plugin-unicorn": "^56.0.0",
180
+ "eslint-plugin-unicorn": "^56.0.1",
181
181
  "eslint-plugin-vue": "^9.31.0",
182
182
  "fixturify": "^3.0.0",
183
183
  "flru": "^1.0.2",
@@ -188,18 +188,18 @@
188
188
  "is-reference": "^3.0.3",
189
189
  "lint-staged": "^15.2.10",
190
190
  "locate-character": "^3.0.0",
191
- "magic-string": "^0.30.13",
191
+ "magic-string": "^0.30.14",
192
192
  "mocha": "^10.8.2",
193
193
  "nodemon": "^3.1.7",
194
194
  "npm-audit-resolver": "^3.0.0-RC.0",
195
195
  "nyc": "^17.1.0",
196
196
  "pinia": "^2.2.6",
197
- "prettier": "^3.3.3",
197
+ "prettier": "^3.4.1",
198
198
  "prettier-plugin-organize-imports": "^4.1.0",
199
199
  "pretty-bytes": "^6.1.1",
200
200
  "pretty-ms": "^9.2.0",
201
201
  "requirejs": "^2.3.7",
202
- "rollup": "^4.27.3",
202
+ "rollup": "^4.27.4",
203
203
  "rollup-plugin-license": "^3.5.3",
204
204
  "rollup-plugin-string": "^3.0.0",
205
205
  "semver": "^7.6.3",
@@ -210,8 +210,8 @@
210
210
  "systemjs": "^6.15.1",
211
211
  "terser": "^5.36.0",
212
212
  "tslib": "^2.8.1",
213
- "typescript": "^5.6.3",
214
- "typescript-eslint": "^8.15.0",
213
+ "typescript": "^5.7.2",
214
+ "typescript-eslint": "^8.16.0",
215
215
  "vite": "^5.4.11",
216
216
  "vitepress": "^1.5.0",
217
217
  "vue": "^3.5.13",
@@ -220,7 +220,7 @@
220
220
  "yargs-parser": "^21.1.1"
221
221
  },
222
222
  "overrides": {
223
- "axios": "^1.7.7",
223
+ "axios": "^1.7.8",
224
224
  "semver": "^7.6.3",
225
225
  "ws": "^8.18.0"
226
226
  },