Skip to content

Commit 4b7d813

Browse files
authored
merge dev to main (v2.11.1) (#1952)
2 parents 70a81c6 + 8e3b675 commit 4b7d813

File tree

28 files changed

+111
-100
lines changed

28 files changed

+111
-100
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
## What it is
2828

29-
ZenStack is a Node.js/TypeScript toolkit that simplifies the development of a web app's backend. It enhances [Prisma ORM](https://prisma.io) with a flexible Authorization layer and auto-generated, type-safe APIs/hooks, unlocking its full potential for full-stack development.
29+
ZenStack is a Node.js/TypeScript toolkit that simplifies the development of web applications. It enhances [Prisma ORM](https://prisma.io) with a flexible Authorization layer and auto-generated, type-safe APIs/hooks, unlocking its full potential for full-stack development.
3030

3131
Our goal is to let you save time writing boilerplate code and focus on building real features!
3232

@@ -181,6 +181,7 @@ The following diagram gives a high-level architecture overview of ZenStack.
181181
- [Multi-file schema and model inheritance](https://zenstack.dev/docs/guides/multiple-schema)
182182
- [Polymorphic Relations](https://zenstack.dev/docs/guides/polymorphism)
183183
- [Strongly typed JSON field](https://zenstack.dev/docs/guides/typing-json)
184+
- [Field encryption](https://zenstack.dev/docs/guides/field-encryption)
184185
- 🙋🏻 [Request for an extension](https://discord.gg/Ykhr738dUe)
185186

186187
## Examples

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "zenstack-monorepo",
3-
"version": "2.11.0",
3+
"version": "2.11.1",
44
"description": "",
55
"scripts": {
66
"build": "pnpm -r --filter=\"!./packages/ide/*\" build",

packages/ide/jetbrains/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
## [Unreleased]
44

5+
### Added
6+
7+
- Field encryption attribute `@encrypted`.
8+
9+
## 2.9.3
10+
511
### Fixed
612

713
- Proper semantic highlighting and formatting for type declarations.

packages/ide/jetbrains/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ plugins {
99
}
1010

1111
group = "dev.zenstack"
12-
version = "2.11.0"
12+
version = "2.11.1"
1313

1414
repositories {
1515
mavenCentral()

packages/ide/jetbrains/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jetbrains",
3-
"version": "2.11.0",
3+
"version": "2.11.1",
44
"displayName": "ZenStack JetBrains IDE Plugin",
55
"description": "ZenStack JetBrains IDE plugin",
66
"homepage": "https://zenstack.dev",

packages/language/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@zenstackhq/language",
3-
"version": "2.11.0",
3+
"version": "2.11.1",
44
"displayName": "ZenStack modeling language compiler",
55
"description": "ZenStack modeling language compiler",
66
"homepage": "https://zenstack.dev",

packages/misc/redwood/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@zenstackhq/redwood",
33
"displayName": "ZenStack RedwoodJS Integration",
4-
"version": "2.11.0",
4+
"version": "2.11.1",
55
"description": "CLI and runtime for integrating ZenStack with RedwoodJS projects.",
66
"repository": {
77
"type": "git",

packages/plugins/openapi/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@zenstackhq/openapi",
33
"displayName": "ZenStack Plugin and Runtime for OpenAPI",
4-
"version": "2.11.0",
4+
"version": "2.11.1",
55
"description": "ZenStack plugin and runtime supporting OpenAPI",
66
"main": "index.js",
77
"repository": {

packages/plugins/swr/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@zenstackhq/swr",
33
"displayName": "ZenStack plugin for generating SWR hooks",
4-
"version": "2.11.0",
4+
"version": "2.11.1",
55
"description": "ZenStack plugin for generating SWR hooks",
66
"main": "index.js",
77
"repository": {

packages/plugins/tanstack-query/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@zenstackhq/tanstack-query",
33
"displayName": "ZenStack plugin for generating tanstack-query hooks",
4-
"version": "2.11.0",
4+
"version": "2.11.1",
55
"description": "ZenStack plugin for generating tanstack-query hooks",
66
"main": "index.js",
77
"exports": {

packages/plugins/trpc/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@zenstackhq/trpc",
33
"displayName": "ZenStack plugin for tRPC",
4-
"version": "2.11.0",
4+
"version": "2.11.1",
55
"description": "ZenStack plugin for tRPC",
66
"main": "index.js",
77
"repository": {

packages/plugins/trpc/tests/projects/nuxt-trpc-v10/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"postinstall": "nuxt prepare"
1111
},
1212
"dependencies": {
13-
"@prisma/client": "6.1.x",
13+
"@prisma/client": "6.2.x",
1414
"@trpc/client": "^10.45.2",
1515
"@trpc/server": "^10.45.2",
1616
"nuxt": "^3.14.1592",
@@ -21,7 +21,7 @@
2121
},
2222
"devDependencies": {
2323
"esbuild": "^0.24.0",
24-
"prisma": "6.1.x",
24+
"prisma": "6.2.x",
2525
"typescript": "^5.6.2",
2626
"vue-tsc": "^2.1.10"
2727
}

packages/plugins/trpc/tests/projects/nuxt-trpc-v11/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"postinstall": "nuxt prepare"
1111
},
1212
"dependencies": {
13-
"@prisma/client": "6.1.x",
13+
"@prisma/client": "6.2.x",
1414
"@trpc/client": "^11.0.0-rc.563",
1515
"@trpc/server": "^11.0.0-rc.563",
1616
"nuxt": "^3.14.1592",
@@ -21,7 +21,7 @@
2121
},
2222
"devDependencies": {
2323
"esbuild": "^0.24.0",
24-
"prisma": "6.1.x",
24+
"prisma": "6.2.x",
2525
"typescript": "^5.6.2",
2626
"vue-tsc": "^2.1.10"
2727
}

packages/plugins/trpc/tests/projects/t3-trpc-v11/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"start": "next start"
1616
},
1717
"dependencies": {
18-
"@prisma/client": "6.1.x",
18+
"@prisma/client": "6.2.x",
1919
"@t3-oss/env-nextjs": "^0.10.1",
2020
"@tanstack/react-query": "^5.50.0",
2121
"@trpc/client": "^11.0.0-rc.446",
@@ -39,7 +39,7 @@
3939
"@typescript-eslint/parser": "^8.1.0",
4040
"eslint": "^8.57.0",
4141
"eslint-config-next": "^14.2.4",
42-
"prisma": "6.1.x",
42+
"prisma": "6.2.x",
4343
"typescript": "^5.5.3"
4444
},
4545
"ct3aMetadata": {

packages/runtime/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@zenstackhq/runtime",
33
"displayName": "ZenStack Runtime Library",
4-
"version": "2.11.0",
4+
"version": "2.11.1",
55
"description": "Runtime of ZenStack for both client-side and server-side environments.",
66
"repository": {
77
"type": "git",
@@ -115,7 +115,7 @@
115115
"zod-validation-error": "^1.5.0"
116116
},
117117
"peerDependencies": {
118-
"@prisma/client": "5.0.0 - 6.1.x"
118+
"@prisma/client": "5.0.0 - 6.2.x"
119119
},
120120
"author": {
121121
"name": "ZenStack Team"

packages/schema/build/bundle.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,6 @@ require('esbuild')
1111
external: ['vscode', '@prisma/*'],
1212
platform: 'node',
1313
sourcemap: !minify,
14-
watch: watch
15-
? {
16-
onRebuild(error) {
17-
if (error) console.error('Watch build failed');
18-
else console.log(success);
19-
},
20-
}
21-
: false,
2214
minify,
2315
})
2416
.then(() => {

packages/schema/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"publisher": "zenstack",
44
"displayName": "ZenStack Language Tools",
55
"description": "FullStack enhancement for Prisma ORM: seamless integration from database to UI",
6-
"version": "2.11.0",
6+
"version": "2.11.1",
77
"author": {
88
"name": "ZenStack Team"
99
},
@@ -123,10 +123,10 @@
123123
"zod-validation-error": "^1.5.0"
124124
},
125125
"peerDependencies": {
126-
"prisma": "5.0.0 - 6.1.x"
126+
"prisma": "5.0.0 - 6.2.x"
127127
},
128128
"devDependencies": {
129-
"@prisma/client": "6.1.x",
129+
"@prisma/client": "6.2.x",
130130
"@types/async-exit-hook": "^2.0.0",
131131
"@types/pluralize": "^0.0.29",
132132
"@types/semver": "^7.3.13",

packages/schema/src/res/stdlib.zmodel

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ function uuid(version: Int?): String {
9494
/**
9595
* Generates a globally unique identifier based on the CUID spec.
9696
*/
97-
function cuid(): String {
97+
function cuid(version: Int?): String {
9898
} @@@expressionContext([DefaultValue])
9999

100100
/**
@@ -103,6 +103,12 @@ function cuid(): String {
103103
function nanoid(length: Int?): String {
104104
} @@@expressionContext([DefaultValue])
105105

106+
/**
107+
* Generates an identifier based on the ulid spec.
108+
*/
109+
function ulid(): String {
110+
} @@@expressionContext([DefaultValue])
111+
106112
/**
107113
* Creates a sequence of integers in the underlying database and assign the incremented
108114
* values to the ID values of the created records based on the sequence.

packages/schema/tests/generator/prisma-generator.test.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,9 @@ describe('Prisma generator test', () => {
164164
x String @default(nanoid())
165165
y String @default(dbgenerated("gen_random_uuid()"))
166166
z String @default(auth().id)
167+
cuid String @default(cuid())
168+
cuid2 String @default(cuid(2))
169+
ulid String @default(ulid())
167170
}
168171
`);
169172

@@ -183,6 +186,9 @@ describe('Prisma generator test', () => {
183186
expect(content).toContain('@default(nanoid())');
184187
expect(content).toContain('@default(dbgenerated("gen_random_uuid()"))');
185188
expect(content).not.toContain('@default(auth().id)');
189+
expect(content).toContain('@default(cuid())');
190+
expect(content).toContain('@default(cuid(2))');
191+
expect(content).toContain('@default(ulid())');
186192
});
187193

188194
it('triple slash comments', async () => {

packages/sdk/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@zenstackhq/sdk",
3-
"version": "2.11.0",
3+
"version": "2.11.1",
44
"description": "ZenStack plugin development SDK",
55
"main": "index.js",
66
"scripts": {
@@ -18,8 +18,8 @@
1818
"author": "",
1919
"license": "MIT",
2020
"dependencies": {
21-
"@prisma/generator-helper": "6.1.x",
22-
"@prisma/internals": "6.1.x",
21+
"@prisma/generator-helper": "6.2.x",
22+
"@prisma/internals": "6.2.x",
2323
"@zenstackhq/language": "workspace:*",
2424
"@zenstackhq/runtime": "workspace:*",
2525
"langium": "1.3.1",

packages/server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@zenstackhq/server",
3-
"version": "2.11.0",
3+
"version": "2.11.1",
44
"displayName": "ZenStack Server-side Adapters",
55
"description": "ZenStack server-side adapters",
66
"homepage": "https://zenstack.dev",

packages/testtools/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@zenstackhq/testtools",
3-
"version": "2.11.0",
3+
"version": "2.11.1",
44
"description": "ZenStack Test Tools",
55
"main": "index.js",
66
"private": true,

0 commit comments

Comments
 (0)