0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-16 20:26:19 -05:00

release: version packages (#5868)

This commit is contained in:
silverhand-bot 2024-05-31 23:48:43 +08:00 committed by GitHub
parent 11f05ceb1d
commit 0decba0308
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
40 changed files with 435 additions and 226 deletions

View file

@ -1,6 +0,0 @@
---
"@logto/schemas": minor
"@logto/cli": minor
---
create a pre-configured role with Management API access when seeding the database

View file

@ -1,12 +0,0 @@
---
"@logto/console": patch
"@logto/phrases": patch
---
replace the i18n translated hook event label with the hook event value directly in the console
- remove all the legacy interaction hook events i18n phrases
- replace the translated label with the hook event value directly in the console
- `Create new account` -> `PostRegister`
- `Sign in` -> `PostSignIn`
- `Reset password` -> `PostResetPassword`

View file

@ -1,7 +0,0 @@
---
"@logto/experience": patch
---
show global loading icon on page relocate
This is to address the issue where the user is redirected back to the client after a successful login, but the page is not yet fully loaded. This will show a global loading icon to indicate that the page is still loading. Preventing the user from interacting with the current sign-in page and avoid page idling confusion.

View file

@ -1,6 +0,0 @@
---
"@logto/console": patch
"@logto/core": patch
---
update documentation reference links

View file

@ -1,79 +0,0 @@
---
"@logto/console": minor
"@logto/core": minor
"@logto/schemas": minor
---
add new webhook events
We introduce a new event type `DataHook` to unlock a series of events that can be triggered by data updates (mostly Management API):
- User.Created
- User.Deleted
- User.Data.Updated
- User.SuspensionStatus.Updated
- Role.Created
- Role.Deleted
- Role.Data.Updated
- Role.Scopes.Updated
- Scope.Created
- Scope.Deleted
- Scope.Data.Updated
- Organization.Created
- Organization.Deleted
- Organization.Data.Updated
- Organization.Membership.Updated
- OrganizationRole.Created
- OrganizationRole.Deleted
- OrganizationRole.Data.Updated
- OrganizationRole.Scopes.Updated
- OrganizationScope.Created
- OrganizationScope.Deleted
- OrganizationScope.Data.Updated
DataHook events are triggered when the data associated with the event is updated via management API request or user interaction actions.
### Management API triggered events
| API endpoint | Event |
| ---------------------------------------------------------- | ----------------------------------------------------------- |
| POST /users | User.Created |
| DELETE /users/:userId | User.Deleted |
| PATCH /users/:userId | User.Data.Updated |
| PATCH /users/:userId/custom-data | User.Data.Updated |
| PATCH /users/:userId/profile | User.Data.Updated |
| PATCH /users/:userId/password | User.Data.Updated |
| PATCH /users/:userId/is-suspended | User.SuspensionStatus.Updated |
| POST /roles | Role.Created, (Role.Scopes.Update) |
| DELETE /roles/:id | Role.Deleted |
| PATCH /roles/:id | Role.Data.Updated |
| POST /roles/:id/scopes | Role.Scopes.Updated |
| DELETE /roles/:id/scopes/:scopeId | Role.Scopes.Updated |
| POST /resources/:resourceId/scopes | Scope.Created |
| DELETE /resources/:resourceId/scopes/:scopeId | Scope.Deleted |
| PATCH /resources/:resourceId/scopes/:scopeId | Scope.Data.Updated |
| POST /organizations | Organization.Created |
| DELETE /organizations/:id | Organization.Deleted |
| PATCH /organizations/:id | Organization.Data.Updated |
| PUT /organizations/:id/users | Organization.Membership.Updated |
| POST /organizations/:id/users | Organization.Membership.Updated |
| DELETE /organizations/:id/users/:userId | Organization.Membership.Updated |
| POST /organization-roles | OrganizationRole.Created, (OrganizationRole.Scopes.Updated) |
| DELETE /organization-roles/:id | OrganizationRole.Deleted |
| PATCH /organization-roles/:id | OrganizationRole.Data.Updated |
| POST /organization-scopes | OrganizationScope.Created |
| DELETE /organization-scopes/:id | OrganizationScope.Deleted |
| PATCH /organization-scopes/:id | OrganizationScope.Data.Updated |
| PUT /organization-roles/:id/scopes | OrganizationRole.Scopes.Updated |
| POST /organization-roles/:id/scopes | OrganizationRole.Scopes.Updated |
| DELETE /organization-roles/:id/scopes/:organizationScopeId | OrganizationRole.Scopes.Updated |
### User interaction triggered events
| User interaction action | Event |
| ------------------------ | ----------------- |
| User email/phone linking | User.Data.Updated |
| User MFAs linking | User.Data.Updated |
| User social/SSO linking | User.Data.Updated |
| User password reset | User.Data.Updated |
| User registration | User.Created |

View file

@ -1,7 +0,0 @@
---
"@logto/connector-github": patch
---
fix `GET /users/emails` API requests break social sign-in flow error
Previously, the GET /users/emails API was returning a 403 Forbidden error when the endpoint is not accessible. This will break the social sign-in flow in previous version, so we handled this error and return an empty array instead. In this way, the social sign-in flow will continue but with `userEmails` as an empty array, and should provide enough information for further investigation.

View file

@ -1,13 +0,0 @@
---
"@logto/core-kit": minor
"@logto/core": minor
---
define new `sso_identities` user claim to the userinfo endpoint response
- Define a new `sso_identities` user claim that will be used to store the user's SSO identities. The claim will be an array of objects with the following properties:
- `details`: detailed user info returned from the SSO provider.
- `issuer`: the issuer of the SSO provider.
- `identityId`: the user id of the user in the SSO provider.
- The new claims will share the same scope as the social `identities` claim.
- When the user `identities` scope is requested, the new `sso_identities` claim will be returned along with the `identities` claim in the userinfo endpoint response.

View file

@ -1,5 +0,0 @@
---
"@logto/console": minor
---
show version number in the topbar

View file

@ -1,12 +0,0 @@
---
"@logto/core": patch
---
fix Microsoft EntraID OIDC SSO connector invalid authorization code response bug
- For public organizations access EntraID OIDC applications, the token endpoint returns `expires_in` value type in number.
- For private organization access only applications, the token endpoint returns `expires_in` value type in string.
- Expected `expires_in` value type is number. (See [v2-oauth2-auth-code-flow](https://learn.microsoft.com/en-us/entra/identity-platform/v2-oauth2-auth-code-flow#successful-response-2) for reference)
String type `expires_in` value is not supported by the current Microsoft EntraID OIDC connector, a invalid authorization response error will be thrown.
Update the token response guard to handle both number and string type `expires_in` value. Make the SSO connector more robust.

View file

@ -1,5 +0,0 @@
---
"@logto/cli": patch
---
fix the translate CLI command by adding the missing import

View file

@ -1,8 +0,0 @@
---
"@logto/console": patch
---
improve error handling on audit logs
- No longer toasts error messages if the audit log related user entity has been removed.
- Display a fallback `user-id (deleted)` information instead.

View file

@ -1,8 +0,0 @@
---
"@logto/console": minor
"@logto/phrases": minor
"@logto/schemas": minor
"@logto/core": minor
---
support default roles for users

View file

@ -1,5 +0,0 @@
---
"@logto/connector-dingtalk-web": minor
---
add DingTalk web connector

View file

@ -1,5 +1,23 @@
# Change Log
## 1.17.0
### Minor Changes
- 25d67f33f: create a pre-configured role with Management API access when seeding the database
### Patch Changes
- 07ac3e87c: fix the translate CLI command by adding the missing import
- Updated dependencies [25d67f33f]
- Updated dependencies [e04d9523a]
- Updated dependencies [b5104d8c1]
- Updated dependencies [0c70d65c7]
- Updated dependencies [76fd33b7e]
- @logto/schemas@1.17.0
- @logto/phrases@1.11.0
- @logto/core-kit@2.5.0
## 1.16.0
### Patch Changes

View file

@ -1,6 +1,6 @@
{
"name": "@logto/cli",
"version": "1.16.0",
"version": "1.17.0",
"description": "Logto CLI.",
"author": "Silverhand Inc. <contact@silverhand.io>",
"homepage": "https://github.com/logto-io/logto#readme",
@ -43,11 +43,11 @@
},
"dependencies": {
"@logto/connector-kit": "workspace:^3.0.0",
"@logto/core-kit": "workspace:^2.4.0",
"@logto/core-kit": "workspace:^2.5.0",
"@logto/language-kit": "workspace:^1.1.0",
"@logto/phrases": "workspace:^1.10.1",
"@logto/phrases": "workspace:^1.11.0",
"@logto/phrases-experience": "workspace:^1.6.1",
"@logto/schemas": "workspace:1.16.0",
"@logto/schemas": "workspace:1.17.0",
"@logto/shared": "workspace:^3.1.1",
"@silverhand/essentials": "^2.9.1",
"@silverhand/slonik": "31.0.0-beta.2",

View file

@ -0,0 +1,7 @@
# @logto/connector-dingtalk-web
## 0.1.0
### Minor Changes
- 0b5b15b96: add DingTalk web connector

View file

@ -1,6 +1,6 @@
{
"name": "@logto/connector-dingtalk-web",
"version": "0.0.0",
"version": "0.1.0",
"description": "Dingtalk web connector implementation.",
"dependencies": {
"@logto/connector-kit": "workspace:^3.0.0",

View file

@ -1,5 +1,13 @@
# @logto/connector-github
## 1.4.1
### Patch Changes
- c95755502: fix `GET /users/emails` API requests break social sign-in flow error
Previously, the GET /users/emails API was returning a 403 Forbidden error when the endpoint is not accessible. This will break the social sign-in flow in previous version, so we handled this error and return an empty array instead. In this way, the social sign-in flow will continue but with `userEmails` as an empty array, and should provide enough information for further investigation.
## 1.4.0
### Minor Changes

View file

@ -1,6 +1,6 @@
{
"name": "@logto/connector-github",
"version": "1.4.0",
"version": "1.4.1",
"description": "Github web connector implementation.",
"author": "Silverhand Inc. <contact@silverhand.io>",
"dependencies": {

View file

@ -1,5 +1,102 @@
# Change Log
## 1.15.0
### Minor Changes
- b5104d8c1: add new webhook events
We introduce a new event type `DataHook` to unlock a series of events that can be triggered by data updates (mostly Management API):
- User.Created
- User.Deleted
- User.Data.Updated
- User.SuspensionStatus.Updated
- Role.Created
- Role.Deleted
- Role.Data.Updated
- Role.Scopes.Updated
- Scope.Created
- Scope.Deleted
- Scope.Data.Updated
- Organization.Created
- Organization.Deleted
- Organization.Data.Updated
- Organization.Membership.Updated
- OrganizationRole.Created
- OrganizationRole.Deleted
- OrganizationRole.Data.Updated
- OrganizationRole.Scopes.Updated
- OrganizationScope.Created
- OrganizationScope.Deleted
- OrganizationScope.Data.Updated
DataHook events are triggered when the data associated with the event is updated via management API request or user interaction actions.
### Management API triggered events
| API endpoint | Event |
| ---------------------------------------------------------- | ----------------------------------------------------------- |
| POST /users | User.Created |
| DELETE /users/:userId | User.Deleted |
| PATCH /users/:userId | User.Data.Updated |
| PATCH /users/:userId/custom-data | User.Data.Updated |
| PATCH /users/:userId/profile | User.Data.Updated |
| PATCH /users/:userId/password | User.Data.Updated |
| PATCH /users/:userId/is-suspended | User.SuspensionStatus.Updated |
| POST /roles | Role.Created, (Role.Scopes.Update) |
| DELETE /roles/:id | Role.Deleted |
| PATCH /roles/:id | Role.Data.Updated |
| POST /roles/:id/scopes | Role.Scopes.Updated |
| DELETE /roles/:id/scopes/:scopeId | Role.Scopes.Updated |
| POST /resources/:resourceId/scopes | Scope.Created |
| DELETE /resources/:resourceId/scopes/:scopeId | Scope.Deleted |
| PATCH /resources/:resourceId/scopes/:scopeId | Scope.Data.Updated |
| POST /organizations | Organization.Created |
| DELETE /organizations/:id | Organization.Deleted |
| PATCH /organizations/:id | Organization.Data.Updated |
| PUT /organizations/:id/users | Organization.Membership.Updated |
| POST /organizations/:id/users | Organization.Membership.Updated |
| DELETE /organizations/:id/users/:userId | Organization.Membership.Updated |
| POST /organization-roles | OrganizationRole.Created, (OrganizationRole.Scopes.Updated) |
| DELETE /organization-roles/:id | OrganizationRole.Deleted |
| PATCH /organization-roles/:id | OrganizationRole.Data.Updated |
| POST /organization-scopes | OrganizationScope.Created |
| DELETE /organization-scopes/:id | OrganizationScope.Deleted |
| PATCH /organization-scopes/:id | OrganizationScope.Data.Updated |
| PUT /organization-roles/:id/scopes | OrganizationRole.Scopes.Updated |
| POST /organization-roles/:id/scopes | OrganizationRole.Scopes.Updated |
| DELETE /organization-roles/:id/scopes/:organizationScopeId | OrganizationRole.Scopes.Updated |
### User interaction triggered events
| User interaction action | Event |
| ------------------------ | ----------------- |
| User email/phone linking | User.Data.Updated |
| User MFAs linking | User.Data.Updated |
| User social/SSO linking | User.Data.Updated |
| User password reset | User.Data.Updated |
| User registration | User.Created |
- a0b19513b: show version number in the topbar
- 76fd33b7e: support default roles for users
### Patch Changes
- e04d9523a: replace the i18n translated hook event label with the hook event value directly in the console
- remove all the legacy interaction hook events i18n phrases
- replace the translated label with the hook event value directly in the console
- `Create new account` -> `PostRegister`
- `Sign in` -> `PostSignIn`
- `Reset password` -> `PostResetPassword`
- 558986d28: update documentation reference links
- c558affac: improve error handling on audit logs
- No longer toasts error messages if the audit log related user entity has been removed.
- Display a fallback `user-id (deleted)` information instead.
## 1.14.0
### Minor Changes

View file

@ -1,6 +1,6 @@
{
"name": "@logto/console",
"version": "1.14.0",
"version": "1.15.0",
"description": "> TODO: description",
"author": "Silverhand Inc. <contact@silverhand.io>",
"homepage": "https://github.com/logto-io/logto#readme",
@ -29,12 +29,12 @@
"@jest/types": "^29.5.0",
"@logto/cloud": "0.2.5-38aae44",
"@logto/connector-kit": "workspace:^3.0.0",
"@logto/core-kit": "workspace:^2.4.0",
"@logto/core-kit": "workspace:^2.5.0",
"@logto/language-kit": "workspace:^1.1.0",
"@logto/phrases": "workspace:^1.10.1",
"@logto/phrases": "workspace:^1.11.0",
"@logto/phrases-experience": "workspace:^1.6.1",
"@logto/react": "^3.0.8",
"@logto/schemas": "workspace:^1.16.0",
"@logto/schemas": "workspace:^1.17.0",
"@logto/shared": "workspace:^3.1.1",
"@mdx-js/react": "^1.6.22",
"@monaco-editor/react": "^4.6.0",

View file

@ -1,5 +1,123 @@
# Change Log
## 1.17.0
### Minor Changes
- b5104d8c1: add new webhook events
We introduce a new event type `DataHook` to unlock a series of events that can be triggered by data updates (mostly Management API):
- User.Created
- User.Deleted
- User.Data.Updated
- User.SuspensionStatus.Updated
- Role.Created
- Role.Deleted
- Role.Data.Updated
- Role.Scopes.Updated
- Scope.Created
- Scope.Deleted
- Scope.Data.Updated
- Organization.Created
- Organization.Deleted
- Organization.Data.Updated
- Organization.Membership.Updated
- OrganizationRole.Created
- OrganizationRole.Deleted
- OrganizationRole.Data.Updated
- OrganizationRole.Scopes.Updated
- OrganizationScope.Created
- OrganizationScope.Deleted
- OrganizationScope.Data.Updated
DataHook events are triggered when the data associated with the event is updated via management API request or user interaction actions.
### Management API triggered events
| API endpoint | Event |
| ---------------------------------------------------------- | ----------------------------------------------------------- |
| POST /users | User.Created |
| DELETE /users/:userId | User.Deleted |
| PATCH /users/:userId | User.Data.Updated |
| PATCH /users/:userId/custom-data | User.Data.Updated |
| PATCH /users/:userId/profile | User.Data.Updated |
| PATCH /users/:userId/password | User.Data.Updated |
| PATCH /users/:userId/is-suspended | User.SuspensionStatus.Updated |
| POST /roles | Role.Created, (Role.Scopes.Update) |
| DELETE /roles/:id | Role.Deleted |
| PATCH /roles/:id | Role.Data.Updated |
| POST /roles/:id/scopes | Role.Scopes.Updated |
| DELETE /roles/:id/scopes/:scopeId | Role.Scopes.Updated |
| POST /resources/:resourceId/scopes | Scope.Created |
| DELETE /resources/:resourceId/scopes/:scopeId | Scope.Deleted |
| PATCH /resources/:resourceId/scopes/:scopeId | Scope.Data.Updated |
| POST /organizations | Organization.Created |
| DELETE /organizations/:id | Organization.Deleted |
| PATCH /organizations/:id | Organization.Data.Updated |
| PUT /organizations/:id/users | Organization.Membership.Updated |
| POST /organizations/:id/users | Organization.Membership.Updated |
| DELETE /organizations/:id/users/:userId | Organization.Membership.Updated |
| POST /organization-roles | OrganizationRole.Created, (OrganizationRole.Scopes.Updated) |
| DELETE /organization-roles/:id | OrganizationRole.Deleted |
| PATCH /organization-roles/:id | OrganizationRole.Data.Updated |
| POST /organization-scopes | OrganizationScope.Created |
| DELETE /organization-scopes/:id | OrganizationScope.Deleted |
| PATCH /organization-scopes/:id | OrganizationScope.Data.Updated |
| PUT /organization-roles/:id/scopes | OrganizationRole.Scopes.Updated |
| POST /organization-roles/:id/scopes | OrganizationRole.Scopes.Updated |
| DELETE /organization-roles/:id/scopes/:organizationScopeId | OrganizationRole.Scopes.Updated |
### User interaction triggered events
| User interaction action | Event |
| ------------------------ | ----------------- |
| User email/phone linking | User.Data.Updated |
| User MFAs linking | User.Data.Updated |
| User social/SSO linking | User.Data.Updated |
| User password reset | User.Data.Updated |
| User registration | User.Created |
- 0c70d65c7: define new `sso_identities` user claim to the userinfo endpoint response
- Define a new `sso_identities` user claim that will be used to store the user's SSO identities. The claim will be an array of objects with the following properties:
- `details`: detailed user info returned from the SSO provider.
- `issuer`: the issuer of the SSO provider.
- `identityId`: the user id of the user in the SSO provider.
- The new claims will share the same scope as the social `identities` claim.
- When the user `identities` scope is requested, the new `sso_identities` claim will be returned along with the `identities` claim in the userinfo endpoint response.
- 76fd33b7e: support default roles for users
### Patch Changes
- 558986d28: update documentation reference links
- 458746c9a: fix Microsoft EntraID OIDC SSO connector invalid authorization code response bug
- For public organizations access EntraID OIDC applications, the token endpoint returns `expires_in` value type in number.
- For private organization access only applications, the token endpoint returns `expires_in` value type in string.
- Expected `expires_in` value type is number. (See [v2-oauth2-auth-code-flow](https://learn.microsoft.com/en-us/entra/identity-platform/v2-oauth2-auth-code-flow#successful-response-2) for reference)
String type `expires_in` value is not supported by the current Microsoft EntraID OIDC connector, a invalid authorization response error will be thrown.
Update the token response guard to handle both number and string type `expires_in` value. Make the SSO connector more robust.
- Updated dependencies [25d67f33f]
- Updated dependencies [e04d9523a]
- Updated dependencies [cb1a38c40]
- Updated dependencies [558986d28]
- Updated dependencies [b5104d8c1]
- Updated dependencies [0c70d65c7]
- Updated dependencies [a0b19513b]
- Updated dependencies [07ac3e87c]
- Updated dependencies [c558affac]
- Updated dependencies [76fd33b7e]
- @logto/schemas@1.17.0
- @logto/cli@1.17.0
- @logto/console@1.15.0
- @logto/phrases@1.11.0
- @logto/experience@1.6.2
- @logto/core-kit@2.5.0
## 1.16.0
### Minor Changes

View file

@ -1,6 +1,6 @@
{
"name": "@logto/core",
"version": "1.16.0",
"version": "1.17.0",
"description": "The open source identity solution.",
"main": "build/index.js",
"author": "Silverhand Inc. <contact@silverhand.io>",
@ -32,16 +32,16 @@
"@koa/cors": "^5.0.0",
"@logto/affiliate": "^0.1.0",
"@logto/app-insights": "workspace:^2.0.0",
"@logto/cli": "workspace:^1.16.0",
"@logto/cli": "workspace:^1.17.0",
"@logto/connector-kit": "workspace:^3.0.0",
"@logto/console": "workspace:*",
"@logto/core-kit": "workspace:^2.4.0",
"@logto/core-kit": "workspace:^2.5.0",
"@logto/demo-app": "workspace:*",
"@logto/experience": "workspace:*",
"@logto/language-kit": "workspace:^1.1.0",
"@logto/phrases": "workspace:^1.10.1",
"@logto/phrases": "workspace:^1.11.0",
"@logto/phrases-experience": "workspace:^1.6.1",
"@logto/schemas": "workspace:^1.16.0",
"@logto/schemas": "workspace:^1.17.0",
"@logto/shared": "workspace:^3.1.1",
"@silverhand/essentials": "^2.9.1",
"@silverhand/slonik": "31.0.0-beta.2",

View file

@ -1,5 +1,13 @@
# Change Log
## 1.17.0
### Patch Changes
- Updated dependencies [25d67f33f]
- Updated dependencies [07ac3e87c]
- @logto/cli@1.17.0
## 1.16.0
### Patch Changes

View file

@ -1,6 +1,6 @@
{
"name": "@logto/create",
"version": "1.16.0",
"version": "1.17.0",
"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.16.0"
"@logto/cli": "workspace:^1.17.0"
}
}

View file

@ -1,5 +1,13 @@
# Change Log
## 1.6.2
### Patch Changes
- cb1a38c40: show global loading icon on page relocate
This is to address the issue where the user is redirected back to the client after a successful login, but the page is not yet fully loaded. This will show a global loading icon to indicate that the page is still loading. Preventing the user from interacting with the current sign-in page and avoid page idling confusion.
## 1.6.1
### Patch Changes

View file

@ -1,6 +1,6 @@
{
"name": "@logto/experience",
"version": "1.6.1",
"version": "1.6.2",
"license": "MPL-2.0",
"type": "module",
"private": true,
@ -22,11 +22,11 @@
"devDependencies": {
"@jest/types": "^29.5.0",
"@logto/connector-kit": "workspace:^3.0.0",
"@logto/core-kit": "workspace:^2.4.0",
"@logto/core-kit": "workspace:^2.5.0",
"@logto/language-kit": "workspace:^1.1.0",
"@logto/phrases": "workspace:^1.10.1",
"@logto/phrases": "workspace:^1.11.0",
"@logto/phrases-experience": "workspace:^1.6.1",
"@logto/schemas": "workspace:^1.16.0",
"@logto/schemas": "workspace:^1.17.0",
"@parcel/compressor-brotli": "2.9.3",
"@parcel/compressor-gzip": "2.9.3",
"@parcel/core": "2.9.3",

View file

@ -28,7 +28,7 @@
"@logto/core-kit": "workspace:^",
"@logto/js": "^4.1.1",
"@logto/node": "^2.4.7",
"@logto/schemas": "workspace:^1.16.0",
"@logto/schemas": "workspace:^1.17.0",
"@logto/shared": "workspace:^3.1.1",
"@silverhand/eslint-config": "6.0.1",
"@silverhand/essentials": "^2.9.1",

View file

@ -1,5 +1,21 @@
# Change Log
## 1.11.0
### Minor Changes
- 76fd33b7e: support default roles for users
### Patch Changes
- e04d9523a: replace the i18n translated hook event label with the hook event value directly in the console
- remove all the legacy interaction hook events i18n phrases
- replace the translated label with the hook event value directly in the console
- `Create new account` -> `PostRegister`
- `Sign in` -> `PostSignIn`
- `Reset password` -> `PostResetPassword`
## 1.10.1
### Patch Changes

View file

@ -1,6 +1,6 @@
{
"name": "@logto/phrases",
"version": "1.10.1",
"version": "1.11.0",
"description": "Logto shared phrases (i18n).",
"author": "Silverhand Inc. <contact@silverhand.io>",
"homepage": "https://github.com/logto-io/logto#readme",

View file

@ -1,5 +1,94 @@
# Change Log
## 1.17.0
### Minor Changes
- 25d67f33f: create a pre-configured role with Management API access when seeding the database
- b5104d8c1: add new webhook events
We introduce a new event type `DataHook` to unlock a series of events that can be triggered by data updates (mostly Management API):
- User.Created
- User.Deleted
- User.Data.Updated
- User.SuspensionStatus.Updated
- Role.Created
- Role.Deleted
- Role.Data.Updated
- Role.Scopes.Updated
- Scope.Created
- Scope.Deleted
- Scope.Data.Updated
- Organization.Created
- Organization.Deleted
- Organization.Data.Updated
- Organization.Membership.Updated
- OrganizationRole.Created
- OrganizationRole.Deleted
- OrganizationRole.Data.Updated
- OrganizationRole.Scopes.Updated
- OrganizationScope.Created
- OrganizationScope.Deleted
- OrganizationScope.Data.Updated
DataHook events are triggered when the data associated with the event is updated via management API request or user interaction actions.
### Management API triggered events
| API endpoint | Event |
| ---------------------------------------------------------- | ----------------------------------------------------------- |
| POST /users | User.Created |
| DELETE /users/:userId | User.Deleted |
| PATCH /users/:userId | User.Data.Updated |
| PATCH /users/:userId/custom-data | User.Data.Updated |
| PATCH /users/:userId/profile | User.Data.Updated |
| PATCH /users/:userId/password | User.Data.Updated |
| PATCH /users/:userId/is-suspended | User.SuspensionStatus.Updated |
| POST /roles | Role.Created, (Role.Scopes.Update) |
| DELETE /roles/:id | Role.Deleted |
| PATCH /roles/:id | Role.Data.Updated |
| POST /roles/:id/scopes | Role.Scopes.Updated |
| DELETE /roles/:id/scopes/:scopeId | Role.Scopes.Updated |
| POST /resources/:resourceId/scopes | Scope.Created |
| DELETE /resources/:resourceId/scopes/:scopeId | Scope.Deleted |
| PATCH /resources/:resourceId/scopes/:scopeId | Scope.Data.Updated |
| POST /organizations | Organization.Created |
| DELETE /organizations/:id | Organization.Deleted |
| PATCH /organizations/:id | Organization.Data.Updated |
| PUT /organizations/:id/users | Organization.Membership.Updated |
| POST /organizations/:id/users | Organization.Membership.Updated |
| DELETE /organizations/:id/users/:userId | Organization.Membership.Updated |
| POST /organization-roles | OrganizationRole.Created, (OrganizationRole.Scopes.Updated) |
| DELETE /organization-roles/:id | OrganizationRole.Deleted |
| PATCH /organization-roles/:id | OrganizationRole.Data.Updated |
| POST /organization-scopes | OrganizationScope.Created |
| DELETE /organization-scopes/:id | OrganizationScope.Deleted |
| PATCH /organization-scopes/:id | OrganizationScope.Data.Updated |
| PUT /organization-roles/:id/scopes | OrganizationRole.Scopes.Updated |
| POST /organization-roles/:id/scopes | OrganizationRole.Scopes.Updated |
| DELETE /organization-roles/:id/scopes/:organizationScopeId | OrganizationRole.Scopes.Updated |
### User interaction triggered events
| User interaction action | Event |
| ------------------------ | ----------------- |
| User email/phone linking | User.Data.Updated |
| User MFAs linking | User.Data.Updated |
| User social/SSO linking | User.Data.Updated |
| User password reset | User.Data.Updated |
| User registration | User.Created |
- 76fd33b7e: support default roles for users
### Patch Changes
- Updated dependencies [e04d9523a]
- Updated dependencies [0c70d65c7]
- Updated dependencies [76fd33b7e]
- @logto/phrases@1.11.0
- @logto/core-kit@2.5.0
## 1.16.0
### Minor Changes

View file

@ -1,6 +1,6 @@
{
"name": "@logto/schemas",
"version": "1.16.0",
"version": "1.17.0",
"author": "Silverhand Inc. <contact@silverhand.io>",
"license": "MPL-2.0",
"type": "module",
@ -79,9 +79,9 @@
"prettier": "@silverhand/eslint-config/.prettierrc",
"dependencies": {
"@logto/connector-kit": "workspace:^3.0.0",
"@logto/core-kit": "workspace:^2.4.0",
"@logto/core-kit": "workspace:^2.5.0",
"@logto/language-kit": "workspace:^1.1.0",
"@logto/phrases": "workspace:^1.10.1",
"@logto/phrases": "workspace:^1.11.0",
"@logto/phrases-experience": "workspace:^1.6.1",
"@logto/shared": "workspace:^3.1.1",
"@withtyped/server": "^0.13.6",

View file

@ -1,5 +1,18 @@
# Change Log
## 2.5.0
### Minor Changes
- 0c70d65c7: define new `sso_identities` user claim to the userinfo endpoint response
- Define a new `sso_identities` user claim that will be used to store the user's SSO identities. The claim will be an array of objects with the following properties:
- `details`: detailed user info returned from the SSO provider.
- `issuer`: the issuer of the SSO provider.
- `identityId`: the user id of the user in the SSO provider.
- The new claims will share the same scope as the social `identities` claim.
- When the user `identities` scope is requested, the new `sso_identities` claim will be returned along with the `identities` claim in the userinfo endpoint response.
## 2.4.0
### Minor Changes

View file

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

View file

@ -86,19 +86,19 @@ importers:
specifier: workspace:^3.0.0
version: link:../toolkit/connector-kit
'@logto/core-kit':
specifier: workspace:^2.4.0
specifier: workspace:^2.5.0
version: link:../toolkit/core-kit
'@logto/language-kit':
specifier: workspace:^1.1.0
version: link:../toolkit/language-kit
'@logto/phrases':
specifier: workspace:^1.10.1
specifier: workspace:^1.11.0
version: link:../phrases
'@logto/phrases-experience':
specifier: workspace:^1.6.1
version: link:../phrases-experience
'@logto/schemas':
specifier: workspace:1.16.0
specifier: workspace:1.17.0
version: link:../schemas
'@logto/shared':
specifier: workspace:^3.1.1
@ -2861,13 +2861,13 @@ importers:
specifier: workspace:^3.0.0
version: link:../toolkit/connector-kit
'@logto/core-kit':
specifier: workspace:^2.4.0
specifier: workspace:^2.5.0
version: link:../toolkit/core-kit
'@logto/language-kit':
specifier: workspace:^1.1.0
version: link:../toolkit/language-kit
'@logto/phrases':
specifier: workspace:^1.10.1
specifier: workspace:^1.11.0
version: link:../phrases
'@logto/phrases-experience':
specifier: workspace:^1.6.1
@ -2876,7 +2876,7 @@ importers:
specifier: ^3.0.8
version: 3.0.8(react@18.2.0)
'@logto/schemas':
specifier: workspace:^1.16.0
specifier: workspace:^1.17.0
version: link:../schemas
'@logto/shared':
specifier: workspace:^3.1.1
@ -3173,7 +3173,7 @@ importers:
specifier: workspace:^2.0.0
version: link:../app-insights
'@logto/cli':
specifier: workspace:^1.16.0
specifier: workspace:^1.17.0
version: link:../cli
'@logto/connector-kit':
specifier: workspace:^3.0.0
@ -3182,7 +3182,7 @@ importers:
specifier: workspace:*
version: link:../console
'@logto/core-kit':
specifier: workspace:^2.4.0
specifier: workspace:^2.5.0
version: link:../toolkit/core-kit
'@logto/demo-app':
specifier: workspace:*
@ -3194,13 +3194,13 @@ importers:
specifier: workspace:^1.1.0
version: link:../toolkit/language-kit
'@logto/phrases':
specifier: workspace:^1.10.1
specifier: workspace:^1.11.0
version: link:../phrases
'@logto/phrases-experience':
specifier: workspace:^1.6.1
version: link:../phrases-experience
'@logto/schemas':
specifier: workspace:^1.16.0
specifier: workspace:^1.17.0
version: link:../schemas
'@logto/shared':
specifier: workspace:^3.1.1
@ -3450,7 +3450,7 @@ importers:
packages/create:
dependencies:
'@logto/cli':
specifier: workspace:^1.16.0
specifier: workspace:^1.17.0
version: link:../cli
packages/demo-app:
@ -3549,19 +3549,19 @@ importers:
specifier: workspace:^3.0.0
version: link:../toolkit/connector-kit
'@logto/core-kit':
specifier: workspace:^2.4.0
specifier: workspace:^2.5.0
version: link:../toolkit/core-kit
'@logto/language-kit':
specifier: workspace:^1.1.0
version: link:../toolkit/language-kit
'@logto/phrases':
specifier: workspace:^1.10.1
specifier: workspace:^1.11.0
version: link:../phrases
'@logto/phrases-experience':
specifier: workspace:^1.6.1
version: link:../phrases-experience
'@logto/schemas':
specifier: workspace:^1.16.0
specifier: workspace:^1.17.0
version: link:../schemas
'@parcel/compressor-brotli':
specifier: 2.9.3
@ -3784,7 +3784,7 @@ importers:
specifier: ^2.4.7
version: 2.4.7
'@logto/schemas':
specifier: workspace:^1.16.0
specifier: workspace:^1.17.0
version: link:../schemas
'@logto/shared':
specifier: workspace:^3.1.1
@ -3924,13 +3924,13 @@ importers:
specifier: workspace:^3.0.0
version: link:../toolkit/connector-kit
'@logto/core-kit':
specifier: workspace:^2.4.0
specifier: workspace:^2.5.0
version: link:../toolkit/core-kit
'@logto/language-kit':
specifier: workspace:^1.1.0
version: link:../toolkit/language-kit
'@logto/phrases':
specifier: workspace:^1.10.1
specifier: workspace:^1.11.0
version: link:../phrases
'@logto/phrases-experience':
specifier: workspace:^1.6.1
@ -15816,10 +15816,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)(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(@typescript-eslint/parser@7.7.0(eslint@8.57.0)(typescript@5.3.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.3.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.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-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)
@ -18496,13 +18496,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)(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(@typescript-eslint/parser@7.7.0(eslint@8.57.0)(typescript@5.3.3))(eslint@8.57.0))(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)(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-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)
fast-glob: 3.3.2
get-tsconfig: 4.7.3
is-core-module: 2.13.1
@ -18513,14 +18513,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)(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(@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):
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)(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(@typescript-eslint/parser@7.7.0(eslint@8.57.0)(typescript@5.3.3))(eslint@8.57.0))(eslint@8.57.0)
transitivePeerDependencies:
- supports-color
@ -18542,7 +18542,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)(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):
dependencies:
array-includes: 3.1.8
array.prototype.findlastindex: 1.2.5
@ -18552,7 +18552,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)(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(@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)
hasown: 2.0.2
is-core-module: 2.13.1
is-glob: 4.0.3