From 5034fdc50387a0490693285cada09a18155564ee Mon Sep 17 00:00:00 2001 From: Yiming Date: Sun, 14 Jul 2024 19:42:55 -0700 Subject: [PATCH] merge dev to main (v2.3.1) (#1593) Co-authored-by: Jason MacDonald <5718527+jasonmacdonald@users.noreply.github.com> Co-authored-by: Jason MacDonald --- package.json | 2 +- packages/ide/jetbrains/.idea/gradle.xml | 1 + packages/ide/jetbrains/CHANGELOG.md | 7 ++ packages/ide/jetbrains/build.gradle.kts | 2 +- packages/ide/jetbrains/package.json | 2 +- packages/language/package.json | 2 +- packages/misc/redwood/package.json | 2 +- packages/plugins/openapi/package.json | 2 +- packages/plugins/swr/package.json | 2 +- packages/plugins/tanstack-query/package.json | 2 +- packages/plugins/trpc/package.json | 2 +- packages/runtime/package.json | 2 +- packages/runtime/src/enhancements/delegate.ts | 105 ++++++++--------- .../src/enhancements/policy/handler.ts | 2 +- .../src/enhancements/policy/policy-utils.ts | 8 +- packages/runtime/src/enhancements/proxy.ts | 4 +- packages/schema/package.json | 2 +- .../enhancer/enhance/auth-type-generator.ts | 61 +++------- packages/sdk/package.json | 2 +- packages/server/package.json | 2 +- packages/testtools/package.json | 2 +- .../with-delegate/enhanced-client.test.ts | 108 +++++++++++++++++- .../enhancements/with-policy/auth.test.ts | 26 +++++ tests/regression/tests/issue-1574.test.ts | 108 ++++++++++++++++++ tests/regression/tests/issue-1576.test.ts | 63 ++++++++++ tests/regression/tests/issue-1585.test.ts | 30 +++++ 26 files changed, 439 insertions(+), 112 deletions(-) create mode 100644 tests/regression/tests/issue-1574.test.ts create mode 100644 tests/regression/tests/issue-1576.test.ts create mode 100644 tests/regression/tests/issue-1585.test.ts diff --git a/package.json b/package.json index 0bb385fba..427a3c8e5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "zenstack-monorepo", - "version": "2.3.0", + "version": "2.3.1", "description": "", "scripts": { "build": "pnpm -r build", diff --git a/packages/ide/jetbrains/.idea/gradle.xml b/packages/ide/jetbrains/.idea/gradle.xml index ce1c62c7c..2e2f480f5 100644 --- a/packages/ide/jetbrains/.idea/gradle.xml +++ b/packages/ide/jetbrains/.idea/gradle.xml @@ -5,6 +5,7 @@