rollup 2.75.6 → 2.75.7

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.6
4
- Tue, 07 Jun 2022 14:42:22 GMT - commit 0ab16cc04b7d6dfe5bd14340ba7448085a379e25
3
+ Rollup.js v2.75.7
4
+ Mon, 20 Jun 2022 07:24:02 GMT - commit 057171c2d3bc2092b7f543fc05ead01f12595f12
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.6
4
- Tue, 07 Jun 2022 14:42:22 GMT - commit 0ab16cc04b7d6dfe5bd14340ba7448085a379e25
3
+ Rollup.js v2.75.7
4
+ Mon, 20 Jun 2022 07:24:02 GMT - commit 057171c2d3bc2092b7f543fc05ead01f12595f12
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.6
4
- Tue, 07 Jun 2022 14:42:22 GMT - commit 0ab16cc04b7d6dfe5bd14340ba7448085a379e25
3
+ Rollup.js v2.75.7
4
+ Mon, 20 Jun 2022 07:24:02 GMT - commit 057171c2d3bc2092b7f543fc05ead01f12595f12
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -35,16 +35,17 @@ const argv = process.argv || [];
35
35
  const isDisabled = "NO_COLOR" in env || argv.includes("--no-color");
36
36
  const isForced = "FORCE_COLOR" in env || argv.includes("--color");
37
37
  const isWindows = process.platform === "win32";
38
+ const isDumbTerminal = env.TERM === "dumb";
38
39
 
39
40
  const isCompatibleTerminal =
40
- tty__namespace && tty__namespace.isatty && tty__namespace.isatty(1) && env.TERM && env.TERM !== "dumb";
41
+ tty__namespace && tty__namespace.isatty && tty__namespace.isatty(1) && env.TERM && !isDumbTerminal;
41
42
 
42
43
  const isCI =
43
44
  "CI" in env &&
44
45
  ("GITHUB_ACTIONS" in env || "GITLAB_CI" in env || "CIRCLECI" in env);
45
46
 
46
47
  const isColorSupported =
47
- !isDisabled && (isForced || isWindows || isCompatibleTerminal || isCI);
48
+ !isDisabled && (isForced || (isWindows && !isDumbTerminal) || isCompatibleTerminal || isCI);
48
49
 
49
50
  const replaceClose = (
50
51
  index,
@@ -121,13 +122,11 @@ const colors = {
121
122
  bgWhiteBright: init(107, 49),
122
123
  };
123
124
 
124
- const none = (any) => any;
125
-
126
125
  const createColors = ({ useColor = isColorSupported } = {}) =>
127
126
  useColor
128
127
  ? colors
129
128
  : Object.keys(colors).reduce(
130
- (colors, key) => ({ ...colors, [key]: none }),
129
+ (colors, key) => ({ ...colors, [key]: String }),
131
130
  {}
132
131
  );
133
132
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v2.75.6
4
- Tue, 07 Jun 2022 14:42:22 GMT - commit 0ab16cc04b7d6dfe5bd14340ba7448085a379e25
3
+ Rollup.js v2.75.7
4
+ Mon, 20 Jun 2022 07:24:02 GMT - commit 057171c2d3bc2092b7f543fc05ead01f12595f12
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.6
4
- Tue, 07 Jun 2022 14:42:22 GMT - commit 0ab16cc04b7d6dfe5bd14340ba7448085a379e25
3
+ Rollup.js v2.75.7
4
+ Mon, 20 Jun 2022 07:24:02 GMT - commit 057171c2d3bc2092b7f543fc05ead01f12595f12
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.6";
30
+ var version$1 = "2.75.7";
31
31
 
32
32
  function ensureArray$1(items) {
33
33
  if (Array.isArray(items)) {
@@ -6098,8 +6098,8 @@ const ARRAY_PROTOTYPE = new ObjectEntity({
6098
6098
  flat: METHOD_DEOPTS_SELF_RETURNS_NEW_ARRAY,
6099
6099
  flatMap: METHOD_CALLS_ARG_DEOPTS_SELF_RETURNS_NEW_ARRAY,
6100
6100
  forEach: METHOD_CALLS_ARG_DEOPTS_SELF_RETURNS_UNKNOWN,
6101
- groupBy: METHOD_CALLS_ARG_DEOPTS_SELF_RETURNS_UNKNOWN,
6102
- groupByToMap: METHOD_CALLS_ARG_DEOPTS_SELF_RETURNS_UNKNOWN,
6101
+ group: METHOD_CALLS_ARG_DEOPTS_SELF_RETURNS_UNKNOWN,
6102
+ groupToMap: METHOD_CALLS_ARG_DEOPTS_SELF_RETURNS_UNKNOWN,
6103
6103
  includes: METHOD_RETURNS_BOOLEAN,
6104
6104
  indexOf: METHOD_RETURNS_NUMBER,
6105
6105
  join: METHOD_RETURNS_STRING,
@@ -8555,8 +8555,9 @@ class BinaryExpression extends NodeBase {
8555
8555
  // support some implicit type coercion runtime errors
8556
8556
  if (this.operator === '+' &&
8557
8557
  this.parent instanceof ExpressionStatement &&
8558
- this.left.getLiteralValueAtPath(EMPTY_PATH, SHARED_RECURSION_TRACKER, this) === '')
8558
+ this.left.getLiteralValueAtPath(EMPTY_PATH, SHARED_RECURSION_TRACKER, this) === '') {
8559
8559
  return true;
8560
+ }
8560
8561
  return super.hasEffects(context);
8561
8562
  }
8562
8563
  hasEffectsOnInteractionAtPath(path, { type }) {
@@ -10869,8 +10870,9 @@ class NewExpression extends NodeBase {
10869
10870
  return true;
10870
10871
  }
10871
10872
  if (this.context.options.treeshake.annotations &&
10872
- this.annotations)
10873
+ this.annotations) {
10873
10874
  return false;
10875
+ }
10874
10876
  return (this.callee.hasEffects(context) ||
10875
10877
  this.callee.hasEffectsOnInteractionAtPath(EMPTY_PATH, this.interaction, context));
10876
10878
  }
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v2.75.6
4
- Tue, 07 Jun 2022 14:42:22 GMT - commit 0ab16cc04b7d6dfe5bd14340ba7448085a379e25
3
+ Rollup.js v2.75.7
4
+ Mon, 20 Jun 2022 07:24:02 GMT - commit 057171c2d3bc2092b7f543fc05ead01f12595f12
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.6
4
- Tue, 07 Jun 2022 14:42:22 GMT - commit 0ab16cc04b7d6dfe5bd14340ba7448085a379e25
3
+ Rollup.js v2.75.7
4
+ Mon, 20 Jun 2022 07:24:02 GMT - commit 057171c2d3bc2092b7f543fc05ead01f12595f12
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.6",
3
+ "version": "2.75.7",
4
4
  "description": "Next-generation ES module bundler",
5
5
  "main": "dist/rollup.js",
6
6
  "module": "dist/es/rollup.js",
@@ -61,7 +61,7 @@
61
61
  "@rollup/plugin-buble": "^0.21.3",
62
62
  "@rollup/plugin-commonjs": "^22.0.0",
63
63
  "@rollup/plugin-json": "^4.1.0",
64
- "@rollup/plugin-node-resolve": "^13.2.1",
64
+ "@rollup/plugin-node-resolve": "^13.3.0",
65
65
  "@rollup/plugin-replace": "^4.0.0",
66
66
  "@rollup/plugin-typescript": "^8.3.2",
67
67
  "@rollup/pluginutils": "^4.2.1",
@@ -69,19 +69,19 @@
69
69
  "@types/node": "^10.17.60",
70
70
  "@types/signal-exit": "^3.0.1",
71
71
  "@types/yargs-parser": "^20.2.2",
72
- "@typescript-eslint/eslint-plugin": "^5.21.0",
73
- "@typescript-eslint/parser": "^5.21.0",
72
+ "@typescript-eslint/eslint-plugin": "^5.27.1",
73
+ "@typescript-eslint/parser": "^5.27.1",
74
74
  "acorn": "^8.7.1",
75
75
  "acorn-jsx": "^5.3.2",
76
76
  "acorn-walk": "^8.2.0",
77
77
  "buble": "^0.20.0",
78
78
  "chokidar": "^3.5.3",
79
- "colorette": "^2.0.16",
80
- "core-js": "^3.22.3",
79
+ "colorette": "^2.0.17",
80
+ "core-js": "^3.22.8",
81
81
  "date-time": "^4.0.0",
82
- "es5-shim": "^4.6.6",
82
+ "es5-shim": "^4.6.7",
83
83
  "es6-shim": "^0.35.6",
84
- "eslint": "^8.14.0",
84
+ "eslint": "^8.17.0",
85
85
  "eslint-config-prettier": "^8.5.0",
86
86
  "eslint-plugin-import": "^2.26.0",
87
87
  "eslint-plugin-prettier": "^4.0.0",
@@ -93,27 +93,27 @@
93
93
  "is-reference": "^3.0.0",
94
94
  "lint-staged": "^10.5.4",
95
95
  "locate-character": "^2.0.5",
96
- "magic-string": "^0.26.1",
96
+ "magic-string": "^0.26.2",
97
97
  "mocha": "^9.2.2",
98
98
  "nyc": "^15.1.0",
99
99
  "prettier": "^2.6.2",
100
100
  "pretty-bytes": "^5.6.0",
101
101
  "pretty-ms": "^7.0.1",
102
102
  "requirejs": "^2.3.6",
103
- "rollup": "^2.70.2",
104
- "rollup-plugin-license": "^2.7.0",
103
+ "rollup": "^2.75.6",
104
+ "rollup-plugin-license": "^2.8.0",
105
105
  "rollup-plugin-string": "^3.0.0",
106
106
  "rollup-plugin-terser": "^7.0.2",
107
107
  "rollup-plugin-thatworks": "^1.0.4",
108
108
  "shx": "^0.3.4",
109
109
  "signal-exit": "^3.0.7",
110
- "source-map": "^0.7.3",
110
+ "source-map": "^0.7.4",
111
111
  "source-map-support": "^0.5.21",
112
112
  "sourcemap-codec": "^1.4.8",
113
113
  "systemjs": "^6.12.1",
114
- "terser": "^5.13.0",
114
+ "terser": "^5.14.0",
115
115
  "tslib": "^2.4.0",
116
- "typescript": "^4.6.4",
116
+ "typescript": "^4.7.3",
117
117
  "weak-napi": "^2.0.2",
118
118
  "yargs-parser": "^20.2.9"
119
119
  },