Repository navigation
Changes
- fix(exports): 🐛 Export ComparableItem and SerializedValue
Release details
- npm: https://www.npmjs.com/package/@haskou/value-objects/v/8.4.3
- Pull request: #101
- Source branch:
fix/export-comparable-item-serialized-value - Version bump:
patch
Pull request notes
What
ComparableItem (constraint of UniqueObjectArray<T>) and SerializedValue (constraint of PrimitiveOf<T>) appear in the public signatures but were not exported, so consumers could not name them.
ComparableItemmoves tosrc/interfaces/ComparableItem.ts.SerializedValuemoves tosrc/types/SerializedValue.ts.- Both are re-exported through the existing
interfacesandtypesbarrels, so they are available from the package root. UniqueObjectArray.tsandPrimitiveOf.tsnow import them instead of declaring them.
Notes
- Neither type was exported in any earlier release I checked (8.3.4, 8.4.2). This adds exports, it does not restore removed ones.
- Pure type-level change, no runtime behaviour change.
Verification
yarn test (717 tests) and yarn build pass. Coverage stays at 100%. dist/index.d.cts declares both with export, and a throwaway consumer importing them from dist compiled under --strict.