rollup 3.7.3 → 3.7.4

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.7.3
6
- Sun, 11 Dec 2022 15:24:30 GMT - commit a0d4d69092484a0879377e16425b737ec541ae55
5
+ Rollup.js v3.7.4
6
+ Tue, 13 Dec 2022 05:29:18 GMT - commit bd3522b33f18001372638263aeb704b76edbf48c
7
7
 
8
8
  https://github.com/rollup/rollup
9
9
 
package/dist/es/rollup.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.7.3
4
- Sun, 11 Dec 2022 15:24:30 GMT - commit a0d4d69092484a0879377e16425b737ec541ae55
3
+ Rollup.js v3.7.4
4
+ Tue, 13 Dec 2022 05:29:18 GMT - commit bd3522b33f18001372638263aeb704b76edbf48c
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.7.3
4
- Sun, 11 Dec 2022 15:24:30 GMT - commit a0d4d69092484a0879377e16425b737ec541ae55
3
+ Rollup.js v3.7.4
4
+ Tue, 13 Dec 2022 05:29:18 GMT - commit bd3522b33f18001372638263aeb704b76edbf48c
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -16,7 +16,7 @@ import { promises } from 'node:fs';
16
16
  import { EventEmitter } from 'node:events';
17
17
  import * as tty from 'tty';
18
18
 
19
- var version$1 = "3.7.3";
19
+ var version$1 = "3.7.4";
20
20
 
21
21
  var charToInteger = {};
22
22
  var chars$1 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
@@ -5038,6 +5038,11 @@ const literalNumberMembers = assembleMemberDescriptions({
5038
5038
  toPrecision: returnsString,
5039
5039
  valueOf: returnsNumber
5040
5040
  }, objectMembers);
5041
+ /**
5042
+ * RegExp are stateful when they have the global or sticky flags set.
5043
+ * But if we actually don't use them, the side effect does not matter.
5044
+ * the check logic in `hasEffectsOnInteractionAtPath`.
5045
+ */
5041
5046
  const literalRegExpMembers = assembleMemberDescriptions({
5042
5047
  exec: returnsUnknown,
5043
5048
  test: returnsBoolean
@@ -8911,6 +8916,11 @@ class Literal extends NodeBase {
8911
8916
  return true;
8912
8917
  }
8913
8918
  case INTERACTION_CALLED: {
8919
+ if (this.included &&
8920
+ this.value instanceof RegExp &&
8921
+ (this.value.global || this.value.sticky)) {
8922
+ return true;
8923
+ }
8914
8924
  return (path.length !== 1 ||
8915
8925
  hasMemberEffectWhenCalled(this.members, path[0], interaction, context));
8916
8926
  }
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.7.3
4
- Sun, 11 Dec 2022 15:24:30 GMT - commit a0d4d69092484a0879377e16425b737ec541ae55
3
+ Rollup.js v3.7.4
4
+ Tue, 13 Dec 2022 05:29:18 GMT - commit bd3522b33f18001372638263aeb704b76edbf48c
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.7.3
4
- Sun, 11 Dec 2022 15:24:30 GMT - commit a0d4d69092484a0879377e16425b737ec541ae55
3
+ Rollup.js v3.7.4
4
+ Tue, 13 Dec 2022 05:29:18 GMT - commit bd3522b33f18001372638263aeb704b76edbf48c
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.7.3
4
- Sun, 11 Dec 2022 15:24:30 GMT - commit a0d4d69092484a0879377e16425b737ec541ae55
3
+ Rollup.js v3.7.4
4
+ Tue, 13 Dec 2022 05:29:18 GMT - commit bd3522b33f18001372638263aeb704b76edbf48c
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.7.3
4
- Sun, 11 Dec 2022 15:24:30 GMT - commit a0d4d69092484a0879377e16425b737ec541ae55
3
+ Rollup.js v3.7.4
4
+ Tue, 13 Dec 2022 05:29:18 GMT - commit bd3522b33f18001372638263aeb704b76edbf48c
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.7.3
4
- Sun, 11 Dec 2022 15:24:30 GMT - commit a0d4d69092484a0879377e16425b737ec541ae55
3
+ Rollup.js v3.7.4
4
+ Tue, 13 Dec 2022 05:29:18 GMT - commit bd3522b33f18001372638263aeb704b76edbf48c
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.7.3
4
- Sun, 11 Dec 2022 15:24:30 GMT - commit a0d4d69092484a0879377e16425b737ec541ae55
3
+ Rollup.js v3.7.4
4
+ Tue, 13 Dec 2022 05:29:18 GMT - commit bd3522b33f18001372638263aeb704b76edbf48c
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$1 = "3.7.3";
34
+ var version$1 = "3.7.4";
35
35
 
36
36
  function ensureArray$1(items) {
37
37
  if (Array.isArray(items)) {
@@ -5553,6 +5553,11 @@ const literalNumberMembers = assembleMemberDescriptions({
5553
5553
  toPrecision: returnsString,
5554
5554
  valueOf: returnsNumber
5555
5555
  }, objectMembers);
5556
+ /**
5557
+ * RegExp are stateful when they have the global or sticky flags set.
5558
+ * But if we actually don't use them, the side effect does not matter.
5559
+ * the check logic in `hasEffectsOnInteractionAtPath`.
5560
+ */
5556
5561
  const literalRegExpMembers = assembleMemberDescriptions({
5557
5562
  exec: returnsUnknown,
5558
5563
  test: returnsBoolean
@@ -9426,6 +9431,11 @@ class Literal extends NodeBase {
9426
9431
  return true;
9427
9432
  }
9428
9433
  case INTERACTION_CALLED: {
9434
+ if (this.included &&
9435
+ this.value instanceof RegExp &&
9436
+ (this.value.global || this.value.sticky)) {
9437
+ return true;
9438
+ }
9429
9439
  return (path.length !== 1 ||
9430
9440
  hasMemberEffectWhenCalled(this.members, path[0], interaction, context));
9431
9441
  }
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.7.3
4
- Sun, 11 Dec 2022 15:24:30 GMT - commit a0d4d69092484a0879377e16425b737ec541ae55
3
+ Rollup.js v3.7.4
4
+ Tue, 13 Dec 2022 05:29:18 GMT - commit bd3522b33f18001372638263aeb704b76edbf48c
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.7.3
4
- Sun, 11 Dec 2022 15:24:30 GMT - commit a0d4d69092484a0879377e16425b737ec541ae55
3
+ Rollup.js v3.7.4
4
+ Tue, 13 Dec 2022 05:29:18 GMT - commit bd3522b33f18001372638263aeb704b76edbf48c
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.7.3",
3
+ "version": "3.7.4",
4
4
  "description": "Next-generation ES module bundler",
5
5
  "main": "dist/rollup.js",
6
6
  "module": "dist/es/rollup.js",