@rollup/wasm-node 4.52.4 → 4.53.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.
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.52.4
4
- Fri, 03 Oct 2025 05:47:35 GMT - commit cd81da74af1d11fda0ee1752cc26f6dc8217e9ca
3
+ Rollup.js v4.53.0
4
+ Fri, 07 Nov 2025 16:21:34 GMT - commit ecff5325941ec36599f9967731ed6871186a72ee
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -218,7 +218,7 @@ var hasRequiredUtils$2;
218
218
  function requireUtils$2 () {
219
219
  if (hasRequiredUtils$2) return utils$2;
220
220
  hasRequiredUtils$2 = 1;
221
- (function (exports) {
221
+ (function (exports$1) {
222
222
 
223
223
  const path = require$$0$1;
224
224
  const win32 = process.platform === 'win32';
@@ -229,19 +229,19 @@ function requireUtils$2 () {
229
229
  REGEX_SPECIAL_CHARS_GLOBAL
230
230
  } = /*@__PURE__*/ requireConstants$3();
231
231
 
232
- exports.isObject = val => val !== null && typeof val === 'object' && !Array.isArray(val);
233
- exports.hasRegexChars = str => REGEX_SPECIAL_CHARS.test(str);
234
- exports.isRegexChar = str => str.length === 1 && exports.hasRegexChars(str);
235
- exports.escapeRegex = str => str.replace(REGEX_SPECIAL_CHARS_GLOBAL, '\\$1');
236
- exports.toPosixSlashes = str => str.replace(REGEX_BACKSLASH, '/');
232
+ exports$1.isObject = val => val !== null && typeof val === 'object' && !Array.isArray(val);
233
+ exports$1.hasRegexChars = str => REGEX_SPECIAL_CHARS.test(str);
234
+ exports$1.isRegexChar = str => str.length === 1 && exports$1.hasRegexChars(str);
235
+ exports$1.escapeRegex = str => str.replace(REGEX_SPECIAL_CHARS_GLOBAL, '\\$1');
236
+ exports$1.toPosixSlashes = str => str.replace(REGEX_BACKSLASH, '/');
237
237
 
238
- exports.removeBackslashes = str => {
238
+ exports$1.removeBackslashes = str => {
239
239
  return str.replace(REGEX_REMOVE_BACKSLASH, match => {
240
240
  return match === '\\' ? '' : match;
241
241
  });
242
242
  };
243
243
 
244
- exports.supportsLookbehinds = () => {
244
+ exports$1.supportsLookbehinds = () => {
245
245
  const segs = process.version.slice(1).split('.').map(Number);
246
246
  if (segs.length === 3 && segs[0] >= 9 || (segs[0] === 8 && segs[1] >= 10)) {
247
247
  return true;
@@ -249,21 +249,21 @@ function requireUtils$2 () {
249
249
  return false;
250
250
  };
251
251
 
252
- exports.isWindows = options => {
252
+ exports$1.isWindows = options => {
253
253
  if (options && typeof options.windows === 'boolean') {
254
254
  return options.windows;
255
255
  }
256
256
  return win32 === true || path.sep === '\\';
257
257
  };
258
258
 
259
- exports.escapeLast = (input, char, lastIdx) => {
259
+ exports$1.escapeLast = (input, char, lastIdx) => {
260
260
  const idx = input.lastIndexOf(char, lastIdx);
261
261
  if (idx === -1) return input;
262
- if (input[idx - 1] === '\\') return exports.escapeLast(input, char, idx - 1);
262
+ if (input[idx - 1] === '\\') return exports$1.escapeLast(input, char, idx - 1);
263
263
  return `${input.slice(0, idx)}\\${input.slice(idx)}`;
264
264
  };
265
265
 
266
- exports.removePrefix = (input, state = {}) => {
266
+ exports$1.removePrefix = (input, state = {}) => {
267
267
  let output = input;
268
268
  if (output.startsWith('./')) {
269
269
  output = output.slice(2);
@@ -272,7 +272,7 @@ function requireUtils$2 () {
272
272
  return output;
273
273
  };
274
274
 
275
- exports.wrapOutput = (input, state = {}, options = {}) => {
275
+ exports$1.wrapOutput = (input, state = {}, options = {}) => {
276
276
  const prepend = options.contains ? '' : '^';
277
277
  const append = options.contains ? '' : '$';
278
278
 
@@ -2629,7 +2629,7 @@ var hasRequiredUtils$1;
2629
2629
  function requireUtils$1 () {
2630
2630
  if (hasRequiredUtils$1) return utils$1;
2631
2631
  hasRequiredUtils$1 = 1;
2632
- (function (exports) {
2632
+ (function (exports$1) {
2633
2633
 
2634
2634
  const path = require$$0$1;
2635
2635
  const win32 = process.platform === 'win32';
@@ -2640,19 +2640,19 @@ function requireUtils$1 () {
2640
2640
  REGEX_SPECIAL_CHARS_GLOBAL
2641
2641
  } = /*@__PURE__*/ requireConstants$2();
2642
2642
 
2643
- exports.isObject = val => val !== null && typeof val === 'object' && !Array.isArray(val);
2644
- exports.hasRegexChars = str => REGEX_SPECIAL_CHARS.test(str);
2645
- exports.isRegexChar = str => str.length === 1 && exports.hasRegexChars(str);
2646
- exports.escapeRegex = str => str.replace(REGEX_SPECIAL_CHARS_GLOBAL, '\\$1');
2647
- exports.toPosixSlashes = str => str.replace(REGEX_BACKSLASH, '/');
2643
+ exports$1.isObject = val => val !== null && typeof val === 'object' && !Array.isArray(val);
2644
+ exports$1.hasRegexChars = str => REGEX_SPECIAL_CHARS.test(str);
2645
+ exports$1.isRegexChar = str => str.length === 1 && exports$1.hasRegexChars(str);
2646
+ exports$1.escapeRegex = str => str.replace(REGEX_SPECIAL_CHARS_GLOBAL, '\\$1');
2647
+ exports$1.toPosixSlashes = str => str.replace(REGEX_BACKSLASH, '/');
2648
2648
 
2649
- exports.removeBackslashes = str => {
2649
+ exports$1.removeBackslashes = str => {
2650
2650
  return str.replace(REGEX_REMOVE_BACKSLASH, match => {
2651
2651
  return match === '\\' ? '' : match;
2652
2652
  });
2653
2653
  };
2654
2654
 
2655
- exports.supportsLookbehinds = () => {
2655
+ exports$1.supportsLookbehinds = () => {
2656
2656
  const segs = process.version.slice(1).split('.').map(Number);
2657
2657
  if (segs.length === 3 && segs[0] >= 9 || (segs[0] === 8 && segs[1] >= 10)) {
2658
2658
  return true;
@@ -2660,21 +2660,21 @@ function requireUtils$1 () {
2660
2660
  return false;
2661
2661
  };
2662
2662
 
2663
- exports.isWindows = options => {
2663
+ exports$1.isWindows = options => {
2664
2664
  if (options && typeof options.windows === 'boolean') {
2665
2665
  return options.windows;
2666
2666
  }
2667
2667
  return win32 === true || path.sep === '\\';
2668
2668
  };
2669
2669
 
2670
- exports.escapeLast = (input, char, lastIdx) => {
2670
+ exports$1.escapeLast = (input, char, lastIdx) => {
2671
2671
  const idx = input.lastIndexOf(char, lastIdx);
2672
2672
  if (idx === -1) return input;
2673
- if (input[idx - 1] === '\\') return exports.escapeLast(input, char, idx - 1);
2673
+ if (input[idx - 1] === '\\') return exports$1.escapeLast(input, char, idx - 1);
2674
2674
  return `${input.slice(0, idx)}\\${input.slice(idx)}`;
2675
2675
  };
2676
2676
 
2677
- exports.removePrefix = (input, state = {}) => {
2677
+ exports$1.removePrefix = (input, state = {}) => {
2678
2678
  let output = input;
2679
2679
  if (output.startsWith('./')) {
2680
2680
  output = output.slice(2);
@@ -2683,7 +2683,7 @@ function requireUtils$1 () {
2683
2683
  return output;
2684
2684
  };
2685
2685
 
2686
- exports.wrapOutput = (input, state = {}, options = {}) => {
2686
+ exports$1.wrapOutput = (input, state = {}, options = {}) => {
2687
2687
  const prepend = options.contains ? '' : '^';
2688
2688
  const append = options.contains ? '' : '$';
2689
2689
 
@@ -4951,9 +4951,9 @@ var hasRequiredUtils;
4951
4951
  function requireUtils () {
4952
4952
  if (hasRequiredUtils) return utils;
4953
4953
  hasRequiredUtils = 1;
4954
- (function (exports) {
4954
+ (function (exports$1) {
4955
4955
 
4956
- exports.isInteger = num => {
4956
+ exports$1.isInteger = num => {
4957
4957
  if (typeof num === 'number') {
4958
4958
  return Number.isInteger(num);
4959
4959
  }
@@ -4967,15 +4967,15 @@ function requireUtils () {
4967
4967
  * Find a node of the given type
4968
4968
  */
4969
4969
 
4970
- exports.find = (node, type) => node.nodes.find(node => node.type === type);
4970
+ exports$1.find = (node, type) => node.nodes.find(node => node.type === type);
4971
4971
 
4972
4972
  /**
4973
4973
  * Find a node of the given type
4974
4974
  */
4975
4975
 
4976
- exports.exceedsLimit = (min, max, step = 1, limit) => {
4976
+ exports$1.exceedsLimit = (min, max, step = 1, limit) => {
4977
4977
  if (limit === false) return false;
4978
- if (!exports.isInteger(min) || !exports.isInteger(max)) return false;
4978
+ if (!exports$1.isInteger(min) || !exports$1.isInteger(max)) return false;
4979
4979
  return ((Number(max) - Number(min)) / Number(step)) >= limit;
4980
4980
  };
4981
4981
 
@@ -4983,7 +4983,7 @@ function requireUtils () {
4983
4983
  * Escape the given node with '\\' before node.value
4984
4984
  */
4985
4985
 
4986
- exports.escapeNode = (block, n = 0, type) => {
4986
+ exports$1.escapeNode = (block, n = 0, type) => {
4987
4987
  const node = block.nodes[n];
4988
4988
  if (!node) return;
4989
4989
 
@@ -4999,7 +4999,7 @@ function requireUtils () {
4999
4999
  * Returns true if the given brace node should be enclosed in literal braces
5000
5000
  */
5001
5001
 
5002
- exports.encloseBrace = node => {
5002
+ exports$1.encloseBrace = node => {
5003
5003
  if (node.type !== 'brace') return false;
5004
5004
  if ((node.commas >> 0 + node.ranges >> 0) === 0) {
5005
5005
  node.invalid = true;
@@ -5012,7 +5012,7 @@ function requireUtils () {
5012
5012
  * Returns true if a brace node is invalid.
5013
5013
  */
5014
5014
 
5015
- exports.isInvalidBrace = block => {
5015
+ exports$1.isInvalidBrace = block => {
5016
5016
  if (block.type !== 'brace') return false;
5017
5017
  if (block.invalid === true || block.dollar) return true;
5018
5018
  if ((block.commas >> 0 + block.ranges >> 0) === 0) {
@@ -5030,7 +5030,7 @@ function requireUtils () {
5030
5030
  * Returns true if a node is an open or close node
5031
5031
  */
5032
5032
 
5033
- exports.isOpenOrClose = node => {
5033
+ exports$1.isOpenOrClose = node => {
5034
5034
  if (node.type === 'open' || node.type === 'close') {
5035
5035
  return true;
5036
5036
  }
@@ -5041,7 +5041,7 @@ function requireUtils () {
5041
5041
  * Reduce an array of text nodes.
5042
5042
  */
5043
5043
 
5044
- exports.reduce = nodes => nodes.reduce((acc, node) => {
5044
+ exports$1.reduce = nodes => nodes.reduce((acc, node) => {
5045
5045
  if (node.type === 'text') acc.push(node.value);
5046
5046
  if (node.type === 'range') node.type = 'text';
5047
5047
  return acc;
@@ -5051,7 +5051,7 @@ function requireUtils () {
5051
5051
  * Flatten an array
5052
5052
  */
5053
5053
 
5054
- exports.flatten = (...args) => {
5054
+ exports$1.flatten = (...args) => {
5055
5055
  const result = [];
5056
5056
 
5057
5057
  const flat = arr => {
@@ -6761,72 +6761,72 @@ var hasRequiredConstants;
6761
6761
  function requireConstants () {
6762
6762
  if (hasRequiredConstants) return constants;
6763
6763
  hasRequiredConstants = 1;
6764
- (function (exports) {
6764
+ (function (exports$1) {
6765
6765
 
6766
6766
  const {sep} = require$$0$1;
6767
6767
  const {platform} = process;
6768
6768
  const os = require$$2$1;
6769
6769
 
6770
- exports.EV_ALL = 'all';
6771
- exports.EV_READY = 'ready';
6772
- exports.EV_ADD = 'add';
6773
- exports.EV_CHANGE = 'change';
6774
- exports.EV_ADD_DIR = 'addDir';
6775
- exports.EV_UNLINK = 'unlink';
6776
- exports.EV_UNLINK_DIR = 'unlinkDir';
6777
- exports.EV_RAW = 'raw';
6778
- exports.EV_ERROR = 'error';
6779
-
6780
- exports.STR_DATA = 'data';
6781
- exports.STR_END = 'end';
6782
- exports.STR_CLOSE = 'close';
6783
-
6784
- exports.FSEVENT_CREATED = 'created';
6785
- exports.FSEVENT_MODIFIED = 'modified';
6786
- exports.FSEVENT_DELETED = 'deleted';
6787
- exports.FSEVENT_MOVED = 'moved';
6788
- exports.FSEVENT_CLONED = 'cloned';
6789
- exports.FSEVENT_UNKNOWN = 'unknown';
6790
- exports.FSEVENT_FLAG_MUST_SCAN_SUBDIRS = 1;
6791
- exports.FSEVENT_TYPE_FILE = 'file';
6792
- exports.FSEVENT_TYPE_DIRECTORY = 'directory';
6793
- exports.FSEVENT_TYPE_SYMLINK = 'symlink';
6794
-
6795
- exports.KEY_LISTENERS = 'listeners';
6796
- exports.KEY_ERR = 'errHandlers';
6797
- exports.KEY_RAW = 'rawEmitters';
6798
- exports.HANDLER_KEYS = [exports.KEY_LISTENERS, exports.KEY_ERR, exports.KEY_RAW];
6799
-
6800
- exports.DOT_SLASH = `.${sep}`;
6801
-
6802
- exports.BACK_SLASH_RE = /\\/g;
6803
- exports.DOUBLE_SLASH_RE = /\/\//;
6804
- exports.SLASH_OR_BACK_SLASH_RE = /[/\\]/;
6805
- exports.DOT_RE = /\..*\.(sw[px])$|~$|\.subl.*\.tmp/;
6806
- exports.REPLACER_RE = /^\.[/\\]/;
6807
-
6808
- exports.SLASH = '/';
6809
- exports.SLASH_SLASH = '//';
6810
- exports.BRACE_START = '{';
6811
- exports.BANG = '!';
6812
- exports.ONE_DOT = '.';
6813
- exports.TWO_DOTS = '..';
6814
- exports.STAR = '*';
6815
- exports.GLOBSTAR = '**';
6816
- exports.ROOT_GLOBSTAR = '/**/*';
6817
- exports.SLASH_GLOBSTAR = '/**';
6818
- exports.DIR_SUFFIX = 'Dir';
6819
- exports.ANYMATCH_OPTS = {dot: true};
6820
- exports.STRING_TYPE = 'string';
6821
- exports.FUNCTION_TYPE = 'function';
6822
- exports.EMPTY_STR = '';
6823
- exports.EMPTY_FN = () => {};
6824
- exports.IDENTITY_FN = val => val;
6825
-
6826
- exports.isWindows = platform === 'win32';
6827
- exports.isMacos = platform === 'darwin';
6828
- exports.isLinux = platform === 'linux';
6829
- exports.isIBMi = os.type() === 'OS400';
6770
+ exports$1.EV_ALL = 'all';
6771
+ exports$1.EV_READY = 'ready';
6772
+ exports$1.EV_ADD = 'add';
6773
+ exports$1.EV_CHANGE = 'change';
6774
+ exports$1.EV_ADD_DIR = 'addDir';
6775
+ exports$1.EV_UNLINK = 'unlink';
6776
+ exports$1.EV_UNLINK_DIR = 'unlinkDir';
6777
+ exports$1.EV_RAW = 'raw';
6778
+ exports$1.EV_ERROR = 'error';
6779
+
6780
+ exports$1.STR_DATA = 'data';
6781
+ exports$1.STR_END = 'end';
6782
+ exports$1.STR_CLOSE = 'close';
6783
+
6784
+ exports$1.FSEVENT_CREATED = 'created';
6785
+ exports$1.FSEVENT_MODIFIED = 'modified';
6786
+ exports$1.FSEVENT_DELETED = 'deleted';
6787
+ exports$1.FSEVENT_MOVED = 'moved';
6788
+ exports$1.FSEVENT_CLONED = 'cloned';
6789
+ exports$1.FSEVENT_UNKNOWN = 'unknown';
6790
+ exports$1.FSEVENT_FLAG_MUST_SCAN_SUBDIRS = 1;
6791
+ exports$1.FSEVENT_TYPE_FILE = 'file';
6792
+ exports$1.FSEVENT_TYPE_DIRECTORY = 'directory';
6793
+ exports$1.FSEVENT_TYPE_SYMLINK = 'symlink';
6794
+
6795
+ exports$1.KEY_LISTENERS = 'listeners';
6796
+ exports$1.KEY_ERR = 'errHandlers';
6797
+ exports$1.KEY_RAW = 'rawEmitters';
6798
+ exports$1.HANDLER_KEYS = [exports$1.KEY_LISTENERS, exports$1.KEY_ERR, exports$1.KEY_RAW];
6799
+
6800
+ exports$1.DOT_SLASH = `.${sep}`;
6801
+
6802
+ exports$1.BACK_SLASH_RE = /\\/g;
6803
+ exports$1.DOUBLE_SLASH_RE = /\/\//;
6804
+ exports$1.SLASH_OR_BACK_SLASH_RE = /[/\\]/;
6805
+ exports$1.DOT_RE = /\..*\.(sw[px])$|~$|\.subl.*\.tmp/;
6806
+ exports$1.REPLACER_RE = /^\.[/\\]/;
6807
+
6808
+ exports$1.SLASH = '/';
6809
+ exports$1.SLASH_SLASH = '//';
6810
+ exports$1.BRACE_START = '{';
6811
+ exports$1.BANG = '!';
6812
+ exports$1.ONE_DOT = '.';
6813
+ exports$1.TWO_DOTS = '..';
6814
+ exports$1.STAR = '*';
6815
+ exports$1.GLOBSTAR = '**';
6816
+ exports$1.ROOT_GLOBSTAR = '/**/*';
6817
+ exports$1.SLASH_GLOBSTAR = '/**';
6818
+ exports$1.DIR_SUFFIX = 'Dir';
6819
+ exports$1.ANYMATCH_OPTS = {dot: true};
6820
+ exports$1.STRING_TYPE = 'string';
6821
+ exports$1.FUNCTION_TYPE = 'function';
6822
+ exports$1.EMPTY_STR = '';
6823
+ exports$1.EMPTY_FN = () => {};
6824
+ exports$1.IDENTITY_FN = val => val;
6825
+
6826
+ exports$1.isWindows = platform === 'win32';
6827
+ exports$1.isMacos = platform === 'darwin';
6828
+ exports$1.isLinux = platform === 'linux';
6829
+ exports$1.isIBMi = os.type() === 'OS400';
6830
6830
  } (constants));
6831
6831
  return constants;
6832
6832
  }
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.52.4
4
- Fri, 03 Oct 2025 05:47:35 GMT - commit cd81da74af1d11fda0ee1752cc26f6dc8217e9ca
3
+ Rollup.js v4.53.0
4
+ Fri, 07 Nov 2025 16:21:34 GMT - commit ecff5325941ec36599f9967731ed6871186a72ee
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.52.4
4
- Fri, 03 Oct 2025 05:47:35 GMT - commit cd81da74af1d11fda0ee1752cc26f6dc8217e9ca
3
+ Rollup.js v4.53.0
4
+ Fri, 07 Nov 2025 16:21:34 GMT - commit ecff5325941ec36599f9967731ed6871186a72ee
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.52.4
4
- Fri, 03 Oct 2025 05:47:35 GMT - commit cd81da74af1d11fda0ee1752cc26f6dc8217e9ca
3
+ Rollup.js v4.53.0
4
+ Fri, 07 Nov 2025 16:21:34 GMT - commit ecff5325941ec36599f9967731ed6871186a72ee
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
package/dist/rollup.d.ts CHANGED
@@ -125,6 +125,7 @@ export interface SourceDescription extends Partial<PartialNull<ModuleOptions>> {
125
125
  export interface TransformModuleJSON {
126
126
  ast?: ProgramNode | undefined;
127
127
  code: string;
128
+ safeVariableNames: Record<string, string> | null;
128
129
  // note if plugins use new this.cache to opt-out auto transform cache
129
130
  customTransformCache: boolean;
130
131
  originalCode: string;
@@ -134,6 +135,7 @@ export interface TransformModuleJSON {
134
135
  }
135
136
 
136
137
  export interface ModuleJSON extends TransformModuleJSON, ModuleOptions {
138
+ safeVariableNames: Record<string, string> | null;
137
139
  ast: ProgramNode;
138
140
  dependencies: string[];
139
141
  id: string;
@@ -198,6 +200,7 @@ export interface ModuleInfo extends ModuleOptions {
198
200
  dynamicallyImportedIds: readonly string[];
199
201
  exportedBindings: Record<string, string[]> | null;
200
202
  exports: string[] | null;
203
+ safeVariableNames: Record<string, string> | null;
201
204
  hasDefaultExport: boolean | null;
202
205
  id: string;
203
206
  implicitlyLoadedAfterOneOf: readonly string[];
package/dist/rollup.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.52.4
4
- Fri, 03 Oct 2025 05:47:35 GMT - commit cd81da74af1d11fda0ee1752cc26f6dc8217e9ca
3
+ Rollup.js v4.53.0
4
+ Fri, 07 Nov 2025 16:21:34 GMT - commit ecff5325941ec36599f9967731ed6871186a72ee
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.52.4
4
- Fri, 03 Oct 2025 05:47:35 GMT - commit cd81da74af1d11fda0ee1752cc26f6dc8217e9ca
3
+ Rollup.js v4.53.0
4
+ Fri, 07 Nov 2025 16:21:34 GMT - commit ecff5325941ec36599f9967731ed6871186a72ee
5
5
 
6
6
  https://github.com/rollup/rollup
7
7