Skip to content

Commit 03f6dfa

Browse files
authored
merge dev to main (v3.6.0) (#2593)
2 parents ddc1b14 + 31f4c49 commit 03f6dfa

139 files changed

Lines changed: 19891 additions & 1391 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.vscode/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"configurations": [
77
{
88
"name": "Debug CLI",
9-
"program": "${workspaceFolder}/packages/cli/dist/index.js",
9+
"program": "${workspaceFolder}/packages/cli/dist/index.mjs",
1010
"request": "launch",
1111
"skipFiles": ["<node_internals>/**"],
1212
"type": "node",

.vscode/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
{
2-
"vitest.maximumConfigs": 20
2+
"vitest.maximumConfigs": 20,
3+
"js/ts.tsdk.path": "node_modules/typescript/lib"
34
}

BREAKINGCHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
1. non-optional to-one relation doesn't automatically filter parent read when evaluating access policies
44
1. `@omit` and `@password` attributes have been removed
55
1. SWR plugin is removed
6+
1. `makeModelSchema()` no longer includes relation fields by default — use `include` or `select` options to opt in, mirroring ORM behaviour

CLAUDE.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,10 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
7979

8080
- Always target the `dev` branch (not `main`) when creating PRs
8181

82+
## Git Workflow
83+
84+
- Never commit or push changes unless explicitly asked to do so
85+
8286
## Development Notes
8387

8488
- Always run `zenstack generate` after modifying ZModel schemas

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ Alternatively, you can set it up manually:
7474

7575
```bash
7676
npm install -D @zenstackhq/cli
77-
npm install @zenstackhq/orm
77+
npm install @zenstackhq/schema @zenstackhq/orm
7878
```
7979

8080
Then create a `zenstack` folder and a `schema.zmodel` file in it.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "zenstack-v3",
33
"displayName": "ZenStack",
44
"description": "ZenStack",
5-
"version": "3.5.6",
5+
"version": "3.6.0",
66
"type": "module",
77
"author": {
88
"name": "ZenStack Team",
@@ -14,7 +14,7 @@
1414
"url": "https://github.com/zenstackhq/zenstack"
1515
},
1616
"license": "MIT",
17-
"packageManager": "pnpm@10.23.0",
17+
"packageManager": "pnpm@10.33.0",
1818
"scripts": {
1919
"build": "turbo run build",
2020
"watch": "turbo run watch build",
@@ -45,7 +45,7 @@
4545
"npm-run-all": "^4.1.5",
4646
"prettier": "^3.5.3",
4747
"prisma": "catalog:",
48-
"tsup": "^8.5.0",
48+
"tsdown": "^0.21.8",
4949
"tsx": "^4.20.3",
5050
"turbo": "^2.5.4",
5151
"typescript": "catalog:",

packages/auth-adapters/better-auth/package.json

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@zenstackhq/better-auth",
33
"displayName": "ZenStack Better Auth Adapter",
44
"description": "ZenStack Better Auth Adapter. This adapter is modified from better-auth's Prisma adapter.",
5-
"version": "3.5.6",
5+
"version": "3.6.0",
66
"type": "module",
77
"author": {
88
"name": "ZenStack Team",
@@ -15,8 +15,8 @@
1515
},
1616
"license": "MIT",
1717
"scripts": {
18-
"build": "tsc --noEmit && tsup-node",
19-
"watch": "tsup-node --watch",
18+
"build": "tsc --noEmit && tsdown",
19+
"watch": "tsdown --watch",
2020
"lint": "eslint src --ext ts",
2121
"test": "vitest run",
2222
"pack": "pnpm pack"
@@ -31,8 +31,8 @@
3131
"exports": {
3232
".": {
3333
"import": {
34-
"types": "./dist/index.d.ts",
35-
"default": "./dist/index.js"
34+
"types": "./dist/index.d.mts",
35+
"default": "./dist/index.mjs"
3636
},
3737
"require": {
3838
"types": "./dist/index.d.cts",
@@ -55,14 +55,16 @@
5555
"better-auth": "^1.3.0"
5656
},
5757
"devDependencies": {
58-
"@better-auth/core": "1.4.19",
59-
"better-auth": "1.4.19",
6058
"@better-auth/cli": "1.4.19",
59+
"@better-auth/core": "1.4.19",
6160
"@types/tmp": "catalog:",
6261
"@zenstackhq/cli": "workspace:*",
6362
"@zenstackhq/eslint-config": "workspace:*",
63+
"@zenstackhq/tsdown-config": "workspace:*",
6464
"@zenstackhq/typescript-config": "workspace:*",
6565
"@zenstackhq/vitest-config": "workspace:*",
66+
"better-auth": "1.4.19",
67+
"kysely": "catalog:",
6668
"tmp": "catalog:"
6769
},
6870
"funding": "https://github.com/sponsors/zenstackhq"

packages/auth-adapters/better-auth/test/cli-generate.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function generateSchema(configFile: string): string {
2828
* Helper function to verify schema with zenstack check
2929
*/
3030
function verifySchema(schemaPath: string) {
31-
const cliPath = path.join(__dirname, '../../../cli/dist/index.js');
31+
const cliPath = path.join(__dirname, '../../../cli/dist/index.mjs');
3232
const workDir = path.dirname(schemaPath);
3333

3434
expect(fs.existsSync(schemaPath)).toBe(true);
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import { createConfig } from '@zenstackhq/tsdown-config';
2+
3+
export default createConfig({ entry: { index: 'src/index.ts' } });

packages/auth-adapters/better-auth/tsup.config.ts

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)