rollup 2.69.1 → 2.69.2

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.69.1
4
- Fri, 04 Mar 2022 13:38:38 GMT - commit 994c1eccf4d53e416a010f47e54a2086f1a0f4e9
3
+ Rollup.js v2.69.2
4
+ Sun, 06 Mar 2022 06:43:03 GMT - commit 68817534499a6a1392c465d7fe92a1ef6804ad45
5
5
 
6
6
 
7
7
  https://github.com/rollup/rollup
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v2.69.1
4
- Fri, 04 Mar 2022 13:38:38 GMT - commit 994c1eccf4d53e416a010f47e54a2086f1a0f4e9
3
+ Rollup.js v2.69.2
4
+ Sun, 06 Mar 2022 06:43:03 GMT - commit 68817534499a6a1392c465d7fe92a1ef6804ad45
5
5
 
6
6
 
7
7
  https://github.com/rollup/rollup
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v2.69.1
4
- Fri, 04 Mar 2022 13:38:38 GMT - commit 994c1eccf4d53e416a010f47e54a2086f1a0f4e9
3
+ Rollup.js v2.69.2
4
+ Sun, 06 Mar 2022 06:43:03 GMT - commit 68817534499a6a1392c465d7fe92a1ef6804ad45
5
5
 
6
6
 
7
7
  https://github.com/rollup/rollup
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v2.69.1
4
- Fri, 04 Mar 2022 13:38:38 GMT - commit 994c1eccf4d53e416a010f47e54a2086f1a0f4e9
3
+ Rollup.js v2.69.2
4
+ Sun, 06 Mar 2022 06:43:03 GMT - commit 68817534499a6a1392c465d7fe92a1ef6804ad45
5
5
 
6
6
 
7
7
  https://github.com/rollup/rollup
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v2.69.1
4
- Fri, 04 Mar 2022 13:38:38 GMT - commit 994c1eccf4d53e416a010f47e54a2086f1a0f4e9
3
+ Rollup.js v2.69.2
4
+ Sun, 06 Mar 2022 06:43:03 GMT - commit 68817534499a6a1392c465d7fe92a1ef6804ad45
5
5
 
6
6
 
7
7
  https://github.com/rollup/rollup
@@ -28,7 +28,7 @@ function _interopNamespaceDefault(e) {
28
28
  return n;
29
29
  }
30
30
 
31
- var version$1 = "2.69.1";
31
+ var version$1 = "2.69.2";
32
32
 
33
33
  function ensureArray$1(items) {
34
34
  if (Array.isArray(items)) {
@@ -5904,6 +5904,30 @@ class ObjectEntity extends ExpressionEntity {
5904
5904
  }
5905
5905
  }
5906
5906
 
5907
+ const isInteger = (prop) => typeof prop === 'string' && /^\d+$/.test(prop);
5908
+ // This makes sure unknown properties are not handled as "undefined" but as
5909
+ // "unknown" but without access side effects. An exception is done for numeric
5910
+ // properties as we do not expect new builtin properties to be numbers, this
5911
+ // will improve tree-shaking for out-of-bounds array properties
5912
+ const OBJECT_PROTOTYPE_FALLBACK = new (class ObjectPrototypeFallbackExpression extends ExpressionEntity {
5913
+ deoptimizeThisOnEventAtPath(event, path, thisParameter) {
5914
+ if (event === EVENT_CALLED && path.length === 1 && !isInteger(path[0])) {
5915
+ thisParameter.deoptimizePath(UNKNOWN_PATH);
5916
+ }
5917
+ }
5918
+ getLiteralValueAtPath(path) {
5919
+ // We ignore number properties as we do not expect new properties to be
5920
+ // numbers and also want to keep handling out-of-bound array elements as
5921
+ // "undefined"
5922
+ return path.length === 1 && isInteger(path[0]) ? undefined : UnknownValue;
5923
+ }
5924
+ hasEffectsWhenAccessedAtPath(path) {
5925
+ return path.length > 1;
5926
+ }
5927
+ hasEffectsWhenAssignedAtPath(path) {
5928
+ return path.length > 1;
5929
+ }
5930
+ })();
5907
5931
  const OBJECT_PROTOTYPE = new ObjectEntity({
5908
5932
  __proto__: null,
5909
5933
  hasOwnProperty: METHOD_RETURNS_BOOLEAN,
@@ -5912,7 +5936,7 @@ const OBJECT_PROTOTYPE = new ObjectEntity({
5912
5936
  toLocaleString: METHOD_RETURNS_STRING,
5913
5937
  toString: METHOD_RETURNS_STRING,
5914
5938
  valueOf: METHOD_RETURNS_UNKNOWN
5915
- }, null, true);
5939
+ }, OBJECT_PROTOTYPE_FALLBACK, true);
5916
5940
 
5917
5941
  const NEW_ARRAY_PROPERTIES = [
5918
5942
  { key: UnknownInteger, kind: 'init', property: UNKNOWN_EXPRESSION },
@@ -6980,6 +7004,8 @@ const knownGlobals = {
6980
7004
  isFrozen: PF,
6981
7005
  isSealed: PF,
6982
7006
  keys: PF,
7007
+ fromEntries: PF,
7008
+ entries: PF,
6983
7009
  prototype: O
6984
7010
  },
6985
7011
  parseFloat: PF,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v2.69.1
4
- Fri, 04 Mar 2022 13:38:38 GMT - commit 994c1eccf4d53e416a010f47e54a2086f1a0f4e9
3
+ Rollup.js v2.69.2
4
+ Sun, 06 Mar 2022 06:43:03 GMT - commit 68817534499a6a1392c465d7fe92a1ef6804ad45
5
5
 
6
6
 
7
7
  https://github.com/rollup/rollup
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v2.69.1
4
- Fri, 04 Mar 2022 13:38:38 GMT - commit 994c1eccf4d53e416a010f47e54a2086f1a0f4e9
3
+ Rollup.js v2.69.2
4
+ Sun, 06 Mar 2022 06:43:03 GMT - commit 68817534499a6a1392c465d7fe92a1ef6804ad45
5
5
 
6
6
 
7
7
  https://github.com/rollup/rollup
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rollup",
3
- "version": "2.69.1",
3
+ "version": "2.69.2",
4
4
  "description": "Next-generation ES module bundler",
5
5
  "main": "dist/rollup.js",
6
6
  "module": "dist/es/rollup.js",