This repository was archived by the owner on Mar 1, 2026. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 17
merge dev to main (v3.0.0-beta.27) #460
Merged
Changes from 12 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
21a1eba
update to latest vitest (#447)
ymc9 a9ff7e4
chore: bump vscode version (#448)
ymc9 97a03d4
fix(orm): correcting timezone for Date returned in nested queries (#450)
ymc9 ba08669
chore(zmodel): add warning for removing "generator" block (#451)
ymc9 c009246
fix: elysia should utilize ctx.query vs. request.searchParams (#452)
mwillbanks 3406956
fix(server): app aliases are not allowed in server runtime (#453)
genu 108a999
fix: isomorphic __dirname in CI (#454)
ymc9 09dabd8
chore: bump version 3.0.0-beta.27 (#455)
github-actions[bot] 61719d5
chore(cli): suppress prisma update message (#456)
ymc9 3c22e34
test(bun): basic e2e tests (#457)
ymc9 d894f4b
test: add edge-runtime e2e (#458)
ymc9 0492085
test(zmodel): more validation tests (#459)
ymc9 6330c3b
fix(orm): more robust timezone adjustment for postgres (#461)
ymc9 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,3 @@ | ||
| {} | ||
| { | ||
| "vitest.maximumConfigs": 20 | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| { | ||
| "name": "@zenstackhq/typescript-config", | ||
| "version": "3.0.0-beta.26", | ||
| "version": "3.0.0-beta.27", | ||
| "private": true, | ||
| "license": "MIT" | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,71 @@ | ||
| import { describe, expect, it } from 'vitest'; | ||
| import { loadSchema, loadSchemaWithError } from './utils'; | ||
|
|
||
| describe('This keyword resolution tests', () => { | ||
| it('always resolves to the containing model', async () => { | ||
| await loadSchemaWithError( | ||
| ` | ||
| datasource db { | ||
| provider = 'sqlite' | ||
| url = 'file:./dev.db' | ||
| } | ||
|
|
||
| model A { | ||
| id Int @id @default(autoincrement()) | ||
| av Int | ||
| b B[] | ||
|
|
||
| @@allow('read', b?[c?[cv == this.cv]]) | ||
| } | ||
|
|
||
| model B { | ||
| id Int @id @default(autoincrement()) | ||
| bv Int | ||
| aId Int | ||
| a A @relation(fields: [aId], references: [id]) | ||
| c C[] | ||
| } | ||
|
|
||
| model C { | ||
| id Int @id @default(autoincrement()) | ||
| cv Int | ||
| bId Int | ||
| b B @relation(fields: [bId], references: [id]) | ||
| } | ||
| `, | ||
| /MemberAccessTarget named 'cv'/, | ||
| ); | ||
|
|
||
| await expect( | ||
| loadSchema(` | ||
| datasource db { | ||
| provider = 'sqlite' | ||
| url = 'file:./dev.db' | ||
| } | ||
|
|
||
| model A { | ||
| id Int @id @default(autoincrement()) | ||
| av Int | ||
| b B[] | ||
|
|
||
| @@allow('read', b?[c?[cv == this.av]]) | ||
| } | ||
|
|
||
| model B { | ||
| id Int @id @default(autoincrement()) | ||
| bv Int | ||
| aId Int | ||
| a A @relation(fields: [aId], references: [id]) | ||
| c C[] | ||
| } | ||
|
|
||
| model C { | ||
| id Int @id @default(autoincrement()) | ||
| cv Int | ||
| bId Int | ||
| b B @relation(fields: [bId], references: [id]) | ||
| } | ||
| `), | ||
| ).resolves.toBeTruthy(); | ||
| }); | ||
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.