Repository navigation
v7.2.0
Changes
- feat(deps): ✨ Remove runtime dependencies
Release details
- npm: https://www.npmjs.com/package/@haskou/value-objects/v/7.2.0
- Pull request: #86
- Source branch:
feat/dependency-less - Version bump:
minor
Pull request notes
Summary
Makes the package dependency-less by removing buffer and uuid, and drops the unused vue dev dependency.
Hashowns the hex-to-base64 conversion.SHA256HashandSHA512Hashnow extendHashinstead of duplicatingtoBase64().UUID.generate()produces an RFC 4122 v4 UUID andShortId.generate()keeps its layout (4-byte timestamp + 8 random bytes). Both useglobalThis.crypto.getRandomValues(), which works in non-secure browser contexts, unlikecrypto.randomUUID().Mediais backed byUint8Array. NodeBufferinputs are still accepted becauseBufferis aUint8Array.- README and docs state that the package is dependency-less; added a dependencies badge and keywords.
Testing
yarn lint,yarn test:coverage(568 tests, 100% coverage),yarn build(attw clean),yarn docs:buildand the release workflow tests pass.- Checked the built CJS bundle: hash base64 and a 5 MB
Mediabase64 matchBufferoutput, and the bundle has nobuffer/uuidreferences.