v6.0.0
Changes
- break(value-object): 馃挜 Make equality type-aware
Release details
- npm: https://www.npmjs.com/package/@haskou/value-objects/v/6.0.0
- Pull request: #56
- Source branch:
break/type-aware-value-object-equality - Version bump:
major
Pull request notes
Summary
Make Value Object equality type-aware.
- Require the same concrete Value Object type and value for
isEqual. - Add
hasValuefor explicit value-only comparisons. - Adapt Color, Media, Enum, and Timestamp comparisons.
- Update relevant tests and documentation for the equality contract.
One commit based directly on current master, which already includes #53. The diff contains only the equality slice; package-format changes and NullObject control are excluded.
Semver
Breaking / major. Primitive or cross-type comparisons must migrate to hasValue.
Validation
Locally validated: 560 tests, ESLint, and TypeScript checking pass.