rollup 3.26.3 → 4.0.0-1

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/LICENSE.md CHANGED
@@ -88,35 +88,6 @@ Repository: https://github.com/xtuc/acorn-import-assertions
88
88
 
89
89
  ---------------------------------------
90
90
 
91
- ## acorn-walk
92
- License: MIT
93
- By: Marijn Haverbeke, Ingvar Stepanyan, Adrian Heine
94
- Repository: https://github.com/acornjs/acorn.git
95
-
96
- > MIT License
97
- >
98
- > Copyright (C) 2012-2020 by various contributors (see AUTHORS)
99
- >
100
- > Permission is hereby granted, free of charge, to any person obtaining a copy
101
- > of this software and associated documentation files (the "Software"), to deal
102
- > in the Software without restriction, including without limitation the rights
103
- > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
104
- > copies of the Software, and to permit persons to whom the Software is
105
- > furnished to do so, subject to the following conditions:
106
- >
107
- > The above copyright notice and this permission notice shall be included in
108
- > all copies or substantial portions of the Software.
109
- >
110
- > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
111
- > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
112
- > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
113
- > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
114
- > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
115
- > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
116
- > THE SOFTWARE.
117
-
118
- ---------------------------------------
119
-
120
91
  ## anymatch
121
92
  License: ISC
122
93
  By: Elan Shanker
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rollup",
3
- "version": "3.26.3",
3
+ "version": "4.0.0-1",
4
4
  "description": "Next-generation ES module bundler",
5
5
  "main": "dist/rollup.js",
6
6
  "module": "dist/es/rollup.js",
@@ -8,26 +8,58 @@
8
8
  "bin": {
9
9
  "rollup": "dist/bin/rollup"
10
10
  },
11
+ "napi": {
12
+ "name": "rollup",
13
+ "package": {
14
+ "name": "@rollup/rollup"
15
+ },
16
+ "triples": {
17
+ "defaults": false,
18
+ "additional": [
19
+ "aarch64-apple-darwin",
20
+ "aarch64-linux-android",
21
+ "aarch64-pc-windows-msvc",
22
+ "aarch64-unknown-linux-gnu",
23
+ "armv7-linux-androideabi",
24
+ "armv7-unknown-linux-gnueabihf",
25
+ "i686-pc-windows-msvc",
26
+ "x86_64-apple-darwin",
27
+ "x86_64-pc-windows-msvc",
28
+ "x86_64-unknown-linux-gnu",
29
+ "x86_64-unknown-linux-musl"
30
+ ]
31
+ }
32
+ },
11
33
  "scripts": {
12
- "build": "rollup --config rollup.config.ts --configPlugin typescript",
34
+ "build": "concurrently -c green,blue 'npm run build:napi -- --release' 'npm:build:js' && npm run build:copy-native",
35
+ "build:quick": "concurrently -c green,blue 'npm:build:napi' 'npm:build:cjs' && npm run build:copy-native",
36
+ "build:napi": "napi build --platform --dts native.d.ts --js native.js --cargo-cwd rust -p bindings_napi --cargo-name bindings_napi",
37
+ "update:napi": "npm run build:napi && npm run build:copy-native",
38
+ "build:js": "rollup --config rollup.config.ts --configPlugin typescript",
39
+ "update:js": "npm run build:js && npm run build:copy-native",
40
+ "build:copy-native": "shx mkdir -p dist && shx cp rollup.*.node dist/",
13
41
  "dev": "vitepress dev docs",
14
42
  "build:cjs": "rollup --config rollup.config.ts --configPlugin typescript --configTest",
15
- "build:bootstrap": "node dist/bin/rollup --config rollup.config.ts --configPlugin typescript",
43
+ "build:bootstrap": "shx mv dist dist-build && node dist-build/bin/rollup --config rollup.config.ts --configPlugin typescript && npm run build:copy-native && shx rm -rf dist-build",
16
44
  "build:docs": "vitepress build docs",
17
45
  "preview:docs": "vitepress preview docs",
18
- "ci:lint": "concurrently 'npm:lint:js:nofix' 'npm:lint:markdown:nofix'",
19
- "ci:test": "npm run build:cjs && npm run build:bootstrap && npm run test:all",
20
- "ci:test:only": "npm run build:cjs && npm run build:bootstrap && npm run test:only",
21
- "ci:coverage": "npm run build:cjs && npm run build:bootstrap && nyc --reporter lcovonly mocha",
22
- "lint": "concurrently -c red,green 'npm:lint:js' 'npm:lint:markdown'",
46
+ "ci:artifacts": "napi artifacts",
47
+ "ci:lint": "concurrently -c red,green,blue 'npm:lint:js:nofix' 'npm:lint:markdown:nofix' 'npm:lint:rust:nofix'",
48
+ "ci:test": "npm run build:cjs && npm run build:copy-native && npm run build:bootstrap && npm run test:all",
49
+ "ci:test:only": "npm run build:cjs && npm run build:copy-native && npm run build:bootstrap && npm run test:only",
50
+ "ci:coverage": "npm run build:cjs && npm run build:copy-native && npm run build:bootstrap && nyc --reporter lcovonly mocha",
51
+ "lint": "concurrently -c red,green,blue 'npm:lint:js' 'npm:lint:markdown' 'npm:lint:rust'",
23
52
  "lint:js": "eslint . --fix --cache",
24
53
  "lint:js:nofix": "eslint . --cache",
25
54
  "lint:markdown": "prettier --write \"**/*.md\"",
26
55
  "lint:markdown:nofix": "prettier --check \"**/*.md\"",
56
+ "lint:rust": "cd rust && cargo fmt",
57
+ "lint:rust:nofix": "cd rust && cargo fmt --check",
27
58
  "perf": "npm run build:cjs && node --expose-gc scripts/perf.js",
28
59
  "perf:init": "node scripts/perf-init.js",
29
60
  "prepare": "husky install && node scripts/check-release.js || npm run build",
30
- "prepublishOnly": "node scripts/check-release.js",
61
+ "prepublishOnly": "node scripts/check-release.js && node scripts/prepublish.js",
62
+ "prepublish:napi": "napi prepublish --skip-gh-release",
31
63
  "release": "node scripts/release.js",
32
64
  "release:docs": "git fetch --update-head-ok origin master:master && git branch --force documentation-published master && git push origin documentation-published",
33
65
  "test": "npm run build && npm run test:all",
@@ -60,7 +92,18 @@
60
92
  },
61
93
  "homepage": "https://rollupjs.org/",
62
94
  "optionalDependencies": {
63
- "fsevents": "~2.3.2"
95
+ "fsevents": "~2.3.2",
96
+ "@rollup/rollup-darwin-arm64": "4.0.0-1",
97
+ "@rollup/rollup-android-arm64": "4.0.0-1",
98
+ "@rollup/rollup-win32-arm64-msvc": "4.0.0-1",
99
+ "@rollup/rollup-linux-arm64-gnu": "4.0.0-1",
100
+ "@rollup/rollup-android-arm-eabi": "4.0.0-1",
101
+ "@rollup/rollup-linux-arm-gnueabihf": "4.0.0-1",
102
+ "@rollup/rollup-win32-ia32-msvc": "4.0.0-1",
103
+ "@rollup/rollup-darwin-x64": "4.0.0-1",
104
+ "@rollup/rollup-win32-x64-msvc": "4.0.0-1",
105
+ "@rollup/rollup-linux-x64-gnu": "4.0.0-1",
106
+ "@rollup/rollup-linux-x64-musl": "4.0.0-1"
64
107
  },
65
108
  "devDependencies": {
66
109
  "@codemirror/commands": "^6.2.4",
@@ -68,12 +111,13 @@
68
111
  "@codemirror/language": "^6.8.0",
69
112
  "@codemirror/search": "^6.5.0",
70
113
  "@codemirror/state": "^6.2.1",
71
- "@codemirror/view": "^6.14.0",
114
+ "@codemirror/view": "^6.14.1",
72
115
  "@jridgewell/sourcemap-codec": "^1.4.15",
73
- "@mermaid-js/mermaid-cli": "^10.2.2",
116
+ "@mermaid-js/mermaid-cli": "^10.2.4",
117
+ "@napi-rs/cli": "^2.16.2",
74
118
  "@rollup/plugin-alias": "^5.0.0",
75
119
  "@rollup/plugin-buble": "^1.0.2",
76
- "@rollup/plugin-commonjs": "^25.0.2",
120
+ "@rollup/plugin-commonjs": "^25.0.3",
77
121
  "@rollup/plugin-json": "^6.0.0",
78
122
  "@rollup/plugin-node-resolve": "^15.1.0",
79
123
  "@rollup/plugin-replace": "^5.0.2",
@@ -82,13 +126,13 @@
82
126
  "@rollup/pluginutils": "^5.0.2",
83
127
  "@types/estree": "1.0.1",
84
128
  "@types/mocha": "^10.0.1",
85
- "@types/node": "~14.18.53",
129
+ "@types/node": "~14.18.54",
86
130
  "@types/yargs-parser": "^21.0.0",
87
- "@typescript-eslint/eslint-plugin": "^6.0.0",
88
- "@typescript-eslint/parser": "^6.0.0",
89
- "@vue/eslint-config-prettier": "^7.1.0",
131
+ "@typescript-eslint/eslint-plugin": "^6.2.0",
132
+ "@typescript-eslint/parser": "^6.2.0",
133
+ "@vue/eslint-config-prettier": "^8.0.0",
90
134
  "@vue/eslint-config-typescript": "^11.0.3",
91
- "acorn": "^8.9.0",
135
+ "acorn": "^8.10.0",
92
136
  "acorn-import-assertions": "^1.9.0",
93
137
  "acorn-jsx": "^5.3.2",
94
138
  "acorn-walk": "^8.2.0",
@@ -97,7 +141,7 @@
97
141
  "chokidar": "^3.5.3",
98
142
  "colorette": "^2.0.20",
99
143
  "concurrently": "^8.2.0",
100
- "core-js": "^3.31.0",
144
+ "core-js": "^3.31.1",
101
145
  "date-time": "^4.0.0",
102
146
  "es5-shim": "^4.6.7",
103
147
  "es6-shim": "^0.35.8",
@@ -113,7 +157,7 @@
113
157
  "github-api": "^3.4.0",
114
158
  "hash.js": "^1.1.7",
115
159
  "husky": "^8.0.3",
116
- "inquirer": "^9.2.7",
160
+ "inquirer": "^9.2.8",
117
161
  "is-reference": "^3.0.1",
118
162
  "lint-staged": "^13.2.3",
119
163
  "locate-character": "^3.0.0",
@@ -122,30 +166,30 @@
122
166
  "nyc": "^15.1.0",
123
167
  "pinia": "^2.1.4",
124
168
  "prettier": "^3.0.0",
125
- "pretty-bytes": "^6.1.0",
169
+ "pretty-bytes": "^6.1.1",
126
170
  "pretty-ms": "^8.0.0",
127
171
  "requirejs": "^2.3.6",
128
- "rollup": "^3.26.0",
172
+ "rollup": "^3.26.3",
129
173
  "rollup-plugin-license": "^3.0.1",
130
174
  "rollup-plugin-string": "^3.0.0",
131
175
  "rollup-plugin-thatworks": "^1.0.4",
132
- "semver": "^7.5.3",
176
+ "semver": "^7.5.4",
133
177
  "shx": "^0.3.4",
134
178
  "signal-exit": "^4.0.2",
135
179
  "source-map": "^0.7.4",
136
180
  "source-map-support": "^0.5.21",
137
181
  "systemjs": "^6.14.1",
138
- "terser": "^5.18.2",
139
- "tslib": "^2.6.0",
182
+ "terser": "^5.19.2",
183
+ "tslib": "^2.6.1",
140
184
  "typescript": "^5.1.6",
141
- "vite": "^4.4.2",
142
- "vitepress": "^1.0.0-beta.5",
185
+ "vite": "^4.4.7",
186
+ "vitepress": "^1.0.0-beta.6",
143
187
  "vue": "^3.3.4",
144
188
  "weak-napi": "^2.0.2",
145
189
  "yargs-parser": "^21.1.1"
146
190
  },
147
191
  "overrides": {
148
- "semver": "^7.5.3"
192
+ "semver": "^7.5.4"
149
193
  },
150
194
  "files": [
151
195
  "dist/**/*.js",
@@ -175,4 +219,4 @@
175
219
  },
176
220
  "./dist/*": "./dist/*"
177
221
  }
178
- }
222
+ }