Skip to content

fixing the issues 82 and 130 - #131

Merged
jagguji merged 1 commit into
mainfrom
fix/82-shared-props-records
Jul 10, 2026
Merged

fixing the issues 82 and 130#131
jagguji merged 1 commit into
mainfrom
fix/82-shared-props-records

Conversation

@jagguji

@jagguji jagguji commented Jul 10, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

@github-actions

Copy link
Copy Markdown

Benchmark: ✅ PASS

Package Compile Diff vs baseline usable review broken Verdict
@juspay/blend-design-system@0.0.36 identical 107 0 0 ✅ PASS
@juspay/blend-design-system@0.0.37-beta.5 identical 222 0 0 ✅ PASS
react-day-picker@10.0.1 identical 26 0 0 ✅ PASS
react-tooltip@6.0.7 identical 1 0 0 ✅ PASS
react-markdown@10.1.0 identical 0 2 0 ✅ PASS
@smastrom/react-rating@1.5.0 identical 1 0 0 ✅ PASS
clsx@2.1.1 identical 0 0 0 ✅ PASS
hono@4.12.25 identical 0 0 0 ✅ PASS
@base-ui-components/react@1.0.0-rc.0 identical 195 0 0 ✅ PASS

@pkg-pr-new

pkg-pr-new Bot commented Jul 10, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@juspay/rescript-bindgen@131

commit: b3764a4

@jagguji
jagguji merged commit 2ff0f40 into main Jul 10, 2026
12 checks passed
@jagguji
jagguji deleted the fix/82-shared-props-records branch July 10, 2026 19:56
jagguji added a commit that referenced this pull request Jul 10, 2026
…); bump blend beta pin to 0.0.37-beta.8 (#132)

Fixes #107.

## Error-`any` from unresolvable imports (#107)

A broken import in a package's `.d.ts` (blend beta.5's `ThemeType`
through the shadowed `../tokens` path) makes the checker's **error
type** masquerade as `any`. The #31 implicit-generic salvage then
emitted a silent type variable — `ThemeProvider`'s `~foundationTokens:
'a=?` with `defects=0` — violating both contract rules at once (`'a` is
reserved for round-trip generics; nothing may degrade unflagged).

- **Detection**: the checker's `error` intrinsic, checked *before* the
salvage — so an author-written `any` in the source can never
false-positive (`legitAny: ('a)` keeps the implicit generic; all 89
pre-existing goldens byte-identical).
- **Emission**: a 🛑-flagged `string` placeholder with actionable wording
("declared type DOES NOT RESOLVE — broken import in the package's .d.ts;
fix the upstream import or hand-match") across all four surfaces:
component props, function params/returns, record fields, class members.
- **Report**: the Broken bucket explains the type likely EXISTS upstream
and the declaration column names the failing reference (`ThemeType`) —
hand-matching is a seconds-long fix. react-rating's `itemShapes` now
carries the precise cause.

Fixture: `error-any-unresolved` (blend's exact shadowed-module shape +
author-`any` contrast).

## Benchmark: blend beta pin `0.0.37-beta.5` → `0.0.37-beta.8`

Tracks the `beta` dist-tag. Upstream fixed the shadowed `../tokens`
import between the two, so `foundationTokens` and the `getAvatarTokens`
family now bind their **real types** (`TokensTypes.foundationTokenType`)
with zero generator changes — exactly the self-correction path this
fix's flags point at. Blend beta.8 scores **222/222 usable, 0 broken / 0
review / 0 loose**, compiles clean. (The #1576 `typeof`-statics
duplicates remain — not yet fixed upstream.)

Also removes the stray `test/sandbox/src/probe/` files accidentally
committed in #131.

## Verification
- smoke (3 new #107 checks), all 90 goldens match + compile on ReScript,
benchmark identical on all 9 packages
- no-false-positive proof: author-`any` fixtures and all pre-existing
goldens unchanged

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
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