Files
smartjimp/changelog.md
T

50 lines
2.1 KiB
Markdown
Raw Permalink Normal View History

# Changelog
## 2026-05-01 - 1.2.1 - fix(build)
modernize project configuration and tighten smartjimp TypeScript compatibility
- migrate npm metadata to the new @git.zone/@ship.zone config structure and add .smartconfig.json
- update package scripts and dependency versions for the current toolchain
- improve SmartJimp typings and error handling, including optional variation support and typed sharp options
- move tests to a Node-specific entry and adapt them to the current smartfile API
- enable stricter TypeScript settings with noImplicitAny and explicit node types
## [1.2.0] - 2025-01-02
### Added
- Quality parameter support for image compression
- New `quality` option (1-100) in IAssetVariation interface for controlling compression quality
- Quality control implementation for both Sharp and Jimp modes
- Support for quality settings on all lossy formats (JPEG, WebP, AVIF)
- Enhanced documentation with quality control examples
### Changed
- Jimp mode now uses fall-through pattern in format switch for cleaner code
- Console logging when Jimp falls back to JPEG for unsupported formats (WebP, AVIF)
- Updated examples in documentation to showcase quality parameter usage
## [1.1.0] - 2025-01-02
### Added
- Progressive JPEG support for Sharp mode
- New `jpeg` format option in IAssetVariation interface
- New `progressive` boolean option for creating progressive JPEGs
- Tests for progressive JPEG functionality
### Fixed
- Fixed Sharp switch statement missing break statements causing all formats to output as PNG
- Updated Jimp resize to properly maintain aspect ratio
### Changed
- Updated dependencies:
- jimp: ^0.22.10 → ^1.6.0
- sharp: ^0.33.2 → ^0.34.3
- @push.rocks/smartpath: ^5.0.5 → ^6.0.0
- @push.rocks/smartrequest: ^2.0.15 → ^4.2.1
- @git.zone/tstest: ^1.0.86 → ^2.3.2
- Both Sharp and Jimp modes now default to JPEG when no format is specified
- Updated documentation to include progressive JPEG examples
### Notes
- Progressive JPEG encoding is only supported in Sharp mode
- Jimp mode will create standard JPEGs regardless of the progressive setting