rollup 2.45.1 → 2.48.0

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.
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v2.45.1
4
- Sat, 10 Apr 2021 05:04:58 GMT - commit 345ae5d7b760fabb35a778bc7379cf862db0b31f
3
+ Rollup.js v2.48.0
4
+ Sat, 15 May 2021 04:50:11 GMT - commit 07b3a02069594147665daa95d3fa3e041a82b2d0
5
5
 
6
6
 
7
7
  https://github.com/rollup/rollup
@@ -26,42 +26,35 @@ require('./mergeOptions.js');
26
26
  require('module');
27
27
  require('crypto');
28
28
 
29
- var dateTime$2 = {exports: {}};
30
-
31
- var timeZone$1 = date => {
32
- const offset = (date || new Date()).getTimezoneOffset();
29
+ function timeZone(date = new Date()) {
30
+ const offset = date.getTimezoneOffset();
33
31
  const absOffset = Math.abs(offset);
34
32
  const hours = Math.floor(absOffset / 60);
35
33
  const minutes = absOffset % 60;
36
34
  const minutesOut = minutes > 0 ? ':' + ('0' + minutes).slice(-2) : '';
37
-
38
35
  return (offset < 0 ? '+' : '-') + hours + minutesOut;
39
- };
40
-
41
- const timeZone = timeZone$1;
42
-
43
- const dateTime = options => {
44
- options = Object.assign({
45
- date: new Date(),
46
- local: true,
47
- showTimeZone: false,
48
- showMilliseconds: false
49
- }, options);
36
+ }
50
37
 
51
- let {date} = options;
38
+ function dateTime(options = {}) {
39
+ let {
40
+ date = new Date(),
41
+ local = true,
42
+ showTimeZone = false,
43
+ showMilliseconds = false
44
+ } = options;
52
45
 
53
- if (options.local) {
54
- // Offset the date so it will return the correct value when getting the ISO string
46
+ if (local) {
47
+ // Offset the date so it will return the correct value when getting the ISO string.
55
48
  date = new Date(date.getTime() - (date.getTimezoneOffset() * 60000));
56
49
  }
57
50
 
58
51
  let end = '';
59
52
 
60
- if (options.showTimeZone) {
61
- end = ' UTC' + (options.local ? timeZone(date) : '');
53
+ if (showTimeZone) {
54
+ end = ' UTC' + (local ? timeZone(date) : '');
62
55
  }
63
56
 
64
- if (options.showMilliseconds && date.getUTCMilliseconds() > 0) {
57
+ if (showMilliseconds && date.getUTCMilliseconds() > 0) {
65
58
  end = ` ${date.getUTCMilliseconds()}ms${end}`;
66
59
  }
67
60
 
@@ -69,13 +62,7 @@ const dateTime = options => {
69
62
  .toISOString()
70
63
  .replace(/T/, ' ')
71
64
  .replace(/\..+/, end);
72
- };
73
-
74
- dateTime$2.exports = dateTime;
75
- // TODO: Remove this for the next major release
76
- dateTime$2.exports.default = dateTime;
77
-
78
- var dateTime$1 = dateTime$2.exports;
65
+ }
79
66
 
80
67
  var signalExit = {exports: {}};
81
68
 
@@ -426,7 +413,7 @@ async function watch(command) {
426
413
  break;
427
414
  case 'END':
428
415
  if (!silent && isTTY) {
429
- loadConfigFile_js.stderr(`\n[${dateTime$1()}] waiting for changes...`);
416
+ loadConfigFile_js.stderr(`\n[${dateTime()}] waiting for changes...`);
430
417
  }
431
418
  }
432
419
  if ('result' in event && event.result) {
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v2.45.1
4
- Sat, 10 Apr 2021 05:04:58 GMT - commit 345ae5d7b760fabb35a778bc7379cf862db0b31f
3
+ Rollup.js v2.48.0
4
+ Sat, 15 May 2021 04:50:11 GMT - commit 07b3a02069594147665daa95d3fa3e041a82b2d0
5
5
 
6
6
 
7
7
  https://github.com/rollup/rollup
@@ -38,7 +38,7 @@ const util = require$$0;
38
38
  const braces = index.braces_1;
39
39
  const picomatch = index.picomatch;
40
40
  const utils = index.utils;
41
- const isEmptyString = val => typeof val === 'string' && (val === '' || val === './');
41
+ const isEmptyString = val => val === '' || val === './';
42
42
 
43
43
  /**
44
44
  * Returns an array of strings that match one or more glob patterns.
@@ -50,9 +50,9 @@ const isEmptyString = val => typeof val === 'string' && (val === '' || val === '
50
50
  * console.log(mm(['a.js', 'a.txt'], ['*.js']));
51
51
  * //=> [ 'a.js' ]
52
52
  * ```
53
- * @param {String|Array<string>} list List of strings to match.
54
- * @param {String|Array<string>} patterns One or more glob patterns to use for matching.
55
- * @param {Object} options See available [options](#options)
53
+ * @param {String|Array<string>} `list` List of strings to match.
54
+ * @param {String|Array<string>} `patterns` One or more glob patterns to use for matching.
55
+ * @param {Object} `options` See available [options](#options)
56
56
  * @return {Array} Returns an array of matches
57
57
  * @summary false
58
58
  * @api public
@@ -147,9 +147,9 @@ micromatch.matcher = (pattern, options) => picomatch(pattern, options);
147
147
  * console.log(mm.isMatch('a.a', ['b.*', '*.a'])); //=> true
148
148
  * console.log(mm.isMatch('a.a', 'b.*')); //=> false
149
149
  * ```
150
- * @param {String} str The string to test.
151
- * @param {String|Array} patterns One or more glob patterns to use for matching.
152
- * @param {Object} [options] See available [options](#options).
150
+ * @param {String} `str` The string to test.
151
+ * @param {String|Array} `patterns` One or more glob patterns to use for matching.
152
+ * @param {Object} `[options]` See available [options](#options).
153
153
  * @return {Boolean} Returns true if any patterns match `str`
154
154
  * @api public
155
155
  */
@@ -215,7 +215,7 @@ micromatch.not = (list, patterns, options = {}) => {
215
215
  * @param {String} `str` The string to match.
216
216
  * @param {String|Array} `patterns` Glob pattern to use for matching.
217
217
  * @param {Object} `options` See available [options](#options) for changing how matches are performed
218
- * @return {Boolean} Returns true if the patter matches any part of `str`.
218
+ * @return {Boolean} Returns true if any of the patterns matches any part of `str`.
219
219
  * @api public
220
220
  */
221
221
 
@@ -286,7 +286,7 @@ micromatch.matchKeys = (obj, patterns, options) => {
286
286
  * @param {String|Array} `list` The string or array of strings to test. Returns as soon as the first match is found.
287
287
  * @param {String|Array} `patterns` One or more glob patterns to use for matching.
288
288
  * @param {Object} `options` See available [options](#options) for changing how matches are performed
289
- * @return {Boolean} Returns true if any patterns match `str`
289
+ * @return {Boolean} Returns true if any `patterns` matches any of the strings in `list`
290
290
  * @api public
291
291
  */
292
292
 
@@ -322,7 +322,7 @@ micromatch.some = (list, patterns, options) => {
322
322
  * @param {String|Array} `list` The string or array of strings to test.
323
323
  * @param {String|Array} `patterns` One or more glob patterns to use for matching.
324
324
  * @param {Object} `options` See available [options](#options) for changing how matches are performed
325
- * @return {Boolean} Returns true if any patterns match `str`
325
+ * @return {Boolean} Returns true if all `patterns` matches all of the strings in `list`
326
326
  * @api public
327
327
  */
328
328
 
@@ -388,7 +388,7 @@ micromatch.all = (str, patterns, options) => {
388
388
  * @param {String} `glob` Glob pattern to use for matching.
389
389
  * @param {String} `input` String to match
390
390
  * @param {Object} `options` See available [options](#options) for changing how matches are performed
391
- * @return {Boolean} Returns an array of captures if the input matches the glob pattern, otherwise `null`.
391
+ * @return {Array|null} Returns an array of captures if the input matches the glob pattern, otherwise `null`.
392
392
  * @api public
393
393
  */
394
394
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rollup",
3
- "version": "2.45.1",
3
+ "version": "2.48.0",
4
4
  "description": "Next-generation ES module bundler",
5
5
  "main": "dist/rollup.js",
6
6
  "module": "dist/es/rollup.js",
@@ -15,7 +15,7 @@
15
15
  "ci:lint": "npm run lint:nofix",
16
16
  "ci:test": "npm run build:cjs && npm run build:bootstrap && npm run test:all",
17
17
  "ci:test:only": "npm run build:cjs && npm run build:bootstrap && npm run test:only",
18
- "ci:coverage": "npm run build:cjs && nyc --reporter lcovonly mocha && codecov",
18
+ "ci:coverage": "npm run build:cjs && nyc --reporter lcovonly mocha",
19
19
  "lint": "npm run lint:ts -- --fix && npm run lint:js -- --fix && npm run lint:markdown",
20
20
  "lint:nofix": "npm run lint:ts && npm run lint:js && npm run lint:markdown",
21
21
  "lint:ts": "tslint --project .",
@@ -62,52 +62,47 @@
62
62
  "devDependencies": {
63
63
  "@rollup/plugin-alias": "^3.1.2",
64
64
  "@rollup/plugin-buble": "^0.21.3",
65
- "@rollup/plugin-commonjs": "^18.0.0-1",
65
+ "@rollup/plugin-commonjs": "18.0.0-1",
66
66
  "@rollup/plugin-json": "^4.1.0",
67
- "@rollup/plugin-node-resolve": "^11.1.1",
68
- "@rollup/plugin-replace": "^2.3.4",
67
+ "@rollup/plugin-node-resolve": "^13.0.0",
68
+ "@rollup/plugin-replace": "^2.4.2",
69
69
  "@types/micromatch": "^4.0.1",
70
70
  "@types/node": "^10.17.51",
71
71
  "@types/require-relative": "^0.8.0",
72
72
  "@types/signal-exit": "^3.0.0",
73
73
  "@types/yargs-parser": "^20.2.0",
74
- "acorn": "^8.0.5",
75
- "acorn-class-fields": "^1.0.0",
74
+ "acorn": "^8.2.4",
76
75
  "acorn-jsx": "^5.3.1",
77
- "acorn-private-methods": "^1.0.0",
78
- "acorn-static-class-features": "^1.0.0",
79
- "acorn-walk": "^8.0.2",
76
+ "acorn-walk": "^8.1.0",
80
77
  "buble": "^0.20.0",
81
78
  "chokidar": "^3.5.1",
82
- "codecov": "^3.8.1",
83
- "colorette": "^1.2.1",
84
- "core-js": "^3.8.3",
85
- "date-time": "^3.1.0",
79
+ "colorette": "^1.2.2",
80
+ "core-js": "^3.12.0",
81
+ "date-time": "^4.0.0",
86
82
  "es5-shim": "^4.5.15",
87
83
  "es6-shim": "^0.35.6",
88
- "eslint": "^7.19.0",
84
+ "eslint": "^7.25.0",
89
85
  "eslint-plugin-import": "^2.22.1",
90
86
  "execa": "^5.0.0",
91
- "fixturify": "^2.1.0",
87
+ "fixturify": "^2.1.1",
92
88
  "hash.js": "^1.1.7",
93
- "husky": "^5.0.9",
89
+ "husky": "^6.0.0",
94
90
  "is-reference": "git+https://github.com/lukastaegert/is-reference.git#update-class-features",
95
91
  "lint-staged": "^10.5.4",
96
92
  "locate-character": "^2.0.5",
97
93
  "magic-string": "^0.25.7",
98
- "markdownlint-cli": "^0.26.0",
99
- "micromatch": "^4.0.2",
100
- "mocha": "^8.3.0",
101
- "node-fetch": "^2.6.1",
94
+ "markdownlint-cli": "^0.27.1",
95
+ "micromatch": "^4.0.4",
96
+ "mocha": "^8.4.0",
102
97
  "nyc": "^15.1.0",
103
- "pinst": "^2.1.4",
98
+ "pinst": "^2.1.6",
104
99
  "prettier": "^2.2.1",
105
- "pretty-bytes": "^5.5.0",
100
+ "pretty-bytes": "^5.6.0",
106
101
  "pretty-ms": "^7.0.1",
107
102
  "require-relative": "^0.8.7",
108
103
  "requirejs": "^2.3.6",
109
- "rollup": "^2.38.5",
110
- "rollup-plugin-license": "^2.2.0",
104
+ "rollup": "^2.47.0",
105
+ "rollup-plugin-license": "^2.3.0",
111
106
  "rollup-plugin-string": "^3.0.0",
112
107
  "rollup-plugin-terser": "^7.0.2",
113
108
  "rollup-plugin-thatworks": "^1.0.4",
@@ -120,13 +115,12 @@
120
115
  "source-map-support": "^0.5.19",
121
116
  "sourcemap-codec": "^1.4.8",
122
117
  "systemjs": "^6.8.3",
123
- "terser": "^5.6.0-beta",
124
- "tslib": "^2.1.0",
118
+ "terser": "^5.7.0",
119
+ "tslib": "^2.2.0",
125
120
  "tslint": "^6.1.3",
126
- "typescript": "^4.1.5",
127
- "url-parse": "^1.4.7",
121
+ "typescript": "^4.2.4",
128
122
  "weak-napi": "^2.0.2",
129
- "yargs-parser": "^20.2.4"
123
+ "yargs-parser": "^20.2.7"
130
124
  },
131
125
  "files": [
132
126
  "dist/**/*.js",