Repository navigation
v2.10.1
·
102 commits
to master
since this release
Changes
- fix(package): 🐛 Harden npm package configuration
Release details
- npm: https://www.npmjs.com/package/@haskou/value-objects/v/2.10.1
- Pull request: #19
- Source branch:
fix/library-packaging-quality - Version bump:
patch
Pull request notes
Changes
- Add stricter npm package metadata:
exports,engines,sideEffects, and runtimetslib. - Require coverage thresholds and remove the test mode that allowed no tests.
- Generate UUID and ShortId values internally using existing secure random bytes, removing external ID generator dependencies.
- Modernize lint/Jest/TypeScript config for the latest toolchain.
- Update and prune dependencies so the package stays lighter.
Why
The published package referenced tslib from dist without declaring it as a runtime dependency, which breaks clean consumers. The package also carried avoidable runtime/dev dependencies and older tooling config.
Validation
yarn lintyarn buildyarn test:coveragewith 100% global coveragenpm pack+ install in a clean temporary consumer + require package + generate UUID, ShortId, and SymmetricKeyyarn outdatedreturns no outdated packages