rollup 4.63.6 → 4.64.1

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.
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.63.6
4
- Thu, 01 Oct 2026 06:50:26 GMT - commit 966ac85d64887ed38abd4eef67c3813633cbc2f6
3
+ Rollup.js v4.64.1
4
+ Wed, 07 Oct 2026 05:40:24 GMT - commit 2e1a7531fbf618c8fbc897519646ac6119cbaf9f
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -42,7 +42,7 @@ function _mergeNamespaces(n, m) {
42
42
 
43
43
  const promises__namespace = /*#__PURE__*/_interopNamespaceDefault(promises);
44
44
 
45
- var version = "4.63.6";
45
+ var version = "4.64.1";
46
46
  const package_ = {
47
47
  version: version};
48
48
 
@@ -6611,6 +6611,7 @@ function createInclusionContext() {
6611
6611
  hasBreak: false,
6612
6612
  hasContinue: false,
6613
6613
  includedCallArguments: new Set(),
6614
+ includedCallArgumentsOfPossibleValues: null,
6614
6615
  includedLabels: new Set()
6615
6616
  };
6616
6617
  }
@@ -6684,11 +6685,7 @@ class ExpressionEntity {
6684
6685
  if (!this.included)
6685
6686
  this.includeNode(context);
6686
6687
  }
6687
- /* We are both including and including an unknown path here as the former
6688
- * ensures that nested nodes are included while the latter ensures that all
6689
- * paths of the expression are included.
6690
- * */
6691
- includeCallArguments(interaction, context) {
6688
+ includeCallArgumentsWhenCalledAtPath(_path, interaction, context) {
6692
6689
  includeInteraction(interaction, context);
6693
6690
  }
6694
6691
  shouldBeIncluded(_context) {
@@ -6712,6 +6709,10 @@ const includeInteraction = (interaction, context) => {
6712
6709
  interaction.args[0]?.includePath(UNKNOWN_PATH, context);
6713
6710
  includeInteractionWithoutThis(interaction, context);
6714
6711
  };
6712
+ /* We are running both include() and includePath(UNKNOWN_PATH) here as the former
6713
+ * ensures that nested nodes are included while the latter ensures that all
6714
+ * paths of the expression are included.
6715
+ * */
6715
6716
  const includeInteractionWithoutThis = ({ args }, context) => {
6716
6717
  for (let argumentIndex = 1; argumentIndex < args.length; argumentIndex++) {
6717
6718
  const argument = args[argumentIndex];
@@ -6843,6 +6844,7 @@ class Variable extends ExpressionEntity {
6843
6844
  this.renderedLikeHoisted = variable;
6844
6845
  }
6845
6846
  markCalledFromTryStatement() { }
6847
+ addReassignedValue(_value) { }
6846
6848
  setRenderNames(baseName, name) {
6847
6849
  this.renderBaseName = baseName;
6848
6850
  this.renderName = name;
@@ -8023,6 +8025,37 @@ class ObjectEntity extends ExpressionEntity {
8023
8025
  }
8024
8026
  this.prototypeExpression?.includePath(path, context);
8025
8027
  }
8028
+ includeCallArgumentsWhenCalledAtPath(path, interaction, context) {
8029
+ // Mirrors deoptimizeArgumentsOnInteractionAtPath, falling back to
8030
+ // including all arguments when the exact property cannot be tracked
8031
+ const [key, ...subPath] = path;
8032
+ if (this.hasLostTrack ||
8033
+ this.hasUnknownDeoptimizedProperty ||
8034
+ !isConcreteKey(key) ||
8035
+ this.deoptimizedPaths.get(key) ||
8036
+ (typeof key === 'string' && INTEGER_REG_EXP.test(key) && this.hasUnknownDeoptimizedInteger)) {
8037
+ includeInteraction(interaction, context);
8038
+ return;
8039
+ }
8040
+ const properties = this.propertiesAndGettersByKey.get(key);
8041
+ if (properties !== undefined) {
8042
+ // This mirrors the "this" argument inclusion of includeInteraction
8043
+ interaction.args[0]?.includePath(UNKNOWN_PATH, context);
8044
+ for (const property of properties) {
8045
+ property.includeCallArgumentsWhenCalledAtPath(subPath, interaction, context);
8046
+ }
8047
+ return;
8048
+ }
8049
+ if (this.unmatchablePropertiesAndGetters.length > 0 ||
8050
+ (typeof key === 'string' &&
8051
+ INTEGER_REG_EXP.test(key) &&
8052
+ this.unknownIntegerProps.length > 0) ||
8053
+ !this.prototypeExpression) {
8054
+ includeInteraction(interaction, context);
8055
+ return;
8056
+ }
8057
+ this.prototypeExpression.includeCallArgumentsWhenCalledAtPath(path, interaction, context);
8058
+ }
8026
8059
  buildPropertyMaps(properties) {
8027
8060
  const { allProperties, alwaysIncludedProperties, propertiesAndGettersByKey, propertiesAndSettersByKey, settersByKey, gettersByKey, unknownIntegerProps, unmatchablePropertiesAndGetters, unmatchablePropertiesAndSetters, unmatchableGetters, unmatchableSetters } = this;
8028
8061
  for (let index = properties.length - 1; index >= 0; index--) {
@@ -9464,6 +9497,10 @@ class LocalVariable extends Variable {
9464
9497
  this.kind = kind;
9465
9498
  this.calledFromTryStatement = false;
9466
9499
  this.additionalInitializers = null;
9500
+ // A possibly incomplete list of values assigned to this variable after its
9501
+ // declaration; as it is incomplete, it must never be used for value queries
9502
+ // but only to forward call arguments to possible values
9503
+ this.reassignedValues = null;
9467
9504
  this.includedPathTracker = new IncludedFullPathTracker();
9468
9505
  this.expressionsToBeDeoptimized = [];
9469
9506
  this.declarations = declarator ? [declarator] : [];
@@ -9587,19 +9624,48 @@ class LocalVariable extends Variable {
9587
9624
  }
9588
9625
  }
9589
9626
  }
9590
- includeCallArguments(interaction, context) {
9591
- if (this.isReassigned ||
9592
- context.includedCallArguments.has(this.init) ||
9593
- // This can be removed again once we can include arguments when called at
9594
- // a specific path
9595
- this.initPath.length > 0) {
9627
+ includeCallArgumentsWhenCalledAtPath(path, interaction, context) {
9628
+ if (this.isReassigned) {
9629
+ // Even when the value is unknown, it may be one of the assigned values;
9630
+ // forwarding to all of them retains the arguments of try-catch helpers
9596
9631
  includeInteraction(interaction, context);
9632
+ // Each possible value is visited at most once per path and call
9633
+ // per traversal so that dense assignment graphs do not repeat work
9634
+ // for every simple path
9635
+ const previousTracker = context.includedCallArgumentsOfPossibleValues;
9636
+ context.includedCallArgumentsOfPossibleValues ??= new DiscriminatedPathTracker();
9637
+ this.includeCallArgumentsOfPossibleValues(path, interaction, context, context.includedCallArgumentsOfPossibleValues);
9638
+ context.includedCallArgumentsOfPossibleValues = previousTracker;
9639
+ return;
9597
9640
  }
9598
- else {
9599
- context.includedCallArguments.add(this.init);
9600
- this.init.includeCallArguments(interaction, context);
9601
- context.includedCallArguments.delete(this.init);
9641
+ if (context.includedCallArguments.has(this.init) ||
9642
+ path.length + this.initPath.length > MAX_PATH_DEPTH) {
9643
+ includeInteraction(interaction, context);
9644
+ return;
9602
9645
  }
9646
+ context.includedCallArguments.add(this.init);
9647
+ this.init.includeCallArgumentsWhenCalledAtPath([...this.initPath, ...path], interaction, context);
9648
+ context.includedCallArguments.delete(this.init);
9649
+ }
9650
+ includeCallArgumentsOfPossibleValues(path, interaction, context, tracker) {
9651
+ if (this.reassignedValues === null || path.length + this.initPath.length > MAX_PATH_DEPTH) {
9652
+ return;
9653
+ }
9654
+ this.includeCallArgumentsOfPossibleValue(this.init, [...this.initPath, ...path], interaction, context, tracker);
9655
+ for (const entity of this.reassignedValues) {
9656
+ this.includeCallArgumentsOfPossibleValue(entity, path, interaction, context, tracker);
9657
+ }
9658
+ }
9659
+ includeCallArgumentsOfPossibleValue(entity, path, interaction, context, tracker) {
9660
+ if (entity === UNKNOWN_EXPRESSION ||
9661
+ entity === UNDEFINED_EXPRESSION ||
9662
+ tracker.trackEntityAtPathAndGetIfTracked(path, interaction, entity)) {
9663
+ return;
9664
+ }
9665
+ entity.includeCallArgumentsWhenCalledAtPath(path, interaction, context);
9666
+ }
9667
+ addReassignedValue(value) {
9668
+ (this.reassignedValues ??= []).push(value);
9603
9669
  }
9604
9670
  markCalledFromTryStatement() {
9605
9671
  this.calledFromTryStatement = true;
@@ -9705,8 +9771,8 @@ class IdentifierBase extends NodeBase {
9705
9771
  this.variable?.includePath(path, context);
9706
9772
  }
9707
9773
  }
9708
- includeCallArguments(interaction, context) {
9709
- this.variable.includeCallArguments(interaction, context);
9774
+ includeCallArgumentsWhenCalledAtPath(path, interaction, context) {
9775
+ this.variable.includeCallArgumentsWhenCalledAtPath(path, interaction, context);
9710
9776
  }
9711
9777
  isPossibleTDZ() {
9712
9778
  // return cached value to avoid issues with the next tree-shaking pass
@@ -9852,6 +9918,9 @@ class Identifier extends IdentifierBase {
9852
9918
  }
9853
9919
  deoptimizeAssignment(destructuredInitPath, init) {
9854
9920
  this.deoptimizePath(EMPTY_PATH);
9921
+ if (destructuredInitPath.length === 0) {
9922
+ this.variable?.addReassignedValue(init);
9923
+ }
9855
9924
  init.deoptimizePath([...destructuredInitPath, UnknownKey]);
9856
9925
  }
9857
9926
  hasEffectsWhenDestructuring(context, destructuredInitPath, init) {
@@ -10094,6 +10163,9 @@ class MethodBase extends NodeBase {
10094
10163
  }
10095
10164
  this.getAccessedValue()[0].deoptimizeArgumentsOnInteractionAtPath(interaction, path, recursionTracker);
10096
10165
  }
10166
+ includeCallArgumentsWhenCalledAtPath(path, interaction, context) {
10167
+ this.getAccessedValue()[0].includeCallArgumentsWhenCalledAtPath(path, interaction, context);
10168
+ }
10097
10169
  // As getter properties directly receive their values from fixed function
10098
10170
  // expressions, there is no known situation where a getter is deoptimized.
10099
10171
  deoptimizeCache() { }
@@ -10841,16 +10913,31 @@ class ReturnValueScope extends ParameterScope {
10841
10913
  }
10842
10914
  addArgumentToBeDeoptimized(_argument) { }
10843
10915
  updateReturnExpression() {
10844
- if (this.returnExpressions.length === 1) {
10845
- this.returnExpression = this.returnExpressions[0];
10916
+ const { returnExpressions } = this;
10917
+ if (returnExpressions.length === 1) {
10918
+ this.returnExpression = returnExpressions[0];
10846
10919
  }
10847
10920
  else {
10848
- this.returnExpression = UNKNOWN_EXPRESSION;
10849
- for (const expression of this.returnExpressions) {
10850
- expression.deoptimizePath(UNKNOWN_PATH);
10921
+ // Returning the same variable on all paths is equivalent to a single
10922
+ // return, so the return expression can be resolved to that variable
10923
+ const [firstExpression] = returnExpressions;
10924
+ if (firstExpression && this.returnExpressionsResolveToSameVariable(firstExpression)) {
10925
+ this.returnExpression = firstExpression;
10926
+ }
10927
+ else {
10928
+ this.returnExpression = UNKNOWN_EXPRESSION;
10929
+ for (const expression of returnExpressions) {
10930
+ expression.deoptimizePath(UNKNOWN_PATH);
10931
+ }
10851
10932
  }
10852
10933
  }
10853
10934
  }
10935
+ returnExpressionsResolveToSameVariable(firstExpression) {
10936
+ if (!isIdentifierNode(firstExpression) || firstExpression.variable === null) {
10937
+ return false;
10938
+ }
10939
+ return this.returnExpressions.every(expression => isIdentifierNode(expression) && expression.variable === firstExpression.variable);
10940
+ }
10854
10941
  }
10855
10942
 
10856
10943
  class FunctionScope extends ReturnValueScope {
@@ -11039,7 +11126,6 @@ class FunctionBase extends NodeBase {
11039
11126
  constructor() {
11040
11127
  super(...arguments);
11041
11128
  this.parameterVariableValuesDeoptimized = false;
11042
- this.includeCallArguments = this.scope.includeCallArguments.bind(this.scope);
11043
11129
  }
11044
11130
  get async() {
11045
11131
  return isFlagSet(this.flags, 256 /* Flag.async */);
@@ -11156,6 +11242,14 @@ class FunctionBase extends NodeBase {
11156
11242
  this.body.include(context, includeChildrenRecursively);
11157
11243
  context.brokenFlow = brokenFlow;
11158
11244
  }
11245
+ includeCallArgumentsWhenCalledAtPath(path, interaction, context) {
11246
+ if (path.length === 0) {
11247
+ this.scope.includeCallArguments(interaction, context);
11248
+ }
11249
+ else {
11250
+ this.getObjectEntity().includeCallArgumentsWhenCalledAtPath(path, interaction, context);
11251
+ }
11252
+ }
11159
11253
  initialise() {
11160
11254
  super.initialise();
11161
11255
  if (this.body instanceof BlockStatement) {
@@ -11987,12 +12081,20 @@ class MemberExpression extends NodeBase {
11987
12081
  this.object.include(context, includeChildrenRecursively);
11988
12082
  this.property.include(context, includeChildrenRecursively);
11989
12083
  }
11990
- includeCallArguments(interaction, context) {
12084
+ includeCallArgumentsWhenCalledAtPath(path, interaction, context) {
11991
12085
  if (this.promiseHandler) {
11992
- this.promiseHandler.includeCallArguments(interaction, context);
12086
+ if (path.length === 0) {
12087
+ this.promiseHandler.includeCallArguments(interaction, context);
12088
+ }
12089
+ else {
12090
+ includeInteraction(interaction, context);
12091
+ }
11993
12092
  }
11994
12093
  else if (this.variable) {
11995
- this.variable.includeCallArguments(interaction, context);
12094
+ this.variable.includeCallArgumentsWhenCalledAtPath(path, interaction, context);
12095
+ }
12096
+ else if (!this.isUndefined && path.length < MAX_PATH_DEPTH) {
12097
+ this.object.includeCallArgumentsWhenCalledAtPath(this.propertyKey === UnknownKey ? UNKNOWN_PATH : [this.propertyKey, ...path], interaction, context);
11996
12098
  }
11997
12099
  else {
11998
12100
  includeInteraction(interaction, context);
@@ -14410,6 +14512,19 @@ class CallExpressionBase extends NodeBase {
14410
14512
  return ((type === INTERACTION_ASSIGNED || !isPure) &&
14411
14513
  returnExpression.hasEffectsOnInteractionAtPath(path, interaction, context));
14412
14514
  }
14515
+ includeCallArgumentsWhenCalledAtPath(path, interaction, context) {
14516
+ // Mirrors deoptimizeArgumentsOnInteractionAtPath
14517
+ const [returnExpression, isPure] = this.getReturnExpression();
14518
+ if (isPure ||
14519
+ returnExpression === UNKNOWN_EXPRESSION ||
14520
+ context.includedCallArguments.has(returnExpression)) {
14521
+ includeInteraction(interaction, context);
14522
+ return;
14523
+ }
14524
+ context.includedCallArguments.add(returnExpression);
14525
+ returnExpression.includeCallArgumentsWhenCalledAtPath(path, interaction, context);
14526
+ context.includedCallArguments.delete(returnExpression);
14527
+ }
14413
14528
  }
14414
14529
 
14415
14530
  class CallExpression extends CallExpressionBase {
@@ -14488,7 +14603,7 @@ class CallExpression extends CallExpressionBase {
14488
14603
  }
14489
14604
  else {
14490
14605
  this.callee.include(context, false);
14491
- this.callee.includeCallArguments(this.interaction, context);
14606
+ this.callee.includeCallArgumentsWhenCalledAtPath(EMPTY_PATH, this.interaction, context);
14492
14607
  }
14493
14608
  }
14494
14609
  includeNode(_context) {
@@ -14782,14 +14897,19 @@ class ConditionalExpression extends NodeBase {
14782
14897
  usedBranch.includePath(path, context);
14783
14898
  }
14784
14899
  }
14785
- includeCallArguments(interaction, context) {
14786
- const usedBranch = this.getUsedBranch();
14787
- if (usedBranch) {
14788
- usedBranch.includeCallArguments(interaction, context);
14900
+ includeCallArgumentsWhenCalledAtPath(path, interaction, context) {
14901
+ if (path.length === 0) {
14902
+ const usedBranch = this.getUsedBranch();
14903
+ if (usedBranch) {
14904
+ usedBranch.includeCallArgumentsWhenCalledAtPath(EMPTY_PATH, interaction, context);
14905
+ }
14906
+ else {
14907
+ this.consequent.includeCallArgumentsWhenCalledAtPath(EMPTY_PATH, interaction, context);
14908
+ this.alternate.includeCallArgumentsWhenCalledAtPath(EMPTY_PATH, interaction, context);
14909
+ }
14789
14910
  }
14790
14911
  else {
14791
- this.consequent.includeCallArguments(interaction, context);
14792
- this.alternate.includeCallArguments(interaction, context);
14912
+ includeInteraction(interaction, context);
14793
14913
  }
14794
14914
  }
14795
14915
  removeAnnotations(code) {
@@ -15375,7 +15495,7 @@ class ObjectPromiseHandler {
15375
15495
  if (interaction.type === INTERACTION_CALLED &&
15376
15496
  (isFunctionExpressionNode(interaction.args[1]) ||
15377
15497
  isArrowFunctionExpressionNode(interaction.args[1]))) {
15378
- interaction.args[1].includeCallArguments(this.interaction, context);
15498
+ interaction.args[1].includeCallArgumentsWhenCalledAtPath(EMPTY_PATH, this.interaction, context);
15379
15499
  }
15380
15500
  }
15381
15501
  }
@@ -16555,7 +16675,7 @@ class NewExpression extends NodeBase {
16555
16675
  }
16556
16676
  else {
16557
16677
  this.callee.include(context, false);
16558
- this.callee.includeCallArguments(this.interaction, context);
16678
+ this.callee.includeCallArgumentsWhenCalledAtPath(EMPTY_PATH, this.interaction, context);
16559
16679
  }
16560
16680
  }
16561
16681
  includeNode(context) {
@@ -16626,6 +16746,9 @@ class ObjectExpression extends NodeBase {
16626
16746
  this.includeNode(context);
16627
16747
  this.getObjectEntity().includePath(path, context);
16628
16748
  }
16749
+ includeCallArgumentsWhenCalledAtPath(path, interaction, context) {
16750
+ this.getObjectEntity().includeCallArgumentsWhenCalledAtPath(path, interaction, context);
16751
+ }
16629
16752
  render(code, options, { renderedSurroundingElement } = parseAst_js.BLANK) {
16630
16753
  if (renderedSurroundingElement === parseAst_js.ExpressionStatement ||
16631
16754
  renderedSurroundingElement === parseAst_js.ArrowFunctionExpression) {
@@ -17187,7 +17310,7 @@ class TaggedTemplateExpression extends CallExpressionBase {
17187
17310
  else {
17188
17311
  this.quasi.include(context, false);
17189
17312
  this.tag.include(context, false);
17190
- this.tag.includeCallArguments(this.interaction, context);
17313
+ this.tag.includeCallArgumentsWhenCalledAtPath(EMPTY_PATH, this.interaction, context);
17191
17314
  }
17192
17315
  }
17193
17316
  initialise() {
@@ -20794,6 +20917,7 @@ class Chunk {
20794
20917
  const { accessedGlobals, indent, magicString, renderedSource, usedModules, usesTopLevelAwait } = this.renderModules(preliminaryFileName.fileName);
20795
20918
  const renderedDependencies = [...this.getRenderedDependencies().values()];
20796
20919
  const renderedExports = exportMode === 'none' ? [] : this.getChunkExportDeclarations(format);
20920
+ const renderedExportNames = format === 'es' && new Set(renderedExports.map(({ exported }) => exported));
20797
20921
  let hasExports = renderedExports.length > 0;
20798
20922
  let hasDefaultExport = false;
20799
20923
  for (const renderedDependency of renderedDependencies) {
@@ -20803,8 +20927,8 @@ class Chunk {
20803
20927
  if (!hasDefaultExport && reexports.some(reexport => reexport.reexported === 'default')) {
20804
20928
  hasDefaultExport = true;
20805
20929
  }
20806
- if (format === 'es') {
20807
- renderedDependency.reexports = reexports.filter(({ reexported }) => !renderedExports.find(({ exported }) => exported === reexported));
20930
+ if (renderedExportNames) {
20931
+ renderedDependency.reexports = reexports.filter(({ reexported }) => !renderedExportNames.has(reexported));
20808
20932
  }
20809
20933
  }
20810
20934
  }
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.63.6
4
- Thu, 01 Oct 2026 06:50:26 GMT - commit 966ac85d64887ed38abd4eef67c3813633cbc2f6
3
+ Rollup.js v4.64.1
4
+ Wed, 07 Oct 2026 05:40:24 GMT - commit 2e1a7531fbf618c8fbc897519646ac6119cbaf9f
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.63.6
4
- Thu, 01 Oct 2026 06:50:26 GMT - commit 966ac85d64887ed38abd4eef67c3813633cbc2f6
3
+ Rollup.js v4.64.1
4
+ Wed, 07 Oct 2026 05:40:24 GMT - commit 2e1a7531fbf618c8fbc897519646ac6119cbaf9f
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.63.6",
3
+ "version": "4.64.1",
4
4
  "description": "Next-generation ES module bundler",
5
5
  "main": "dist/rollup.js",
6
6
  "module": "dist/es/rollup.js",
@@ -60,10 +60,8 @@
60
60
  "preview:docs": "vitepress preview docs",
61
61
  "ci:artifacts": "napi artifacts",
62
62
  "ci:lint": "concurrently -c red,yellow,green,blue 'npm:lint:js:nofix' 'npm:lint:native-js' 'npm:lint:markdown:nofix' 'npm:lint:rust:nofix'",
63
- "ci:test:all": "concurrently --kill-others-on-fail -c green,blue,magenta,cyan 'npm:test:only' 'npm:test:typescript' 'npm:test:leak' 'npm:test:browser'",
64
- "ci:coverage": "NODE_OPTIONS=--no-experimental-require-module nyc --reporter lcovonly mocha",
63
+ "ci:coverage": "concurrently -c green,blue,magenta,cyan 'npm:test:only:coverage' 'npm:test:typescript' 'npm:test:leak:only' 'npm:test:browser'",
65
64
  "build:napi:coverage": "bash -c 'coverage_env=\"$(cd rust && cargo llvm-cov show-env --sh)\" && eval \"$coverage_env\" && (cd rust && cargo llvm-cov clean --workspace) && npm run build:napi'",
66
- "test:coverage:rust": "bash scripts/coverage-rust.sh",
67
65
  "lint": "concurrently -c red,yellow,green,blue 'npm:lint:js' 'npm:lint:native-js' 'npm:lint:markdown' 'npm:lint:rust'",
68
66
  "lint:js": "eslint . --fix --cache --concurrency auto",
69
67
  "lint:js:nofix": "eslint . --cache --concurrency auto",
@@ -87,12 +85,13 @@
87
85
  "test:cjs": "npm run build:cjs && npm run test:only",
88
86
  "test:quick": "mocha -b test/test.js",
89
87
  "test:all": "concurrently --kill-others-on-fail -c green,blue,magenta,cyan,red 'npm:test:only' 'npm:test:browser' 'npm:test:typescript' 'npm:test:package' 'npm:test:options'",
90
- "test:coverage": "npm run build:cjs && shx rm -rf coverage/* && nyc --reporter html mocha test/test.js",
91
- "test:coverage:browser": "npm run build && shx rm -rf coverage/* && nyc mocha test/browser/index.js",
92
- "test:leak": "npm install --no-save weak-napi && node --expose-gc test/leak/index.js",
88
+ "test:coverage": "bash scripts/coverage.sh",
89
+ "test:leak": "npm install --no-save weak-napi@2.0.2 && npm run test:leak:only",
90
+ "test:leak:only": "node --expose-gc test/leak/index.js",
93
91
  "test:package": "node scripts/test-package.js",
94
92
  "test:options": "node scripts/test-options.js",
95
93
  "test:only": "mocha test/test.js",
94
+ "test:only:coverage": "node scripts/run-with-coverage-environment.js nyc --reporter lcovonly --reporter html mocha test/test.js",
96
95
  "test:typescript": "shx rm -rf test/typescript/dist && shx cp -r dist test/typescript/ && tsc --noEmit -p test/typescript && tsc --noEmit -p . && tsc --noEmit -p scripts && vue-tsc --noEmit -p docs",
97
96
  "test:browser": "mocha test/browser/index.js",
98
97
  "watch": "rollup --config rollup.config.ts --configPlugin typescript --watch"
@@ -117,31 +116,31 @@
117
116
  "optionalDependencies": {
118
117
  "@napi-rs/lzma-linux-x64-gnu": "1.5.1",
119
118
  "fsevents": "~2.3.2",
120
- "@rollup/rollup-darwin-arm64": "4.63.6",
121
- "@rollup/rollup-android-arm64": "4.63.6",
122
- "@rollup/rollup-win32-arm64-msvc": "4.63.6",
123
- "@rollup/rollup-freebsd-arm64": "4.63.6",
124
- "@rollup/rollup-linux-arm64-gnu": "4.63.6",
125
- "@rollup/rollup-linux-arm64-musl": "4.63.6",
126
- "@rollup/rollup-android-arm-eabi": "4.63.6",
127
- "@rollup/rollup-linux-arm-gnueabihf": "4.63.6",
128
- "@rollup/rollup-linux-arm-musleabihf": "4.63.6",
129
- "@rollup/rollup-win32-ia32-msvc": "4.63.6",
130
- "@rollup/rollup-linux-loong64-gnu": "4.63.6",
131
- "@rollup/rollup-linux-loong64-musl": "4.63.6",
132
- "@rollup/rollup-linux-riscv64-gnu": "4.63.6",
133
- "@rollup/rollup-linux-riscv64-musl": "4.63.6",
134
- "@rollup/rollup-linux-ppc64-gnu": "4.63.6",
135
- "@rollup/rollup-linux-ppc64-musl": "4.63.6",
136
- "@rollup/rollup-linux-s390x-gnu": "4.63.6",
137
- "@rollup/rollup-darwin-x64": "4.63.6",
138
- "@rollup/rollup-win32-x64-gnu": "4.63.6",
139
- "@rollup/rollup-win32-x64-msvc": "4.63.6",
140
- "@rollup/rollup-freebsd-x64": "4.63.6",
141
- "@rollup/rollup-linux-x64-gnu": "4.63.6",
142
- "@rollup/rollup-linux-x64-musl": "4.63.6",
143
- "@rollup/rollup-openbsd-x64": "4.63.6",
144
- "@rollup/rollup-openharmony-arm64": "4.63.6"
119
+ "@rollup/rollup-darwin-arm64": "4.64.1",
120
+ "@rollup/rollup-android-arm64": "4.64.1",
121
+ "@rollup/rollup-win32-arm64-msvc": "4.64.1",
122
+ "@rollup/rollup-freebsd-arm64": "4.64.1",
123
+ "@rollup/rollup-linux-arm64-gnu": "4.64.1",
124
+ "@rollup/rollup-linux-arm64-musl": "4.64.1",
125
+ "@rollup/rollup-android-arm-eabi": "4.64.1",
126
+ "@rollup/rollup-linux-arm-gnueabihf": "4.64.1",
127
+ "@rollup/rollup-linux-arm-musleabihf": "4.64.1",
128
+ "@rollup/rollup-win32-ia32-msvc": "4.64.1",
129
+ "@rollup/rollup-linux-loong64-gnu": "4.64.1",
130
+ "@rollup/rollup-linux-loong64-musl": "4.64.1",
131
+ "@rollup/rollup-linux-riscv64-gnu": "4.64.1",
132
+ "@rollup/rollup-linux-riscv64-musl": "4.64.1",
133
+ "@rollup/rollup-linux-ppc64-gnu": "4.64.1",
134
+ "@rollup/rollup-linux-ppc64-musl": "4.64.1",
135
+ "@rollup/rollup-linux-s390x-gnu": "4.64.1",
136
+ "@rollup/rollup-darwin-x64": "4.64.1",
137
+ "@rollup/rollup-win32-x64-gnu": "4.64.1",
138
+ "@rollup/rollup-win32-x64-msvc": "4.64.1",
139
+ "@rollup/rollup-freebsd-x64": "4.64.1",
140
+ "@rollup/rollup-linux-x64-gnu": "4.64.1",
141
+ "@rollup/rollup-linux-x64-musl": "4.64.1",
142
+ "@rollup/rollup-openbsd-x64": "4.64.1",
143
+ "@rollup/rollup-openharmony-arm64": "4.64.1"
145
144
  },
146
145
  "dependencies": {
147
146
  "@types/estree": "1.0.9"
@@ -154,14 +153,14 @@
154
153
  "@codemirror/lang-javascript": "^6.2.5",
155
154
  "@codemirror/language": "^6.12.4",
156
155
  "@codemirror/search": "^6.7.2",
157
- "@codemirror/state": "^6.7.5",
158
- "@codemirror/view": "^6.43.12",
156
+ "@codemirror/state": "^6.7.6",
157
+ "@codemirror/view": "^6.43.13",
159
158
  "@emnapi/core": "^1.11.3",
160
159
  "@emnapi/runtime": "^1.11.3",
161
160
  "@eslint/js": "^10.0.1",
162
161
  "@inquirer/prompts": "^7.10.1",
163
162
  "@jridgewell/sourcemap-codec": "^1.6.0",
164
- "@mermaid-js/mermaid-cli": "^11.17.0",
163
+ "@mermaid-js/mermaid-cli": "^12.0.0",
165
164
  "@napi-rs/cli": "3.4.1",
166
165
  "@rollup/plugin-alias": "^6.0.0",
167
166
  "@rollup/plugin-buble": "^1.0.3",
@@ -195,18 +194,18 @@
195
194
  "eslint-config-prettier": "^10.1.8",
196
195
  "eslint-plugin-prettier": "^5.5.6",
197
196
  "eslint-plugin-unicorn": "^76.0.0",
198
- "eslint-plugin-vue": "^10.11.0",
197
+ "eslint-plugin-vue": "^10.11.1",
199
198
  "fixturify": "^3.0.0",
200
199
  "flru": "^1.0.2",
201
- "fs-extra": "^11.4.0",
200
+ "fs-extra": "^11.4.1",
202
201
  "github-api": "^3.4.0",
203
202
  "globals": "^17.12.0",
204
203
  "husky": "^9.1.7",
205
204
  "is-reference": "^3.0.3",
206
- "lint-staged": "^17.5.1",
205
+ "lint-staged": "^17.6.0",
207
206
  "locate-character": "^3.0.0",
208
- "magic-string": "^1.4.1",
209
- "memfs": "^4.78.1",
207
+ "magic-string": "^1.4.2",
208
+ "memfs": "^4.79.0",
210
209
  "mocha": "^11.8.0",
211
210
  "nodemon": "^3.1.14",
212
211
  "npm-audit-resolver": "^3.0.0-RC.0",
@@ -215,12 +214,12 @@
215
214
  "picocolors": "^1.1.1",
216
215
  "picomatch": "^4.0.7",
217
216
  "pinia": "^4.0.3",
218
- "prettier": "^3.9.8",
217
+ "prettier": "^3.9.9",
219
218
  "prettier-plugin-organize-imports": "^4.3.0",
220
- "pretty-bytes": "^7.1.3",
219
+ "pretty-bytes": "^7.2.0",
221
220
  "pretty-ms": "^9.3.1",
222
221
  "requirejs": "^2.3.8",
223
- "rollup": "^4.63.4",
222
+ "rollup": "^4.63.5",
224
223
  "rollup-plugin-license": "^3.7.1",
225
224
  "semver": "^7.8.5",
226
225
  "shx": "^0.4.0",
@@ -231,7 +230,7 @@
231
230
  "terser": "^5.51.2",
232
231
  "tslib": "^2.8.1",
233
232
  "typescript": "^5.9.3",
234
- "typescript-eslint": "^8.70.1",
233
+ "typescript-eslint": "^8.71.0",
235
234
  "vite": "^7.3.6",
236
235
  "vitepress": "^1.6.4",
237
236
  "vue": "^3.5.43",