@rollup/wasm-node 4.9.5 → 4.9.6

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.9.5
4
- Fri, 12 Jan 2024 06:15:44 GMT - commit 7fa474cc5ed91c96a4ff80e286aa8534bc15834f
3
+ Rollup.js v4.9.6
4
+ Sun, 21 Jan 2024 05:51:51 GMT - commit ecb6b0a430098052781aa6ee04ec92ee70960321
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.9.5";
34
+ var version = "4.9.6";
35
35
 
36
36
  function ensureArray$1(items) {
37
37
  if (Array.isArray(items)) {
@@ -6268,8 +6268,15 @@ class Method extends ExpressionEntity {
6268
6268
  this.description = description;
6269
6269
  }
6270
6270
  deoptimizeArgumentsOnInteractionAtPath({ args, type }, path) {
6271
- if (type === INTERACTION_CALLED && path.length === 0 && this.description.mutatesSelfAsArray) {
6272
- args[0]?.deoptimizePath(UNKNOWN_INTEGER_PATH);
6271
+ if (type === INTERACTION_CALLED && path.length === 0) {
6272
+ if (this.description.mutatesSelfAsArray) {
6273
+ args[0]?.deoptimizePath(UNKNOWN_INTEGER_PATH);
6274
+ }
6275
+ if (this.description.mutatesArgs) {
6276
+ for (let index = 1; index < args.length; index++) {
6277
+ args[index].deoptimizePath(UNKNOWN_PATH);
6278
+ }
6279
+ }
6273
6280
  }
6274
6281
  }
6275
6282
  getReturnExpressionWhenCalledAtPath(path, { args }) {
@@ -6309,6 +6316,7 @@ class Method extends ExpressionEntity {
6309
6316
  const METHOD_RETURNS_BOOLEAN = [
6310
6317
  new Method({
6311
6318
  callsArgs: null,
6319
+ mutatesArgs: false,
6312
6320
  mutatesSelfAsArray: false,
6313
6321
  returns: null,
6314
6322
  returnsPrimitive: UNKNOWN_LITERAL_BOOLEAN
@@ -6317,6 +6325,7 @@ const METHOD_RETURNS_BOOLEAN = [
6317
6325
  const METHOD_RETURNS_STRING = [
6318
6326
  new Method({
6319
6327
  callsArgs: null,
6328
+ mutatesArgs: false,
6320
6329
  mutatesSelfAsArray: false,
6321
6330
  returns: null,
6322
6331
  returnsPrimitive: UNKNOWN_LITERAL_STRING
@@ -6325,6 +6334,7 @@ const METHOD_RETURNS_STRING = [
6325
6334
  const METHOD_RETURNS_NUMBER = [
6326
6335
  new Method({
6327
6336
  callsArgs: null,
6337
+ mutatesArgs: false,
6328
6338
  mutatesSelfAsArray: false,
6329
6339
  returns: null,
6330
6340
  returnsPrimitive: UNKNOWN_LITERAL_NUMBER
@@ -6333,6 +6343,7 @@ const METHOD_RETURNS_NUMBER = [
6333
6343
  const METHOD_RETURNS_UNKNOWN = [
6334
6344
  new Method({
6335
6345
  callsArgs: null,
6346
+ mutatesArgs: false,
6336
6347
  mutatesSelfAsArray: false,
6337
6348
  returns: null,
6338
6349
  returnsPrimitive: UNKNOWN_EXPRESSION
@@ -6747,6 +6758,7 @@ const NEW_ARRAY_PROPERTIES = [
6747
6758
  const METHOD_CALLS_ARG_DEOPTS_SELF_RETURNS_BOOLEAN = [
6748
6759
  new Method({
6749
6760
  callsArgs: [0],
6761
+ mutatesArgs: false,
6750
6762
  mutatesSelfAsArray: 'deopt-only',
6751
6763
  returns: null,
6752
6764
  returnsPrimitive: UNKNOWN_LITERAL_BOOLEAN
@@ -6755,6 +6767,7 @@ const METHOD_CALLS_ARG_DEOPTS_SELF_RETURNS_BOOLEAN = [
6755
6767
  const METHOD_CALLS_ARG_DEOPTS_SELF_RETURNS_NUMBER = [
6756
6768
  new Method({
6757
6769
  callsArgs: [0],
6770
+ mutatesArgs: false,
6758
6771
  mutatesSelfAsArray: 'deopt-only',
6759
6772
  returns: null,
6760
6773
  returnsPrimitive: UNKNOWN_LITERAL_NUMBER
@@ -6763,6 +6776,7 @@ const METHOD_CALLS_ARG_DEOPTS_SELF_RETURNS_NUMBER = [
6763
6776
  const METHOD_MUTATES_SELF_RETURNS_NEW_ARRAY = [
6764
6777
  new Method({
6765
6778
  callsArgs: null,
6779
+ mutatesArgs: false,
6766
6780
  mutatesSelfAsArray: true,
6767
6781
  returns: () => new ObjectEntity(NEW_ARRAY_PROPERTIES, ARRAY_PROTOTYPE),
6768
6782
  returnsPrimitive: null
@@ -6771,6 +6785,7 @@ const METHOD_MUTATES_SELF_RETURNS_NEW_ARRAY = [
6771
6785
  const METHOD_DEOPTS_SELF_RETURNS_NEW_ARRAY = [
6772
6786
  new Method({
6773
6787
  callsArgs: null,
6788
+ mutatesArgs: false,
6774
6789
  mutatesSelfAsArray: 'deopt-only',
6775
6790
  returns: () => new ObjectEntity(NEW_ARRAY_PROPERTIES, ARRAY_PROTOTYPE),
6776
6791
  returnsPrimitive: null
@@ -6779,14 +6794,16 @@ const METHOD_DEOPTS_SELF_RETURNS_NEW_ARRAY = [
6779
6794
  const METHOD_CALLS_ARG_DEOPTS_SELF_RETURNS_NEW_ARRAY = [
6780
6795
  new Method({
6781
6796
  callsArgs: [0],
6797
+ mutatesArgs: false,
6782
6798
  mutatesSelfAsArray: 'deopt-only',
6783
6799
  returns: () => new ObjectEntity(NEW_ARRAY_PROPERTIES, ARRAY_PROTOTYPE),
6784
6800
  returnsPrimitive: null
6785
6801
  })
6786
6802
  ];
6787
- const METHOD_MUTATES_SELF_RETURNS_NUMBER = [
6803
+ const METHOD_MUTATES_SELF_AND_ARGS_RETURNS_NUMBER = [
6788
6804
  new Method({
6789
6805
  callsArgs: null,
6806
+ mutatesArgs: true,
6790
6807
  mutatesSelfAsArray: true,
6791
6808
  returns: null,
6792
6809
  returnsPrimitive: UNKNOWN_LITERAL_NUMBER
@@ -6795,6 +6812,7 @@ const METHOD_MUTATES_SELF_RETURNS_NUMBER = [
6795
6812
  const METHOD_MUTATES_SELF_RETURNS_UNKNOWN = [
6796
6813
  new Method({
6797
6814
  callsArgs: null,
6815
+ mutatesArgs: false,
6798
6816
  mutatesSelfAsArray: true,
6799
6817
  returns: null,
6800
6818
  returnsPrimitive: UNKNOWN_EXPRESSION
@@ -6803,6 +6821,7 @@ const METHOD_MUTATES_SELF_RETURNS_UNKNOWN = [
6803
6821
  const METHOD_DEOPTS_SELF_RETURNS_UNKNOWN = [
6804
6822
  new Method({
6805
6823
  callsArgs: null,
6824
+ mutatesArgs: false,
6806
6825
  mutatesSelfAsArray: 'deopt-only',
6807
6826
  returns: null,
6808
6827
  returnsPrimitive: UNKNOWN_EXPRESSION
@@ -6811,6 +6830,7 @@ const METHOD_DEOPTS_SELF_RETURNS_UNKNOWN = [
6811
6830
  const METHOD_CALLS_ARG_DEOPTS_SELF_RETURNS_UNKNOWN = [
6812
6831
  new Method({
6813
6832
  callsArgs: [0],
6833
+ mutatesArgs: false,
6814
6834
  mutatesSelfAsArray: 'deopt-only',
6815
6835
  returns: null,
6816
6836
  returnsPrimitive: UNKNOWN_EXPRESSION
@@ -6819,6 +6839,7 @@ const METHOD_CALLS_ARG_DEOPTS_SELF_RETURNS_UNKNOWN = [
6819
6839
  const METHOD_MUTATES_SELF_RETURNS_SELF = [
6820
6840
  new Method({
6821
6841
  callsArgs: null,
6842
+ mutatesArgs: false,
6822
6843
  mutatesSelfAsArray: true,
6823
6844
  returns: 'self',
6824
6845
  returnsPrimitive: null
@@ -6827,6 +6848,7 @@ const METHOD_MUTATES_SELF_RETURNS_SELF = [
6827
6848
  const METHOD_CALLS_ARG_MUTATES_SELF_RETURNS_SELF = [
6828
6849
  new Method({
6829
6850
  callsArgs: [0],
6851
+ mutatesArgs: false,
6830
6852
  mutatesSelfAsArray: true,
6831
6853
  returns: 'self',
6832
6854
  returnsPrimitive: null
@@ -6856,7 +6878,7 @@ const ARRAY_PROTOTYPE = new ObjectEntity({
6856
6878
  lastIndexOf: METHOD_RETURNS_NUMBER,
6857
6879
  map: METHOD_CALLS_ARG_DEOPTS_SELF_RETURNS_NEW_ARRAY,
6858
6880
  pop: METHOD_MUTATES_SELF_RETURNS_UNKNOWN,
6859
- push: METHOD_MUTATES_SELF_RETURNS_NUMBER,
6881
+ push: METHOD_MUTATES_SELF_AND_ARGS_RETURNS_NUMBER,
6860
6882
  reduce: METHOD_CALLS_ARG_DEOPTS_SELF_RETURNS_UNKNOWN,
6861
6883
  reduceRight: METHOD_CALLS_ARG_DEOPTS_SELF_RETURNS_UNKNOWN,
6862
6884
  reverse: METHOD_MUTATES_SELF_RETURNS_SELF,
@@ -6867,7 +6889,7 @@ const ARRAY_PROTOTYPE = new ObjectEntity({
6867
6889
  splice: METHOD_MUTATES_SELF_RETURNS_NEW_ARRAY,
6868
6890
  toLocaleString: METHOD_RETURNS_STRING,
6869
6891
  toString: METHOD_RETURNS_STRING,
6870
- unshift: METHOD_MUTATES_SELF_RETURNS_NUMBER,
6892
+ unshift: METHOD_MUTATES_SELF_AND_ARGS_RETURNS_NUMBER,
6871
6893
  values: METHOD_DEOPTS_SELF_RETURNS_UNKNOWN
6872
6894
  }, OBJECT_PROTOTYPE, true);
6873
6895
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.9.5
4
- Fri, 12 Jan 2024 06:15:44 GMT - commit 7fa474cc5ed91c96a4ff80e286aa8534bc15834f
3
+ Rollup.js v4.9.6
4
+ Sun, 21 Jan 2024 05:51:51 GMT - commit ecb6b0a430098052781aa6ee04ec92ee70960321
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.9.5
4
- Fri, 12 Jan 2024 06:15:44 GMT - commit 7fa474cc5ed91c96a4ff80e286aa8534bc15834f
3
+ Rollup.js v4.9.6
4
+ Sun, 21 Jan 2024 05:51:51 GMT - commit ecb6b0a430098052781aa6ee04ec92ee70960321
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -231,12 +231,12 @@ module.exports.__wbg_getRandomValues_7e42b4fb8779dc6d = function() { return hand
231
231
  getObject(arg0).getRandomValues(getObject(arg1));
232
232
  }, arguments) };
233
233
 
234
- module.exports.__wbg_newnoargs_c62ea9419c21fbac = function(arg0, arg1) {
234
+ module.exports.__wbg_newnoargs_5859b6d41c6fe9f7 = function(arg0, arg1) {
235
235
  const ret = new Function(getStringFromWasm0(arg0, arg1));
236
236
  return addHeapObject(ret);
237
237
  };
238
238
 
239
- module.exports.__wbg_call_90c26b09837aba1c = function() { return handleError(function (arg0, arg1) {
239
+ module.exports.__wbg_call_a79f1973a4f07d5e = function() { return handleError(function (arg0, arg1) {
240
240
  const ret = getObject(arg0).call(getObject(arg1));
241
241
  return addHeapObject(ret);
242
242
  }, arguments) };
@@ -246,22 +246,22 @@ module.exports.__wbindgen_object_clone_ref = function(arg0) {
246
246
  return addHeapObject(ret);
247
247
  };
248
248
 
249
- module.exports.__wbg_self_f0e34d89f33b99fd = function() { return handleError(function () {
249
+ module.exports.__wbg_self_086b5302bcafb962 = function() { return handleError(function () {
250
250
  const ret = self.self;
251
251
  return addHeapObject(ret);
252
252
  }, arguments) };
253
253
 
254
- module.exports.__wbg_window_d3b084224f4774d7 = function() { return handleError(function () {
254
+ module.exports.__wbg_window_132fa5d7546f1de5 = function() { return handleError(function () {
255
255
  const ret = window.window;
256
256
  return addHeapObject(ret);
257
257
  }, arguments) };
258
258
 
259
- module.exports.__wbg_globalThis_9caa27ff917c6860 = function() { return handleError(function () {
259
+ module.exports.__wbg_globalThis_e5f801a37ad7d07b = function() { return handleError(function () {
260
260
  const ret = globalThis.globalThis;
261
261
  return addHeapObject(ret);
262
262
  }, arguments) };
263
263
 
264
- module.exports.__wbg_global_35dfdd59a4da3e74 = function() { return handleError(function () {
264
+ module.exports.__wbg_global_f9a61fce4af6b7c1 = function() { return handleError(function () {
265
265
  const ret = global.global;
266
266
  return addHeapObject(ret);
267
267
  }, arguments) };
@@ -271,41 +271,41 @@ module.exports.__wbindgen_is_undefined = function(arg0) {
271
271
  return ret;
272
272
  };
273
273
 
274
- module.exports.__wbg_call_5da1969d7cd31ccd = function() { return handleError(function (arg0, arg1, arg2) {
274
+ module.exports.__wbg_call_f6a2bc58c19c53c6 = function() { return handleError(function (arg0, arg1, arg2) {
275
275
  const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
276
276
  return addHeapObject(ret);
277
277
  }, arguments) };
278
278
 
279
- module.exports.__wbg_buffer_a448f833075b71ba = function(arg0) {
279
+ module.exports.__wbg_buffer_5d1b598a01b41a42 = function(arg0) {
280
280
  const ret = getObject(arg0).buffer;
281
281
  return addHeapObject(ret);
282
282
  };
283
283
 
284
- module.exports.__wbg_newwithbyteoffsetandlength_d0482f893617af71 = function(arg0, arg1, arg2) {
284
+ module.exports.__wbg_newwithbyteoffsetandlength_d695c7957788f922 = function(arg0, arg1, arg2) {
285
285
  const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
286
286
  return addHeapObject(ret);
287
287
  };
288
288
 
289
- module.exports.__wbg_new_8f67e318f15d7254 = function(arg0) {
289
+ module.exports.__wbg_new_ace717933ad7117f = function(arg0) {
290
290
  const ret = new Uint8Array(getObject(arg0));
291
291
  return addHeapObject(ret);
292
292
  };
293
293
 
294
- module.exports.__wbg_set_2357bf09366ee480 = function(arg0, arg1, arg2) {
294
+ module.exports.__wbg_set_74906aa30864df5a = function(arg0, arg1, arg2) {
295
295
  getObject(arg0).set(getObject(arg1), arg2 >>> 0);
296
296
  };
297
297
 
298
- module.exports.__wbg_length_1d25fa9e4ac21ce7 = function(arg0) {
298
+ module.exports.__wbg_length_f0764416ba5bb237 = function(arg0) {
299
299
  const ret = getObject(arg0).length;
300
300
  return ret;
301
301
  };
302
302
 
303
- module.exports.__wbg_newwithlength_6c2df9e2f3028c43 = function(arg0) {
303
+ module.exports.__wbg_newwithlength_728575f3bba9959b = function(arg0) {
304
304
  const ret = new Uint8Array(arg0 >>> 0);
305
305
  return addHeapObject(ret);
306
306
  };
307
307
 
308
- module.exports.__wbg_subarray_2e940e41c0f5a1d9 = function(arg0, arg1, arg2) {
308
+ module.exports.__wbg_subarray_7f7a652672800851 = function(arg0, arg1, arg2) {
309
309
  const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
310
310
  return addHeapObject(ret);
311
311
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rollup/wasm-node",
3
- "version": "4.9.5",
3
+ "version": "4.9.6",
4
4
  "description": "Next-generation ES module bundler with Node wasm",
5
5
  "main": "dist/rollup.js",
6
6
  "module": "dist/es/rollup.js",
@@ -50,12 +50,13 @@
50
50
  "@rollup/plugin-terser": "^0.4.4",
51
51
  "@rollup/plugin-typescript": "11.1.5",
52
52
  "@rollup/pluginutils": "^5.1.0",
53
+ "@types/eslint": "^8.56.2",
53
54
  "@types/inquirer": "^9.0.7",
54
55
  "@types/mocha": "^10.0.6",
55
- "@types/node": "18.0.0",
56
+ "@types/node": "^18.11.19",
56
57
  "@types/yargs-parser": "^21.0.3",
57
- "@typescript-eslint/eslint-plugin": "^6.18.1",
58
- "@typescript-eslint/parser": "^6.18.1",
58
+ "@typescript-eslint/eslint-plugin": "^6.19.0",
59
+ "@typescript-eslint/parser": "^6.19.0",
59
60
  "@vue/eslint-config-prettier": "^9.0.0",
60
61
  "@vue/eslint-config-typescript": "^12.0.0",
61
62
  "acorn": "^8.11.3",
@@ -72,9 +73,9 @@
72
73
  "eslint": "^8.56.0",
73
74
  "eslint-config-prettier": "^9.1.0",
74
75
  "eslint-plugin-import": "^2.29.1",
75
- "eslint-plugin-prettier": "^5.1.2",
76
+ "eslint-plugin-prettier": "^5.1.3",
76
77
  "eslint-plugin-unicorn": "^50.0.1",
77
- "eslint-plugin-vue": "^9.19.2",
78
+ "eslint-plugin-vue": "^9.20.1",
78
79
  "fixturify": "^3.0.0",
79
80
  "flru": "^1.0.2",
80
81
  "fs-extra": "^11.2.0",
@@ -88,11 +89,11 @@
88
89
  "mocha": "^10.2.0",
89
90
  "nyc": "^15.1.0",
90
91
  "pinia": "^2.1.7",
91
- "prettier": "^3.1.1",
92
+ "prettier": "^3.2.2",
92
93
  "pretty-bytes": "^6.1.1",
93
94
  "pretty-ms": "^8.0.0",
94
95
  "requirejs": "^2.3.6",
95
- "rollup": "^4.9.4",
96
+ "rollup": "^4.9.5",
96
97
  "rollup-plugin-license": "^3.2.0",
97
98
  "rollup-plugin-string": "^3.0.0",
98
99
  "semver": "^7.5.4",
@@ -105,8 +106,8 @@
105
106
  "tslib": "^2.6.2",
106
107
  "typescript": "^5.3.3",
107
108
  "vite": "^5.0.11",
108
- "vitepress": "^1.0.0-rc.36",
109
- "vue": "^3.4.6",
109
+ "vitepress": "^1.0.0-rc.39",
110
+ "vue": "^3.4.14",
110
111
  "wasm-pack": "^0.12.1",
111
112
  "weak-napi": "^2.0.2",
112
113
  "yargs-parser": "^21.1.1"