vanilla-builder 0.2.0 → 0.3.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.
- package/CHANGELOG.md +21 -0
- package/README.es.md +531 -154
- package/README.md +530 -155
- package/bin/builder.js +345 -63
- package/package.json +16 -3
- package/src/browsers.js +128 -0
- package/src/budgets.js +77 -0
- package/src/builder.js +367 -103
- package/src/config.js +106 -23
- package/src/deps.js +12 -7
- package/src/files.js +12 -7
- package/src/html.js +10 -3
- package/src/i18n.js +33 -0
- package/src/images.js +61 -0
- package/src/js.js +99 -42
- package/src/jsinfo.js +63 -4
- package/src/obfuscate.js +8 -4
- package/src/optional.js +7 -3
- package/src/output.js +37 -9
- package/src/plugins.js +126 -0
- package/src/pool.js +6 -4
- package/src/report.js +9 -3
- package/src/server.js +8 -4
- package/src/tersercore.js +2 -2
- package/src/verify.js +26 -6
- package/src/worker.js +5 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,26 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project are documented here. The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and the project uses [Semantic Versioning](https://semver.org/).
|
|
4
4
|
|
|
5
|
+
## [0.3.0] - 2026-11-09
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- **English messages** by default, Spanish when the system is in Spanish; choose with `--lang en|es` or `BUILDER_LANG`. `--json` field names and `perf.phases` names are always English.
|
|
10
|
+
- **Target browsers** from `browserslist` (`.browserslistrc` or `package.json`), the new `browsers` option or `--browsers`: vendor prefixes, flattened CSS nesting and lowered JS syntax. Optional peer `browserslist`.
|
|
11
|
+
- **Image optimization** (`images`, `--images`, `--image-quality`): PNG recompressed losslessly and checked pixel by pixel; JPEG/WebP re-encoded at a chosen quality, keeping metadata. Optional peer `sharp`.
|
|
12
|
+
- **Size budgets** (`budgets`, `--budget pattern=size`): per pattern or total, by size, gzip or brotli; going over fails the build before touching `dist/`.
|
|
13
|
+
- **Plugins** with `transform` (on the source, before processing), `buildStart` and `buildEnd`; as objects in `builder.config.mjs` or package names in JSON.
|
|
14
|
+
- **GitHub Action** (`uses: MarioACo/vanilla-builder@v0.3.0`): cached builds, size summary, self-updating PR comment, outputs.
|
|
15
|
+
- `builder dev` reloads only the stylesheets when only CSS changed, keeping page state.
|
|
16
|
+
- Runnable `examples/` (classic site, TypeScript, protected app), checked by the test suite.
|
|
17
|
+
- `bench/compare`: reproducible comparison with Parcel and Vite (correctness in Chromium, time, size).
|
|
18
|
+
|
|
19
|
+
### Changed
|
|
20
|
+
|
|
21
|
+
- Unknown command-line options are now errors with a suggestion, instead of being ignored.
|
|
22
|
+
- Classic scripts transpiled for older browsers keep esbuild's temporary variables under a per-file prefix, instead of falling back to the untranspiled code.
|
|
23
|
+
- Cache keys include the message language and, for images, the `sharp` version.
|
|
24
|
+
|
|
5
25
|
## [0.2.0] - 2026-11-09
|
|
6
26
|
|
|
7
27
|
### Added
|
|
@@ -37,5 +57,6 @@ First public release.
|
|
|
37
57
|
- Projects opened through a symlink or junction (e.g. macOS `/tmp`) now build; the root is resolved to its real path.
|
|
38
58
|
- MIT license, CI on Node 16–24 (Linux, Windows, macOS) and browser equivalence tests in Chrome.
|
|
39
59
|
|
|
60
|
+
[0.3.0]: https://github.com/MarioACo/vanilla-builder/releases/tag/v0.3.0
|
|
40
61
|
[0.2.0]: https://github.com/MarioACo/vanilla-builder/releases/tag/v0.2.0
|
|
41
62
|
[0.1.0]: https://github.com/MarioACo/vanilla-builder/releases/tag/v0.1.0
|