Repository navigation
fix(deps): ⬆️ update dependency @haskou/value-objects to ^8.4.3 - #62
Merged
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
renovate
Bot
force-pushed
the
renovate/non-major-runtime-dependencies
branch
from
October 13, 2026 19:32
947d58c to
bb6571b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^8.3.4→^8.4.3Release Notes
haskou/value-objects (@haskou/value-objects)
v8.4.3Compare Source
Changes
Release details
fix/export-comparable-item-serialized-valuepatchPull request notes
What
ComparableItem(constraint ofUniqueObjectArray<T>) andSerializedValue(constraint ofPrimitiveOf<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.interfacesandtypesbarrels, so they are available from the package root.UniqueObjectArray.tsandPrimitiveOf.tsnow import them instead of declaring them.Notes
Verification
yarn test(717 tests) andyarn buildpass. Coverage stays at 100%.dist/index.d.ctsdeclares both withexport, and a throwaway consumer importing them fromdistcompiled under--strict.v8.4.2Compare Source
Changes
Release details
fix/positive-integer-extends-positive-numberpatchPull request notes
What
PositiveIntegernow extendsPositiveNumberinstead ofInteger.PositiveNumbervalidates the sign andPositiveIntegeradds the integer check (InvalidIntegerError).Behaviour changes
new PositiveInteger(1) instanceof Integeris nowfalse. Code typing a parameter asIntegerand passing aPositiveIntegerwill stop compiling.FileSizeis the only consumer in this repo and is unaffected.new PositiveInteger(-0.5)throwsInvalidPositiveNumberError(it used to throwInvalidIntegerError).% 1 === 0check now exists in bothIntegerandPositiveInteger.Docs and tests
docs/reference/positive-integer.mdupdated (signature and notes). Spec now asserts inheritance fromPositiveNumber, no inheritance fromInteger, and the new error for-0.5.Verification
yarn test(717 tests) andyarn buildpass. Coverage stays at 100%.v8.4.1Compare Source
Changes
Release details
fix/file-size-arithmetic-typespatchPull request notes
What
FileSize.addandFileSize.subtractwere typed asNumberValueObject(inherited), although at runtime they return aFileSize. They are now declared asadd(other: FileSize): FileSizeandsubtract(other: FileSize): FileSize.Notes
FileSizeis a closed operation, so the return type is exact.NumberValueObjectis unchanged: its arithmetic can fail on subclass invariants, sothiswould be a wrong promise there.clone(), so subclasses ofFileSizekeep their own type at runtime.size.add(100)with a plain number no longer compiles. Passnew FileSize(100).FileSizeupdated with the new signatures and the negative-result error.Verification
yarn test,yarn buildpass. Coverage stays at 100%. The arithmetic test callsFileSize.to()on the results, so it only compiles if both returnFileSize.v8.4.0Compare Source
Changes
Release details
feat/file-sizeminorPull request notes
What
PositiveInteger(extendsInteger, accepts0).FileSizeUnit(extendsEnum): SI (kB..PB, base 1000) and IEC (KiB..PiB, base 1024) units, with a single typed bytes-per-unit table andFileSizeUnit.SI/FileSizeUnit.IECsets.FileSize(extendsPositiveInteger, stored in bytes):fromBytes,from(value, unit),parse,toBytes,to(unit),toHumanReadable(units), plus inherited arithmetic.Behaviour worth reviewing
toHumanReadablereturns{ value, unit }: no formatting or rounding in the domain.fromandparseround to the nearest byte.multiply/dividedo not round and throwInvalidIntegerErroron non-integer results.subtractbelow zero throwsInvalidPositiveNumberError.this: new (...) => Tpattern from #94, so subclasses get their own type (covered inSubclassFactories.spec.ts).parseunits are exact and case-sensitive (KBis invalid).Docs
Reference pages for the three classes, plus sidebar, reference index, docs home and README entries. The README table was re-aligned by prettier.
Verification
yarn test,yarn buildandyarn docs:buildpass. Coverage is 100% (statements, branches, functions, lines).Configuration
📅 Schedule: (in timezone Europe/Madrid)
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.