Skip to content

Commit 1b95b16

Browse files
authored
Merge pull request #330 from zenstackhq/dev
merge dev to main (v3.0.0-beta.13)
2 parents ba3bbe8 + 56b68ab commit 1b95b16

File tree

46 files changed

+2115
-48
lines changed

Some content is hidden

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

46 files changed

+2115
-48
lines changed

BREAKINGCHANGES.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
1. `auth()` cannot be directly compared with a relation anymore
2-
2. `update` and `delete` policy rejection throws `NotFoundError`
3-
3. non-optional to-one relation doesn't automatically filter parent read when evaluating access policies
1+
1. `update` and `delete` policy rejection throws `NotFoundError`
2+
1. `check()` ORM api has been removed
3+
1. non-optional to-one relation doesn't automatically filter parent read when evaluating access policies

TODO.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
- [ ] DbNull vs JsonNull
8787
- [ ] Migrate to tsdown
8888
- [x] @default validation
89-
- [ ] Benchmark
89+
- [x] Benchmark
9090
- [x] Plugin
9191
- [x] Post-mutation hooks should be called after transaction is committed
9292
- [x] TypeDef and mixin

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "zenstack-v3",
3-
"version": "3.0.0-beta.12",
3+
"version": "3.0.0-beta.13",
44
"description": "ZenStack",
55
"packageManager": "[email protected]",
66
"scripts": {

packages/cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"publisher": "zenstack",
44
"displayName": "ZenStack CLI",
55
"description": "FullStack database toolkit with built-in access control and automatic API generation.",
6-
"version": "3.0.0-beta.12",
6+
"version": "3.0.0-beta.13",
77
"type": "module",
88
"author": {
99
"name": "ZenStack Team"

packages/common-helpers/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@zenstackhq/common-helpers",
3-
"version": "3.0.0-beta.12",
3+
"version": "3.0.0-beta.13",
44
"description": "ZenStack Common Helpers",
55
"type": "module",
66
"scripts": {

packages/common-helpers/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
export * from './is-plain-object';
22
export * from './lower-case-first';
33
export * from './param-case';
4+
export * from './safe-json-stringify';
45
export * from './sleep';
56
export * from './tiny-invariant';
67
export * from './upper-case-first';
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/**
2+
* A safe JSON stringify that handles bigint values.
3+
*/
4+
export function safeJSONStringify(value: unknown) {
5+
return JSON.stringify(value, (_, v) => {
6+
if (typeof v === 'bigint') {
7+
return v.toString();
8+
} else {
9+
return v;
10+
}
11+
});
12+
}

packages/config/eslint-config/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@zenstackhq/eslint-config",
3-
"version": "3.0.0-beta.12",
3+
"version": "3.0.0-beta.13",
44
"type": "module",
55
"private": true,
66
"license": "MIT"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@zenstackhq/typescript-config",
3-
"version": "3.0.0-beta.12",
3+
"version": "3.0.0-beta.13",
44
"private": true,
55
"license": "MIT"
66
}

packages/config/vitest-config/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@zenstackhq/vitest-config",
33
"type": "module",
4-
"version": "3.0.0-beta.12",
4+
"version": "3.0.0-beta.13",
55
"private": true,
66
"license": "MIT",
77
"exports": {

0 commit comments

Comments
 (0)