Skip to content

Upgrade object-identity#4343

Open
maraisr wants to merge 1 commit into
GitbookIO:mainfrom
maraisr:mr/upgrade-object-identity
Open

Upgrade object-identity#4343
maraisr wants to merge 1 commit into
GitbookIO:mainfrom
maraisr:mr/upgrade-object-identity

Conversation

@maraisr

@maraisr maraisr commented Jun 26, 2026

Copy link
Copy Markdown

Hey! 👋 object-identity author here.

I've been putting a fair bit of work into the library lately, and I think it's worth an upgrade.

I had a look at how y'all are using it (sick use-case, nice!), and I recon the new version should be noticeably faster for those shapes, maybe up to 2x faster from what I've measured. 🚀

But the bigger improvement is correctness. Previously, identify({ id: 1 }) and identify({ id: '1' }) produced the same identity. The new version fixes that, so values now preserve their types properly while still staying tiny and dependency-free.

Thanks so much for building with it. Seeing it help power GitBook genuinely makes my day. ❤️🙏

@changeset-bot

changeset-bot Bot commented Jun 26, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 6f28ac8

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@maraisr maraisr force-pushed the mr/upgrade-object-identity branch from 964d85f to 6f28ac8 Compare June 26, 2026 10:36
@maraisr maraisr requested a deployment to preview-approval June 26, 2026 10:36 — with GitHub Actions Waiting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant