zenstack 2.11.0 → 2.11.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -26,7 +26,7 @@
26
26
 
27
27
  ## What it is
28
28
 
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.
30
30
 
31
31
  Our goal is to let you save time writing boilerplate code and focus on building real features!
32
32
 
@@ -181,6 +181,7 @@ The following diagram gives a high-level architecture overview of ZenStack.
181
181
  - [Multi-file schema and model inheritance](https://zenstack.dev/docs/guides/multiple-schema)
182
182
  - [Polymorphic Relations](https://zenstack.dev/docs/guides/polymorphism)
183
183
  - [Strongly typed JSON field](https://zenstack.dev/docs/guides/typing-json)
184
+ - [Field encryption](https://zenstack.dev/docs/guides/field-encryption)
184
185
  - 🙋🏻 [Request for an extension](https://discord.gg/Ykhr738dUe)
185
186
 
186
187
  ## Examples
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publisher": "zenstack",
4
4
  "displayName": "ZenStack Language Tools",
5
5
  "description": "FullStack enhancement for Prisma ORM: seamless integration from database to UI",
6
- "version": "2.11.0",
6
+ "version": "2.11.1",
7
7
  "author": {
8
8
  "name": "ZenStack Team"
9
9
  },
@@ -105,14 +105,14 @@
105
105
  "vscode-uri": "^3.0.6",
106
106
  "zod": "^3.22.4",
107
107
  "zod-validation-error": "^1.5.0",
108
- "@zenstackhq/language": "2.11.0",
109
- "@zenstackhq/sdk": "2.11.0"
108
+ "@zenstackhq/sdk": "2.11.1",
109
+ "@zenstackhq/language": "2.11.1"
110
110
  },
111
111
  "peerDependencies": {
112
- "prisma": "5.0.0 - 6.1.x"
112
+ "prisma": "5.0.0 - 6.2.x"
113
113
  },
114
114
  "devDependencies": {
115
- "@prisma/client": "6.1.x",
115
+ "@prisma/client": "6.2.x",
116
116
  "@types/async-exit-hook": "^2.0.0",
117
117
  "@types/pluralize": "^0.0.29",
118
118
  "@types/semver": "^7.3.13",
@@ -127,7 +127,7 @@
127
127
  "tmp": "^0.2.1",
128
128
  "tsc-alias": "^1.7.0",
129
129
  "vitest": "^0.29.7",
130
- "@zenstackhq/runtime": "2.11.0"
130
+ "@zenstackhq/runtime": "2.11.1"
131
131
  },
132
132
  "scripts": {
133
133
  "vscode:publish": "vsce publish --no-dependencies",
package/res/stdlib.zmodel CHANGED
@@ -94,7 +94,7 @@ function uuid(version: Int?): String {
94
94
  /**
95
95
  * Generates a globally unique identifier based on the CUID spec.
96
96
  */
97
- function cuid(): String {
97
+ function cuid(version: Int?): String {
98
98
  } @@@expressionContext([DefaultValue])
99
99
 
100
100
  /**
@@ -103,6 +103,12 @@ function cuid(): String {
103
103
  function nanoid(length: Int?): String {
104
104
  } @@@expressionContext([DefaultValue])
105
105
 
106
+ /**
107
+ * Generates an identifier based on the ulid spec.
108
+ */
109
+ function ulid(): String {
110
+ } @@@expressionContext([DefaultValue])
111
+
106
112
  /**
107
113
  * Creates a sequence of integers in the underlying database and assign the incremented
108
114
  * values to the ID values of the created records based on the sequence.