v10.0.0
Breaking Changes
- ESM Only: The package is now pure ESM. Requires Node.js 20+.
- Async API: Callback support has been removed. All
minify()calls must useawaitor.then(). - Named Exports: All packages now use named exports (e.g.,
import { minify } from '@node-minify/core'). - Sync/Async Split: Sync functions have been removed or split.
- Deprecations:
@node-minify/babel-minify(deprecated)@node-minify/uglify-es(deprecated)@node-minify/yui(deprecated)@node-minify/sqwish(deprecated)@node-minify/crass(deprecated)
Features & Improvements
- Build System: Switched from
tsuptotsdownfor faster and more reliable builds. - Core: Moved file I/O operations from compressors to core for better consistency.
- Output: Support for array output with input/output validation.
- Security: Replaced
html-minifierwithhtml-minifier-next. - Typings: Improved TypeScript definitions and coverage.
- Dependencies: Updated all dependencies.
Bug Fixes
- Fixed various import issues and build warnings.
- Corrected explicit file extensions in imports.