Skip to content

fix(exports): 🐛 Export ComparableItem and SerializedValue - #101

Merged
haskou merged 1 commit into
masterfrom
fix/export-comparable-item-serialized-value
Oct 13, 2026
Merged

haskou merged 1 commit into
masterfrom
fix/export-comparable-item-serialized-value

Conversation

@haskou

@haskou haskou commented Oct 13, 2026

Copy link
Copy Markdown
Owner

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.

  • ComparableItem moves to src/interfaces/ComparableItem.ts.
  • SerializedValue moves to src/types/SerializedValue.ts.
  • Both are re-exported through the existing interfaces and types barrels, so they are available from the package root.
  • UniqueObjectArray.ts and PrimitiveOf.ts now 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.

@haskou
haskou merged commit e65d862 into master Oct 13, 2026
2 checks passed
@haskou
haskou deleted the fix/export-comparable-item-serialized-value branch October 13, 2026 09:28
@codecov

codecov Bot commented Oct 13, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant