diff --git a/.changeset/pre.json b/.changeset/pre.json index 7b2a6d7c1..6ee445dcc 100644 --- a/.changeset/pre.json +++ b/.changeset/pre.json @@ -20,6 +20,7 @@ "changesets": [ "clever-panthers-lay", "fifty-balloons-taste", + "good-feet-own", "green-geese-train", "grumpy-clocks-refuse", "lovely-rivers-sniff", diff --git a/packages/cli/package.json b/packages/cli/package.json index b03639427..ac71c1f25 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -87,7 +87,10 @@ "eslintConfig": { "extends": "@silverhand", "rules": { - "complexity": ["error", 11] + "complexity": [ + "error", + 11 + ] }, "ignorePatterns": [ "src/package-json.ts" diff --git a/packages/core/src/utils/connectors/loader.ts b/packages/core/src/utils/connectors/loader.ts index 8064f8048..5301c688d 100644 --- a/packages/core/src/utils/connectors/loader.ts +++ b/packages/core/src/utils/connectors/loader.ts @@ -5,6 +5,8 @@ import connectorKitMeta from '@logto/connector-kit/package.json' assert { type: import { isKeyInObject } from '@logto/shared'; import { satisfies } from 'semver'; +import { EnvSet } from '#src/env-set/index.js'; + const connectorKit = '@logto/connector-kit'; const { version: currentVersion } = connectorKitMeta; @@ -17,9 +19,15 @@ const checkConnectorKitVersion = (dependencies: unknown) => { return; } - throw new Error( - `Connector requires ${connectorKit} to be ${value}, but the version here is ${currentVersion}.` - ); + const message = `Connector requires ${connectorKit} to be ${value}, but the version here is ${currentVersion}.`; + + if (EnvSet.values.isIntegrationTest) { + console.warn(`[warn] ${message}\n\nThis will result an error in production.`); + + return; + } + + throw new Error(message); } } diff --git a/packages/toolkit/connector-kit/CHANGELOG.md b/packages/toolkit/connector-kit/CHANGELOG.md index 40bcdb9ec..05ca0c08b 100644 --- a/packages/toolkit/connector-kit/CHANGELOG.md +++ b/packages/toolkit/connector-kit/CHANGELOG.md @@ -1,5 +1,11 @@ # Change Log +## 1.0.0-beta.33 + +### Patch Changes + +- 69af8a38: 1. Add `connectorId`, `connectorFactoryId` and `jti` to `GetAuthorizationUri`. 2. Make `ConnectorSession` compatible for arbitrary keys. + ## 1.0.0-beta.32 ### Minor Changes diff --git a/packages/toolkit/connector-kit/package.json b/packages/toolkit/connector-kit/package.json index a233a3c30..ede9aa164 100644 --- a/packages/toolkit/connector-kit/package.json +++ b/packages/toolkit/connector-kit/package.json @@ -1,6 +1,6 @@ { "name": "@logto/connector-kit", - "version": "1.0.0-beta.32", + "version": "1.0.0-beta.33", "author": "Silverhand Inc. ", "homepage": "https://github.com/logto-io/toolkit#readme", "repository": {