rollup 2.75.0 → 2.75.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/rollup.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v2.75.0
4
- Fri, 27 May 2022 08:24:10 GMT - commit c1d62262beb6e743a1b507aecad99cb03f446741
3
+ Rollup.js v2.75.3
4
+ Sun, 29 May 2022 14:46:24 GMT - commit 279581594d642307218126f20092aaf822084d6a
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v2.75.0
4
- Fri, 27 May 2022 08:24:10 GMT - commit c1d62262beb6e743a1b507aecad99cb03f446741
3
+ Rollup.js v2.75.3
4
+ Sun, 29 May 2022 14:46:24 GMT - commit 279581594d642307218126f20092aaf822084d6a
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v2.75.0
4
- Fri, 27 May 2022 08:24:10 GMT - commit c1d62262beb6e743a1b507aecad99cb03f446741
3
+ Rollup.js v2.75.3
4
+ Sun, 29 May 2022 14:46:24 GMT - commit 279581594d642307218126f20092aaf822084d6a
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -217,7 +217,7 @@ function batchWarnings() {
217
217
  const immediateHandlers = {
218
218
  MISSING_NODE_BUILTINS(warning) {
219
219
  title(`Missing shims for Node.js built-ins`);
220
- stderr(`Creating a browser bundle that depends on ${rollup.printQuotedStringList(warning.modules)}. You might need to include https://github.com/snowpackjs/rollup-plugin-polyfill-node`);
220
+ stderr(`Creating a browser bundle that depends on ${rollup.printQuotedStringList(warning.modules)}. You might need to include https://github.com/FredKSchott/rollup-plugin-polyfill-node`);
221
221
  },
222
222
  UNKNOWN_OPTION(warning) {
223
223
  title(`You have passed an unrecognized option`);
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v2.75.0
4
- Fri, 27 May 2022 08:24:10 GMT - commit c1d62262beb6e743a1b507aecad99cb03f446741
3
+ Rollup.js v2.75.3
4
+ Sun, 29 May 2022 14:46:24 GMT - commit 279581594d642307218126f20092aaf822084d6a
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v2.75.0
4
- Fri, 27 May 2022 08:24:10 GMT - commit c1d62262beb6e743a1b507aecad99cb03f446741
3
+ Rollup.js v2.75.3
4
+ Sun, 29 May 2022 14:46:24 GMT - commit 279581594d642307218126f20092aaf822084d6a
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -27,7 +27,7 @@ function _interopNamespaceDefault(e) {
27
27
  return n;
28
28
  }
29
29
 
30
- var version$1 = "2.75.0";
30
+ var version$1 = "2.75.3";
31
31
 
32
32
  function ensureArray$1(items) {
33
33
  if (Array.isArray(items)) {
@@ -7053,6 +7053,8 @@ class FunctionBase extends NodeBase {
7053
7053
  return false;
7054
7054
  }
7055
7055
  include(context, includeChildrenRecursively, { includeWithoutParameterDefaults } = BLANK) {
7056
+ if (!this.deoptimized)
7057
+ this.applyDeoptimizations();
7056
7058
  this.included = true;
7057
7059
  const { brokenFlow } = context;
7058
7060
  context.brokenFlow = BROKEN_FLOW_NONE;
@@ -7105,6 +7107,15 @@ class FunctionBase extends NodeBase {
7105
7107
  }
7106
7108
  super.parseNode(esTreeNode);
7107
7109
  }
7110
+ applyDeoptimizations() {
7111
+ // We currently do not track deoptimizations of default values, deoptimize them
7112
+ // just as we deoptimize call arguments
7113
+ for (const param of this.params) {
7114
+ if (param instanceof AssignmentPattern) {
7115
+ param.right.deoptimizePath(UNKNOWN_PATH);
7116
+ }
7117
+ }
7118
+ }
7108
7119
  }
7109
7120
  FunctionBase.prototype.preventChildBlockScope = true;
7110
7121
 
@@ -7117,6 +7128,8 @@ class ArrowFunctionExpression extends FunctionBase {
7117
7128
  this.scope = new ReturnValueScope(parentScope, this.context);
7118
7129
  }
7119
7130
  hasEffects() {
7131
+ if (!this.deoptimized)
7132
+ this.applyDeoptimizations();
7120
7133
  return false;
7121
7134
  }
7122
7135
  hasEffectsWhenCalledAtPath(path, callOptions, context) {
@@ -8534,6 +8547,8 @@ class FunctionNode extends FunctionBase {
8534
8547
  }
8535
8548
  hasEffects() {
8536
8549
  var _a;
8550
+ if (!this.deoptimized)
8551
+ this.applyDeoptimizations();
8537
8552
  return !!((_a = this.id) === null || _a === void 0 ? void 0 : _a.hasEffects());
8538
8553
  }
8539
8554
  hasEffectsWhenCalledAtPath(path, callOptions, context) {
@@ -13630,7 +13645,7 @@ function warnOnBuiltins(warn, dependencies) {
13630
13645
  return;
13631
13646
  warn({
13632
13647
  code: 'MISSING_NODE_BUILTINS',
13633
- message: `Creating a browser bundle that depends on Node.js built-in modules (${printQuotedStringList(externalBuiltins)}). You might need to include https://github.com/snowpackjs/rollup-plugin-polyfill-node`,
13648
+ message: `Creating a browser bundle that depends on Node.js built-in modules (${printQuotedStringList(externalBuiltins)}). You might need to include https://github.com/FredKSchott/rollup-plugin-polyfill-node`,
13634
13649
  modules: externalBuiltins
13635
13650
  });
13636
13651
  }
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v2.75.0
4
- Fri, 27 May 2022 08:24:10 GMT - commit c1d62262beb6e743a1b507aecad99cb03f446741
3
+ Rollup.js v2.75.3
4
+ Sun, 29 May 2022 14:46:24 GMT - commit 279581594d642307218126f20092aaf822084d6a
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v2.75.0
4
- Fri, 27 May 2022 08:24:10 GMT - commit c1d62262beb6e743a1b507aecad99cb03f446741
3
+ Rollup.js v2.75.3
4
+ Sun, 29 May 2022 14:46:24 GMT - commit 279581594d642307218126f20092aaf822084d6a
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": "2.75.0",
3
+ "version": "2.75.3",
4
4
  "description": "Next-generation ES module bundler",
5
5
  "main": "dist/rollup.js",
6
6
  "module": "dist/es/rollup.js",