0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-02-24 22:05:56 -05:00

release: version packages

This commit is contained in:
silverhand-bot 2025-02-25 00:35:24 +00:00
parent 9cc4ac5deb
commit 903c6d78be
No known key found for this signature in database
GPG key ID: 8743812EA5D7B09A
21 changed files with 162 additions and 131 deletions

View file

@ -1,5 +0,0 @@
---
"@logto/core": patch
---
add `AuthnStatement` to SAML app assertion response

View file

@ -1,13 +0,0 @@
---
"@logto/core": patch
---
refactor: adjust TOTP secret length to 20 bytes
Update the TOTP secret generation to use 20 bytes (160 bits), following the recommendation in RFC 6238 (TOTP) and RFC 4226 (HOTP).
This aligns with the standard secret length used by most 2FA applications and provides better security while maintaining compatibility with existing TOTP validators.
Reference:
- RFC 6238 (TOTP) Section 5.1: https://www.rfc-editor.org/rfc/rfc6238#section-5.1
- RFC 4226 (HOTP) Section 4, Requirement 6: https://www.rfc-editor.org/rfc/rfc4226#section-4

View file

@ -1,7 +0,0 @@
---
"@logto/connector-aliyun-sms": minor
---
add `strictPhoneRegionNumberCheck` to config with default value `false`
When this configuration is enabled, the connector will assume by default that all phone numbers include a valid region code and rely on this to determine whether the phone number belongs to mainland China. If your users' phone numbers do not include a region code due to historical reasons, their sign-in processes may be affected. Please enable this setting with caution.

View file

@ -1,55 +0,0 @@
---
"@logto/connector-kit": minor
---
enhanced handlebars template processing in the connector to support nested property access in email template variables.
## Updates
- Updated `replaceSendMessageHandlebars` logic to handle nested property paths in template variables
- Latest template processing logic now supports:
- Direct replacement of primitive values (string/number/null/undefined)
- Deep property access using dot-notation (e.g., `organization.branding.logoUrl`)
- Graceful handling of missing properties (replaces with empty string)
- Preservation of original handlebars when variables aren't provided in payload
## Examples
1. Direct replacement
```ts
replaceSendMessageKeysWithPayload("Your verification code is {{code}}", {
code: "123456",
});
// 'Your verification code is 123456'
```
2. Deep property access
```ts
replaceSendMessageKeysWithPayload(
"Your logo is {{organization.branding.logoUrl}}",
{ organization: { branding: { logoUrl: "https://example.com/logo.png" } } }
);
// 'Your logo is https://example.com/logo.png'
```
3. Missing properties
```ts
replaceSendMessageKeysWithPayload(
"Your logo is {{organization.branding.logoUrl}}",
{ organization: { name: "foo" } }
);
// 'Your logo is '
```
4. Preservation of missing variables
```ts
replaceSendMessageKeysWithPayload(
"Your application is {{application.name}}",
{}
);
// 'Your application is {{application.name}}'
```

View file

@ -1,10 +0,0 @@
---
"@logto/core": patch
---
fix: incorrect pagination behavior in organization role scopes APIs
- Fix `/api/organization-roles/{id}/scopes` and `/api/organization-roles/{id}/resource-scopes` endpoints to:
- Return all scopes when no pagination parameters are provided
- Support optional pagination when query parameters are present
- Fix Console to properly display all organization role scopes on the organization template page

View file

@ -1,5 +0,0 @@
---
"@logto/console": patch
---
fix docs link

View file

@ -1,5 +1,13 @@
# Change Log
## 1.24.2
### Patch Changes
- Updated dependencies [b0135bcd3]
- @logto/connector-kit@4.2.0
- @logto/schemas@1.24.2
## 1.24.1
### Patch Changes

View file

@ -1,6 +1,6 @@
{
"name": "@logto/cli",
"version": "1.24.1",
"version": "1.24.2",
"description": "Logto CLI.",
"author": "Silverhand Inc. <contact@silverhand.io>",
"homepage": "https://github.com/logto-io/logto#readme",
@ -42,9 +42,9 @@
"url": "https://github.com/logto-io/logto/issues"
},
"dependencies": {
"@logto/connector-kit": "workspace:^4.1.1",
"@logto/connector-kit": "workspace:^4.2.0",
"@logto/core-kit": "workspace:^2.5.4",
"@logto/schemas": "workspace:1.24.1",
"@logto/schemas": "workspace:1.24.2",
"@logto/shared": "workspace:^3.1.4",
"@silverhand/essentials": "^2.9.1",
"@silverhand/slonik": "31.0.0-beta.2",

View file

@ -1,5 +1,18 @@
# @logto/connector-aliyun-sms
## 1.3.0
### Minor Changes
- bca4177c6: add `strictPhoneRegionNumberCheck` to config with default value `false`
When this configuration is enabled, the connector will assume by default that all phone numbers include a valid region code and rely on this to determine whether the phone number belongs to mainland China. If your users' phone numbers do not include a region code due to historical reasons, their sign-in processes may be affected. Please enable this setting with caution.
### Patch Changes
- Updated dependencies [b0135bcd3]
- @logto/connector-kit@4.2.0
## 1.2.1
### Patch Changes

View file

@ -1,9 +1,9 @@
{
"name": "@logto/connector-aliyun-sms",
"version": "1.2.1",
"version": "1.3.0",
"description": "Aliyun SMS connector implementation.",
"dependencies": {
"@logto/connector-kit": "workspace:^4.1.1",
"@logto/connector-kit": "workspace:^4.2.0",
"@silverhand/essentials": "^2.9.1",
"got": "^14.0.0",
"snakecase-keys": "^8.0.1",

View file

@ -1,5 +1,11 @@
# Change Log
## 1.22.1
### Patch Changes
- 31adfb6ac: fix docs link
## 1.22.0
### Minor Changes

View file

@ -1,6 +1,6 @@
{
"name": "@logto/console",
"version": "1.22.0",
"version": "1.22.1",
"description": "> TODO: description",
"author": "Silverhand Inc. <contact@silverhand.io>",
"homepage": "https://github.com/logto-io/logto#readme",
@ -28,13 +28,13 @@
"@fontsource/roboto-mono": "^5.0.0",
"@jest/types": "^29.5.0",
"@logto/cloud": "0.2.5-c98a257",
"@logto/connector-kit": "workspace:^4.1.1",
"@logto/connector-kit": "workspace:^4.2.0",
"@logto/core-kit": "workspace:^2.5.4",
"@logto/language-kit": "workspace:^1.1.1",
"@logto/phrases": "workspace:^1.18.0",
"@logto/phrases-experience": "workspace:^1.9.1",
"@logto/react": "^4.0.4",
"@logto/schemas": "workspace:^1.24.1",
"@logto/schemas": "workspace:^1.24.2",
"@logto/shared": "workspace:^3.1.4",
"@mdx-js/react": "^3.0.1",
"@mdx-js/rollup": "^3.0.1",

View file

@ -1,5 +1,35 @@
# Change Log
## 1.24.2
### Patch Changes
- bca4177c6: add `AuthnStatement` to SAML app assertion response
- 20b61e05e: refactor: adjust TOTP secret length to 20 bytes
Update the TOTP secret generation to use 20 bytes (160 bits), following the recommendation in RFC 6238 (TOTP) and RFC 4226 (HOTP).
This aligns with the standard secret length used by most 2FA applications and provides better security while maintaining compatibility with existing TOTP validators.
Reference:
- RFC 6238 (TOTP) Section 5.1: https://www.rfc-editor.org/rfc/rfc6238#section-5.1
- RFC 4226 (HOTP) Section 4, Requirement 6: https://www.rfc-editor.org/rfc/rfc4226#section-4
- f15602f19: fix: incorrect pagination behavior in organization role scopes APIs
- Fix `/api/organization-roles/{id}/scopes` and `/api/organization-roles/{id}/resource-scopes` endpoints to:
- Return all scopes when no pagination parameters are provided
- Support optional pagination when query parameters are present
- Fix Console to properly display all organization role scopes on the organization template page
- Updated dependencies [b0135bcd3]
- Updated dependencies [31adfb6ac]
- @logto/connector-kit@4.2.0
- @logto/console@1.22.1
- @logto/schemas@1.24.2
- @logto/cli@1.24.2
## 1.24.1
### Patch Changes

View file

@ -1,6 +1,6 @@
{
"name": "@logto/core",
"version": "1.24.1",
"version": "1.24.2",
"description": "The open source identity solution.",
"main": "build/index.js",
"author": "Silverhand Inc. <contact@silverhand.io>",
@ -33,8 +33,8 @@
"@koa/cors": "^5.0.0",
"@logto/affiliate": "^0.1.0",
"@logto/app-insights": "workspace:^2.0.1",
"@logto/cli": "workspace:^1.24.1",
"@logto/connector-kit": "workspace:^4.1.1",
"@logto/cli": "workspace:^1.24.2",
"@logto/connector-kit": "workspace:^4.2.0",
"@logto/console": "workspace:*",
"@logto/core-kit": "workspace:^2.5.4",
"@logto/demo-app": "workspace:*",
@ -44,7 +44,7 @@
"@logto/language-kit": "workspace:^1.1.1",
"@logto/phrases": "workspace:^1.18.0",
"@logto/phrases-experience": "workspace:^1.9.1",
"@logto/schemas": "workspace:^1.24.1",
"@logto/schemas": "workspace:^1.24.2",
"@logto/shared": "workspace:^3.1.4",
"@silverhand/essentials": "^2.9.1",
"@silverhand/slonik": "31.0.0-beta.2",

View file

@ -1,5 +1,11 @@
# Change Log
## 1.24.2
### Patch Changes
- @logto/cli@1.24.2
## 1.24.1
### Patch Changes

View file

@ -1,6 +1,6 @@
{
"name": "@logto/create",
"version": "1.24.1",
"version": "1.24.2",
"author": "Silverhand Inc. <contact@silverhand.io>",
"license": "MPL-2.0",
"type": "module",
@ -15,6 +15,6 @@
"node": "^20.9.0"
},
"dependencies": {
"@logto/cli": "workspace:^1.24.1"
"@logto/cli": "workspace:^1.24.2"
}
}

View file

@ -1,5 +1,12 @@
# Change Log
## 1.24.2
### Patch Changes
- Updated dependencies [b0135bcd3]
- @logto/connector-kit@4.2.0
## 1.24.1
### Patch Changes

View file

@ -1,6 +1,6 @@
{
"name": "@logto/schemas",
"version": "1.24.1",
"version": "1.24.2",
"author": "Silverhand Inc. <contact@silverhand.io>",
"license": "MPL-2.0",
"type": "module",
@ -78,7 +78,7 @@
},
"prettier": "@silverhand/eslint-config/.prettierrc",
"dependencies": {
"@logto/connector-kit": "workspace:^4.1.1",
"@logto/connector-kit": "workspace:^4.2.0",
"@logto/core-kit": "workspace:^2.5.4",
"@logto/language-kit": "workspace:^1.1.1",
"@logto/phrases": "workspace:^1.18.0",

View file

@ -1,5 +1,61 @@
# Change Log
## 4.2.0
### Minor Changes
- b0135bcd3: enhanced handlebars template processing in the connector to support nested property access in email template variables.
## Updates
- Updated `replaceSendMessageHandlebars` logic to handle nested property paths in template variables
- Latest template processing logic now supports:
- Direct replacement of primitive values (string/number/null/undefined)
- Deep property access using dot-notation (e.g., `organization.branding.logoUrl`)
- Graceful handling of missing properties (replaces with empty string)
- Preservation of original handlebars when variables aren't provided in payload
## Examples
1. Direct replacement
```ts
replaceSendMessageKeysWithPayload("Your verification code is {{code}}", {
code: "123456",
});
// 'Your verification code is 123456'
```
2. Deep property access
```ts
replaceSendMessageKeysWithPayload(
"Your logo is {{organization.branding.logoUrl}}",
{ organization: { branding: { logoUrl: "https://example.com/logo.png" } } },
);
// 'Your logo is https://example.com/logo.png'
```
3. Missing properties
```ts
replaceSendMessageKeysWithPayload(
"Your logo is {{organization.branding.logoUrl}}",
{ organization: { name: "foo" } },
);
// 'Your logo is '
```
4. Preservation of missing variables
```ts
replaceSendMessageKeysWithPayload(
"Your application is {{application.name}}",
{},
);
// 'Your application is {{application.name}}'
```
## 4.1.1
### Patch Changes

View file

@ -1,6 +1,6 @@
{
"name": "@logto/connector-kit",
"version": "4.1.1",
"version": "4.2.0",
"author": "Silverhand Inc. <contact@silverhand.io>",
"homepage": "https://github.com/logto-io/toolkit#readme",
"repository": {

38
pnpm-lock.yaml generated
View file

@ -108,13 +108,13 @@ importers:
packages/cli:
dependencies:
'@logto/connector-kit':
specifier: workspace:^4.1.1
specifier: workspace:^4.2.0
version: link:../toolkit/connector-kit
'@logto/core-kit':
specifier: workspace:^2.5.4
version: link:../toolkit/core-kit
'@logto/schemas':
specifier: workspace:1.24.1
specifier: workspace:1.24.2
version: link:../schemas
'@logto/shared':
specifier: workspace:^3.1.4
@ -415,7 +415,7 @@ importers:
packages/connectors/connector-aliyun-sms:
dependencies:
'@logto/connector-kit':
specifier: workspace:^4.1.1
specifier: workspace:^4.2.0
version: link:../../toolkit/connector-kit
'@silverhand/essentials':
specifier: ^2.9.1
@ -3170,7 +3170,7 @@ importers:
specifier: 0.2.5-c98a257
version: 0.2.5-c98a257(zod@3.23.8)
'@logto/connector-kit':
specifier: workspace:^4.1.1
specifier: workspace:^4.2.0
version: link:../toolkit/connector-kit
'@logto/core-kit':
specifier: workspace:^2.5.4
@ -3188,7 +3188,7 @@ importers:
specifier: ^4.0.4
version: 4.0.4(react@18.3.1)
'@logto/schemas':
specifier: workspace:^1.24.1
specifier: workspace:^1.24.2
version: link:../schemas
'@logto/shared':
specifier: workspace:^3.1.4
@ -3470,10 +3470,10 @@ importers:
specifier: workspace:^2.0.1
version: link:../app-insights
'@logto/cli':
specifier: workspace:^1.24.1
specifier: workspace:^1.24.2
version: link:../cli
'@logto/connector-kit':
specifier: workspace:^4.1.1
specifier: workspace:^4.2.0
version: link:../toolkit/connector-kit
'@logto/console':
specifier: workspace:*
@ -3503,7 +3503,7 @@ importers:
specifier: workspace:^1.9.1
version: link:../phrases-experience
'@logto/schemas':
specifier: workspace:^1.24.1
specifier: workspace:^1.24.2
version: link:../schemas
'@logto/shared':
specifier: workspace:^3.1.4
@ -3777,7 +3777,7 @@ importers:
packages/create:
dependencies:
'@logto/cli':
specifier: workspace:^1.24.1
specifier: workspace:^1.24.2
version: link:../cli
packages/demo-app:
@ -4516,7 +4516,7 @@ importers:
packages/schemas:
dependencies:
'@logto/connector-kit':
specifier: workspace:^4.1.1
specifier: workspace:^4.2.0
version: link:../toolkit/connector-kit
'@logto/core-kit':
specifier: workspace:^2.5.4
@ -16848,10 +16848,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.5.3))(eslint@8.57.0)(typescript@5.5.3))(@typescript-eslint/parser@7.7.0(eslint@8.57.0)(typescript@5.5.3))(eslint@8.57.0)(typescript@5.5.3)
eslint-import-resolver-typescript: 3.6.1(@typescript-eslint/parser@7.7.0(eslint@8.57.0)(typescript@5.5.3))(eslint-plugin-import@2.29.1)(eslint@8.57.0)
eslint-import-resolver-typescript: 3.6.1(@typescript-eslint/parser@7.7.0(eslint@8.57.0)(typescript@5.5.3))(eslint-plugin-import@2.29.1(@typescript-eslint/parser@7.7.0(eslint@8.57.0)(typescript@5.5.3))(eslint@8.57.0))(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.5.3))(eslint-import-resolver-typescript@3.6.1)(eslint@8.57.0)
eslint-plugin-import: 2.29.1(@typescript-eslint/parser@7.7.0(eslint@8.57.0)(typescript@5.5.3))(eslint-import-resolver-typescript@3.6.1(@typescript-eslint/parser@7.7.0(eslint@8.57.0)(typescript@5.5.3))(eslint-plugin-import@2.29.1(@typescript-eslint/parser@7.7.0(eslint@8.57.0)(typescript@5.5.3))(eslint@8.57.0))(eslint@8.57.0))(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)
@ -20262,13 +20262,13 @@ snapshots:
transitivePeerDependencies:
- supports-color
eslint-import-resolver-typescript@3.6.1(@typescript-eslint/parser@7.7.0(eslint@8.57.0)(typescript@5.5.3))(eslint-plugin-import@2.29.1)(eslint@8.57.0):
eslint-import-resolver-typescript@3.6.1(@typescript-eslint/parser@7.7.0(eslint@8.57.0)(typescript@5.5.3))(eslint-plugin-import@2.29.1(@typescript-eslint/parser@7.7.0(eslint@8.57.0)(typescript@5.5.3))(eslint@8.57.0))(eslint@8.57.0):
dependencies:
debug: 4.4.0
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.5.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.1)(eslint@8.57.0)
eslint-plugin-import: 2.29.1(@typescript-eslint/parser@7.7.0(eslint@8.57.0)(typescript@5.5.3))(eslint-import-resolver-typescript@3.6.1)(eslint@8.57.0)
eslint-module-utils: 2.8.1(@typescript-eslint/parser@7.7.0(eslint@8.57.0)(typescript@5.5.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.5.3))(eslint-plugin-import@2.29.1(@typescript-eslint/parser@7.7.0(eslint@8.57.0)(typescript@5.5.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.5.3))(eslint-import-resolver-typescript@3.6.1(@typescript-eslint/parser@7.7.0(eslint@8.57.0)(typescript@5.5.3))(eslint-plugin-import@2.29.1(@typescript-eslint/parser@7.7.0(eslint@8.57.0)(typescript@5.5.3))(eslint@8.57.0))(eslint@8.57.0))(eslint@8.57.0)
fast-glob: 3.3.2
get-tsconfig: 4.7.3
is-core-module: 2.13.1
@ -20279,14 +20279,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.5.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.1)(eslint@8.57.0):
eslint-module-utils@2.8.1(@typescript-eslint/parser@7.7.0(eslint@8.57.0)(typescript@5.5.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.5.3))(eslint-plugin-import@2.29.1(@typescript-eslint/parser@7.7.0(eslint@8.57.0)(typescript@5.5.3))(eslint@8.57.0))(eslint@8.57.0))(eslint@8.57.0):
dependencies:
debug: 3.2.7
optionalDependencies:
'@typescript-eslint/parser': 7.7.0(eslint@8.57.0)(typescript@5.5.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.5.3))(eslint-plugin-import@2.29.1)(eslint@8.57.0)
eslint-import-resolver-typescript: 3.6.1(@typescript-eslint/parser@7.7.0(eslint@8.57.0)(typescript@5.5.3))(eslint-plugin-import@2.29.1(@typescript-eslint/parser@7.7.0(eslint@8.57.0)(typescript@5.5.3))(eslint@8.57.0))(eslint@8.57.0)
transitivePeerDependencies:
- supports-color
@ -20308,7 +20308,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.5.3))(eslint-import-resolver-typescript@3.6.1)(eslint@8.57.0):
eslint-plugin-import@2.29.1(@typescript-eslint/parser@7.7.0(eslint@8.57.0)(typescript@5.5.3))(eslint-import-resolver-typescript@3.6.1(@typescript-eslint/parser@7.7.0(eslint@8.57.0)(typescript@5.5.3))(eslint-plugin-import@2.29.1(@typescript-eslint/parser@7.7.0(eslint@8.57.0)(typescript@5.5.3))(eslint@8.57.0))(eslint@8.57.0))(eslint@8.57.0):
dependencies:
array-includes: 3.1.8
array.prototype.findlastindex: 1.2.5
@ -20318,7 +20318,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.5.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.1)(eslint@8.57.0)
eslint-module-utils: 2.8.1(@typescript-eslint/parser@7.7.0(eslint@8.57.0)(typescript@5.5.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.5.3))(eslint-plugin-import@2.29.1(@typescript-eslint/parser@7.7.0(eslint@8.57.0)(typescript@5.5.3))(eslint@8.57.0))(eslint@8.57.0))(eslint@8.57.0)
hasown: 2.0.2
is-core-module: 2.13.1
is-glob: 4.0.3