github-actions[bot]
87644178b3
[CI] Bump version 3.7.1 ( #2678 )
...
Co-authored-by: ymc9 <104139426+ymc9@users.noreply.github.com>
2026-05-22 08:31:58 -07:00
github-actions[bot]
b53e908a5d
[CI] Bump version 3.7.0 ( #2656 )
...
Co-authored-by: ymc9 <104139426+ymc9@users.noreply.github.com>
2026-05-07 22:35:13 -07:00
Yiming Cao
9cef0272e7
chore: upgrade to TypeScript 6 ( #2629 )
2026-04-29 20:41:27 -07:00
github-actions[bot]
80c0bd6d68
[CI] Bump version 3.6.4 ( #2624 )
...
Co-authored-by: ymc9 <104139426+ymc9@users.noreply.github.com>
2026-04-27 17:50:05 -07:00
github-actions[bot]
8609d5b3e3
[CI] Bump version 3.6.3 ( #2613 )
...
Co-authored-by: ymc9 <104139426+ymc9@users.noreply.github.com>
2026-04-24 21:21:24 -07:00
github-actions[bot]
fd8db57ef2
[CI] Bump version 3.6.2 ( #2604 )
...
Co-authored-by: ymc9 <104139426+ymc9@users.noreply.github.com>
2026-04-22 10:54:53 -07:00
github-actions[bot]
a1374c042f
[CI] Bump version 3.6.1 ( #2598 )
...
Co-authored-by: ymc9 <104139426+ymc9@users.noreply.github.com>
2026-04-21 08:52:19 -07:00
Yiming Cao
b8209d7eeb
chore: migrate from tsup to tsdown ( #2580 )
2026-04-15 12:13:34 -07:00
github-actions[bot]
3dc922d6a9
[CI] Bump version 3.6.0 ( #2571 )
...
Co-authored-by: ymc9 <104139426+ymc9@users.noreply.github.com>
2026-04-11 19:18:20 -07:00
github-actions[bot]
df9b35ea64
[CI] Bump version 3.5.6 ( #2560 )
...
Co-authored-by: ymc9 <104139426+ymc9@users.noreply.github.com>
2026-04-06 13:14:51 -07:00
github-actions[bot]
0495333ca3
[CI] Bump version 3.5.5 ( #2553 )
...
Co-authored-by: ymc9 <104139426+ymc9@users.noreply.github.com>
2026-04-03 14:13:43 -07:00
github-actions[bot]
263074ce78
[CI] Bump version 3.5.4 ( #2545 )
...
Co-authored-by: ymc9 <104139426+ymc9@users.noreply.github.com>
2026-04-02 10:23:46 -07:00
github-actions[bot]
80f364a2f0
[CI] Bump version 3.5.3 ( #2533 )
...
Co-authored-by: ymc9 <104139426+ymc9@users.noreply.github.com>
2026-03-30 18:40:07 -07:00
github-actions[bot]
e79ea0cbad
[CI] Bump version 3.5.2 ( #2523 )
2026-03-26 08:26:49 -07:00
ymc9
3145ba686b
fix(cli): regression of CLI plugin resolution
2026-03-24 19:02:25 -07:00
github-actions[bot]
8b1046b2c7
[CI] Bump version 3.5.0 ( #2511 )
...
Co-authored-by: ymc9 <104139426+ymc9@users.noreply.github.com>
2026-03-23 16:31:36 -07:00
Yiming Cao
00768de0cc
fix(orm): use uncapitalized model names in OmitConfig and ComputedFieldsOptions ( #2496 )
...
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-18 17:47:03 -07:00
ymc9
c96bdbaf6e
address PR comments
2026-03-12 21:35:50 -07:00
ymc9
1ba4e54066
refactor(schema): widen types for attributes, default, and foreignKeyFor in generated schema
...
The generated schema previously used `as const` on entire model/enum/typeDef
objects, causing TypeScript to deeply infer literal types for all nested
properties. This is unnecessary for `attributes`, `default`, and `foreignKeyFor`
which are only used at runtime, not in CRUD type computations.
Changes:
- Add type assertions (`as readonly AttributeApplication[]`, `as FieldDefault`,
`as readonly string[]`) to prevent deep const inference on these properties
- Extract `FieldDefault` type alias from `FieldDef` for cleaner generated code
- Change `FieldHasDefault` to use key existence check (`'default' extends keyof`)
instead of value type check, enabling the `default` widening
- Conditionally import `AttributeApplication` and `FieldDefault` only when used
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-12 19:51:43 -07:00
github-actions[bot]
2c32dc329e
[CI] Bump version 3.4.6 ( #2477 )
...
Co-authored-by: ymc9 <104139426+ymc9@users.noreply.github.com>
2026-03-11 11:40:16 -07:00
github-actions[bot]
bd2b111b8e
[CI] Bump version 3.4.5 ( #2457 )
...
Co-authored-by: ymc9 <104139426+ymc9@users.noreply.github.com>
2026-03-06 22:26:46 -08:00
github-actions[bot]
07586f24cf
[CI] Bump version 3.4.4 ( #2450 )
...
Co-authored-by: ymc9 <104139426+ymc9@users.noreply.github.com>
2026-03-04 18:48:24 -08:00
github-actions[bot]
518cbb7ddf
[CI] Bump version 3.4.3 ( #2436 )
...
Co-authored-by: ymc9 <104139426+ymc9@users.noreply.github.com>
2026-03-03 09:34:03 -08:00
github-actions[bot]
f58550e262
[CI] Bump version 3.4.2 ( #2430 )
...
Co-authored-by: ymc9 <104139426+ymc9@users.noreply.github.com>
2026-03-01 20:26:23 -08:00
github-actions[bot]
3336505ed6
[CI] Bump version 3.4.1 ( #2422 )
...
Co-authored-by: ymc9 <104139426+ymc9@users.noreply.github.com>
2026-02-27 19:37:57 -08:00
github-actions[bot]
2da0c214dc
[CI] Bump version 3.4.0 ( #2408 )
...
Co-authored-by: ymc9 <104139426+ymc9@users.noreply.github.com>
2026-02-25 22:40:51 -05:00
Yiming Cao
1e70052ded
feat(zod): introduce an option to control depth of the built zod schemas ( #2392 )
2026-02-21 12:08:31 -08:00
Yiming Cao
3e03ab1506
refactor: remove import from orm package in generated schema ( #2387 )
2026-02-19 18:16:13 -08:00
Yiming Cao
fc703b8f42
chore: clean up repo merging stale files ( #2370 )
2026-02-11 11:51:44 +08:00
Yiming Cao
f3a24dd5d5
chore: rebuild and update test schemas ( #671 )
2026-02-08 11:29:32 +08:00
Copilot
5d1053f658
fix(schema): use type-only imports to prevent bundling server dependencies in client code ( #668 )
...
* Initial plan
* Fix: Change ModelResult/TypeDefResult imports to type-only imports in ts-schema-generator
Co-authored-by: ymc9 <104139426+ymc9@users.noreply.github.com>
* Regenerate test schemas with type-only imports
Co-authored-by: ymc9 <104139426+ymc9@users.noreply.github.com>
* Fix: Update bun runtime models.ts to use type-only imports
Co-authored-by: Yiming Cao <ymc9@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: ymc9 <104139426+ymc9@users.noreply.github.com>
Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>
Co-authored-by: Yiming Cao <ymc9@users.noreply.github.com>
2026-02-07 23:25:23 +08:00
github-actions[bot]
274871b858
chore: bump version 3.3.3 ( #659 )
...
Co-authored-by: ymc9 <104139426+ymc9@users.noreply.github.com>
2026-02-06 16:14:11 +08:00
github-actions[bot]
392b8a2da5
chore: bump version 3.3.2 ( #648 )
...
Co-authored-by: ymc9 <104139426+ymc9@users.noreply.github.com>
2026-02-01 20:59:52 +08:00
github-actions[bot]
646267d736
chore: bump version 3.3.1 ( #642 )
...
Co-authored-by: ymc9 <104139426+ymc9@users.noreply.github.com>
2026-01-31 16:07:23 +08:00
github-actions[bot]
3392104d04
chore: bump version 3.3.0 ( #635 )
...
Co-authored-by: ymc9 <104139426+ymc9@users.noreply.github.com>
2026-01-30 16:22:01 +08:00
Yiming Cao
209312a27b
fix(orm): properly handle literal array values in policy evaluation for postgres ( #628 )
2026-01-29 00:15:07 +08:00
Yiming Cao
84d1e60ae1
perf(orm): more aggressive caching of validation zod schemas ( #623 )
...
* WIP: more aggressive caching of validation zod schemas
* refactor: use a decorator-based approach for caching
* update
* update
* update
* update
* update
* remove object-type args from cache key
* update cache key
2026-01-27 11:30:05 +08:00
Yiming Cao
233b47d2ed
feat: plugin-extended query args ( #599 )
...
https://discord.com/channels/1035538056146595961/1460921516936925388
2026-01-16 20:52:42 +08:00
github-actions[bot]
f54093db51
chore: bump version 3.2.1 ( #587 )
...
Co-authored-by: ymc9 <104139426+ymc9@users.noreply.github.com>
2026-01-11 16:44:20 +08:00
Yiming Cao
c4ee20a889
chore: regenerate ts schemas ( #583 )
2026-01-09 17:48:30 +08:00
Yiming Cao
880e3b6f8c
chore: regenerate schemas ( #575 )
...
* feat(cli): implement watch mode for generate
* chore(root): update pnpm-lock.yaml
* chore(cli): track all model declaration and removed paths, logs in past tense
* fix(cli): typo, unused double array from
* fix(orm): preserve zod validation errors when validating custom json types
* update
* chore(cli): move import, fix parallel generation on watch
* feat(common-helpers): implement single-debounce
* chore(cli): use single-debounce for debouncing
* feat(common-helpers): implement single-debounce
* fix(common-helpers): re run single-debounce
* chore: regenerate schemas
---------
Co-authored-by: FTB_lag <tabolskyy.git@gmail.com>
2026-01-08 16:59:49 +08:00
Yiming Cao
2c9db43cc2
feat(cli): implement watch mode for generate ( #573 )
...
* feat(cli): implement watch mode for generate
* chore(root): update pnpm-lock.yaml
* chore(cli): track all model declaration and removed paths, logs in past tense
* fix(cli): typo, unused double array from
* fix(orm): preserve zod validation errors when validating custom json types
* update
* chore(cli): move import, fix parallel generation on watch
* feat(common-helpers): implement single-debounce
* chore(cli): use single-debounce for debouncing
* feat(common-helpers): implement single-debounce
* fix(common-helpers): re run single-debounce
* fix(tanstack): avoid invalidating queries for custom proc mutations
* add missing file
* fix formatting
---------
Co-authored-by: FTB_lag <tabolskyy.git@gmail.com>
2026-01-08 16:12:14 +08:00
Mike Willbanks
2172614e0e
custom procedures ( #551 )
...
* feat: custom procs
* chore: cleanup
* fix: remove $procedures from client
* fix: failing test due to previous alias
* feat(custom-procs)!: make procedures envelope-only via $procs
- Switch procedure calls to `db.$procs.name({ args: {...} })` (no positional args)
- Remove legacy `$procedures` alias entirely (client API + server routing/logging)
- Validate procedure envelope input (`args` object, required/unknown keys)
- Keep TanStack Query procedure hooks as `(args, options)` (with conditional args optionality)
- Update server/ORM/client tests for the envelope API
* fix: code review feedback
* fix: code review comments
* fix: coderabbit review comments
* fix: remove useless proxy method
* test: add a couple of e2e tests that verify both typing and runtime
* test: improve e2e tests
* test: add missing mutation flag
* regenerate test schema
* refactor: procedure params generation fix and type refactors
- Simplified procedure's params definition from a tuple an object, since procs are now called with an envelop now
- Refactored procedure related typing to make them more consistent with other CURD types (that usually takes the schema as the first type parameter, and a name as the second)
- Moved detailed procedure's types to "crud-types" where other ORM client detailed types are defined
- Removed some type duplication from hooks side
- Updated the "orm" sample to demonstrate procedures
* fix: disable infinite custom proc queries for now
---------
Co-authored-by: ymc9 <104139426+ymc9@users.noreply.github.com>
2026-01-08 11:21:51 +08:00
github-actions[bot]
20f07770b3
chore: bump version 3.2.0 ( #561 )
...
Co-authored-by: ymc9 <104139426+ymc9@users.noreply.github.com>
2026-01-05 16:57:58 +08:00
Yiming Cao
97ec4afdbf
fix: minor fixes addressing AI comments ( #552 )
2025-12-30 20:49:09 +08:00
github-actions[bot]
f13886bb16
chore: bump version 3.1.0 ( #539 )
...
Co-authored-by: ymc9 <104139426+ymc9@users.noreply.github.com>
2025-12-28 12:50:52 +08:00
Yiming Cao
fe731f726a
refactor: extract client-helpers package, update svelte-query to v6 ( #535 )
2025-12-27 22:49:19 +08:00
Yiming Cao
b0178a5893
chore: bump version 3.0.0 ( #522 )
...
* chore: bump version 3.0.0
* update
* update README
* update
2025-12-24 16:48:58 +08:00
github-actions[bot]
a0f3a6ee81
chore: bump version 3.0.0-beta.34 ( #520 )
...
Co-authored-by: ymc9 <104139426+ymc9@users.noreply.github.com>
2025-12-18 22:39:33 +08:00
github-actions[bot]
3c85772255
chore: bump version 3.0.0-beta.33 ( #516 )
...
Co-authored-by: ymc9 <104139426+ymc9@users.noreply.github.com>
2025-12-18 21:00:14 +08:00