rollup 4.21.2 → 4.21.3

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.21.2
5
- Fri, 30 Aug 2024 07:03:57 GMT - commit f83b3151e93253a45f5b8ccb9ccb2e04214bc490
4
+ Rollup.js v4.21.3
5
+ Thu, 12 Sep 2024 07:05:19 GMT - commit 9f5a735524a5c56ba61a8dc6989374917f5aceb1
6
6
 
7
7
  https://github.com/rollup/rollup
8
8
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.21.2
4
- Fri, 30 Aug 2024 07:03:57 GMT - commit f83b3151e93253a45f5b8ccb9ccb2e04214bc490
3
+ Rollup.js v4.21.3
4
+ Thu, 12 Sep 2024 07:05:19 GMT - commit 9f5a735524a5c56ba61a8dc6989374917f5aceb1
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.21.2
4
- Fri, 30 Aug 2024 07:03:57 GMT - commit f83b3151e93253a45f5b8ccb9ccb2e04214bc490
3
+ Rollup.js v4.21.3
4
+ Thu, 12 Sep 2024 07:05:19 GMT - commit 9f5a735524a5c56ba61a8dc6989374917f5aceb1
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.21.2
4
- Fri, 30 Aug 2024 07:03:57 GMT - commit f83b3151e93253a45f5b8ccb9ccb2e04214bc490
3
+ Rollup.js v4.21.3
4
+ Thu, 12 Sep 2024 07:05:19 GMT - commit 9f5a735524a5c56ba61a8dc6989374917f5aceb1
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.21.2
4
- Fri, 30 Aug 2024 07:03:57 GMT - commit f83b3151e93253a45f5b8ccb9ccb2e04214bc490
3
+ Rollup.js v4.21.3
4
+ Thu, 12 Sep 2024 07:05:19 GMT - commit 9f5a735524a5c56ba61a8dc6989374917f5aceb1
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.21.2";
19
+ var version = "4.21.3";
20
20
 
21
21
  const comma = ','.charCodeAt(0);
22
22
  const semicolon = ';'.charCodeAt(0);
@@ -8951,7 +8951,7 @@ class MemberExpression extends NodeBase {
8951
8951
  // We only apply deoptimizations lazily once we know we are not skipping
8952
8952
  if (!this.deoptimized)
8953
8953
  this.applyDeoptimizations();
8954
- return this.property.hasEffects(context) || this.hasAccessEffect(context);
8954
+ return objectHasEffects || this.property.hasEffects(context) || this.hasAccessEffect(context);
8955
8955
  }
8956
8956
  hasEffectsAsAssignmentTarget(context, checkAccess) {
8957
8957
  if (checkAccess && !this.deoptimized)
@@ -9276,7 +9276,8 @@ class CallExpression extends CallExpressionBase {
9276
9276
  return true;
9277
9277
  }
9278
9278
  return (!this.annotationPure &&
9279
- this.callee.hasEffectsOnInteractionAtPath(EMPTY_PATH, this.interaction, context));
9279
+ (calleeHasEffects ||
9280
+ this.callee.hasEffectsOnInteractionAtPath(EMPTY_PATH, this.interaction, context)));
9280
9281
  }
9281
9282
  include(context, includeChildrenRecursively) {
9282
9283
  if (!this.deoptimized)
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.21.2
4
- Fri, 30 Aug 2024 07:03:57 GMT - commit f83b3151e93253a45f5b8ccb9ccb2e04214bc490
3
+ Rollup.js v4.21.3
4
+ Thu, 12 Sep 2024 07:05:19 GMT - commit 9f5a735524a5c56ba61a8dc6989374917f5aceb1
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -431,7 +431,9 @@ function augmentLogMessage(log) {
431
431
  const position = log.loc ? ` (${log.loc.line}:${log.loc.column})` : '';
432
432
  prefix += `${relativeId(id)}${position}: `;
433
433
  }
434
+ const oldMessage = log.message;
434
435
  log.message = prefix + log.message;
436
+ tweakStackMessage(log, oldMessage);
435
437
  }
436
438
  // Error codes should be sorted alphabetically while errors should be sorted by
437
439
  // error code below
@@ -657,6 +659,13 @@ function logCannotAssignModuleToChunk(moduleId, assignToAlias, currentAlias) {
657
659
  message: `Cannot assign "${relativeId(moduleId)}" to the "${assignToAlias}" chunk as it is already in the "${currentAlias}" chunk.`
658
660
  };
659
661
  }
662
+ function tweakStackMessage(error, oldMessage) {
663
+ if (!error.stack) {
664
+ return error;
665
+ }
666
+ error.stack = error.stack.replace(oldMessage, error.message);
667
+ return error;
668
+ }
660
669
  function logInvalidExportOptionValue(optionValue) {
661
670
  return {
662
671
  code: INVALID_EXPORT_OPTION,
@@ -877,13 +886,13 @@ function logModuleParseError(error, moduleId) {
877
886
  else if (!moduleId.endsWith('.js')) {
878
887
  message += ' (Note that you need plugins to import files that are not JavaScript)';
879
888
  }
880
- return {
889
+ return tweakStackMessage({
881
890
  cause: error,
882
891
  code: PARSE_ERROR,
883
892
  id: moduleId,
884
893
  message,
885
894
  stack: error.stack
886
- };
895
+ }, error.message);
887
896
  }
888
897
  function logPluginError(error, plugin, { hook, id } = {}) {
889
898
  const code = error.code;
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.21.2
4
- Fri, 30 Aug 2024 07:03:57 GMT - commit f83b3151e93253a45f5b8ccb9ccb2e04214bc490
3
+ Rollup.js v4.21.3
4
+ Thu, 12 Sep 2024 07:05:19 GMT - commit 9f5a735524a5c56ba61a8dc6989374917f5aceb1
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.21.2
4
- Fri, 30 Aug 2024 07:03:57 GMT - commit f83b3151e93253a45f5b8ccb9ccb2e04214bc490
3
+ Rollup.js v4.21.3
4
+ Thu, 12 Sep 2024 07:05:19 GMT - commit 9f5a735524a5c56ba61a8dc6989374917f5aceb1
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.21.2
4
- Fri, 30 Aug 2024 07:03:57 GMT - commit f83b3151e93253a45f5b8ccb9ccb2e04214bc490
3
+ Rollup.js v4.21.3
4
+ Thu, 12 Sep 2024 07:05:19 GMT - commit 9f5a735524a5c56ba61a8dc6989374917f5aceb1
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.21.2
4
- Fri, 30 Aug 2024 07:03:57 GMT - commit f83b3151e93253a45f5b8ccb9ccb2e04214bc490
3
+ Rollup.js v4.21.3
4
+ Thu, 12 Sep 2024 07:05:19 GMT - commit 9f5a735524a5c56ba61a8dc6989374917f5aceb1
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.21.2
4
- Fri, 30 Aug 2024 07:03:57 GMT - commit f83b3151e93253a45f5b8ccb9ccb2e04214bc490
3
+ Rollup.js v4.21.3
4
+ Thu, 12 Sep 2024 07:05:19 GMT - commit 9f5a735524a5c56ba61a8dc6989374917f5aceb1
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.21.2
4
- Fri, 30 Aug 2024 07:03:57 GMT - commit f83b3151e93253a45f5b8ccb9ccb2e04214bc490
3
+ Rollup.js v4.21.3
4
+ Thu, 12 Sep 2024 07:05:19 GMT - commit 9f5a735524a5c56ba61a8dc6989374917f5aceb1
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.21.2
4
- Fri, 30 Aug 2024 07:03:57 GMT - commit f83b3151e93253a45f5b8ccb9ccb2e04214bc490
3
+ Rollup.js v4.21.3
4
+ Thu, 12 Sep 2024 07:05:19 GMT - commit 9f5a735524a5c56ba61a8dc6989374917f5aceb1
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.21.2
4
- Fri, 30 Aug 2024 07:03:57 GMT - commit f83b3151e93253a45f5b8ccb9ccb2e04214bc490
3
+ Rollup.js v4.21.3
4
+ Thu, 12 Sep 2024 07:05:19 GMT - commit 9f5a735524a5c56ba61a8dc6989374917f5aceb1
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.21.2
4
- Fri, 30 Aug 2024 07:03:57 GMT - commit f83b3151e93253a45f5b8ccb9ccb2e04214bc490
3
+ Rollup.js v4.21.3
4
+ Thu, 12 Sep 2024 07:05:19 GMT - commit 9f5a735524a5c56ba61a8dc6989374917f5aceb1
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -321,7 +321,9 @@ function augmentLogMessage(log) {
321
321
  const position = log.loc ? ` (${log.loc.line}:${log.loc.column})` : '';
322
322
  prefix += `${relativeId(id)}${position}: `;
323
323
  }
324
+ const oldMessage = log.message;
324
325
  log.message = prefix + log.message;
326
+ tweakStackMessage(log, oldMessage);
325
327
  }
326
328
  // Error codes should be sorted alphabetically while errors should be sorted by
327
329
  // error code below
@@ -559,32 +561,39 @@ function logCannotAssignModuleToChunk(moduleId, assignToAlias, currentAlias) {
559
561
  message: `Cannot assign "${relativeId(moduleId)}" to the "${assignToAlias}" chunk as it is already in the "${currentAlias}" chunk.`
560
562
  };
561
563
  }
564
+ function tweakStackMessage(error, oldMessage) {
565
+ if (!error.stack) {
566
+ return error;
567
+ }
568
+ error.stack = error.stack.replace(oldMessage, error.message);
569
+ return error;
570
+ }
562
571
  function logCannotBundleConfigAsEsm(originalError) {
563
- return {
572
+ return tweakStackMessage({
564
573
  cause: originalError,
565
574
  code: INVALID_CONFIG_MODULE_FORMAT,
566
575
  message: `Rollup transpiled your configuration to an ES module even though it appears to contain CommonJS elements. To resolve this, you can pass the "--bundleConfigAsCjs" flag to Rollup or change your configuration to only contain valid ESM code.\n\nOriginal error: ${originalError.message}`,
567
576
  stack: originalError.stack,
568
577
  url: getRollupUrl(URL_BUNDLE_CONFIG_AS_CJS)
569
- };
578
+ }, originalError.message);
570
579
  }
571
580
  function logCannotLoadConfigAsCjs(originalError) {
572
- return {
581
+ return tweakStackMessage({
573
582
  cause: originalError,
574
583
  code: INVALID_CONFIG_MODULE_FORMAT,
575
584
  message: `Node tried to load your configuration file as CommonJS even though it is likely an ES module. To resolve this, change the extension of your configuration to ".mjs", set "type": "module" in your package.json file or pass the "--bundleConfigAsCjs" flag.\n\nOriginal error: ${originalError.message}`,
576
585
  stack: originalError.stack,
577
586
  url: getRollupUrl(URL_BUNDLE_CONFIG_AS_CJS)
578
- };
587
+ }, originalError.message);
579
588
  }
580
589
  function logCannotLoadConfigAsEsm(originalError) {
581
- return {
590
+ return tweakStackMessage({
582
591
  cause: originalError,
583
592
  code: INVALID_CONFIG_MODULE_FORMAT,
584
593
  message: `Node tried to load your configuration as an ES module even though it is likely CommonJS. To resolve this, change the extension of your configuration to ".cjs" or pass the "--bundleConfigAsCjs" flag.\n\nOriginal error: ${originalError.message}`,
585
594
  stack: originalError.stack,
586
595
  url: getRollupUrl(URL_BUNDLE_CONFIG_AS_CJS)
587
- };
596
+ }, originalError.message);
588
597
  }
589
598
  function logInvalidExportOptionValue(optionValue) {
590
599
  return {
@@ -825,13 +834,13 @@ function logModuleParseError(error, moduleId) {
825
834
  else if (!moduleId.endsWith('.js')) {
826
835
  message += ' (Note that you need plugins to import files that are not JavaScript)';
827
836
  }
828
- return {
837
+ return tweakStackMessage({
829
838
  cause: error,
830
839
  code: PARSE_ERROR,
831
840
  id: moduleId,
832
841
  message,
833
842
  stack: error.stack
834
- };
843
+ }, error.message);
835
844
  }
836
845
  function logPluginError(error, plugin, { hook, id } = {}) {
837
846
  const code = error.code;
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.21.2
4
- Fri, 30 Aug 2024 07:03:57 GMT - commit f83b3151e93253a45f5b8ccb9ccb2e04214bc490
3
+ Rollup.js v4.21.3
4
+ Thu, 12 Sep 2024 07:05:19 GMT - commit 9f5a735524a5c56ba61a8dc6989374917f5aceb1
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.21.2";
34
+ var version = "4.21.3";
35
35
 
36
36
  function ensureArray$1(items) {
37
37
  if (Array.isArray(items)) {
@@ -10405,7 +10405,7 @@ class MemberExpression extends NodeBase {
10405
10405
  // We only apply deoptimizations lazily once we know we are not skipping
10406
10406
  if (!this.deoptimized)
10407
10407
  this.applyDeoptimizations();
10408
- return this.property.hasEffects(context) || this.hasAccessEffect(context);
10408
+ return objectHasEffects || this.property.hasEffects(context) || this.hasAccessEffect(context);
10409
10409
  }
10410
10410
  hasEffectsAsAssignmentTarget(context, checkAccess) {
10411
10411
  if (checkAccess && !this.deoptimized)
@@ -10730,7 +10730,8 @@ class CallExpression extends CallExpressionBase {
10730
10730
  return true;
10731
10731
  }
10732
10732
  return (!this.annotationPure &&
10733
- this.callee.hasEffectsOnInteractionAtPath(EMPTY_PATH, this.interaction, context));
10733
+ (calleeHasEffects ||
10734
+ this.callee.hasEffectsOnInteractionAtPath(EMPTY_PATH, this.interaction, context)));
10734
10735
  }
10735
10736
  include(context, includeChildrenRecursively) {
10736
10737
  if (!this.deoptimized)
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.21.2
4
- Fri, 30 Aug 2024 07:03:57 GMT - commit f83b3151e93253a45f5b8ccb9ccb2e04214bc490
3
+ Rollup.js v4.21.3
4
+ Thu, 12 Sep 2024 07:05:19 GMT - commit 9f5a735524a5c56ba61a8dc6989374917f5aceb1
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.21.2
4
- Fri, 30 Aug 2024 07:03:57 GMT - commit f83b3151e93253a45f5b8ccb9ccb2e04214bc490
3
+ Rollup.js v4.21.3
4
+ Thu, 12 Sep 2024 07:05:19 GMT - commit 9f5a735524a5c56ba61a8dc6989374917f5aceb1
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.21.2",
3
+ "version": "4.21.3",
4
4
  "description": "Next-generation ES module bundler",
5
5
  "main": "dist/rollup.js",
6
6
  "module": "dist/es/rollup.js",
@@ -107,22 +107,22 @@
107
107
  "homepage": "https://rollupjs.org/",
108
108
  "optionalDependencies": {
109
109
  "fsevents": "~2.3.2",
110
- "@rollup/rollup-darwin-arm64": "4.21.2",
111
- "@rollup/rollup-android-arm64": "4.21.2",
112
- "@rollup/rollup-win32-arm64-msvc": "4.21.2",
113
- "@rollup/rollup-linux-arm64-gnu": "4.21.2",
114
- "@rollup/rollup-linux-arm64-musl": "4.21.2",
115
- "@rollup/rollup-android-arm-eabi": "4.21.2",
116
- "@rollup/rollup-linux-arm-gnueabihf": "4.21.2",
117
- "@rollup/rollup-linux-arm-musleabihf": "4.21.2",
118
- "@rollup/rollup-win32-ia32-msvc": "4.21.2",
119
- "@rollup/rollup-linux-riscv64-gnu": "4.21.2",
120
- "@rollup/rollup-linux-powerpc64le-gnu": "4.21.2",
121
- "@rollup/rollup-linux-s390x-gnu": "4.21.2",
122
- "@rollup/rollup-darwin-x64": "4.21.2",
123
- "@rollup/rollup-win32-x64-msvc": "4.21.2",
124
- "@rollup/rollup-linux-x64-gnu": "4.21.2",
125
- "@rollup/rollup-linux-x64-musl": "4.21.2"
110
+ "@rollup/rollup-darwin-arm64": "4.21.3",
111
+ "@rollup/rollup-android-arm64": "4.21.3",
112
+ "@rollup/rollup-win32-arm64-msvc": "4.21.3",
113
+ "@rollup/rollup-linux-arm64-gnu": "4.21.3",
114
+ "@rollup/rollup-linux-arm64-musl": "4.21.3",
115
+ "@rollup/rollup-android-arm-eabi": "4.21.3",
116
+ "@rollup/rollup-linux-arm-gnueabihf": "4.21.3",
117
+ "@rollup/rollup-linux-arm-musleabihf": "4.21.3",
118
+ "@rollup/rollup-win32-ia32-msvc": "4.21.3",
119
+ "@rollup/rollup-linux-riscv64-gnu": "4.21.3",
120
+ "@rollup/rollup-linux-powerpc64le-gnu": "4.21.3",
121
+ "@rollup/rollup-linux-s390x-gnu": "4.21.3",
122
+ "@rollup/rollup-darwin-x64": "4.21.3",
123
+ "@rollup/rollup-win32-x64-msvc": "4.21.3",
124
+ "@rollup/rollup-linux-x64-gnu": "4.21.3",
125
+ "@rollup/rollup-linux-x64-musl": "4.21.3"
126
126
  },
127
127
  "dependencies": {
128
128
  "@types/estree": "1.0.5"
@@ -132,7 +132,7 @@
132
132
  "core-js": "We only update manually as every update requires a snapshot update"
133
133
  },
134
134
  "devDependencies": {
135
- "@codemirror/commands": "^6.6.0",
135
+ "@codemirror/commands": "^6.6.1",
136
136
  "@codemirror/lang-javascript": "^6.2.2",
137
137
  "@codemirror/language": "^6.10.2",
138
138
  "@codemirror/search": "^6.5.6",
@@ -151,7 +151,7 @@
151
151
  "@rollup/plugin-terser": "^0.4.4",
152
152
  "@rollup/plugin-typescript": "^11.1.6",
153
153
  "@rollup/pluginutils": "^5.1.0",
154
- "@shikijs/vitepress-twoslash": "^1.14.1",
154
+ "@shikijs/vitepress-twoslash": "^1.16.1",
155
155
  "@types/eslint": "^9.6.1",
156
156
  "@types/inquirer": "^9.0.7",
157
157
  "@types/mocha": "^10.0.7",
@@ -181,9 +181,9 @@
181
181
  "github-api": "^3.4.0",
182
182
  "globals": "^15.9.0",
183
183
  "husky": "^9.1.5",
184
- "inquirer": "^10.1.8",
184
+ "inquirer": "^10.2.0",
185
185
  "is-reference": "^3.0.2",
186
- "lint-staged": "^15.2.9",
186
+ "lint-staged": "^15.2.10",
187
187
  "locate-character": "^3.0.0",
188
188
  "magic-string": "^0.30.11",
189
189
  "mocha": "^10.7.3",
@@ -196,7 +196,7 @@
196
196
  "pretty-bytes": "^6.1.1",
197
197
  "pretty-ms": "^9.1.0",
198
198
  "requirejs": "^2.3.7",
199
- "rollup": "^4.21.1",
199
+ "rollup": "^4.21.2",
200
200
  "rollup-plugin-license": "^3.5.2",
201
201
  "rollup-plugin-string": "^3.0.0",
202
202
  "semver": "^7.6.3",
@@ -208,7 +208,7 @@
208
208
  "terser": "^5.31.6",
209
209
  "tslib": "^2.7.0",
210
210
  "typescript": "^5.5.4",
211
- "typescript-eslint": "^8.3.0",
211
+ "typescript-eslint": "^8.4.0",
212
212
  "vite": "^5.4.2",
213
213
  "vitepress": "^1.3.4",
214
214
  "vue": "^3.4.38",
@@ -216,7 +216,7 @@
216
216
  "yargs-parser": "^21.1.1"
217
217
  },
218
218
  "overrides": {
219
- "axios": "^1.7.5",
219
+ "axios": "^1.7.7",
220
220
  "semver": "^7.6.3",
221
221
  "ws": "^8.18.0"
222
222
  },