Commit graph

389 commits

Author SHA1 Message Date
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
Yiming Cao
85d8b6bf2f
chore: add package metadata to all public packages (#2530)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 13:02:21 -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
ymc9
5bb9e67a96 docs: add README.md to all public packages
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-22 21:51:13 -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
Yiming Cao
00c53d7fed
fix(sdk): correctly handle mixin fields for delegate model inheritance (#2456) 2026-03-07 10:04:18 -08: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
ymc9
4a99088bce fix(sdk): correctly handle mixin fields for delegate model inheritance
Fields inherited via a mixin type on a delegate base model were not
getting their `originModel` set in the generated schema, causing the
ORM to include them in the wrong table's INSERT statement.

Introduces `getOwnedFields` and `getDelegateOriginModel` helpers in
`model-utils.ts` and uses them in both `ts-schema-generator` and
`prisma-schema-generator`, replacing the previous logic that only
checked `field.$container` directly.

Fixes #2351

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-06 22:25:10 -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
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
ymc9
2564cd457b Merge remote-tracking branch 'v3/dev' into dev 2026-02-10 16:20:19 +08:00
Lukas Kahwe Smith
f8b28b6340
validate computed field configuration on startup (#653) 2026-02-08 10:04:41 +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
ab9535ea90
fix(language): resolve mixin fields from imported files in scope (#598) (#632)
Fixed issue where access policy rules couldn't reference fields inherited from mixins defined in separate imported files. The language service now correctly resolves these fields during scope computation.

## Root Cause

The `getRecursiveBases()` function only searched for mixin declarations in the current document (`decl.$container.declarations`), which failed for imported mixins.

## Solution

- Modified `getRecursiveBases()` to accept optional `LangiumDocuments` parameter
- Implemented two-strategy approach:
  1. Use resolved reference if available (post-linking)
  2. Search by name across all documents including imports (pre-linking)
- Updated `ZModelScopeComputation.processNode()` to pass `LangiumDocuments`
- Leverages existing `getAllDeclarationsIncludingImports()` helper

## Changes

- **packages/language/src/utils.ts**: Fixed `getRecursiveBases()` to search imported documents
- **packages/language/src/zmodel-scope.ts**: Pass LangiumDocuments to scope computation
- **packages/language/test/mixin.test.ts**: Added tests for imported mixin field resolution
- **packages/testtools**: Added `extraZModelFiles` option for multi-file test schemas
- **tests/regression/test/issue-598.test.ts**: Regression test for the issue

## Test Results

 All language package tests pass (65 tests)
 Regression test validates policy rules can access imported mixin fields
 Handles edge cases: cyclic imports, nested mixins, transitive imports

Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-30 13:38:10 +08:00
Yiming Cao
99f68e2f7b
feat(orm): mysql support (#616)
* WIP(orm): mysql support

* WIP: more progress with fixing tests

* WIP: get all client api tests pass

* WIP: get all tests pass

* fix executor

* add MySQL to CI matrix

* fix sqlite test runs

* fix test

* fix delete readback check

* set mysql container max connections

* fix tests

* fix test

* refactor: extract duplicated mysql/pg code into base class

* address PR comments

* refactor: remove order by duplicated code

* refactor: optimize stripTableReference

* addressing PR comments

* fix tests
2026-01-24 23:21:36 +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
92c34c44db
fix(orm): add special treatment to enum arrays for postgres db (#577)
* fix(orm): add special treatment to enum arrays for postgres db

- For input, the string array needs to be casted with "Enum"[]
- For output, the raw pg array string needs to be parsed back to a proper JS string array

fixes #576

* fix enum array filtering and improve test cases

* update

* addressing PR comments
2026-01-08 20:53:28 +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
ea93dd63de
chore: bump version (#2322) 2025-12-29 16:32:52 +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
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
github-actions[bot]
ea66833584
chore: bump version 3.0.0-beta.32 (#507)
Co-authored-by: ymc9 <104139426+ymc9@users.noreply.github.com>
2025-12-16 21:32:11 +08:00
github-actions[bot]
3e0571e5fc
chore: bump version 3.0.0-beta.31 (#495)
Co-authored-by: ymc9 <104139426+ymc9@users.noreply.github.com>
2025-12-14 14:28:05 +08:00
github-actions[bot]
4417d20261
chore: bump version 3.0.0-beta.30 (#487)
Co-authored-by: ymc9 <104139426+ymc9@users.noreply.github.com>
2025-12-13 21:39:57 +08:00
github-actions[bot]
7e0216082f
chore: bump version 3.0.0-beta.29 (#483)
Co-authored-by: ymc9 <104139426+ymc9@users.noreply.github.com>
2025-12-13 14:28:41 +08:00
github-actions[bot]
bf52d5dda5
chore: bump version 3.0.0-beta.28 (#474)
Co-authored-by: ymc9 <104139426+ymc9@users.noreply.github.com>
2025-12-09 22:56:07 +08:00