rollup 4.9.3 → 4.9.5

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
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  /*
3
3
  @license
4
- Rollup.js v4.9.3
5
- Fri, 05 Jan 2024 06:20:18 GMT - commit 4ab3ad360457cd79f4ea852447d3ddca22da95d6
4
+ Rollup.js v4.9.5
5
+ Fri, 12 Jan 2024 06:15:44 GMT - commit 7fa474cc5ed91c96a4ff80e286aa8534bc15834f
6
6
 
7
7
  https://github.com/rollup/rollup
8
8
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.9.3
4
- Fri, 05 Jan 2024 06:20:18 GMT - commit 4ab3ad360457cd79f4ea852447d3ddca22da95d6
3
+ Rollup.js v4.9.5
4
+ Fri, 12 Jan 2024 06:15:44 GMT - commit 7fa474cc5ed91c96a4ff80e286aa8534bc15834f
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.9.3
4
- Fri, 05 Jan 2024 06:20:18 GMT - commit 4ab3ad360457cd79f4ea852447d3ddca22da95d6
3
+ Rollup.js v4.9.5
4
+ Fri, 12 Jan 2024 06:15:44 GMT - commit 7fa474cc5ed91c96a4ff80e286aa8534bc15834f
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
package/dist/es/rollup.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.9.3
4
- Fri, 05 Jan 2024 06:20:18 GMT - commit 4ab3ad360457cd79f4ea852447d3ddca22da95d6
3
+ Rollup.js v4.9.5
4
+ Fri, 12 Jan 2024 06:15:44 GMT - commit 7fa474cc5ed91c96a4ff80e286aa8534bc15834f
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.9.3
4
- Fri, 05 Jan 2024 06:20:18 GMT - commit 4ab3ad360457cd79f4ea852447d3ddca22da95d6
3
+ Rollup.js v4.9.5
4
+ Fri, 12 Jan 2024 06:15:44 GMT - commit 7fa474cc5ed91c96a4ff80e286aa8534bc15834f
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -16,7 +16,7 @@ import { xxhashBase64Url } from '../../native.js';
16
16
  import { lstat, realpath, readdir, readFile, mkdir, writeFile } from 'node:fs/promises';
17
17
  import * as tty from 'tty';
18
18
 
19
- var version = "4.9.3";
19
+ var version = "4.9.5";
20
20
 
21
21
  const comma = ','.charCodeAt(0);
22
22
  const semicolon = ';'.charCodeAt(0);
@@ -2060,11 +2060,14 @@ function makeLegal(value) {
2060
2060
  return value || '_';
2061
2061
  }
2062
2062
  const VALID_IDENTIFIER_REGEXP = /^[$_\p{ID_Start}][$\u200C\u200D\p{ID_Continue}]*$/u;
2063
- const NUMBER_REGEXP = /^\d+$/;
2063
+ const NUMBER_REGEXP = /^(?:0|[1-9]\d*)$/;
2064
2064
  function stringifyObjectKeyIfNeeded(key) {
2065
- if (VALID_IDENTIFIER_REGEXP.test(key) || NUMBER_REGEXP.test(key)) {
2065
+ if (VALID_IDENTIFIER_REGEXP.test(key)) {
2066
2066
  return key === '__proto__' ? '["__proto__"]' : key;
2067
2067
  }
2068
+ if (NUMBER_REGEXP.test(key) && +key <= Number.MAX_SAFE_INTEGER) {
2069
+ return key;
2070
+ }
2068
2071
  return JSON.stringify(key);
2069
2072
  }
2070
2073
  function stringifyIdentifierIfNeeded(key) {
@@ -16473,10 +16476,10 @@ function commondir(files) {
16473
16476
  if (files.length === 1)
16474
16477
  return dirname(files[0]);
16475
16478
  const commonSegments = files.slice(1).reduce((commonSegments, file) => {
16476
- const pathSegements = file.split(/\/+|\\+/);
16479
+ const pathSegments = file.split(/\/+|\\+/);
16477
16480
  let index;
16478
- for (index = 0; commonSegments[index] === pathSegements[index] &&
16479
- index < Math.min(commonSegments.length, pathSegements.length); index++)
16481
+ for (index = 0; commonSegments[index] === pathSegments[index] &&
16482
+ index < Math.min(commonSegments.length, pathSegments.length); index++)
16480
16483
  ;
16481
16484
  return commonSegments.slice(0, index);
16482
16485
  }, files[0].split(/\/+|\\+/));
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.9.3
4
- Fri, 05 Jan 2024 06:20:18 GMT - commit 4ab3ad360457cd79f4ea852447d3ddca22da95d6
3
+ Rollup.js v4.9.5
4
+ Fri, 12 Jan 2024 06:15:44 GMT - commit 7fa474cc5ed91c96a4ff80e286aa8534bc15834f
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.9.3
4
- Fri, 05 Jan 2024 06:20:18 GMT - commit 4ab3ad360457cd79f4ea852447d3ddca22da95d6
3
+ Rollup.js v4.9.5
4
+ Fri, 12 Jan 2024 06:15:44 GMT - commit 7fa474cc5ed91c96a4ff80e286aa8534bc15834f
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.9.3
4
- Fri, 05 Jan 2024 06:20:18 GMT - commit 4ab3ad360457cd79f4ea852447d3ddca22da95d6
3
+ Rollup.js v4.9.5
4
+ Fri, 12 Jan 2024 06:15:44 GMT - commit 7fa474cc5ed91c96a4ff80e286aa8534bc15834f
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.9.3
4
- Fri, 05 Jan 2024 06:20:18 GMT - commit 4ab3ad360457cd79f4ea852447d3ddca22da95d6
3
+ Rollup.js v4.9.5
4
+ Fri, 12 Jan 2024 06:15:44 GMT - commit 7fa474cc5ed91c96a4ff80e286aa8534bc15834f
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
package/dist/parseAst.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.9.3
4
- Fri, 05 Jan 2024 06:20:18 GMT - commit 4ab3ad360457cd79f4ea852447d3ddca22da95d6
3
+ Rollup.js v4.9.5
4
+ Fri, 12 Jan 2024 06:15:44 GMT - commit 7fa474cc5ed91c96a4ff80e286aa8534bc15834f
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 v4.9.3
4
- Fri, 05 Jan 2024 06:20:18 GMT - commit 4ab3ad360457cd79f4ea852447d3ddca22da95d6
3
+ Rollup.js v4.9.5
4
+ Fri, 12 Jan 2024 06:15:44 GMT - commit 7fa474cc5ed91c96a4ff80e286aa8534bc15834f
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.9.3
4
- Fri, 05 Jan 2024 06:20:18 GMT - commit 4ab3ad360457cd79f4ea852447d3ddca22da95d6
3
+ Rollup.js v4.9.5
4
+ Fri, 12 Jan 2024 06:15:44 GMT - commit 7fa474cc5ed91c96a4ff80e286aa8534bc15834f
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.9.3
4
- Fri, 05 Jan 2024 06:20:18 GMT - commit 4ab3ad360457cd79f4ea852447d3ddca22da95d6
3
+ Rollup.js v4.9.5
4
+ Fri, 12 Jan 2024 06:15:44 GMT - commit 7fa474cc5ed91c96a4ff80e286aa8534bc15834f
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.9.3
4
- Fri, 05 Jan 2024 06:20:18 GMT - commit 4ab3ad360457cd79f4ea852447d3ddca22da95d6
3
+ Rollup.js v4.9.5
4
+ Fri, 12 Jan 2024 06:15:44 GMT - commit 7fa474cc5ed91c96a4ff80e286aa8534bc15834f
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.9.3
4
- Fri, 05 Jan 2024 06:20:18 GMT - commit 4ab3ad360457cd79f4ea852447d3ddca22da95d6
3
+ Rollup.js v4.9.5
4
+ Fri, 12 Jan 2024 06:15:44 GMT - commit 7fa474cc5ed91c96a4ff80e286aa8534bc15834f
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.9.3
4
- Fri, 05 Jan 2024 06:20:18 GMT - commit 4ab3ad360457cd79f4ea852447d3ddca22da95d6
3
+ Rollup.js v4.9.5
4
+ Fri, 12 Jan 2024 06:15:44 GMT - commit 7fa474cc5ed91c96a4ff80e286aa8534bc15834f
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 = "4.9.3";
34
+ var version = "4.9.5";
35
35
 
36
36
  function ensureArray$1(items) {
37
37
  if (Array.isArray(items)) {
@@ -3506,11 +3506,14 @@ function makeLegal(value) {
3506
3506
  return value || '_';
3507
3507
  }
3508
3508
  const VALID_IDENTIFIER_REGEXP = /^[$_\p{ID_Start}][$\u200C\u200D\p{ID_Continue}]*$/u;
3509
- const NUMBER_REGEXP = /^\d+$/;
3509
+ const NUMBER_REGEXP = /^(?:0|[1-9]\d*)$/;
3510
3510
  function stringifyObjectKeyIfNeeded(key) {
3511
- if (VALID_IDENTIFIER_REGEXP.test(key) || NUMBER_REGEXP.test(key)) {
3511
+ if (VALID_IDENTIFIER_REGEXP.test(key)) {
3512
3512
  return key === '__proto__' ? '["__proto__"]' : key;
3513
3513
  }
3514
+ if (NUMBER_REGEXP.test(key) && +key <= Number.MAX_SAFE_INTEGER) {
3515
+ return key;
3516
+ }
3514
3517
  return JSON.stringify(key);
3515
3518
  }
3516
3519
  function stringifyIdentifierIfNeeded(key) {
@@ -17793,10 +17796,10 @@ function commondir(files) {
17793
17796
  if (files.length === 1)
17794
17797
  return node_path.dirname(files[0]);
17795
17798
  const commonSegments = files.slice(1).reduce((commonSegments, file) => {
17796
- const pathSegements = file.split(/\/+|\\+/);
17799
+ const pathSegments = file.split(/\/+|\\+/);
17797
17800
  let index;
17798
- for (index = 0; commonSegments[index] === pathSegements[index] &&
17799
- index < Math.min(commonSegments.length, pathSegements.length); index++)
17801
+ for (index = 0; commonSegments[index] === pathSegments[index] &&
17802
+ index < Math.min(commonSegments.length, pathSegments.length); index++)
17800
17803
  ;
17801
17804
  return commonSegments.slice(0, index);
17802
17805
  }, files[0].split(/\/+|\\+/));
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.9.3
4
- Fri, 05 Jan 2024 06:20:18 GMT - commit 4ab3ad360457cd79f4ea852447d3ddca22da95d6
3
+ Rollup.js v4.9.5
4
+ Fri, 12 Jan 2024 06:15:44 GMT - commit 7fa474cc5ed91c96a4ff80e286aa8534bc15834f
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.9.3
4
- Fri, 05 Jan 2024 06:20:18 GMT - commit 4ab3ad360457cd79f4ea852447d3ddca22da95d6
3
+ Rollup.js v4.9.5
4
+ Fri, 12 Jan 2024 06:15:44 GMT - commit 7fa474cc5ed91c96a4ff80e286aa8534bc15834f
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": "4.9.3",
3
+ "version": "4.9.5",
4
4
  "description": "Next-generation ES module bundler",
5
5
  "main": "dist/rollup.js",
6
6
  "module": "dist/es/rollup.js",
@@ -101,19 +101,19 @@
101
101
  "homepage": "https://rollupjs.org/",
102
102
  "optionalDependencies": {
103
103
  "fsevents": "~2.3.2",
104
- "@rollup/rollup-darwin-arm64": "4.9.3",
105
- "@rollup/rollup-android-arm64": "4.9.3",
106
- "@rollup/rollup-win32-arm64-msvc": "4.9.3",
107
- "@rollup/rollup-linux-arm64-gnu": "4.9.3",
108
- "@rollup/rollup-linux-arm64-musl": "4.9.3",
109
- "@rollup/rollup-android-arm-eabi": "4.9.3",
110
- "@rollup/rollup-linux-arm-gnueabihf": "4.9.3",
111
- "@rollup/rollup-win32-ia32-msvc": "4.9.3",
112
- "@rollup/rollup-linux-riscv64-gnu": "4.9.3",
113
- "@rollup/rollup-darwin-x64": "4.9.3",
114
- "@rollup/rollup-win32-x64-msvc": "4.9.3",
115
- "@rollup/rollup-linux-x64-gnu": "4.9.3",
116
- "@rollup/rollup-linux-x64-musl": "4.9.3"
104
+ "@rollup/rollup-darwin-arm64": "4.9.5",
105
+ "@rollup/rollup-android-arm64": "4.9.5",
106
+ "@rollup/rollup-win32-arm64-msvc": "4.9.5",
107
+ "@rollup/rollup-linux-arm64-gnu": "4.9.5",
108
+ "@rollup/rollup-linux-arm64-musl": "4.9.5",
109
+ "@rollup/rollup-android-arm-eabi": "4.9.5",
110
+ "@rollup/rollup-linux-arm-gnueabihf": "4.9.5",
111
+ "@rollup/rollup-win32-ia32-msvc": "4.9.5",
112
+ "@rollup/rollup-linux-riscv64-gnu": "4.9.5",
113
+ "@rollup/rollup-darwin-x64": "4.9.5",
114
+ "@rollup/rollup-win32-x64-msvc": "4.9.5",
115
+ "@rollup/rollup-linux-x64-gnu": "4.9.5",
116
+ "@rollup/rollup-linux-x64-musl": "4.9.5"
117
117
  },
118
118
  "dependencies": {
119
119
  "@types/estree": "1.0.5"
@@ -144,8 +144,8 @@
144
144
  "@types/mocha": "^10.0.6",
145
145
  "@types/node": "18.0.0",
146
146
  "@types/yargs-parser": "^21.0.3",
147
- "@typescript-eslint/eslint-plugin": "^6.17.0",
148
- "@typescript-eslint/parser": "^6.17.0",
147
+ "@typescript-eslint/eslint-plugin": "^6.18.1",
148
+ "@typescript-eslint/parser": "^6.18.1",
149
149
  "@vue/eslint-config-prettier": "^9.0.0",
150
150
  "@vue/eslint-config-typescript": "^12.0.0",
151
151
  "acorn": "^8.11.3",
@@ -182,7 +182,7 @@
182
182
  "pretty-bytes": "^6.1.1",
183
183
  "pretty-ms": "^8.0.0",
184
184
  "requirejs": "^2.3.6",
185
- "rollup": "^4.9.2",
185
+ "rollup": "^4.9.4",
186
186
  "rollup-plugin-license": "^3.2.0",
187
187
  "rollup-plugin-string": "^3.0.0",
188
188
  "semver": "^7.5.4",
@@ -194,15 +194,15 @@
194
194
  "terser": "^5.26.0",
195
195
  "tslib": "^2.6.2",
196
196
  "typescript": "^5.3.3",
197
- "vite": "^5.0.10",
198
- "vitepress": "^1.0.0-rc.34",
199
- "vue": "^3.4.3",
197
+ "vite": "^5.0.11",
198
+ "vitepress": "^1.0.0-rc.36",
199
+ "vue": "^3.4.6",
200
200
  "wasm-pack": "^0.12.1",
201
201
  "weak-napi": "^2.0.2",
202
202
  "yargs-parser": "^21.1.1"
203
203
  },
204
204
  "overrides": {
205
- "axios": "^1.6.3",
205
+ "axios": "^1.6.5",
206
206
  "semver": "^7.5.4"
207
207
  },
208
208
  "files": [