rollup 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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rollup",
3
- "version": "4.9.5",
3
+ "version": "4.9.6",
4
4
  "description": "Next-generation ES module bundler",
5
5
  "main": "dist/rollup.js",
6
6
  "module": "dist/es/rollup.js",
@@ -33,7 +33,7 @@
33
33
  }
34
34
  },
35
35
  "scripts": {
36
- "build": "npm run build:wasm && concurrently -c green,blue \"npm run build:napi -- --release\" \"npm:build:js\" && npm run build:copy-native",
36
+ "build": "concurrently -c green,blue \"npm run build:wasm\" \"npm:build:ast-converters\" && concurrently -c green,blue \"npm run build:napi -- --release\" \"npm:build:js\" && npm run build:copy-native",
37
37
  "build:quick": "concurrently -c green,blue 'npm:build:napi' 'npm:build:cjs' && npm run build:copy-native",
38
38
  "build:napi": "napi build --platform --dts native.d.ts --js false --cargo-cwd rust -p bindings_napi --cargo-name bindings_napi",
39
39
  "build:wasm": "wasm-pack build rust/bindings_wasm --out-dir ../../wasm --target web --no-pack && shx rm wasm/.gitignore",
@@ -48,6 +48,7 @@
48
48
  "build:cjs": "rollup --config rollup.config.ts --configPlugin typescript --configTest --forceExit",
49
49
  "build:bootstrap": "shx mv dist dist-build && node dist-build/bin/rollup --config rollup.config.ts --configPlugin typescript --forceExit && shx rm -rf dist-build",
50
50
  "build:docs": "vitepress build docs",
51
+ "build:ast-converters": "node scripts/generate-ast-converters.js",
51
52
  "preview:docs": "vitepress preview docs",
52
53
  "ci:artifacts": "napi artifacts",
53
54
  "ci:lint": "concurrently -c red,yellow,green,blue 'npm:lint:js:nofix' 'npm:lint:native-js' 'npm:lint:markdown:nofix' 'npm:lint:rust:nofix'",
@@ -101,19 +102,19 @@
101
102
  "homepage": "https://rollupjs.org/",
102
103
  "optionalDependencies": {
103
104
  "fsevents": "~2.3.2",
104
- "@rollup/rollup-darwin-arm64": "4.9.5",
105
- "@rollup/rollup-android-arm64": "4.9.5",
106
- "@rollup/rollup-win32-arm64-msvc": "4.9.5",
107
- "@rollup/rollup-linux-arm64-gnu": "4.9.5",
108
- "@rollup/rollup-linux-arm64-musl": "4.9.5",
109
- "@rollup/rollup-android-arm-eabi": "4.9.5",
110
- "@rollup/rollup-linux-arm-gnueabihf": "4.9.5",
111
- "@rollup/rollup-win32-ia32-msvc": "4.9.5",
112
- "@rollup/rollup-linux-riscv64-gnu": "4.9.5",
113
- "@rollup/rollup-darwin-x64": "4.9.5",
114
- "@rollup/rollup-win32-x64-msvc": "4.9.5",
115
- "@rollup/rollup-linux-x64-gnu": "4.9.5",
116
- "@rollup/rollup-linux-x64-musl": "4.9.5"
105
+ "@rollup/rollup-darwin-arm64": "4.9.6",
106
+ "@rollup/rollup-android-arm64": "4.9.6",
107
+ "@rollup/rollup-win32-arm64-msvc": "4.9.6",
108
+ "@rollup/rollup-linux-arm64-gnu": "4.9.6",
109
+ "@rollup/rollup-linux-arm64-musl": "4.9.6",
110
+ "@rollup/rollup-android-arm-eabi": "4.9.6",
111
+ "@rollup/rollup-linux-arm-gnueabihf": "4.9.6",
112
+ "@rollup/rollup-win32-ia32-msvc": "4.9.6",
113
+ "@rollup/rollup-linux-riscv64-gnu": "4.9.6",
114
+ "@rollup/rollup-darwin-x64": "4.9.6",
115
+ "@rollup/rollup-win32-x64-msvc": "4.9.6",
116
+ "@rollup/rollup-linux-x64-gnu": "4.9.6",
117
+ "@rollup/rollup-linux-x64-musl": "4.9.6"
117
118
  },
118
119
  "dependencies": {
119
120
  "@types/estree": "1.0.5"
@@ -140,12 +141,13 @@
140
141
  "@rollup/plugin-terser": "^0.4.4",
141
142
  "@rollup/plugin-typescript": "11.1.5",
142
143
  "@rollup/pluginutils": "^5.1.0",
144
+ "@types/eslint": "^8.56.2",
143
145
  "@types/inquirer": "^9.0.7",
144
146
  "@types/mocha": "^10.0.6",
145
- "@types/node": "18.0.0",
147
+ "@types/node": "^18.11.19",
146
148
  "@types/yargs-parser": "^21.0.3",
147
- "@typescript-eslint/eslint-plugin": "^6.18.1",
148
- "@typescript-eslint/parser": "^6.18.1",
149
+ "@typescript-eslint/eslint-plugin": "^6.19.0",
150
+ "@typescript-eslint/parser": "^6.19.0",
149
151
  "@vue/eslint-config-prettier": "^9.0.0",
150
152
  "@vue/eslint-config-typescript": "^12.0.0",
151
153
  "acorn": "^8.11.3",
@@ -162,9 +164,9 @@
162
164
  "eslint": "^8.56.0",
163
165
  "eslint-config-prettier": "^9.1.0",
164
166
  "eslint-plugin-import": "^2.29.1",
165
- "eslint-plugin-prettier": "^5.1.2",
167
+ "eslint-plugin-prettier": "^5.1.3",
166
168
  "eslint-plugin-unicorn": "^50.0.1",
167
- "eslint-plugin-vue": "^9.19.2",
169
+ "eslint-plugin-vue": "^9.20.1",
168
170
  "fixturify": "^3.0.0",
169
171
  "flru": "^1.0.2",
170
172
  "fs-extra": "^11.2.0",
@@ -178,11 +180,11 @@
178
180
  "mocha": "^10.2.0",
179
181
  "nyc": "^15.1.0",
180
182
  "pinia": "^2.1.7",
181
- "prettier": "^3.1.1",
183
+ "prettier": "^3.2.2",
182
184
  "pretty-bytes": "^6.1.1",
183
185
  "pretty-ms": "^8.0.0",
184
186
  "requirejs": "^2.3.6",
185
- "rollup": "^4.9.4",
187
+ "rollup": "^4.9.5",
186
188
  "rollup-plugin-license": "^3.2.0",
187
189
  "rollup-plugin-string": "^3.0.0",
188
190
  "semver": "^7.5.4",
@@ -195,8 +197,8 @@
195
197
  "tslib": "^2.6.2",
196
198
  "typescript": "^5.3.3",
197
199
  "vite": "^5.0.11",
198
- "vitepress": "^1.0.0-rc.36",
199
- "vue": "^3.4.6",
200
+ "vitepress": "^1.0.0-rc.39",
201
+ "vue": "^3.4.14",
200
202
  "wasm-pack": "^0.12.1",
201
203
  "weak-napi": "^2.0.2",
202
204
  "yargs-parser": "^21.1.1"