mirror of
https://github.com/hanzoai/desktop.git
synced 2026-10-30 14:58:42 +00:00
Two libraries had been bumped a major and the code was never migrated, which is most of it. @rjsf went to 6 and primereact to 11 while the tree still calls the APIs of 5 and 10 — `primereact/treenode` is gone, `Tree` and `Checkbox` are headless parts with no construct signature, `idSchema` moved inside rjsf's field object. Pinned back to the last of the majors this code targets, which is what the repo's own rule says to do with a major nobody asked for. 90 errors went. The rest, in order of how many each accounted for: zod 4 requires a key schema, so every `z.record(z.any())` is now `z.record(z.string(), z.any())`. Seventeen event handlers had no parameter type, because the gui components that take them declare loose props; each is annotated with the narrowest React event its body uses. @noble/hashes returns a callable carrying metadata where ed25519 wants a plain function of its own Bytes-API shape. lucide renamed CodesandboxIcon. react-qrcode-logo never exported the props type from its entry, so it is taken from the component. pyodide's FS typings omit `filesystems`, types `stat.mtime` as a Date, and carry no `encoding` option for `writeFile`. Two errors are marked rather than fixed, in one file. prism-react-editor moved its extensions onto an EditorContext and stopped exporting that context from the package entry, so a child has no supported way left to reach the editor; the directives name the gap and will fail the build the day it closes. Also a `react-native` declaration for two types that gui packages import from a name the workspace overrides to a package shipping no declarations. Typecheck exits 0, the app builds, the palette gate is unchanged at 177, and the shell still pairs, renders and offers a composer. Co-authored-by: Hanzo Dev <[email protected]>