Skip to content

fix(core): compare values at empty property keys - #5290

Closed
lfhwnqe wants to merge 1 commit into
wevm:mainfrom
lfhwnqe:fix/deep-equal-empty-property-key
Closed

lfhwnqe wants to merge 1 commit into
wevm:mainfrom
lfhwnqe:fix/deep-equal-empty-property-key

Conversation

@lfhwnqe

@lfhwnqe lfhwnqe commented Nov 5, 2026

Copy link
Copy Markdown

deepEqual({ '': 1 }, { '': 2 }) currently returns true: the object comparison loop checks key truthiness before comparing values. The same omission occurs recursively. Compare every enumerated key, including the empty string, while retaining the existing key-presence checks.

Added unequal, nested, and equal-value controls in the existing deepEqual suite, plus a patch changeset. The regression fails on main and passes with the fix.

Validation: all 4 targeted tests pass in the original Vitest core project. The original pnpm --filter @wagmi/core check:types, core clean and build, changed-test strict typecheck, changed-file Biome, and git diff --check pass after installing the locked workspace dependencies.

AI assistance: OpenAI Codex assisted with reproduction, implementation, tests, and this description.

@vercel

vercel Bot commented Nov 5, 2026

Copy link
Copy Markdown

@lfhwnqe is attempting to deploy a commit to the Wevm Team on Vercel.

A member of the Team first needs to authorize it.

@changeset-bot

changeset-bot Bot commented Nov 5, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: f58809f

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 5 packages
Name Type
@wagmi/core Patch
@wagmi/connectors Patch
wagmi Patch
@wagmi/solid Patch
@wagmi/vue Patch

Not sure what this means? Click here to learn what changesets are.

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

lfhwnqe commented Nov 5, 2026

Copy link
Copy Markdown
Author

The three related fixes in #5290, #5291 and #5292 are currently waiting for upstream authorization: the Pull Request workflow runs show action_required with no jobs started, and both Vercel projects (wagmi and wagmi-v1) request Wevm team authorization.

Could a maintainer approve the workflow runs and authorize the preview deployments when reviewing these PRs? Each branch passed its original core Vitest regression suite (4 / 28 / 4 tests), @wagmi/core check:types, and the original core clean/build scripts locally. Patch changesets and validation details are included in the PRs. I do not have upstream workflow or Vercel team permissions.

tmm commented Nov 18, 2026

Copy link
Copy Markdown
Member

Thanks for the contribution! Closing for now: we haven't seen a real-world report of deepEqual comparing objects with an empty-string key, so we'd rather not change it without one. If you're hitting this in practice, please open an issue with a reproduction.

@tmm tmm closed this Nov 18, 2026
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.

2 participants