Breaking changes
-
feat(code-gen): generate react-query helpers as standalone exports
16264bthe react-query wrapper no longer attaches helpers to the generated hooks. Replace the statics with the new exports from the samereactQueriesfile: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
2ebd88withtargetLanguage: "ts"the shared types file iscommon/types.ts. Remove the stalecommon/types.d.tsfrom the output directory (or regenerate into a clean directory) and update any import that spells outcommon/types.d.ts. -
feat(cli): default to PostgreSQL 16 and support 14-18
c7a34fcompas docker upstartscompas-postgres-16unless--postgres-versionis passed, and versions 12 and 13 are no longer accepted. Existingcompas-postgres-12/-13containers and volumes are left in place but unused; remove them withcompas docker cleanor keep using them with an explicit--postgres-versionuntil you have migrated your local data. -
build(deps): bump formidable from 2.1.5 to 3.5.4
- Major version bump
@compas/serverdepends on formidable 3.multipartOptionsnow takes formidable 3 options (multiplesis gone,enabledPluginstakes plugin functions), repeated multipart fields are delivered as arrays instead of last-one-wins, and code generated with this version requires@compas/serverfrom 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
- build(deps): bump the aws-sdk group across 1 directory with 2 updates (#4091)
a1084f - build(deps): bump actions/checkout from 6 to 7 (#4097)
01556f - build(deps): bump github/codeql-action from 4 to 4.37.3 (#4140)
79659f - build(deps): bump actions/setup-node from 6 to 7 (#4123)
8e1154 - build(deps): use caret ranges for third-party dependencies
c1614a - build(deps): bump @aws-sdk/client-s3 from 3.1052.0 to 3.1116.0 (#4079, #4080, #4083, #4084, #4086, #4087, #4088, #4094, #4095, #4096, #4098, #4099, #4102, #4108, #4109, #4110, #4113, #4115, #4116, #4117, #4120, #4121, #4124, #4125, #4127, #4128, #4130, #4132, #4133, #4135, #4137, #4142, #4155)
- build(deps): bump @aws-sdk/lib-storage from 3.1052.0 to 3.1116.0 (#4079, #4080, #4083, #4084, #4086, #4087, #4088, #4094, #4095, #4096, #4098, #4099, #4102, #4108, #4109, #4110, #4113, #4115, #4116, #4117, #4120, #4121, #4124, #4125, #4127, #4128, #4130, #4132, #4133, #4135, #4137, #4142, #4155)
- build(deps): bump sharp from 0.34.5 to 0.35.3 (#4092, #4101, #4111)
- Major version bump
- Release notes
- build(deps): bump recast from 0.23.11 to 0.24.0 (#4106, #4149)
- Major version bump
- Release notes
- build(deps): bump c8 from 11.0.0 to 12.0.0 (#4126)
- Major version bump
- Release notes
- build(deps): bump github/codeql-action from 4.37.3 to 4.37.8 (#4154)
- build(deps): bump file-type from 22.0.1 to 22.0.2 (#4151)
- build(deps): bump chokidar from 3.6.0 to 5.0.0
- Major version bump