Skip to content

chore(deps): update @hookform/resolvers to 7 and schema-dts to 2 - #436

Merged
sydevs-bot merged 3 commits into
mainfrom
chore/ui-majors
Nov 19, 2026
Merged

sydevs-bot merged 3 commits into
mainfrom
chore/ui-majors

Conversation

@sydevs-bot

Copy link
Copy Markdown
Contributor

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/resolvers 5.9.2 -> 7.0.7
  • schema-dts 1.1.5 -> 2.1.0, moved to devDependencies because it is types only
  • a new spec that pins every share button's URL to react-share 5's output

react-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.md entry.

What changed and why it matters

  • @hookform/resolvers 5 -> 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 use zodResolver over 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 the zodResolver type overloads changed. No source edits were needed.
  • schema-dts 1 -> 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 now import type, so no runtime import can remain. The 2.0 changes (Roles, Quantity, out-of-context IRIs, the new schema-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 every PlatformButton in jsdom with a title and URL containing non-ASCII and reserved characters. It compares what reaches window.open (or location.href, for email) against literals recorded from react-share 5.3.0. All 12 PlatformKeys are covered through satisfies 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: PASS

    • lint (0 warnings), typecheck
    • unit lane: 174 files, 2122 tests
    • build, with assert:css (1213 rules, 3 sheets), assert:maps and assert:classic
  • pnpm 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 -rq is 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 zodResolver over the registration schema and both mocked report forms, under both criteriaModes, 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 ./zod exports 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 no schema-dts reference.

  • Share spec, watched failing:

    • 12/12 red with encodeURI(url)
    • 1/12 red with WhatsApp's popup turned off
    • 1/12 red with Telegram's title altered
    • 1/12 red each with email's subject dropped, LinkedIn's title dropped, or X hashtags added
    • telegram, x and linkedin red under react-share 6.1.0

    The spec also passes when copied onto main.

  • Lockfile scope. Only @hookform/resolvers, schema-dts and the new schema-dts-lib changed. Integrity hashes match npm view. Licences are MIT and Apache-2.0. pnpm audit shows 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: telegram.me/share/url becomes t.me/share/url
    • X: twitter.com/intent/tweet becomes x.com/intent/post
    • LinkedIn: shareArticle drops &title=

    The identical-URL proof fails on exactly those three, and v6 exports no generic ShareButton. The rest of the migration has been trialled:

    • prop renames: title becomes text for Line, Telegram and X, message for WhatsApp and Viber, and shareTitle for OK, Reddit, VK and Weibo; LinkedIn loses its title
    • *Icon becomes *LegacyIcon, which renders byte-identical SVG
  • swiper 12 -> 14: left out. 14.3.0 added a loop-mode Tab handler (upstream #8181) that picks the edge slide by realIndex instead 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:

    • slides, ARIA and bullets
    • autoplay and the WCAG 2.2.2 pause control
    • Enter/Space on bullets
    • drag and wrap
    • reduced motion and the lightbox
    • computed styles and the emitted stylesheet chunk
  • 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

  • react-share 6 PR. Decide whether to accept the three new URLs or keep the old ones.
    • To accept them: update the three literals in platform-buttons.test.tsx and add a CHANGELOG [Unreleased] entry, because visitors see the share URLs.
    • To keep the old ones: hand-roll those three buttons on openShareWindow and our own URL builders.
  • swiper 14 PR. Three options:
    • pin 14.2.0. Its a11y module has no Tab handler, but that has been checked only in the source, not in a browser.
    • wait for an upstream fix to the post-wrap Tab order
    • accept the change and document it
  • @hookform/resolvers 7.0.7 was published 2026-11-17. If you apply a minimum release age, hold this PR until it is old enough.
  • Lockfile / merge order. This branch's lockfile overlaps chore/react-19 (the @hookform/resolvers snapshot key embeds react and @types/react) and chore/toolchain-node24-pnpm12 (which rewrites the importer block next to schema-dts). Whichever lands second should regenerate the lockfile with pnpm install on top of main, not hand-merge it.
  • No .claude/ edit was needed.

Generated by Claude Code

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
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
sahajatlas-design b8105e7 Nov 19 2026, 09:05 PM

@sydevs-bot
sydevs-bot enabled auto-merge November 19, 2026 21:08
@sydevs-bot
sydevs-bot added this pull request to the merge queue Nov 19, 2026
@sydevs-bot

sydevs-bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor Author

🤖 no session running

Written by the sydevs dispatcher. Sessions never edit this comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

3 participants