Skip to content

Commit f6b68da

Browse files
authored
fix: vscode language accidentally bundles prisma packages (#625)
1 parent a81913e commit f6b68da

File tree

15 files changed

+352
-18
lines changed

15 files changed

+352
-18
lines changed

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": "1.0.0-beta.16",
3+
"version": "1.0.0-beta.17",
44
"description": "",
55
"scripts": {
66
"build": "pnpm -r build",

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": "1.0.0-beta.16",
3+
"version": "1.0.0-beta.17",
44
"displayName": "ZenStack modeling language compiler",
55
"description": "ZenStack modeling language compiler",
66
"homepage": "https://zenstack.dev",

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": "1.0.0-beta.16",
4+
"version": "1.0.0-beta.17",
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": "1.0.0-beta.16",
4+
"version": "1.0.0-beta.17",
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": "1.0.0-beta.16",
4+
"version": "1.0.0-beta.17",
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": "1.0.0-beta.16",
4+
"version": "1.0.0-beta.17",
55
"description": "ZenStack plugin for tRPC",
66
"main": "index.js",
77
"repository": {

packages/runtime/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@zenstackhq/runtime",
33
"displayName": "ZenStack Runtime Library",
4-
"version": "1.0.0-beta.16",
4+
"version": "1.0.0-beta.17",
55
"description": "Runtime of ZenStack for both client-side and server-side environments.",
66
"repository": {
77
"type": "git",

packages/runtime/src/enhancements/policy/policy-utils.ts

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -489,16 +489,21 @@ export class PolicyUtil {
489489
}
490490
// inject extra condition for to-many or nullable to-one relation
491491
await this.injectAuthGuard(injectTarget[field], fieldInfo.type, 'read');
492+
493+
// recurse
494+
const subHoisted = await this.injectNestedReadConditions(fieldInfo.type, injectTarget[field]);
495+
if (subHoisted.length > 0) {
496+
// we can convert it to a where at this level
497+
injectTarget[field].where = this.and(injectTarget[field].where, ...subHoisted);
498+
}
492499
} else {
493500
// hoist non-nullable to-one filter to the parent level
494501
hoisted = this.getAuthGuard(fieldInfo.type, 'read');
495-
}
496-
497-
// recurse
498-
const subHoisted = await this.injectNestedReadConditions(fieldInfo.type, injectTarget[field]);
499-
500-
if (subHoisted.length > 0) {
501-
hoisted = this.and(hoisted, ...subHoisted);
502+
// recurse
503+
const subHoisted = await this.injectNestedReadConditions(fieldInfo.type, injectTarget[field]);
504+
if (subHoisted.length > 0) {
505+
hoisted = this.and(hoisted, ...subHoisted);
506+
}
502507
}
503508

504509
if (hoisted && !this.isTrue(hoisted)) {

packages/schema/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 Language Tools",
55
"description": "A toolkit for building secure CRUD apps with Next.js + Typescript",
6-
"version": "1.0.0-beta.16",
6+
"version": "1.0.0-beta.17",
77
"author": {
88
"name": "ZenStack Team"
99
},

packages/sdk/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@zenstackhq/sdk",
3-
"version": "1.0.0-beta.16",
3+
"version": "1.0.0-beta.17",
44
"description": "ZenStack plugin development SDK",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)