From e3109af0264b5f08f128f2837db6dcefa405734a Mon Sep 17 00:00:00 2001 From: Gao Sun Date: Fri, 12 Jul 2024 20:56:01 +0800 Subject: [PATCH 1/2] chore(deps): upgrade zod --- packages/cli/package.json | 2 +- .../connector-alipay-native/package.json | 2 +- .../connector-alipay-web/package.json | 2 +- .../connector-aliyun-dm/package.json | 2 +- .../connector-aliyun-sms/package.json | 2 +- .../connectors/connector-apple/package.json | 2 +- .../connectors/connector-aws-ses/package.json | 2 +- .../connectors/connector-azuread/package.json | 2 +- .../connector-dingtalk-web/package.json | 2 +- .../connectors/connector-discord/package.json | 2 +- .../connector-facebook/package.json | 2 +- .../connector-feishu-web/package.json | 2 +- .../connectors/connector-github/package.json | 2 +- .../connectors/connector-google/package.json | 2 +- .../connector-huggingface/package.json | 2 +- .../connectors/connector-kakao/package.json | 2 +- .../connector-logto-email/package.json | 2 +- .../connector-logto-sms/package.json | 2 +- .../connector-logto-social-demo/package.json | 2 +- .../connectors/connector-mailgun/package.json | 2 +- .../package.json | 2 +- .../connector-mock-email/package.json | 2 +- .../connector-mock-sms/package.json | 2 +- .../connector-mock-social/package.json | 2 +- .../connectors/connector-naver/package.json | 2 +- .../connectors/connector-oauth2/package.json | 2 +- .../connectors/connector-oidc/package.json | 2 +- .../connectors/connector-saml/package.json | 2 +- .../connector-sendgrid-email/package.json | 2 +- .../connectors/connector-smsaero/package.json | 2 +- .../connectors/connector-smtp/package.json | 2 +- .../connector-tencent-sms/package.json | 2 +- .../connector-twilio-sms/package.json | 2 +- .../connector-wechat-native/package.json | 2 +- .../connector-wechat-web/package.json | 2 +- .../connectors/connector-wecom/package.json | 2 +- packages/console/package.json | 2 +- packages/core/package.json | 2 +- packages/demo-app/package.json | 2 +- packages/experience/package.json | 2 +- packages/integration-tests/package.json | 2 +- packages/phrases-experience/package.json | 2 +- packages/phrases/package.json | 2 +- packages/schemas/package.json | 2 +- packages/toolkit/connector-kit/package.json | 2 +- packages/toolkit/core-kit/package.json | 2 +- packages/toolkit/language-kit/package.json | 2 +- pnpm-lock.yaml | 253 +++++++++--------- 48 files changed, 176 insertions(+), 171 deletions(-) diff --git a/packages/cli/package.json b/packages/cli/package.json index 572b0f8f5..23ce09425 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -68,7 +68,7 @@ "tar": "^7.0.0", "typescript": "^5.3.3", "yargs": "^17.6.0", - "zod": "^3.22.4" + "zod": "^3.23.8" }, "devDependencies": { "@silverhand/eslint-config": "6.0.1", diff --git a/packages/connectors/connector-alipay-native/package.json b/packages/connectors/connector-alipay-native/package.json index c7b3a562b..b988d62f7 100644 --- a/packages/connectors/connector-alipay-native/package.json +++ b/packages/connectors/connector-alipay-native/package.json @@ -10,7 +10,7 @@ "got": "^14.0.0", "iconv-lite": "^0.6.3", "snakecase-keys": "^8.0.1", - "zod": "^3.22.4" + "zod": "^3.23.8" }, "devDependencies": { "@rollup/plugin-commonjs": "^26.0.0", diff --git a/packages/connectors/connector-alipay-web/package.json b/packages/connectors/connector-alipay-web/package.json index 076666999..5e563347d 100644 --- a/packages/connectors/connector-alipay-web/package.json +++ b/packages/connectors/connector-alipay-web/package.json @@ -9,7 +9,7 @@ "got": "^14.0.0", "iconv-lite": "^0.6.3", "snakecase-keys": "^8.0.1", - "zod": "^3.22.4" + "zod": "^3.23.8" }, "devDependencies": { "@rollup/plugin-commonjs": "^26.0.0", diff --git a/packages/connectors/connector-aliyun-dm/package.json b/packages/connectors/connector-aliyun-dm/package.json index 1304c1ecd..2c99f154c 100644 --- a/packages/connectors/connector-aliyun-dm/package.json +++ b/packages/connectors/connector-aliyun-dm/package.json @@ -7,7 +7,7 @@ "@silverhand/essentials": "^2.9.1", "got": "^14.0.0", "snakecase-keys": "^8.0.1", - "zod": "^3.22.4" + "zod": "^3.23.8" }, "main": "./lib/index.js", "module": "./lib/index.js", diff --git a/packages/connectors/connector-aliyun-sms/package.json b/packages/connectors/connector-aliyun-sms/package.json index 408917679..eafcec10a 100644 --- a/packages/connectors/connector-aliyun-sms/package.json +++ b/packages/connectors/connector-aliyun-sms/package.json @@ -7,7 +7,7 @@ "@silverhand/essentials": "^2.9.1", "got": "^14.0.0", "snakecase-keys": "^8.0.1", - "zod": "^3.22.4" + "zod": "^3.23.8" }, "main": "./lib/index.js", "module": "./lib/index.js", diff --git a/packages/connectors/connector-apple/package.json b/packages/connectors/connector-apple/package.json index 4a71c704f..3a14101d7 100644 --- a/packages/connectors/connector-apple/package.json +++ b/packages/connectors/connector-apple/package.json @@ -9,7 +9,7 @@ "got": "^14.0.0", "jose": "^5.6.3", "snakecase-keys": "^8.0.1", - "zod": "^3.22.4" + "zod": "^3.23.8" }, "main": "./lib/index.js", "module": "./lib/index.js", diff --git a/packages/connectors/connector-aws-ses/package.json b/packages/connectors/connector-aws-ses/package.json index ee6907359..cf9af03a2 100644 --- a/packages/connectors/connector-aws-ses/package.json +++ b/packages/connectors/connector-aws-ses/package.json @@ -10,7 +10,7 @@ "@silverhand/essentials": "^2.9.1", "got": "^14.0.0", "snakecase-keys": "^8.0.1", - "zod": "^3.22.4" + "zod": "^3.23.8" }, "main": "./lib/index.js", "module": "./lib/index.js", diff --git a/packages/connectors/connector-azuread/package.json b/packages/connectors/connector-azuread/package.json index cbb02ed66..473ecb02f 100644 --- a/packages/connectors/connector-azuread/package.json +++ b/packages/connectors/connector-azuread/package.json @@ -9,7 +9,7 @@ "@silverhand/essentials": "^2.9.1", "got": "^14.0.0", "snakecase-keys": "^8.0.1", - "zod": "^3.22.4" + "zod": "^3.23.8" }, "main": "./lib/index.js", "module": "./lib/index.js", diff --git a/packages/connectors/connector-dingtalk-web/package.json b/packages/connectors/connector-dingtalk-web/package.json index 4b0724e40..18649dcf6 100644 --- a/packages/connectors/connector-dingtalk-web/package.json +++ b/packages/connectors/connector-dingtalk-web/package.json @@ -9,7 +9,7 @@ "got": "^14.0.0", "iconv-lite": "^0.6.3", "snakecase-keys": "^8.0.1", - "zod": "^3.22.4" + "zod": "^3.23.8" }, "devDependencies": { "@rollup/plugin-commonjs": "^26.0.0", diff --git a/packages/connectors/connector-discord/package.json b/packages/connectors/connector-discord/package.json index 31f71d801..86db3fc34 100644 --- a/packages/connectors/connector-discord/package.json +++ b/packages/connectors/connector-discord/package.json @@ -8,7 +8,7 @@ "@silverhand/essentials": "^2.9.1", "got": "^14.0.0", "snakecase-keys": "^8.0.1", - "zod": "^3.22.4" + "zod": "^3.23.8" }, "main": "./lib/index.js", "module": "./lib/index.js", diff --git a/packages/connectors/connector-facebook/package.json b/packages/connectors/connector-facebook/package.json index 6cced1741..ce27ef164 100644 --- a/packages/connectors/connector-facebook/package.json +++ b/packages/connectors/connector-facebook/package.json @@ -8,7 +8,7 @@ "@silverhand/essentials": "^2.9.1", "got": "^14.0.0", "snakecase-keys": "^8.0.1", - "zod": "^3.22.4" + "zod": "^3.23.8" }, "main": "./lib/index.js", "module": "./lib/index.js", diff --git a/packages/connectors/connector-feishu-web/package.json b/packages/connectors/connector-feishu-web/package.json index 29439aacb..0bde995cb 100644 --- a/packages/connectors/connector-feishu-web/package.json +++ b/packages/connectors/connector-feishu-web/package.json @@ -8,7 +8,7 @@ "@silverhand/essentials": "^2.9.1", "got": "^14.0.0", "snakecase-keys": "^8.0.1", - "zod": "^3.22.4" + "zod": "^3.23.8" }, "main": "./lib/index.js", "module": "./lib/index.js", diff --git a/packages/connectors/connector-github/package.json b/packages/connectors/connector-github/package.json index e16618dde..c5693f5f8 100644 --- a/packages/connectors/connector-github/package.json +++ b/packages/connectors/connector-github/package.json @@ -9,7 +9,7 @@ "ky": "^1.2.3", "query-string": "^9.0.0", "snakecase-keys": "^8.0.1", - "zod": "^3.22.4" + "zod": "^3.23.8" }, "main": "./lib/index.js", "module": "./lib/index.js", diff --git a/packages/connectors/connector-google/package.json b/packages/connectors/connector-google/package.json index 0e1ef23eb..014771a3c 100644 --- a/packages/connectors/connector-google/package.json +++ b/packages/connectors/connector-google/package.json @@ -9,7 +9,7 @@ "got": "^14.0.0", "jose": "^5.6.3", "snakecase-keys": "^8.0.1", - "zod": "^3.22.4" + "zod": "^3.23.8" }, "main": "./lib/index.js", "module": "./lib/index.js", diff --git a/packages/connectors/connector-huggingface/package.json b/packages/connectors/connector-huggingface/package.json index b87196f02..2abcbe5ff 100644 --- a/packages/connectors/connector-huggingface/package.json +++ b/packages/connectors/connector-huggingface/package.json @@ -8,7 +8,7 @@ "@logto/connector-oauth": "workspace:^1.3.1", "@silverhand/essentials": "^2.9.1", "ky": "^1.2.3", - "zod": "^3.22.4" + "zod": "^3.23.8" }, "main": "./lib/index.js", "module": "./lib/index.js", diff --git a/packages/connectors/connector-kakao/package.json b/packages/connectors/connector-kakao/package.json index 5a30d1897..117f9f957 100644 --- a/packages/connectors/connector-kakao/package.json +++ b/packages/connectors/connector-kakao/package.json @@ -8,7 +8,7 @@ "@silverhand/essentials": "^2.9.1", "got": "^14.0.0", "snakecase-keys": "^8.0.1", - "zod": "^3.22.4" + "zod": "^3.23.8" }, "main": "./lib/index.js", "module": "./lib/index.js", diff --git a/packages/connectors/connector-logto-email/package.json b/packages/connectors/connector-logto-email/package.json index 925df9aa4..880eacea9 100644 --- a/packages/connectors/connector-logto-email/package.json +++ b/packages/connectors/connector-logto-email/package.json @@ -8,7 +8,7 @@ "@silverhand/essentials": "^2.9.1", "got": "^14.0.0", "snakecase-keys": "^8.0.1", - "zod": "^3.22.4" + "zod": "^3.23.8" }, "main": "./lib/index.js", "module": "./lib/index.js", diff --git a/packages/connectors/connector-logto-sms/package.json b/packages/connectors/connector-logto-sms/package.json index bcec96f2b..bc84b6c8e 100644 --- a/packages/connectors/connector-logto-sms/package.json +++ b/packages/connectors/connector-logto-sms/package.json @@ -8,7 +8,7 @@ "@silverhand/essentials": "^2.9.1", "got": "^14.0.0", "snakecase-keys": "^8.0.1", - "zod": "^3.22.4" + "zod": "^3.23.8" }, "main": "./lib/index.js", "module": "./lib/index.js", diff --git a/packages/connectors/connector-logto-social-demo/package.json b/packages/connectors/connector-logto-social-demo/package.json index 05764d0df..b730cbe7e 100644 --- a/packages/connectors/connector-logto-social-demo/package.json +++ b/packages/connectors/connector-logto-social-demo/package.json @@ -8,7 +8,7 @@ "@silverhand/essentials": "^2.9.1", "got": "^14.0.0", "snakecase-keys": "^8.0.1", - "zod": "^3.22.4" + "zod": "^3.23.8" }, "main": "./lib/index.js", "module": "./lib/index.js", diff --git a/packages/connectors/connector-mailgun/package.json b/packages/connectors/connector-mailgun/package.json index d4d9cd80f..405a50119 100644 --- a/packages/connectors/connector-mailgun/package.json +++ b/packages/connectors/connector-mailgun/package.json @@ -8,7 +8,7 @@ "@silverhand/essentials": "^2.9.1", "got": "^14.0.0", "snakecase-keys": "^8.0.1", - "zod": "^3.22.4" + "zod": "^3.23.8" }, "main": "./lib/index.js", "module": "./lib/index.js", diff --git a/packages/connectors/connector-mock-email-alternative/package.json b/packages/connectors/connector-mock-email-alternative/package.json index 8eb74883a..ac83e91b0 100644 --- a/packages/connectors/connector-mock-email-alternative/package.json +++ b/packages/connectors/connector-mock-email-alternative/package.json @@ -8,7 +8,7 @@ "@silverhand/essentials": "^2.9.1", "got": "^14.0.0", "snakecase-keys": "^8.0.1", - "zod": "^3.22.4" + "zod": "^3.23.8" }, "scripts": { "precommit": "lint-staged", diff --git a/packages/connectors/connector-mock-email/package.json b/packages/connectors/connector-mock-email/package.json index 6320c05c1..378093128 100644 --- a/packages/connectors/connector-mock-email/package.json +++ b/packages/connectors/connector-mock-email/package.json @@ -8,7 +8,7 @@ "@silverhand/essentials": "^2.9.1", "got": "^14.0.0", "snakecase-keys": "^8.0.1", - "zod": "^3.22.4" + "zod": "^3.23.8" }, "scripts": { "precommit": "lint-staged", diff --git a/packages/connectors/connector-mock-sms/package.json b/packages/connectors/connector-mock-sms/package.json index d1ca73d04..0601596e0 100644 --- a/packages/connectors/connector-mock-sms/package.json +++ b/packages/connectors/connector-mock-sms/package.json @@ -8,7 +8,7 @@ "@silverhand/essentials": "^2.9.1", "got": "^14.0.0", "snakecase-keys": "^8.0.1", - "zod": "^3.22.4" + "zod": "^3.23.8" }, "scripts": { "precommit": "lint-staged", diff --git a/packages/connectors/connector-mock-social/package.json b/packages/connectors/connector-mock-social/package.json index 205147858..a74df4b40 100644 --- a/packages/connectors/connector-mock-social/package.json +++ b/packages/connectors/connector-mock-social/package.json @@ -8,7 +8,7 @@ "@silverhand/essentials": "^2.9.1", "got": "^14.0.0", "snakecase-keys": "^8.0.1", - "zod": "^3.22.4" + "zod": "^3.23.8" }, "scripts": { "precommit": "lint-staged", diff --git a/packages/connectors/connector-naver/package.json b/packages/connectors/connector-naver/package.json index 565e5140a..e3abd3f5a 100644 --- a/packages/connectors/connector-naver/package.json +++ b/packages/connectors/connector-naver/package.json @@ -8,7 +8,7 @@ "@silverhand/essentials": "^2.9.1", "got": "^14.0.0", "snakecase-keys": "^8.0.1", - "zod": "^3.22.4" + "zod": "^3.23.8" }, "main": "./lib/index.js", "module": "./lib/index.js", diff --git a/packages/connectors/connector-oauth2/package.json b/packages/connectors/connector-oauth2/package.json index db8852464..c55cc1b6b 100644 --- a/packages/connectors/connector-oauth2/package.json +++ b/packages/connectors/connector-oauth2/package.json @@ -11,7 +11,7 @@ "ky": "^1.2.3", "query-string": "^9.0.0", "snakecase-keys": "^8.0.1", - "zod": "^3.22.4" + "zod": "^3.23.8" }, "main": "./lib/index.js", "module": "./lib/index.js", diff --git a/packages/connectors/connector-oidc/package.json b/packages/connectors/connector-oidc/package.json index 85c97e3f2..5a78b4c73 100644 --- a/packages/connectors/connector-oidc/package.json +++ b/packages/connectors/connector-oidc/package.json @@ -11,7 +11,7 @@ "ky": "^1.2.3", "nanoid": "^5.0.1", "snakecase-keys": "^8.0.1", - "zod": "^3.22.4" + "zod": "^3.23.8" }, "main": "./lib/index.js", "module": "./lib/index.js", diff --git a/packages/connectors/connector-saml/package.json b/packages/connectors/connector-saml/package.json index ffd5649c8..81229f661 100644 --- a/packages/connectors/connector-saml/package.json +++ b/packages/connectors/connector-saml/package.json @@ -10,7 +10,7 @@ "got": "^14.0.0", "samlify": "2.8.11", "snakecase-keys": "^8.0.1", - "zod": "^3.22.4" + "zod": "^3.23.8" }, "main": "./lib/index.js", "module": "./lib/index.js", diff --git a/packages/connectors/connector-sendgrid-email/package.json b/packages/connectors/connector-sendgrid-email/package.json index 9aa619162..fd484dbb9 100644 --- a/packages/connectors/connector-sendgrid-email/package.json +++ b/packages/connectors/connector-sendgrid-email/package.json @@ -8,7 +8,7 @@ "@silverhand/essentials": "^2.9.1", "got": "^14.0.0", "snakecase-keys": "^8.0.1", - "zod": "^3.22.4" + "zod": "^3.23.8" }, "main": "./lib/index.js", "module": "./lib/index.js", diff --git a/packages/connectors/connector-smsaero/package.json b/packages/connectors/connector-smsaero/package.json index 5756aa883..ff86413d4 100644 --- a/packages/connectors/connector-smsaero/package.json +++ b/packages/connectors/connector-smsaero/package.json @@ -8,7 +8,7 @@ "@silverhand/essentials": "^2.9.1", "got": "^14.0.0", "snakecase-keys": "^8.0.1", - "zod": "^3.22.4" + "zod": "^3.23.8" }, "main": "./lib/index.js", "module": "./lib/index.js", diff --git a/packages/connectors/connector-smtp/package.json b/packages/connectors/connector-smtp/package.json index b626bf815..63e5289f2 100644 --- a/packages/connectors/connector-smtp/package.json +++ b/packages/connectors/connector-smtp/package.json @@ -9,7 +9,7 @@ "got": "^14.0.0", "nodemailer": "^6.9.9", "snakecase-keys": "^8.0.1", - "zod": "^3.22.4" + "zod": "^3.23.8" }, "devDependencies": { "@rollup/plugin-commonjs": "^26.0.0", diff --git a/packages/connectors/connector-tencent-sms/package.json b/packages/connectors/connector-tencent-sms/package.json index 49678b1a5..3a838cb26 100644 --- a/packages/connectors/connector-tencent-sms/package.json +++ b/packages/connectors/connector-tencent-sms/package.json @@ -8,7 +8,7 @@ "@silverhand/essentials": "^2.9.1", "got": "^14.0.0", "snakecase-keys": "^8.0.1", - "zod": "^3.22.4" + "zod": "^3.23.8" }, "main": "./lib/index.js", "module": "./lib/index.js", diff --git a/packages/connectors/connector-twilio-sms/package.json b/packages/connectors/connector-twilio-sms/package.json index 3964f6ac8..91baf1c68 100644 --- a/packages/connectors/connector-twilio-sms/package.json +++ b/packages/connectors/connector-twilio-sms/package.json @@ -8,7 +8,7 @@ "@silverhand/essentials": "^2.9.1", "got": "^14.0.0", "snakecase-keys": "^8.0.1", - "zod": "^3.22.4" + "zod": "^3.23.8" }, "main": "./lib/index.js", "module": "./lib/index.js", diff --git a/packages/connectors/connector-wechat-native/package.json b/packages/connectors/connector-wechat-native/package.json index 77b0e1f98..b4722f44e 100644 --- a/packages/connectors/connector-wechat-native/package.json +++ b/packages/connectors/connector-wechat-native/package.json @@ -8,7 +8,7 @@ "@silverhand/essentials": "^2.9.1", "got": "^14.0.0", "snakecase-keys": "^8.0.1", - "zod": "^3.22.4" + "zod": "^3.23.8" }, "main": "./lib/index.js", "module": "./lib/index.js", diff --git a/packages/connectors/connector-wechat-web/package.json b/packages/connectors/connector-wechat-web/package.json index 6a7908efa..5c47c436e 100644 --- a/packages/connectors/connector-wechat-web/package.json +++ b/packages/connectors/connector-wechat-web/package.json @@ -8,7 +8,7 @@ "@silverhand/essentials": "^2.9.1", "got": "^14.0.0", "snakecase-keys": "^8.0.1", - "zod": "^3.22.4" + "zod": "^3.23.8" }, "main": "./lib/index.js", "module": "./lib/index.js", diff --git a/packages/connectors/connector-wecom/package.json b/packages/connectors/connector-wecom/package.json index ba26fbc62..f25b6d2b3 100644 --- a/packages/connectors/connector-wecom/package.json +++ b/packages/connectors/connector-wecom/package.json @@ -8,7 +8,7 @@ "@silverhand/essentials": "^2.9.1", "got": "^14.0.0", "snakecase-keys": "^8.0.1", - "zod": "^3.22.4" + "zod": "^3.23.8" }, "main": "./lib/index.js", "module": "./lib/index.js", diff --git a/packages/console/package.json b/packages/console/package.json index 1049dc20d..83eed75a5 100644 --- a/packages/console/package.json +++ b/packages/console/package.json @@ -124,7 +124,7 @@ "ts-node": "^10.9.2", "tslib": "^2.4.1", "typescript": "^5.3.3", - "zod": "^3.22.4", + "zod": "^3.23.8", "zod-to-ts": "^1.2.0" }, "engines": { diff --git a/packages/core/package.json b/packages/core/package.json index 05cbc87ff..e6eecbcd4 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -90,7 +90,7 @@ "semver": "^7.3.8", "snake-case": "^4.0.0", "snakecase-keys": "^8.0.1", - "zod": "^3.22.4" + "zod": "^3.23.8" }, "devDependencies": { "@logto/cloud": "0.2.5-3046fa6", diff --git a/packages/demo-app/package.json b/packages/demo-app/package.json index 7f9899108..0546f88f8 100644 --- a/packages/demo-app/package.json +++ b/packages/demo-app/package.json @@ -47,7 +47,7 @@ "react-i18next": "^12.3.1", "stylelint": "^15.0.0", "typescript": "^5.3.3", - "zod": "^3.22.4" + "zod": "^3.23.8" }, "engines": { "node": "^20.9.0" diff --git a/packages/experience/package.json b/packages/experience/package.json index 72481759d..46146440b 100644 --- a/packages/experience/package.json +++ b/packages/experience/package.json @@ -90,7 +90,7 @@ "tiny-cookie": "^2.4.1", "typescript": "^5.3.3", "use-debounced-loader": "^0.1.1", - "zod": "^3.22.4" + "zod": "^3.23.8" }, "engines": { "node": "^20.9.0" diff --git a/packages/integration-tests/package.json b/packages/integration-tests/package.json index 984fb7eed..649d8264d 100644 --- a/packages/integration-tests/package.json +++ b/packages/integration-tests/package.json @@ -48,7 +48,7 @@ "prettier": "^3.0.0", "puppeteer": "^22.6.5", "typescript": "^5.3.3", - "zod": "^3.22.4" + "zod": "^3.23.8" }, "engines": { "node": "^20.9.0" diff --git a/packages/phrases-experience/package.json b/packages/phrases-experience/package.json index 9bf7ce13a..2d3355421 100644 --- a/packages/phrases-experience/package.json +++ b/packages/phrases-experience/package.json @@ -38,7 +38,7 @@ "@silverhand/essentials": "^2.9.1" }, "peerDependencies": { - "zod": "^3.22.4" + "zod": "^3.23.8" }, "devDependencies": { "@silverhand/eslint-config": "6.0.1", diff --git a/packages/phrases/package.json b/packages/phrases/package.json index 8d4963278..dad5dab76 100644 --- a/packages/phrases/package.json +++ b/packages/phrases/package.json @@ -37,7 +37,7 @@ "@silverhand/essentials": "^2.9.1" }, "peerDependencies": { - "zod": "^3.22.4" + "zod": "^3.23.8" }, "devDependencies": { "@silverhand/eslint-config": "6.0.1", diff --git a/packages/schemas/package.json b/packages/schemas/package.json index 173a793f8..457d271dc 100644 --- a/packages/schemas/package.json +++ b/packages/schemas/package.json @@ -88,6 +88,6 @@ "nanoid": "^5.0.1" }, "peerDependencies": { - "zod": "^3.22.4" + "zod": "^3.23.8" } } diff --git a/packages/toolkit/connector-kit/package.json b/packages/toolkit/connector-kit/package.json index 08deba5cb..39c61e1b0 100644 --- a/packages/toolkit/connector-kit/package.json +++ b/packages/toolkit/connector-kit/package.json @@ -40,7 +40,7 @@ "@withtyped/server": "^0.13.6" }, "optionalDependencies": { - "zod": "^3.22.4" + "zod": "^3.23.8" }, "devDependencies": { "@silverhand/eslint-config": "6.0.1", diff --git a/packages/toolkit/core-kit/package.json b/packages/toolkit/core-kit/package.json index cf8118822..38b0b78f1 100644 --- a/packages/toolkit/core-kit/package.json +++ b/packages/toolkit/core-kit/package.json @@ -51,7 +51,7 @@ "color": "^4.2.3" }, "optionalDependencies": { - "zod": "^3.22.4" + "zod": "^3.23.8" }, "devDependencies": { "@silverhand/eslint-config": "6.0.1", diff --git a/packages/toolkit/language-kit/package.json b/packages/toolkit/language-kit/package.json index 631d95327..d218eeefb 100644 --- a/packages/toolkit/language-kit/package.json +++ b/packages/toolkit/language-kit/package.json @@ -33,7 +33,7 @@ "node": "^20.9.0" }, "optionalDependencies": { - "zod": "^3.22.4" + "zod": "^3.23.8" }, "devDependencies": { "@silverhand/eslint-config": "6.0.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 9de320e45..81178076f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -161,8 +161,8 @@ importers: specifier: ^17.6.0 version: 17.6.0 zod: - specifier: ^3.22.4 - version: 3.22.4 + specifier: ^3.23.8 + version: 3.23.8 devDependencies: '@silverhand/eslint-config': specifier: 6.0.1 @@ -193,7 +193,7 @@ importers: version: 1.4.0(vitest@1.4.0(@types/node@20.10.4)(happy-dom@14.12.3)(jsdom@20.0.2)(sass@1.56.1)) '@withtyped/server': specifier: ^0.13.6 - version: 0.13.6(zod@3.22.4) + version: 0.13.6(zod@3.23.8) eslint: specifier: ^8.56.0 version: 8.57.0 @@ -231,8 +231,8 @@ importers: specifier: ^8.0.1 version: 8.0.1 zod: - specifier: ^3.22.4 - version: 3.22.4 + specifier: ^3.23.8 + version: 3.23.8 devDependencies: '@rollup/plugin-commonjs': specifier: ^26.0.0 @@ -313,8 +313,8 @@ importers: specifier: ^8.0.1 version: 8.0.1 zod: - specifier: ^3.22.4 - version: 3.22.4 + specifier: ^3.23.8 + version: 3.23.8 devDependencies: '@rollup/plugin-commonjs': specifier: ^26.0.0 @@ -389,8 +389,8 @@ importers: specifier: ^8.0.1 version: 8.0.1 zod: - specifier: ^3.22.4 - version: 3.22.4 + specifier: ^3.23.8 + version: 3.23.8 devDependencies: '@rollup/plugin-commonjs': specifier: ^26.0.0 @@ -462,8 +462,8 @@ importers: specifier: ^8.0.1 version: 8.0.1 zod: - specifier: ^3.22.4 - version: 3.22.4 + specifier: ^3.23.8 + version: 3.23.8 devDependencies: '@rollup/plugin-commonjs': specifier: ^26.0.0 @@ -541,8 +541,8 @@ importers: specifier: ^8.0.1 version: 8.0.1 zod: - specifier: ^3.22.4 - version: 3.22.4 + specifier: ^3.23.8 + version: 3.23.8 devDependencies: '@rollup/plugin-commonjs': specifier: ^26.0.0 @@ -620,8 +620,8 @@ importers: specifier: ^8.0.1 version: 8.0.1 zod: - specifier: ^3.22.4 - version: 3.22.4 + specifier: ^3.23.8 + version: 3.23.8 devDependencies: '@rollup/plugin-commonjs': specifier: ^26.0.0 @@ -696,8 +696,8 @@ importers: specifier: ^8.0.1 version: 8.0.1 zod: - specifier: ^3.22.4 - version: 3.22.4 + specifier: ^3.23.8 + version: 3.23.8 devDependencies: '@rollup/plugin-commonjs': specifier: ^26.0.0 @@ -775,8 +775,8 @@ importers: specifier: ^8.0.1 version: 8.0.1 zod: - specifier: ^3.22.4 - version: 3.22.4 + specifier: ^3.23.8 + version: 3.23.8 devDependencies: '@rollup/plugin-commonjs': specifier: ^26.0.0 @@ -851,8 +851,8 @@ importers: specifier: ^8.0.1 version: 8.0.1 zod: - specifier: ^3.22.4 - version: 3.22.4 + specifier: ^3.23.8 + version: 3.23.8 devDependencies: '@rollup/plugin-commonjs': specifier: ^26.0.0 @@ -924,8 +924,8 @@ importers: specifier: ^8.0.1 version: 8.0.1 zod: - specifier: ^3.22.4 - version: 3.22.4 + specifier: ^3.23.8 + version: 3.23.8 devDependencies: '@rollup/plugin-commonjs': specifier: ^26.0.0 @@ -997,8 +997,8 @@ importers: specifier: ^8.0.1 version: 8.0.1 zod: - specifier: ^3.22.4 - version: 3.22.4 + specifier: ^3.23.8 + version: 3.23.8 devDependencies: '@rollup/plugin-commonjs': specifier: ^26.0.0 @@ -1073,8 +1073,8 @@ importers: specifier: ^8.0.1 version: 8.0.1 zod: - specifier: ^3.22.4 - version: 3.22.4 + specifier: ^3.23.8 + version: 3.23.8 devDependencies: '@rollup/plugin-commonjs': specifier: ^26.0.0 @@ -1149,8 +1149,8 @@ importers: specifier: ^8.0.1 version: 8.0.1 zod: - specifier: ^3.22.4 - version: 3.22.4 + specifier: ^3.23.8 + version: 3.23.8 devDependencies: '@rollup/plugin-commonjs': specifier: ^26.0.0 @@ -1222,8 +1222,8 @@ importers: specifier: ^1.2.3 version: 1.2.3 zod: - specifier: ^3.22.4 - version: 3.22.4 + specifier: ^3.23.8 + version: 3.23.8 devDependencies: '@rollup/plugin-commonjs': specifier: ^26.0.0 @@ -1295,8 +1295,8 @@ importers: specifier: ^8.0.1 version: 8.0.1 zod: - specifier: ^3.22.4 - version: 3.22.4 + specifier: ^3.23.8 + version: 3.23.8 devDependencies: '@rollup/plugin-commonjs': specifier: ^26.0.0 @@ -1368,12 +1368,12 @@ importers: specifier: ^8.0.1 version: 8.0.1 zod: - specifier: ^3.22.4 - version: 3.22.4 + specifier: ^3.23.8 + version: 3.23.8 devDependencies: '@logto/cloud': specifier: 0.2.5-a7eedce - version: 0.2.5-a7eedce(zod@3.22.4) + version: 0.2.5-a7eedce(zod@3.23.8) '@rollup/plugin-commonjs': specifier: ^26.0.0 version: 26.0.1(rollup@4.12.0) @@ -1444,8 +1444,8 @@ importers: specifier: ^8.0.1 version: 8.0.1 zod: - specifier: ^3.22.4 - version: 3.22.4 + specifier: ^3.23.8 + version: 3.23.8 devDependencies: '@rollup/plugin-commonjs': specifier: ^26.0.0 @@ -1517,8 +1517,8 @@ importers: specifier: ^8.0.1 version: 8.0.1 zod: - specifier: ^3.22.4 - version: 3.22.4 + specifier: ^3.23.8 + version: 3.23.8 devDependencies: '@rollup/plugin-commonjs': specifier: ^26.0.0 @@ -1590,8 +1590,8 @@ importers: specifier: ^8.0.1 version: 8.0.1 zod: - specifier: ^3.22.4 - version: 3.22.4 + specifier: ^3.23.8 + version: 3.23.8 devDependencies: '@rollup/plugin-commonjs': specifier: ^26.0.0 @@ -1663,8 +1663,8 @@ importers: specifier: ^8.0.1 version: 8.0.1 zod: - specifier: ^3.22.4 - version: 3.22.4 + specifier: ^3.23.8 + version: 3.23.8 devDependencies: '@rollup/plugin-commonjs': specifier: ^26.0.0 @@ -1736,8 +1736,8 @@ importers: specifier: ^8.0.1 version: 8.0.1 zod: - specifier: ^3.22.4 - version: 3.22.4 + specifier: ^3.23.8 + version: 3.23.8 devDependencies: '@rollup/plugin-commonjs': specifier: ^26.0.0 @@ -1809,8 +1809,8 @@ importers: specifier: ^8.0.1 version: 8.0.1 zod: - specifier: ^3.22.4 - version: 3.22.4 + specifier: ^3.23.8 + version: 3.23.8 devDependencies: '@rollup/plugin-commonjs': specifier: ^26.0.0 @@ -1882,8 +1882,8 @@ importers: specifier: ^8.0.1 version: 8.0.1 zod: - specifier: ^3.22.4 - version: 3.22.4 + specifier: ^3.23.8 + version: 3.23.8 devDependencies: '@rollup/plugin-commonjs': specifier: ^26.0.0 @@ -1955,8 +1955,8 @@ importers: specifier: ^8.0.1 version: 8.0.1 zod: - specifier: ^3.22.4 - version: 3.22.4 + specifier: ^3.23.8 + version: 3.23.8 devDependencies: '@rollup/plugin-commonjs': specifier: ^26.0.0 @@ -2037,8 +2037,8 @@ importers: specifier: ^8.0.1 version: 8.0.1 zod: - specifier: ^3.22.4 - version: 3.22.4 + specifier: ^3.23.8 + version: 3.23.8 devDependencies: '@rollup/plugin-commonjs': specifier: ^26.0.0 @@ -2122,8 +2122,8 @@ importers: specifier: ^8.0.1 version: 8.0.1 zod: - specifier: ^3.22.4 - version: 3.22.4 + specifier: ^3.23.8 + version: 3.23.8 devDependencies: '@rollup/plugin-commonjs': specifier: ^26.0.0 @@ -2201,8 +2201,8 @@ importers: specifier: ^8.0.1 version: 8.0.1 zod: - specifier: ^3.22.4 - version: 3.22.4 + specifier: ^3.23.8 + version: 3.23.8 devDependencies: '@rollup/plugin-commonjs': specifier: ^26.0.0 @@ -2274,8 +2274,8 @@ importers: specifier: ^8.0.1 version: 8.0.1 zod: - specifier: ^3.22.4 - version: 3.22.4 + specifier: ^3.23.8 + version: 3.23.8 devDependencies: '@rollup/plugin-commonjs': specifier: ^26.0.0 @@ -2347,8 +2347,8 @@ importers: specifier: ^8.0.1 version: 8.0.1 zod: - specifier: ^3.22.4 - version: 3.22.4 + specifier: ^3.23.8 + version: 3.23.8 devDependencies: '@rollup/plugin-commonjs': specifier: ^26.0.0 @@ -2423,8 +2423,8 @@ importers: specifier: ^8.0.1 version: 8.0.1 zod: - specifier: ^3.22.4 - version: 3.22.4 + specifier: ^3.23.8 + version: 3.23.8 devDependencies: '@rollup/plugin-commonjs': specifier: ^26.0.0 @@ -2499,8 +2499,8 @@ importers: specifier: ^8.0.1 version: 8.0.1 zod: - specifier: ^3.22.4 - version: 3.22.4 + specifier: ^3.23.8 + version: 3.23.8 devDependencies: '@rollup/plugin-commonjs': specifier: ^26.0.0 @@ -2572,8 +2572,8 @@ importers: specifier: ^8.0.1 version: 8.0.1 zod: - specifier: ^3.22.4 - version: 3.22.4 + specifier: ^3.23.8 + version: 3.23.8 devDependencies: '@rollup/plugin-commonjs': specifier: ^26.0.0 @@ -2645,8 +2645,8 @@ importers: specifier: ^8.0.1 version: 8.0.1 zod: - specifier: ^3.22.4 - version: 3.22.4 + specifier: ^3.23.8 + version: 3.23.8 devDependencies: '@rollup/plugin-commonjs': specifier: ^26.0.0 @@ -2718,8 +2718,8 @@ importers: specifier: ^8.0.1 version: 8.0.1 zod: - specifier: ^3.22.4 - version: 3.22.4 + specifier: ^3.23.8 + version: 3.23.8 devDependencies: '@rollup/plugin-commonjs': specifier: ^26.0.0 @@ -2791,8 +2791,8 @@ importers: specifier: ^8.0.1 version: 8.0.1 zod: - specifier: ^3.22.4 - version: 3.22.4 + specifier: ^3.23.8 + version: 3.23.8 devDependencies: '@rollup/plugin-commonjs': specifier: ^26.0.0 @@ -2859,7 +2859,7 @@ importers: version: 29.5.0 '@logto/cloud': specifier: 0.2.5-a7eedce - version: 0.2.5-a7eedce(zod@3.22.4) + version: 0.2.5-a7eedce(zod@3.23.8) '@logto/connector-kit': specifier: workspace:^4.0.0 version: link:../toolkit/connector-kit @@ -2964,7 +2964,7 @@ importers: version: 15.5.1 '@withtyped/client': specifier: ^0.8.7 - version: 0.8.7(zod@3.22.4) + version: 0.8.7(zod@3.23.8) buffer: specifier: ^6.0.0 version: 6.0.3 @@ -3149,11 +3149,11 @@ importers: specifier: ^5.3.3 version: 5.3.3 zod: - specifier: ^3.22.4 - version: 3.22.4 + specifier: ^3.23.8 + version: 3.23.8 zod-to-ts: specifier: ^1.2.0 - version: 1.2.0(typescript@5.3.3)(zod@3.22.4) + version: 1.2.0(typescript@5.3.3)(zod@3.23.8) packages/core: dependencies: @@ -3222,7 +3222,7 @@ importers: version: 10.0.0 '@withtyped/client': specifier: ^0.8.7 - version: 0.8.7(zod@3.22.4) + version: 0.8.7(zod@3.23.8) camelcase: specifier: ^8.0.0 version: 8.0.0 @@ -3353,12 +3353,12 @@ importers: specifier: ^8.0.1 version: 8.0.1 zod: - specifier: ^3.22.4 - version: 3.22.4 + specifier: ^3.23.8 + version: 3.23.8 devDependencies: '@logto/cloud': specifier: 0.2.5-3046fa6 - version: 0.2.5-3046fa6(zod@3.22.4) + version: 0.2.5-3046fa6(zod@3.23.8) '@silverhand/eslint-config': specifier: 6.0.1 version: 6.0.1(eslint@8.57.0)(prettier@3.0.0)(typescript@5.3.3) @@ -3546,8 +3546,8 @@ importers: specifier: ^5.3.3 version: 5.3.3 zod: - specifier: ^3.22.4 - version: 3.22.4 + specifier: ^3.23.8 + version: 3.23.8 packages/experience: devDependencies: @@ -3762,8 +3762,8 @@ importers: specifier: ^0.1.1 version: 0.1.1(react@18.2.0) zod: - specifier: ^3.22.4 - version: 3.22.4 + specifier: ^3.23.8 + version: 3.23.8 packages/integration-tests: dependencies: @@ -3853,8 +3853,8 @@ importers: specifier: ^5.3.3 version: 5.3.3 zod: - specifier: ^3.22.4 - version: 3.22.4 + specifier: ^3.23.8 + version: 3.23.8 packages/phrases: dependencies: @@ -3865,8 +3865,8 @@ importers: specifier: ^2.9.1 version: 2.9.1 zod: - specifier: ^3.22.4 - version: 3.22.4 + specifier: ^3.23.8 + version: 3.23.8 devDependencies: '@silverhand/eslint-config': specifier: 6.0.1 @@ -3899,8 +3899,8 @@ importers: specifier: ^2.9.1 version: 2.9.1 zod: - specifier: ^3.22.4 - version: 3.22.4 + specifier: ^3.23.8 + version: 3.23.8 devDependencies: '@silverhand/eslint-config': specifier: 6.0.1 @@ -3946,13 +3946,13 @@ importers: version: link:../shared '@withtyped/server': specifier: ^0.13.6 - version: 0.13.6(zod@3.22.4) + version: 0.13.6(zod@3.23.8) nanoid: specifier: ^5.0.1 version: 5.0.7 zod: - specifier: ^3.22.4 - version: 3.22.4 + specifier: ^3.23.8 + version: 3.23.8 devDependencies: '@silverhand/eslint-config': specifier: 6.0.1 @@ -4065,14 +4065,14 @@ importers: version: 2.9.1 '@withtyped/client': specifier: ^0.8.7 - version: 0.8.7(zod@3.22.4) + version: 0.8.7(zod@3.23.8) '@withtyped/server': specifier: ^0.13.6 - version: 0.13.6(zod@3.22.4) + version: 0.13.6(zod@3.23.8) optionalDependencies: zod: - specifier: ^3.22.4 - version: 3.22.4 + specifier: ^3.23.8 + version: 3.23.8 devDependencies: '@silverhand/eslint-config': specifier: 6.0.1 @@ -4118,8 +4118,8 @@ importers: version: 4.2.3 optionalDependencies: zod: - specifier: ^3.22.4 - version: 3.22.4 + specifier: ^3.23.8 + version: 3.23.8 devDependencies: '@silverhand/eslint-config': specifier: 6.0.1 @@ -4170,8 +4170,8 @@ importers: packages/toolkit/language-kit: optionalDependencies: zod: - specifier: ^3.22.4 - version: 3.22.4 + specifier: ^3.23.8 + version: 3.23.8 devDependencies: '@silverhand/eslint-config': specifier: 6.0.1 @@ -13165,6 +13165,9 @@ packages: zod@3.22.4: resolution: {integrity: sha512-iC+8Io04lddc+mVqQ9AZ7OQ2MrUKGN+oIQyq1vemgt46jwCwLfhq7/pwnBnNXXXZb8VTVLKwp9EDkx+ryxIWmg==} + zod@3.23.8: + resolution: {integrity: sha512-XBx9AXhXktjUqnepgTiE5flcKIYWi/rme0Eaj+5Y0lftuGBq+jyRu/md4WnuxqgP1ubdpNCsYEYPxrzVHD8d6g==} + zwitch@2.0.2: resolution: {integrity: sha512-JZxotl7SxAJH0j7dN4pxsTV6ZLXoLdGME+PsjkL/DaBrVryK9kTGq06GfKrwcSOqypP+fdXGoCHE36b99fWVoA==} @@ -14882,17 +14885,17 @@ snapshots: camelcase-keys: 7.0.2 jose: 5.6.3 - '@logto/cloud@0.2.5-3046fa6(zod@3.22.4)': + '@logto/cloud@0.2.5-3046fa6(zod@3.23.8)': dependencies: '@silverhand/essentials': 2.9.1 - '@withtyped/server': 0.13.6(zod@3.22.4) + '@withtyped/server': 0.13.6(zod@3.23.8) transitivePeerDependencies: - zod - '@logto/cloud@0.2.5-a7eedce(zod@3.22.4)': + '@logto/cloud@0.2.5-a7eedce(zod@3.23.8)': dependencies: '@silverhand/essentials': 2.9.1 - '@withtyped/server': 0.13.6(zod@3.22.4) + '@withtyped/server': 0.13.6(zod@3.23.8) transitivePeerDependencies: - zod @@ -15951,10 +15954,10 @@ snapshots: eslint-config-prettier: 9.1.0(eslint@8.57.0) eslint-config-xo: 0.44.0(eslint@8.57.0) eslint-config-xo-typescript: 4.0.0(@typescript-eslint/eslint-plugin@7.7.0(@typescript-eslint/parser@7.7.0(eslint@8.57.0)(typescript@5.3.3))(eslint@8.57.0)(typescript@5.3.3))(@typescript-eslint/parser@7.7.0(eslint@8.57.0)(typescript@5.3.3))(eslint@8.57.0)(typescript@5.3.3) - eslint-import-resolver-typescript: 3.6.1(@typescript-eslint/parser@7.7.0(eslint@8.57.0)(typescript@5.3.3))(eslint-plugin-import@2.29.1(@typescript-eslint/parser@7.7.0(eslint@8.57.0)(typescript@5.3.3))(eslint@8.57.0))(eslint@8.57.0) + eslint-import-resolver-typescript: 3.6.1(@typescript-eslint/parser@7.7.0(eslint@8.57.0)(typescript@5.3.3))(eslint-plugin-import@2.29.1)(eslint@8.57.0) eslint-plugin-consistent-default-export-name: 0.0.15 eslint-plugin-eslint-comments: 3.2.0(eslint@8.57.0) - eslint-plugin-import: 2.29.1(@typescript-eslint/parser@7.7.0(eslint@8.57.0)(typescript@5.3.3))(eslint-import-resolver-typescript@3.6.1(@typescript-eslint/parser@7.7.0(eslint@8.57.0)(typescript@5.3.3))(eslint-plugin-import@2.29.1(@typescript-eslint/parser@7.7.0(eslint@8.57.0)(typescript@5.3.3))(eslint@8.57.0))(eslint@8.57.0))(eslint@8.57.0) + eslint-plugin-import: 2.29.1(@typescript-eslint/parser@7.7.0(eslint@8.57.0)(typescript@5.3.3))(eslint-import-resolver-typescript@3.6.1)(eslint@8.57.0) eslint-plugin-n: 17.2.1(eslint@8.57.0) eslint-plugin-no-use-extend-native: 0.5.0 eslint-plugin-prettier: 5.1.3(eslint-config-prettier@9.1.0(eslint@8.57.0))(eslint@8.57.0)(prettier@3.0.0) @@ -17134,19 +17137,19 @@ snapshots: loupe: 2.3.7 pretty-format: 29.7.0 - '@withtyped/client@0.8.7(zod@3.22.4)': + '@withtyped/client@0.8.7(zod@3.23.8)': dependencies: - '@withtyped/server': 0.13.6(zod@3.22.4) + '@withtyped/server': 0.13.6(zod@3.23.8) '@withtyped/shared': 0.2.2 transitivePeerDependencies: - zod - '@withtyped/server@0.13.6(zod@3.22.4)': + '@withtyped/server@0.13.6(zod@3.23.8)': dependencies: '@silverhand/essentials': 2.9.1 '@withtyped/shared': 0.2.2 nanoid: 4.0.2 - zod: 3.22.4 + zod: 3.23.8 '@withtyped/shared@0.2.2': {} @@ -18782,13 +18785,13 @@ snapshots: transitivePeerDependencies: - supports-color - eslint-import-resolver-typescript@3.6.1(@typescript-eslint/parser@7.7.0(eslint@8.57.0)(typescript@5.3.3))(eslint-plugin-import@2.29.1(@typescript-eslint/parser@7.7.0(eslint@8.57.0)(typescript@5.3.3))(eslint@8.57.0))(eslint@8.57.0): + eslint-import-resolver-typescript@3.6.1(@typescript-eslint/parser@7.7.0(eslint@8.57.0)(typescript@5.3.3))(eslint-plugin-import@2.29.1)(eslint@8.57.0): dependencies: debug: 4.3.4 enhanced-resolve: 5.16.0 eslint: 8.57.0 - eslint-module-utils: 2.8.1(@typescript-eslint/parser@7.7.0(eslint@8.57.0)(typescript@5.3.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.1(@typescript-eslint/parser@7.7.0(eslint@8.57.0)(typescript@5.3.3))(eslint-plugin-import@2.29.1(@typescript-eslint/parser@7.7.0(eslint@8.57.0)(typescript@5.3.3))(eslint@8.57.0))(eslint@8.57.0))(eslint@8.57.0) - eslint-plugin-import: 2.29.1(@typescript-eslint/parser@7.7.0(eslint@8.57.0)(typescript@5.3.3))(eslint-import-resolver-typescript@3.6.1(@typescript-eslint/parser@7.7.0(eslint@8.57.0)(typescript@5.3.3))(eslint-plugin-import@2.29.1(@typescript-eslint/parser@7.7.0(eslint@8.57.0)(typescript@5.3.3))(eslint@8.57.0))(eslint@8.57.0))(eslint@8.57.0) + eslint-module-utils: 2.8.1(@typescript-eslint/parser@7.7.0(eslint@8.57.0)(typescript@5.3.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.1(@typescript-eslint/parser@7.7.0(eslint@8.57.0)(typescript@5.3.3))(eslint-plugin-import@2.29.1)(eslint@8.57.0))(eslint@8.57.0) + eslint-plugin-import: 2.29.1(@typescript-eslint/parser@7.7.0(eslint@8.57.0)(typescript@5.3.3))(eslint-import-resolver-typescript@3.6.1)(eslint@8.57.0) fast-glob: 3.3.2 get-tsconfig: 4.7.3 is-core-module: 2.13.1 @@ -18799,14 +18802,14 @@ snapshots: - eslint-import-resolver-webpack - supports-color - eslint-module-utils@2.8.1(@typescript-eslint/parser@7.7.0(eslint@8.57.0)(typescript@5.3.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.1(@typescript-eslint/parser@7.7.0(eslint@8.57.0)(typescript@5.3.3))(eslint-plugin-import@2.29.1(@typescript-eslint/parser@7.7.0(eslint@8.57.0)(typescript@5.3.3))(eslint@8.57.0))(eslint@8.57.0))(eslint@8.57.0): + eslint-module-utils@2.8.1(@typescript-eslint/parser@7.7.0(eslint@8.57.0)(typescript@5.3.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.1(@typescript-eslint/parser@7.7.0(eslint@8.57.0)(typescript@5.3.3))(eslint-plugin-import@2.29.1)(eslint@8.57.0))(eslint@8.57.0): dependencies: debug: 3.2.7(supports-color@5.5.0) optionalDependencies: '@typescript-eslint/parser': 7.7.0(eslint@8.57.0)(typescript@5.3.3) eslint: 8.57.0 eslint-import-resolver-node: 0.3.9 - eslint-import-resolver-typescript: 3.6.1(@typescript-eslint/parser@7.7.0(eslint@8.57.0)(typescript@5.3.3))(eslint-plugin-import@2.29.1(@typescript-eslint/parser@7.7.0(eslint@8.57.0)(typescript@5.3.3))(eslint@8.57.0))(eslint@8.57.0) + eslint-import-resolver-typescript: 3.6.1(@typescript-eslint/parser@7.7.0(eslint@8.57.0)(typescript@5.3.3))(eslint-plugin-import@2.29.1)(eslint@8.57.0) transitivePeerDependencies: - supports-color @@ -18828,7 +18831,7 @@ snapshots: eslint: 8.57.0 ignore: 5.3.1 - eslint-plugin-import@2.29.1(@typescript-eslint/parser@7.7.0(eslint@8.57.0)(typescript@5.3.3))(eslint-import-resolver-typescript@3.6.1(@typescript-eslint/parser@7.7.0(eslint@8.57.0)(typescript@5.3.3))(eslint-plugin-import@2.29.1(@typescript-eslint/parser@7.7.0(eslint@8.57.0)(typescript@5.3.3))(eslint@8.57.0))(eslint@8.57.0))(eslint@8.57.0): + eslint-plugin-import@2.29.1(@typescript-eslint/parser@7.7.0(eslint@8.57.0)(typescript@5.3.3))(eslint-import-resolver-typescript@3.6.1)(eslint@8.57.0): dependencies: array-includes: 3.1.8 array.prototype.findlastindex: 1.2.5 @@ -18838,7 +18841,7 @@ snapshots: doctrine: 2.1.0 eslint: 8.57.0 eslint-import-resolver-node: 0.3.9 - eslint-module-utils: 2.8.1(@typescript-eslint/parser@7.7.0(eslint@8.57.0)(typescript@5.3.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.1(@typescript-eslint/parser@7.7.0(eslint@8.57.0)(typescript@5.3.3))(eslint-plugin-import@2.29.1(@typescript-eslint/parser@7.7.0(eslint@8.57.0)(typescript@5.3.3))(eslint@8.57.0))(eslint@8.57.0))(eslint@8.57.0) + eslint-module-utils: 2.8.1(@typescript-eslint/parser@7.7.0(eslint@8.57.0)(typescript@5.3.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.1(@typescript-eslint/parser@7.7.0(eslint@8.57.0)(typescript@5.3.3))(eslint-plugin-import@2.29.1)(eslint@8.57.0))(eslint@8.57.0) hasown: 2.0.2 is-core-module: 2.13.1 is-glob: 4.0.3 @@ -20960,7 +20963,7 @@ snapshots: '@types/koa': 2.15.0 co-body: 6.1.0 formidable: 3.5.1 - zod: 3.22.4 + zod: 3.23.8 koa-compose@4.1.0: {} @@ -24954,11 +24957,13 @@ snapshots: yocto-queue@1.1.1: {} - zod-to-ts@1.2.0(typescript@5.3.3)(zod@3.22.4): + zod-to-ts@1.2.0(typescript@5.3.3)(zod@3.23.8): dependencies: typescript: 5.3.3 - zod: 3.22.4 + zod: 3.23.8 zod@3.22.4: {} + zod@3.23.8: {} + zwitch@2.0.2: {} From f96277b41088769a492b540b419ed8fb90f8579a Mon Sep 17 00:00:00 2001 From: Gao Sun Date: Sat, 13 Jul 2024 21:30:35 +0800 Subject: [PATCH 2/2] refactor: patch type issues --- packages/core/src/oidc/utils.ts | 15 +++++++++++---- .../src/routes/logto-config/jwt-customizer.ts | 3 ++- packages/core/src/utils/SchemaRouter.ts | 5 ++++- 3 files changed, 17 insertions(+), 6 deletions(-) diff --git a/packages/core/src/oidc/utils.ts b/packages/core/src/oidc/utils.ts index f25a4c323..83c4e5f01 100644 --- a/packages/core/src/oidc/utils.ts +++ b/packages/core/src/oidc/utils.ts @@ -55,12 +55,19 @@ export const buildOidcClientMetadata = (metadata?: OidcClientMetadata): OidcClie ...metadata, }); -export const validateCustomClientMetadata = (key: string, value: unknown) => { - const result = customClientMetadataGuard.pick({ [key]: true }).safeParse({ [key]: value }); +// eslint-disable-next-line @typescript-eslint/ban-types +const isKeyOf = (object: T, key: string | number | symbol): key is keyof T => + key in object; - if (!result.success) { - throw new errors.InvalidClientMetadata(key); +export const validateCustomClientMetadata = (key: string, value: unknown) => { + if (isKeyOf(customClientMetadataGuard.shape, key)) { + const result = customClientMetadataGuard.shape[key].safeParse(value); + if (result.success) { + return; + } } + + throw new errors.InvalidClientMetadata(key); }; export const isOriginAllowed = ( diff --git a/packages/core/src/routes/logto-config/jwt-customizer.ts b/packages/core/src/routes/logto-config/jwt-customizer.ts index 43ae020e5..437601a0a 100644 --- a/packages/core/src/routes/logto-config/jwt-customizer.ts +++ b/packages/core/src/routes/logto-config/jwt-customizer.ts @@ -8,6 +8,7 @@ import { jwtCustomizerConfigsGuard, jwtCustomizerTestRequestBodyGuard, } from '@logto/schemas'; +import { removeUndefinedKeys } from '@silverhand/essentials'; import { ResponseError } from '@withtyped/client'; import { ZodError, z } from 'zod'; @@ -236,7 +237,7 @@ export default function logtoConfigJwtCustomizerRoutes { @@ -337,6 +339,7 @@ export default class SchemaRouter< this.post( '/', koaGuard({ + // @ts-expect-error -- `.omit()` doesn't play well with generics body: schema.createGuard.omit({ id: true }), response: entityGuard ?? schema.guard, status: [201], // TODO: 409/422 for conflict?