rollup 3.26.2 → 3.26.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
@@ -2,8 +2,8 @@
2
2
 
3
3
  /*
4
4
  @license
5
- Rollup.js v3.26.2
6
- Thu, 06 Jul 2023 11:18:49 GMT - commit 5d8e2e3032ca9ed120d67b977fb4ce86fc00e6cf
5
+ Rollup.js v3.26.3
6
+ Mon, 17 Jul 2023 10:32:34 GMT - commit ce6f05843f6af9545fb2321c7ec99387ac1e2df0
7
7
 
8
8
  https://github.com/rollup/rollup
9
9
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.26.2
4
- Thu, 06 Jul 2023 11:18:49 GMT - commit 5d8e2e3032ca9ed120d67b977fb4ce86fc00e6cf
3
+ Rollup.js v3.26.3
4
+ Mon, 17 Jul 2023 10:32:34 GMT - commit ce6f05843f6af9545fb2321c7ec99387ac1e2df0
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 v3.26.2
4
- Thu, 06 Jul 2023 11:18:49 GMT - commit 5d8e2e3032ca9ed120d67b977fb4ce86fc00e6cf
3
+ Rollup.js v3.26.3
4
+ Mon, 17 Jul 2023 10:32:34 GMT - commit ce6f05843f6af9545fb2321c7ec99387ac1e2df0
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.26.2
4
- Thu, 06 Jul 2023 11:18:49 GMT - commit 5d8e2e3032ca9ed120d67b977fb4ce86fc00e6cf
3
+ Rollup.js v3.26.3
4
+ Mon, 17 Jul 2023 10:32:34 GMT - commit ce6f05843f6af9545fb2321c7ec99387ac1e2df0
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -15,7 +15,7 @@ import { createHash as createHash$1 } from 'node:crypto';
15
15
  import { lstat, realpath, readdir, readFile, mkdir, writeFile } from 'node:fs/promises';
16
16
  import * as tty from 'tty';
17
17
 
18
- var version$1 = "3.26.2";
18
+ var version$1 = "3.26.3";
19
19
 
20
20
  const comma = ','.charCodeAt(0);
21
21
  const semicolon = ';'.charCodeAt(0);
@@ -17752,14 +17752,11 @@ class Bundle {
17752
17752
  getModuleInfo: this.graph.getModuleInfo
17753
17753
  };
17754
17754
  for (const module of this.graph.modulesById.values()) {
17755
- const manualChunkAlias = getManualChunk(module.id, manualChunksApi);
17756
- if (typeof manualChunkAlias === 'string') {
17757
- if (module instanceof Module) {
17755
+ if (module instanceof Module) {
17756
+ const manualChunkAlias = getManualChunk(module.id, manualChunksApi);
17757
+ if (typeof manualChunkAlias === 'string') {
17758
17758
  manualChunkAliasesWithEntry.push([manualChunkAlias, module]);
17759
17759
  }
17760
- else {
17761
- return error(logExternalModulesCannotBeIncludedInManualChunks(module.id));
17762
- }
17763
17760
  }
17764
17761
  }
17765
17762
  manualChunkAliasesWithEntry.sort(([aliasA], [aliasB]) => aliasA > aliasB ? 1 : aliasA < aliasB ? -1 : 0);
@@ -18230,6 +18227,10 @@ var defaultOptions = {
18230
18227
  // allowed and treated as a line comment. Enabled by default when
18231
18228
  // `ecmaVersion` >= 2023.
18232
18229
  allowHashBang: false,
18230
+ // By default, the parser will verify that private properties are
18231
+ // only used in places where they are valid and have been declared.
18232
+ // Set this to false to turn such checks off.
18233
+ checkPrivateFields: true,
18233
18234
  // When `locations` is on, `loc` properties holding objects with
18234
18235
  // `start` and `end` properties in `{line, column}` form (with
18235
18236
  // line being 1-based and column 0-based) will be attached to the
@@ -19458,6 +19459,7 @@ pp$8.exitClassBody = function() {
19458
19459
  var ref = this.privateNameStack.pop();
19459
19460
  var declared = ref.declared;
19460
19461
  var used = ref.used;
19462
+ if (!this.options.checkPrivateFields) { return }
19461
19463
  var len = this.privateNameStack.length;
19462
19464
  var parent = len === 0 ? null : this.privateNameStack[len - 1];
19463
19465
  for (var i = 0; i < used.length; ++i) {
@@ -20519,7 +20521,7 @@ pp$5.parseMaybeUnary = function(refDestructuringErrors, sawUnary, incDec, forIni
20519
20521
  else { sawUnary = true; }
20520
20522
  expr = this.finishNode(node, update ? "UpdateExpression" : "UnaryExpression");
20521
20523
  } else if (!sawUnary && this.type === types$1.privateId) {
20522
- if (forInit || this.privateNameStack.length === 0) { this.unexpected(); }
20524
+ if ((forInit || this.privateNameStack.length === 0) && this.options.checkPrivateFields) { this.unexpected(); }
20523
20525
  expr = this.parsePrivateIdent();
20524
20526
  // only could be private fields in 'in', such as #x in obj
20525
20527
  if (this.type !== types$1._in) { this.unexpected(); }
@@ -21362,10 +21364,12 @@ pp$5.parsePrivateIdent = function() {
21362
21364
  this.finishNode(node, "PrivateIdentifier");
21363
21365
 
21364
21366
  // For validating existence
21365
- if (this.privateNameStack.length === 0) {
21366
- this.raise(node.start, ("Private field '#" + (node.name) + "' must be declared in an enclosing class"));
21367
- } else {
21368
- this.privateNameStack[this.privateNameStack.length - 1].used.push(node);
21367
+ if (this.options.checkPrivateFields) {
21368
+ if (this.privateNameStack.length === 0) {
21369
+ this.raise(node.start, ("Private field '#" + (node.name) + "' must be declared in an enclosing class"));
21370
+ } else {
21371
+ this.privateNameStack[this.privateNameStack.length - 1].used.push(node);
21372
+ }
21369
21373
  }
21370
21374
 
21371
21375
  return node
@@ -23765,7 +23769,7 @@ pp.readWord = function() {
23765
23769
  // [walk]: util/walk.js
23766
23770
 
23767
23771
 
23768
- var version = "8.9.0";
23772
+ var version = "8.10.0";
23769
23773
 
23770
23774
  Parser.acorn = {
23771
23775
  Parser: Parser,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.26.2
4
- Thu, 06 Jul 2023 11:18:49 GMT - commit 5d8e2e3032ca9ed120d67b977fb4ce86fc00e6cf
3
+ Rollup.js v3.26.3
4
+ Mon, 17 Jul 2023 10:32:34 GMT - commit ce6f05843f6af9545fb2321c7ec99387ac1e2df0
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.26.2
4
- Thu, 06 Jul 2023 11:18:49 GMT - commit 5d8e2e3032ca9ed120d67b977fb4ce86fc00e6cf
3
+ Rollup.js v3.26.3
4
+ Mon, 17 Jul 2023 10:32:34 GMT - commit ce6f05843f6af9545fb2321c7ec99387ac1e2df0
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.26.2
4
- Thu, 06 Jul 2023 11:18:49 GMT - commit 5d8e2e3032ca9ed120d67b977fb4ce86fc00e6cf
3
+ Rollup.js v3.26.3
4
+ Mon, 17 Jul 2023 10:32:34 GMT - commit ce6f05843f6af9545fb2321c7ec99387ac1e2df0
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 v3.26.2
4
- Thu, 06 Jul 2023 11:18:49 GMT - commit 5d8e2e3032ca9ed120d67b977fb4ce86fc00e6cf
3
+ Rollup.js v3.26.3
4
+ Mon, 17 Jul 2023 10:32:34 GMT - commit ce6f05843f6af9545fb2321c7ec99387ac1e2df0
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.26.2
4
- Thu, 06 Jul 2023 11:18:49 GMT - commit 5d8e2e3032ca9ed120d67b977fb4ce86fc00e6cf
3
+ Rollup.js v3.26.3
4
+ Mon, 17 Jul 2023 10:32:34 GMT - commit ce6f05843f6af9545fb2321c7ec99387ac1e2df0
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.26.2
4
- Thu, 06 Jul 2023 11:18:49 GMT - commit 5d8e2e3032ca9ed120d67b977fb4ce86fc00e6cf
3
+ Rollup.js v3.26.3
4
+ Mon, 17 Jul 2023 10:32:34 GMT - commit ce6f05843f6af9545fb2321c7ec99387ac1e2df0
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.26.2
4
- Thu, 06 Jul 2023 11:18:49 GMT - commit 5d8e2e3032ca9ed120d67b977fb4ce86fc00e6cf
3
+ Rollup.js v3.26.3
4
+ Mon, 17 Jul 2023 10:32:34 GMT - commit ce6f05843f6af9545fb2321c7ec99387ac1e2df0
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.26.2
4
- Thu, 06 Jul 2023 11:18:49 GMT - commit 5d8e2e3032ca9ed120d67b977fb4ce86fc00e6cf
3
+ Rollup.js v3.26.3
4
+ Mon, 17 Jul 2023 10:32:34 GMT - commit ce6f05843f6af9545fb2321c7ec99387ac1e2df0
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -30,7 +30,7 @@ function _interopNamespaceDefault(e) {
30
30
 
31
31
  const tty__namespace = /*#__PURE__*/_interopNamespaceDefault(tty);
32
32
 
33
- var version$1 = "3.26.2";
33
+ var version$1 = "3.26.3";
34
34
 
35
35
  function ensureArray$1(items) {
36
36
  if (Array.isArray(items)) {
@@ -19134,14 +19134,11 @@ class Bundle {
19134
19134
  getModuleInfo: this.graph.getModuleInfo
19135
19135
  };
19136
19136
  for (const module of this.graph.modulesById.values()) {
19137
- const manualChunkAlias = getManualChunk(module.id, manualChunksApi);
19138
- if (typeof manualChunkAlias === 'string') {
19139
- if (module instanceof Module) {
19137
+ if (module instanceof Module) {
19138
+ const manualChunkAlias = getManualChunk(module.id, manualChunksApi);
19139
+ if (typeof manualChunkAlias === 'string') {
19140
19140
  manualChunkAliasesWithEntry.push([manualChunkAlias, module]);
19141
19141
  }
19142
- else {
19143
- return error(logExternalModulesCannotBeIncludedInManualChunks(module.id));
19144
- }
19145
19142
  }
19146
19143
  }
19147
19144
  manualChunkAliasesWithEntry.sort(([aliasA], [aliasB]) => aliasA > aliasB ? 1 : aliasA < aliasB ? -1 : 0);
@@ -19612,6 +19609,10 @@ var defaultOptions = {
19612
19609
  // allowed and treated as a line comment. Enabled by default when
19613
19610
  // `ecmaVersion` >= 2023.
19614
19611
  allowHashBang: false,
19612
+ // By default, the parser will verify that private properties are
19613
+ // only used in places where they are valid and have been declared.
19614
+ // Set this to false to turn such checks off.
19615
+ checkPrivateFields: true,
19615
19616
  // When `locations` is on, `loc` properties holding objects with
19616
19617
  // `start` and `end` properties in `{line, column}` form (with
19617
19618
  // line being 1-based and column 0-based) will be attached to the
@@ -20840,6 +20841,7 @@ pp$8.exitClassBody = function() {
20840
20841
  var ref = this.privateNameStack.pop();
20841
20842
  var declared = ref.declared;
20842
20843
  var used = ref.used;
20844
+ if (!this.options.checkPrivateFields) { return }
20843
20845
  var len = this.privateNameStack.length;
20844
20846
  var parent = len === 0 ? null : this.privateNameStack[len - 1];
20845
20847
  for (var i = 0; i < used.length; ++i) {
@@ -21901,7 +21903,7 @@ pp$5.parseMaybeUnary = function(refDestructuringErrors, sawUnary, incDec, forIni
21901
21903
  else { sawUnary = true; }
21902
21904
  expr = this.finishNode(node, update ? "UpdateExpression" : "UnaryExpression");
21903
21905
  } else if (!sawUnary && this.type === types$1.privateId) {
21904
- if (forInit || this.privateNameStack.length === 0) { this.unexpected(); }
21906
+ if ((forInit || this.privateNameStack.length === 0) && this.options.checkPrivateFields) { this.unexpected(); }
21905
21907
  expr = this.parsePrivateIdent();
21906
21908
  // only could be private fields in 'in', such as #x in obj
21907
21909
  if (this.type !== types$1._in) { this.unexpected(); }
@@ -22744,10 +22746,12 @@ pp$5.parsePrivateIdent = function() {
22744
22746
  this.finishNode(node, "PrivateIdentifier");
22745
22747
 
22746
22748
  // For validating existence
22747
- if (this.privateNameStack.length === 0) {
22748
- this.raise(node.start, ("Private field '#" + (node.name) + "' must be declared in an enclosing class"));
22749
- } else {
22750
- this.privateNameStack[this.privateNameStack.length - 1].used.push(node);
22749
+ if (this.options.checkPrivateFields) {
22750
+ if (this.privateNameStack.length === 0) {
22751
+ this.raise(node.start, ("Private field '#" + (node.name) + "' must be declared in an enclosing class"));
22752
+ } else {
22753
+ this.privateNameStack[this.privateNameStack.length - 1].used.push(node);
22754
+ }
22751
22755
  }
22752
22756
 
22753
22757
  return node
@@ -25147,7 +25151,7 @@ pp.readWord = function() {
25147
25151
  // [walk]: util/walk.js
25148
25152
 
25149
25153
 
25150
- var version = "8.9.0";
25154
+ var version = "8.10.0";
25151
25155
 
25152
25156
  Parser.acorn = {
25153
25157
  Parser: Parser,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.26.2
4
- Thu, 06 Jul 2023 11:18:49 GMT - commit 5d8e2e3032ca9ed120d67b977fb4ce86fc00e6cf
3
+ Rollup.js v3.26.3
4
+ Mon, 17 Jul 2023 10:32:34 GMT - commit ce6f05843f6af9545fb2321c7ec99387ac1e2df0
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.26.2
4
- Thu, 06 Jul 2023 11:18:49 GMT - commit 5d8e2e3032ca9ed120d67b977fb4ce86fc00e6cf
3
+ Rollup.js v3.26.3
4
+ Mon, 17 Jul 2023 10:32:34 GMT - commit ce6f05843f6af9545fb2321c7ec99387ac1e2df0
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.26.2
4
- Thu, 06 Jul 2023 11:18:49 GMT - commit 5d8e2e3032ca9ed120d67b977fb4ce86fc00e6cf
3
+ Rollup.js v3.26.3
4
+ Mon, 17 Jul 2023 10:32:34 GMT - commit ce6f05843f6af9545fb2321c7ec99387ac1e2df0
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": "3.26.2",
3
+ "version": "3.26.3",
4
4
  "description": "Next-generation ES module bundler",
5
5
  "main": "dist/rollup.js",
6
6
  "module": "dist/es/rollup.js",
@@ -78,14 +78,14 @@
78
78
  "@rollup/plugin-node-resolve": "^15.1.0",
79
79
  "@rollup/plugin-replace": "^5.0.2",
80
80
  "@rollup/plugin-terser": "^0.4.3",
81
- "@rollup/plugin-typescript": "^11.1.1",
81
+ "@rollup/plugin-typescript": "^11.1.2",
82
82
  "@rollup/pluginutils": "^5.0.2",
83
83
  "@types/estree": "1.0.1",
84
84
  "@types/mocha": "^10.0.1",
85
- "@types/node": "~14.18.52",
85
+ "@types/node": "~14.18.53",
86
86
  "@types/yargs-parser": "^21.0.0",
87
- "@typescript-eslint/eslint-plugin": "^5.60.1",
88
- "@typescript-eslint/parser": "^5.60.1",
87
+ "@typescript-eslint/eslint-plugin": "^6.0.0",
88
+ "@typescript-eslint/parser": "^6.0.0",
89
89
  "@vue/eslint-config-prettier": "^7.1.0",
90
90
  "@vue/eslint-config-typescript": "^11.0.3",
91
91
  "acorn": "^8.9.0",
@@ -101,11 +101,11 @@
101
101
  "date-time": "^4.0.0",
102
102
  "es5-shim": "^4.6.7",
103
103
  "es6-shim": "^0.35.8",
104
- "eslint": "^8.43.0",
104
+ "eslint": "^8.45.0",
105
105
  "eslint-config-prettier": "^8.8.0",
106
106
  "eslint-plugin-import": "^2.27.5",
107
- "eslint-plugin-prettier": "^4.2.1",
108
- "eslint-plugin-unicorn": "^47.0.0",
107
+ "eslint-plugin-prettier": "^5.0.0",
108
+ "eslint-plugin-unicorn": "^48.0.0",
109
109
  "eslint-plugin-vue": "^9.15.1",
110
110
  "fixturify": "^3.0.0",
111
111
  "flru": "^1.0.2",
@@ -115,17 +115,17 @@
115
115
  "husky": "^8.0.3",
116
116
  "inquirer": "^9.2.7",
117
117
  "is-reference": "^3.0.1",
118
- "lint-staged": "^13.2.2",
118
+ "lint-staged": "^13.2.3",
119
119
  "locate-character": "^3.0.0",
120
- "magic-string": "^0.30.0",
120
+ "magic-string": "^0.30.1",
121
121
  "mocha": "^10.2.0",
122
122
  "nyc": "^15.1.0",
123
123
  "pinia": "^2.1.4",
124
- "prettier": "^2.8.8",
124
+ "prettier": "^3.0.0",
125
125
  "pretty-bytes": "^6.1.0",
126
126
  "pretty-ms": "^8.0.0",
127
127
  "requirejs": "^2.3.6",
128
- "rollup": "^3.25.3",
128
+ "rollup": "^3.26.0",
129
129
  "rollup-plugin-license": "^3.0.1",
130
130
  "rollup-plugin-string": "^3.0.0",
131
131
  "rollup-plugin-thatworks": "^1.0.4",
@@ -135,10 +135,11 @@
135
135
  "source-map": "^0.7.4",
136
136
  "source-map-support": "^0.5.21",
137
137
  "systemjs": "^6.14.1",
138
- "terser": "^5.18.1",
138
+ "terser": "^5.18.2",
139
139
  "tslib": "^2.6.0",
140
- "typescript": "^5.1.3",
141
- "vitepress": "^1.0.0-beta.3",
140
+ "typescript": "^5.1.6",
141
+ "vite": "^4.4.2",
142
+ "vitepress": "^1.0.0-beta.5",
142
143
  "vue": "^3.3.4",
143
144
  "weak-napi": "^2.0.2",
144
145
  "yargs-parser": "^21.1.1"