|
1 | 1 | # Changelog |
2 | 2 |
|
| 3 | +## 1.29.0 |
| 4 | + |
| 5 | +- Code generation changes: modules and functions are sorted in more situations, |
| 6 | + some unused imports have been removed, and some docstrings have been updated. |
| 7 | + Expect to need to commit a larger-than-usual change to generated files after |
| 8 | + upgrading to this version of Convex. |
| 9 | + |
| 10 | +- Add .pick(), .omit(), .partial(), and .extend() methods to v.objects() |
| 11 | + validators. This makes reusing validator with small changes simpler. See |
| 12 | + https://docs.convex.dev/functions/validation#reusing-and-extending-validators |
| 13 | + for more. |
| 14 | + |
| 15 | +- Add a pagination result validation helper |
| 16 | + `paginationResultValidator(itemValidator)` describing and validating the |
| 17 | + return valud of a paginated query. |
| 18 | + |
| 19 | +- New `npx convex codegen --component-dir ../path/to/component` flag for |
| 20 | + component authors to generate code only for a component. |
| 21 | + |
| 22 | +- New `convex.json` configuration property `codegen.fileType` (`"dts/js"` or |
| 23 | + `"ts"`, default `"dts/js"`) Default for applications is still "dts/js" but for |
| 24 | + components generated files always use "ts" file extensions. |
| 25 | + |
| 26 | +- New `convex.json` configuration property `codegen.legacyComponentApi` (default |
| 27 | + true) which can be set to false to opt into importing the API of a component |
| 28 | + directly from its package or directory instead of inlining the result of |
| 29 | + analyzing a component in parent component that uses it. |
| 30 | + |
| 31 | +- Improved TypeScript inference performance for `ApiFromModules`, the workhorse |
| 32 | + type that transforms modules of Convex functions into a tree of |
| 33 | + `FunctionReference` types for the `api` object. Thanks to David Blass, the |
| 34 | + maintainer of ArkType, for working with us on these improvements. |
| 35 | + |
| 36 | +## 1.28.2 |
| 37 | + |
| 38 | +- Bundling fix: don't double-deploy components in the convex/ directory. |
| 39 | + |
| 40 | +## 1.28.1 |
| 41 | + |
| 42 | +- Add json schema to package.json. |
| 43 | + |
3 | 44 | ## 1.28.0 |
4 | 45 |
|
5 | 46 | - Deploy code path unification: all deploys now use a codepath that supports |
|
0 commit comments