Repository navigation
chore(deps): update @hookform/resolvers to 7 and schema-dts to 2 - #436
Merged
Merged
Conversation
react-share builds each target's URL inside its click handler, so no markup carries it. Click each PlatformButton in jsdom and compare what reaches window.open (or location.href, for email) against literals recorded from react-share 5.3.0, for a title and URL that carry non-ASCII and reserved characters. This is the no-behaviour-change proof a react-share upgrade has to pass. Watched it fail against an encodeURI'd url (all 12) and against a WhatsApp button that stops opening its popup (1). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjVeNzer8ue5c7JRsZk
The two majors broke the effect-ts resolver (6.0.0, Effect v4) and the typebox resolver (7.0.0, typebox 1.x). Neither is used here; both forms use zodResolver over zod 4. The built runtime of the package core and of the zod resolver is byte-identical between 5.9.2 and 7.0.7 (dist/resolvers.mjs, zod/dist/zod.mjs); 7.0.7 only reorders the zodResolver type overloads so a zod 4 schema picks the zod 4 one. zodResolver's output for the registration schema and both mocked report forms, under both criteriaModes, was recorded before and after and matched exactly. The eager and lazy chunks build to the same sizes. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjVeNzer8ue5c7JRsZk
schema-dts is types only: its main entry is an empty CommonJS module and its README installs it with --save-dev. The one import, in EventMetadata, is now `import type`, so moving the package to devDependencies cannot leave a runtime import behind. 2.0 retypes Roles, Quantity and out-of-context IRIs and adds the schema-dts-lib types package; none of that touches the Event, Offer, Place, VirtualLocation, PostalAddress, GeoCoordinates or Organization shapes EventMetadata builds, and it type-checks unchanged. EventMetadata's emitted JSON-LD, meta, title and canonical link for every mocked Event, with and without a client name, under a frozen clock, is byte-identical before and after. The whole build output is identical to main's apart from chunk hashes. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjVeNzer8ue5c7JRsZk
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
sahajatlas-design | b8105e7 | Nov 19 2026, 09:05 PM |
sydevs-bot
enabled auto-merge
November 19, 2026 21:08
Ardnived
approved these changes
Nov 19, 2026
Contributor
Author
|
🤖 no session running Written by the sydevs dispatcher. Sessions never edit this comment. |
This was referenced Nov 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR does two of the four smaller UI majors from the tech-debt audit's outstanding-majors item, plus the share-URL proof spec that a react-share upgrade will have to pass:
@hookform/resolvers5.9.2 -> 7.0.7schema-dts1.1.5 -> 2.1.0, moved todevDependenciesbecause it is types onlyreact-share 6 and swiper 14 are left out. Each one fails its own no-behaviour-change proof, and each needs a maintainer decision (see below). The build output is byte-identical to main, so hosts and visitors see nothing different, and there is no CHANGELOG or
docs/embedding.mdentry.What changed and why it matters
@hookform/resolvers5 -> 7 (c56e055). The 6.0.0 break affects only the effect-ts resolver (Effect v4), and the 7.0.0 break only the typebox resolver (typebox 1.x). Neither is used here: both forms usezodResolverover zod 4. The package's built runtime (dist/resolvers.mjs,zod/dist/zod.mjs) is byte-identical between 5.9.2 and 7.0.7; only the order of thezodResolvertype overloads changed. No source edits were needed.schema-dts1 -> 2, now a devDependency (b8105e7). Its main entry is an empty CJS module, and its README installs it with--save-dev. The one import (EventMetadata.tsx) is nowimport type, so no runtime import can remain. The 2.0 changes (Roles, Quantity, out-of-context IRIs, the newschema-dts-lib) don't touch the Event, Offer, Place, VirtualLocation, PostalAddress, GeoCoordinates or Organization shapes EventMetadata builds.platform-buttons.test.tsx(0885d66). react-share builds each target's URL inside the click handler, so no markup carries it. The spec clicks everyPlatformButtonin jsdom with a title and URL containing non-ASCII and reserved characters. It compares what reacheswindow.open(orlocation.href, for email) against literals recorded from react-share 5.3.0. All 12PlatformKeys are covered throughsatisfies Record<PlatformKey, …>. The spec guards the share URLs visitors see today, and it is the gate for the react-share 6 follow-up.Verification
.claude/skills/pr-prep/check.sh --full: PASSpnpm ladle:build: PASS. assert-no-sourcemaps clean across 168 files.pnpm check:wrangler: PASS. Both dry runs.Size, before -> after: standalone 333.4 -> 333.4 KiB, embed 334.5 -> 334.5 KiB, loader 3.3 -> 3.3 KiB (budgets 336 / 336 / 3.6).
dist/is byte-identical to a pre-upgrade build of the same base, chunk hashes included (diff -rqis empty).resolvers. The existing form specs (RegistrationForm, ReportIssueForm, the registration and report-form specs; 6 files, 63 tests) pass with no edits. A throwaway probe ran
zodResolverover the registration schema and both mocked report forms, under bothcriteriaModes, on 5.9.2 and on 7.0.7: the JSON output was byte-identical. The runtime files in the two release tarballs, and their./zodexports map, are identical too.schema-dts. A throwaway probe rendered EventMetadata's JSON-LD, meta, title and canonical link for all 11 mocked events, plus online and no-geo variants, with and without a client name, under a frozen clock. Output was byte-identical on v1 and v2, and stable across two runs.
dist/contains noschema-dtsreference.Share spec, watched failing:
encodeURI(url)The spec also passes when copied onto main.
Lockfile scope. Only
@hookform/resolvers,schema-dtsand the newschema-dts-libchanged. Integrity hashes matchnpm view. Licences are MIT and Apache-2.0.pnpm auditshows the same 2 moderate advisories as main (glob and minimatch, via@sentry/vite-plugin).Not done / not verified
react-share 5 -> 6: left out. v6.1.0 hard-codes three new endpoints:
telegram.me/share/urlbecomest.me/share/urltwitter.com/intent/tweetbecomesx.com/intent/postshareArticledrops&title=The identical-URL proof fails on exactly those three, and v6 exports no generic
ShareButton. The rest of the migration has been trialled:titlebecomestextfor Line, Telegram and X,messagefor WhatsApp and Viber, andshareTitlefor OK, Reddit, VK and Weibo; LinkedIn loses its title*Iconbecomes*LegacyIcon, which renders byte-identical SVGswiper 12 -> 14: left out. 14.3.0 added a loop-mode Tab handler (upstream #8181) that picks the edge slide by
realIndexinstead of DOM position. After the loop wraps and rotates the DOM, forward Tab reaches 1 of the 3 slide buttons (12.2.0 reaches all 3), and Shift+Tab reaches 2 of 3. Before a wrap, both versions behave the same. Everything else matched in Chromium through Ladle:The resolver and JSON-LD probes were throwaway scripts and are not committed. The resolvers runtime is byte-identical between the two versions, so no committed spec can tell them apart.
The smoke lane was left to CI, as AGENTS.md says. Dependency Review was not run locally.
Follow-ups for the maintainer
platform-buttons.test.tsxand add a CHANGELOG[Unreleased]entry, because visitors see the share URLs.openShareWindowand our own URL builders.14.2.0. Its a11y module has no Tab handler, but that has been checked only in the source, not in a browser.@hookform/resolvers7.0.7 was published 2026-11-17. If you apply a minimum release age, hold this PR until it is old enough.chore/react-19(the@hookform/resolverssnapshot key embedsreactand@types/react) andchore/toolchain-node24-pnpm12(which rewrites the importer block next toschema-dts). Whichever lands second should regenerate the lockfile withpnpm installon top ofmain, not hand-merge it..claude/edit was needed.Generated by Claude Code