@rollup/wasm-node 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/wasm-node",
3
- "version": "4.21.2",
3
+ "version": "4.21.3",
4
4
  "description": "Next-generation ES module bundler with Node wasm",
5
5
  "main": "dist/rollup.js",
6
6
  "module": "dist/es/rollup.js",
@@ -33,7 +33,7 @@
33
33
  "core-js": "We only update manually as every update requires a snapshot update"
34
34
  },
35
35
  "devDependencies": {
36
- "@codemirror/commands": "^6.6.0",
36
+ "@codemirror/commands": "^6.6.1",
37
37
  "@codemirror/lang-javascript": "^6.2.2",
38
38
  "@codemirror/language": "^6.10.2",
39
39
  "@codemirror/search": "^6.5.6",
@@ -52,7 +52,7 @@
52
52
  "@rollup/plugin-terser": "^0.4.4",
53
53
  "@rollup/plugin-typescript": "^11.1.6",
54
54
  "@rollup/pluginutils": "^5.1.0",
55
- "@shikijs/vitepress-twoslash": "^1.14.1",
55
+ "@shikijs/vitepress-twoslash": "^1.16.1",
56
56
  "@types/eslint": "^9.6.1",
57
57
  "@types/inquirer": "^9.0.7",
58
58
  "@types/mocha": "^10.0.7",
@@ -82,9 +82,9 @@
82
82
  "github-api": "^3.4.0",
83
83
  "globals": "^15.9.0",
84
84
  "husky": "^9.1.5",
85
- "inquirer": "^10.1.8",
85
+ "inquirer": "^10.2.0",
86
86
  "is-reference": "^3.0.2",
87
- "lint-staged": "^15.2.9",
87
+ "lint-staged": "^15.2.10",
88
88
  "locate-character": "^3.0.0",
89
89
  "magic-string": "^0.30.11",
90
90
  "mocha": "^10.7.3",
@@ -97,7 +97,7 @@
97
97
  "pretty-bytes": "^6.1.1",
98
98
  "pretty-ms": "^9.1.0",
99
99
  "requirejs": "^2.3.7",
100
- "rollup": "^4.21.1",
100
+ "rollup": "^4.21.2",
101
101
  "rollup-plugin-license": "^3.5.2",
102
102
  "rollup-plugin-string": "^3.0.0",
103
103
  "semver": "^7.6.3",
@@ -109,7 +109,7 @@
109
109
  "terser": "^5.31.6",
110
110
  "tslib": "^2.7.0",
111
111
  "typescript": "^5.5.4",
112
- "typescript-eslint": "^8.3.0",
112
+ "typescript-eslint": "^8.4.0",
113
113
  "vite": "^5.4.2",
114
114
  "vitepress": "^1.3.4",
115
115
  "vue": "^3.4.38",
@@ -117,7 +117,7 @@
117
117
  "yargs-parser": "^21.1.1"
118
118
  },
119
119
  "overrides": {
120
- "axios": "^1.7.5",
120
+ "axios": "^1.7.7",
121
121
  "semver": "^7.6.3",
122
122
  "ws": "^8.18.0"
123
123
  },