Skip to content

Conversation

@fxdave
Copy link
Owner

@fxdave fxdave commented Sep 14, 2025

  • IMPORTANT: Upgrade to Zod 4
  • Use z.input and z.output instead of z.infer (better date support)
  • Add response type guard
    • It checks the response whether it is explicitly JSON compatible. (Date for e.g. is not.)
  • Remove tidied type
    • Originally it was to have better type preview, but it costs compile time, and the new type guard forces you to map responses, which would result in better types anyways.
  • Add support for custom fetch options like AbortController.
    • @cuple/client now differentiate browser and nodejs
  • INTERNAL: migrate from mocha to vitest
  • INTERNAL: migrate from Makefile to turborepo
  • Merged raw handlers from V1
  • IMPORTANT: client.user.create.post({}) syntax is now changed to fetchCuple(client.user.create.post, {}), This makes it easier to build upon it.
    • check with authedClient
  • docs

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.

2 participants