Skip to content

test(downgrader): check the oRPC undefined-key twin for 3.0 too - #82

Merged
dinwwwh merged 1 commit into
mainfrom
claude/project-thread-6ztq09
Oct 24, 2026
Merged

dinwwwh merged 1 commit into
mainfrom
claude/project-thread-6ztq09

Conversation

@dinwwwh

@dinwwwh dinwwwh commented Oct 24, 2026

Copy link
Copy Markdown
Member

Requested by dinwwwh · project thread

Test-only follow-up to #79 and #80. #79 checked the withUndefined twin of the oRPC document only for the 3.2 to 3.1 step, because 3.1 to 3.0 counted keys holding undefined. #80 fixed that, so the 3.0 twin test now runs over both nullPrototype and withUndefined.

The new case fails on the commit before #80 and passes on main.


Generated by Claude Code

Now that the 3.0 checks skip keys holding undefined (#80), the twin with a
key holding undefined in every object converts to 3.0 like the plain one.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0129me54jxy7ZKsYhwWvAmPP
@dinwwwh dinwwwh self-assigned this Oct 24, 2026
@macroscopeapp

macroscopeapp Bot commented Oct 24, 2026

Copy link
Copy Markdown

Approvability

Verdict: Approved at f252dcb

Macroscope's review found this PR approvable — This change only extends an existing downgrader test to cover the undefined-key variant for 3.0, with no production code or runtime behavior changes. The impact is confined to test execution.

Notes:

  • No code objects were reviewed. Approvability was decided on eligibility alone.

You can add or adjust custom eligibility rules. Learn more.

@codspeed

codspeed Bot commented Oct 24, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 21 untouched benchmarks


Comparing claude/project-thread-6ztq09 (f252dcb) with main (7cd17bc)

Open in CodSpeed

@codecov

codecov Bot commented Oct 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes

  • Generalized the 3.0 oRPC test to it.each — the 3.1→3.0 twin now runs over both nullPrototype and withUndefined, matching the 3.2→3.1 twin already added in #79. The only change to the assertion body is parameterizing the rebuild(v31, object) argument; the plain comparison target is unchanged.

I confirmed the new case is genuinely falsifiable rather than tautological: reverting the two fixes from #80 in src/v3.1-to-v3.0.ts (the isMediaTypeOnly key-count check and the losesRestriction propertyNames check) makes the withUndefined case fail, and it passes on current main. vitest run packages/downgrader/tests/orpc.test.ts is green (7 tests), and uncheck reports oxlint/oxfmt/tsc clean on the touched file.

Pullfrog  | View workflow run | Using deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏

@dinwwwh
dinwwwh merged commit 393df96 into main Oct 24, 2026
11 checks passed
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