Skip to content

v0.24.0

Latest

Choose a tag to compare

@dirkdev98 dirkdev98 released this 27 Aug 13:20
· 5 commits to main since this release
3c1445a

Breaking changes

  • feat(code-gen): generate react-query helpers as standalone exports 16264b the react-query wrapper no longer attaches helpers to the generated hooks. Replace the statics with the new exports from the same reactQueries file:

    • useFooBar.baseKey() -> fooBarBaseKey()
    • useFooBar.queryKey(opts) -> fooBarQueryKey(opts)
    • useFooBar.fetch(queryClient, api, opts) -> fooBarFetch(queryClient, api, opts)
    • useFooBar.prefetch(queryClient, api, opts) -> fooBarPrefetch(queryClient, api, opts)
    • useFooBar.invalidate(queryClient, opts) -> fooBarInvalidate(queryClient, opts)
    • useFooBar.setQueryData(queryClient, opts, data) -> fooBarSetQueryData(queryClient, opts, data)
  • feat(code-gen): emit common/types.ts for the TypeScript target 2ebd88 with targetLanguage: "ts" the shared types file is common/types.ts. Remove the stale common/types.d.ts from the output directory (or regenerate into a clean directory) and update any import that spells out common/types.d.ts.

  • feat(cli): default to PostgreSQL 16 and support 14-18 c7a34f compas docker up starts compas-postgres-16 unless --postgres-version is passed, and versions 12 and 13 are no longer accepted. Existing compas-postgres-12/-13 containers and volumes are left in place but unused; remove them with compas docker clean or keep using them with an explicit --postgres-version until you have migrated your local data.

  • build(deps): bump formidable from 2.1.5 to 3.5.4

    • Major version bump
    • @compas/server depends on formidable 3. multipartOptions now takes formidable 3 options (multiples is gone, enabledPlugins takes plugin functions), repeated multipart fields are delivered as arrays instead of last-one-wins, and code generated with this version requires @compas/server from this release for file uploads.

Bug fixes

  • fix(code-gen): escape spec-provided values in generated validators and types 386f50
  • fix(stdlib): resolve symlinked entrypoints for pnpm bin shims 76e547
  • fix(code-gen,store): emit valid OptionalJoins type parameters 71f453
  • fix(code-gen): stop mutating caller-provided react-query options a6ba16

Dependency updates