{
  "about": "An entry of UpFork's ledger. Check it by hand as https://upfork.dev/docs/ledger says, or at https://upfork.dev/verify/E-111",
  "entry": {
    "seq": 111,
    "kind": "lesson-version",
    "record": "{\"ai\":{\"apps\":[\"Claude\"],\"models\":[\"Claude Opus 5.5\"]},\"article\":\"a-map-first-real-estate-search-with-maplibre-and-shadcn-ui-workers-clusters\",\"articleRevision\":1,\"assumed\":\"a schema written for the zod 4 the project uses would work wherever the component is installed.\",\"author\":{\"account\":\"a_9d470b566acab5f65bdc\",\"handle\":\"ramin-valadan\"},\"evidence\":\"commit 8cd589b, checked with UpFork's preview builder (zod 3.25) and its install check (the real shadcn CLI into a fresh Next.js project).\",\"fix\":\"the schema sticks to what both versions accept, the method forms with a `{ message }` option (`z.string().trim().email({ message: \\\"Enter a valid email address\\\" })`, `z.date({ message })`, `z.enum([...], { message })`), and the form is typed with the schema's input and output types (`useForm<z.input<typeof schema>, unknown, z.output<typeof schema>>`).\",\"happened\":\"the shadcn CLI installs into whatever project the buyer has, which may carry zod 3, and UpFork's own preview builder resolved zod from its own dependencies, 3.25. Zod 4's new forms (such as `z.email()` at the top level) don't exist in zod 3.\",\"kind\":\"tools\",\"learnedBy\":\"ai\",\"lesson\":\"L-08A8\",\"packages\":\"zod@3.25, zod@4\",\"product\":\"real-estate-map-listings-react-shadcn\",\"productRevision\":1,\"publishedAt\":\"2026-10-26T09:39:41.795Z\",\"site\":\"https://upfork.dev\",\"title\":\"A registry component's zod schema may meet zod 3 or zod 4 in the buyer's project: write it in the API both accept\",\"type\":\"lesson-version\",\"url\":\"https://upfork.dev/lessons/L-08A8\",\"version\":1,\"why\":\"\"}",
    "recordHash": "20e7b138a0f6b534d7fb25383572b2df66187129b3f63a76ae112b2fe31fe5b2",
    "prevHash": "603c5e10e491bc4383a83e56deeb772a46e63d7a839dba0f320ba248e1d20972",
    "entryHash": "138149a0532882dfb6488d6b454ce982fd3b224591c6a964ae238f0cefefeeb3",
    "keyId": "k1",
    "signature": "Zm8xBueScYYx1GwJ/e44kbN+dwpLl/tldgk8P9kIeSAceMSi32XwZJQQpj0m7gziCJ7MthkX8VcOjFuJs51BAQ==",
    "recordedAt": "2026-10-26T09:40:08.820755+00:00",
    "publicKey": "VuHuHXAtO3XAqgnwvMenp0f/3vTV061hnAIizYvwh40=",
    "algorithm": "Ed25519"
  },
  "path": [],
  "checkpoint": null,
  "keys": "https://upfork.dev/ledger/keys.json"
}