minify-html/CHANGELOG.md

114 lines
5.4 KiB
Markdown
Raw Permalink Normal View History

# minify-html changelog
2023-05-07 08:34:04 -04:00
## 0.11.1
- Bump GitHub Actions Ubuntu image version.
2023-05-07 07:16:04 -04:00
## 0.11.0
- Change the default CSS minifier optimisation level to 1, as higher levels may perform dangerous optimisations.
- Allow configuring the CSS minifier optimisation level.
2023-05-07 07:05:45 -04:00
- Fix building from source in Node.js postinstall.js script.
2023-01-30 23:14:32 -05:00
## 0.10.8
- [Node.js] Fix assertion failure panic on invalid argument type.
- Do not consider empty `href` attributes as redundant.
2023-01-05 17:44:12 -05:00
## 0.10.7
2023-01-05 17:43:47 -05:00
- Bump [minify-js](https://github.com/wilsonzlin/minify-js) to 0.4.2.
2023-01-04 22:56:20 -05:00
## 0.10.6
- Improve handling of RCDATA text content in edge cases.
2023-01-04 22:29:50 -05:00
## 0.10.5
- Do not encode entities in RCDATA text content (e.g. contents of `<textarea>` and `<title>`).
2023-01-04 20:38:00 -05:00
## 0.10.4
- Use FxHasher for internal hash-based data structures.
2023-01-04 19:52:49 -05:00
- Bump [css-minify](https://github.com/Mnwa/css-minify) to 0.3.1.
2023-01-04 20:14:40 -05:00
- [WASM] Add `type` and `main` fields to package.json.
- [Node.js] Improve invalid argument type error messages.
2022-10-27 20:16:02 -04:00
## 0.10.3
2022-10-25 16:27:23 -04:00
- [Python] Add Python 3.11 support.
2022-10-25 16:43:42 -04:00
- [Python] Build source distribution wheels that will compile on install when prebuilt variants are not available. The Rust compiler must be available.
2022-10-25 16:27:23 -04:00
2022-10-04 05:52:49 -04:00
## 0.10.2
- Bump [minify-js](https://github.com/wilsonzlin/minify-js) to 0.2.6.
2022-09-27 22:51:44 -04:00
## 0.10.1
- Bump [minify-js](https://github.com/wilsonzlin/minify-js) to 0.2.
- Minify JS as module instead of global script if `type` is `module`.
## 0.10.0
- Drop unmatched closing tags instead of reinterpreting them as opening tags. This avoids the possibility of unintentionally creating a large deep tree due to malformed inputs where there are repeated unmatched closing tags (e.g. broken HTML template).
2022-07-04 22:09:00 -04:00
- Fix parallel minification in CLI mode, where some inputs were ignored.
- Output file names as they're processed in parallel mode from the CLI.
2022-08-08 22:41:01 -04:00
- Allow self-closing `<svg>` tags.
- Drop support for macOS ARM64 due to lack of GitHub Actions runners.
2022-06-21 22:06:15 -04:00
## 0.9.2
- Fix Node.js dependency version.
2022-06-21 22:24:15 -04:00
- Create onepass variant for Python.
2022-06-21 22:52:33 -04:00
- Bump [minify-js](https://github.com/wilsonzlin/minify-js) to 0.1.1.
2022-06-22 00:03:19 -04:00
- Implement parallel in-place minification for CLI.
2022-06-21 22:06:15 -04:00
2022-06-21 12:31:34 -04:00
## 0.9.1
- Fix Node.js postinstall script.
2022-06-21 11:16:29 -04:00
## 0.9.0
2022-06-21 11:16:29 -04:00
- Replace esbuild with [minify-js](https://github.com/wilsonzlin/minify-js) as the JS minifier, a fast minifier written from scratch in Rust. This alleviates many of the problems with integrating with esbuild, including interference with process signals by the Go runtime, compatibility issues with C libraries other than glibc, use of threading libraries without actually threading, inability to compile to rarer Rust targets, dependency on the Go compiler, maintaining a [fork of esbuild](https://github.com/wilsonzlin/esbuild-rs), unsafe FFI, and more. CSS minification is now done by [css-minify](https://github.com/Mnwa/css-minify).
- As minify-js is a relatively new library, any feedback, suggestions, and issues around JS minification is most welcome! Please report them to [the repo](https://github.com/wilsonzlin/minify-js).
- Use [Neon](https://neon-bindings.com/) for the Node.js library instead of custom hand-written N-API bindings in C. This simplifies the code and makes it safer and easier to extend. It also allows building from source if a prebuilt binary is not available (the Rust compiler must be installed).
2022-06-21 11:18:29 -04:00
- The package has been renamed to `@minify-js/node`.
2022-06-21 11:16:29 -04:00
- There is a slight API change: instead of calling `createConfiguration`, directly pass the JavaScript object to the `minify` function. The `minify` function also no longer takes a string.
- Thanks to the change to the fully-Rust [minify-js](https://github.com/wilsonzlin/minify-js), we can now add support for Deno and WebAssembly.
2022-06-21 11:18:29 -04:00
- Due to the dropping of esbuild, there is no more `core` variant for Node.js and Python, as the issues should no longer exist.
2022-06-16 21:58:21 -04:00
## 0.8.1
- Create wrapper index.js for Node.js library to support ESM.
- Do not consider empty `value` attributes on `option` elements as redundant.
- Consider `crossorigin` attributes as boolean.
2021-12-14 23:29:06 -05:00
## 0.8.0
- Minify whitespace in SVG elements.
## 0.7.2
- Fix Node.js library build process on Windows.
2021-12-13 20:49:29 -05:00
## 0.7.1
2021-12-13 20:52:14 -05:00
- Do not remove `alt` attribute when empty.
2021-12-13 20:49:29 -05:00
2021-11-12 01:19:37 -05:00
## 0.7.0
2021-10-23 03:00:15 -04:00
- Fix Node.js library not including `cli.js`.
2021-11-12 01:19:37 -05:00
- [CLI] Add support for macOS ARM64.
- [Node.js] Add support for macOS ARM64.
- [Python] Add support for Linux ARM64 and macOS ARM64. Drop support for Python 3.7 (breaking change).
2021-10-23 03:00:15 -04:00
## 0.6.10
2021-10-23 03:00:15 -04:00
- Fix the Node.js library TypeScript definitions. `minifyJs` has been fixed to `minify_js` and `minifyCss` has been fixed to `minify_css`. This is not a breaking change the library itself only ever accepted the fixed names, so this is actually a typo fix.
- Implement a basic CLI script for Node.js to allow using the library from the command line e.g. quick testing or sandboxing without needing to download and install the CLI separately. It accepts all configuration properties (all of which are currently booleans) using hyphen case e.g. `--do-not-minify-doctype`, as well as `--output [path]` and one default (i.e. not after an option switch) argument for the path to the input. It's only a few lines long and should not have a tangible effect on library size.
## 0.6.9
- Intrepret `type=module` on `<script>` tags as a JavaScript MIME eligible for its contents to be minified as JavaScript (previously it would not be and so its contents would be considered data and never minified as JavaScript).
- Fix issue where spaces are not added between unquoted attributes even when `cfg.keep_spaces_between_attributes` is `true`.