mirror of
https://github.com/logto-io/logto.git
synced 2025-02-03 21:48:55 -05:00
release: version toolkit packages (#3017)
Co-authored-by: Gao Sun <gao@silverhand.io>
This commit is contained in:
parent
eec39f7d9a
commit
70e126c415
5 changed files with 23 additions and 5 deletions
|
@ -20,6 +20,7 @@
|
|||
"changesets": [
|
||||
"clever-panthers-lay",
|
||||
"fifty-balloons-taste",
|
||||
"good-feet-own",
|
||||
"green-geese-train",
|
||||
"grumpy-clocks-refuse",
|
||||
"lovely-rivers-sniff",
|
||||
|
|
|
@ -87,7 +87,10 @@
|
|||
"eslintConfig": {
|
||||
"extends": "@silverhand",
|
||||
"rules": {
|
||||
"complexity": ["error", 11]
|
||||
"complexity": [
|
||||
"error",
|
||||
11
|
||||
]
|
||||
},
|
||||
"ignorePatterns": [
|
||||
"src/package-json.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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@logto/connector-kit",
|
||||
"version": "1.0.0-beta.32",
|
||||
"version": "1.0.0-beta.33",
|
||||
"author": "Silverhand Inc. <contact@silverhand.io>",
|
||||
"homepage": "https://github.com/logto-io/toolkit#readme",
|
||||
"repository": {
|
||||
|
|
Loading…
Add table
Reference in a new issue