From e69f941e3891eb390b28f958e9bce7724b905a96 Mon Sep 17 00:00:00 2001 From: silverhand-bot <107667382+silverhand-bot@users.noreply.github.com> Date: Mon, 18 Sep 2023 18:47:19 +0800 Subject: [PATCH] release: version packages (#4451) --- .changeset/cold-deers-drive.md | 47 -------------- .changeset/famous-clocks-collect.md | 31 --------- .changeset/funny-bikes-press.md | 11 ---- .changeset/lucky-wolves-buy.md | 6 -- .changeset/mean-jeans-clap.md | 5 -- .changeset/poor-bikes-grow.md | 11 ---- .changeset/three-pigs-search.md | 6 -- .changeset/violet-mugs-tickle.md | 9 --- packages/cli/CHANGELOG.md | 47 ++++++++++++++ packages/cli/package.json | 12 ++-- packages/console/CHANGELOG.md | 48 ++++++++++++++ packages/console/package.json | 12 ++-- packages/core/CHANGELOG.md | 65 +++++++++++++++++++ packages/core/package.json | 14 ++-- packages/create/CHANGELOG.md | 10 +++ packages/create/package.json | 4 +- packages/experience/CHANGELOG.md | 47 ++++++++++++++ packages/experience/package.json | 10 +-- packages/integration-tests/CHANGELOG.md | 7 ++ packages/integration-tests/package.json | 6 +- packages/phrases-experience/CHANGELOG.md | 49 ++++++++++++++ packages/phrases-experience/package.json | 4 +- packages/phrases/CHANGELOG.md | 42 ++++++++++++ packages/phrases/package.json | 2 +- packages/schemas/CHANGELOG.md | 62 ++++++++++++++++++ ...> 1.9.0-1693554904-add-possword-policy.ts} | 0 ...1694399696-add-type-col-to-roles-table.ts} | 0 ...role-type-function-to-be-public-schema.ts} | 0 ...84927-remove-deprecated-challenge-flag.ts} | 0 ...sie-mfa.ts => 1.9.0-1694487524-sie-mfa.ts} | 0 ...94509714-keep-existing-password-policy.ts} | 0 ...=> 1.9.0-1694746763-user-verifications.ts} | 0 packages/schemas/package.json | 10 +-- packages/shared/CHANGELOG.md | 6 ++ packages/shared/package.json | 2 +- packages/toolkit/core-kit/CHANGELOG.md | 47 ++++++++++++++ packages/toolkit/core-kit/package.json | 4 +- pnpm-lock.yaml | 58 ++++++++--------- 38 files changed, 499 insertions(+), 195 deletions(-) delete mode 100644 .changeset/cold-deers-drive.md delete mode 100644 .changeset/famous-clocks-collect.md delete mode 100644 .changeset/funny-bikes-press.md delete mode 100644 .changeset/lucky-wolves-buy.md delete mode 100644 .changeset/mean-jeans-clap.md delete mode 100644 .changeset/poor-bikes-grow.md delete mode 100644 .changeset/three-pigs-search.md delete mode 100644 .changeset/violet-mugs-tickle.md rename packages/schemas/alterations/{next-1693554904-add-possword-policy.ts => 1.9.0-1693554904-add-possword-policy.ts} (100%) rename packages/schemas/alterations/{next-1694399696-add-type-col-to-roles-table.ts => 1.9.0-1694399696-add-type-col-to-roles-table.ts} (100%) rename packages/schemas/alterations/{next-1694418765-specify-check-role-type-function-to-be-public-schema.ts => 1.9.0-1694418765-specify-check-role-type-function-to-be-public-schema.ts} (100%) rename packages/schemas/alterations/{next-1694484927-remove-deprecated-challenge-flag.ts => 1.9.0-1694484927-remove-deprecated-challenge-flag.ts} (100%) rename packages/schemas/alterations/{next-1694487524-sie-mfa.ts => 1.9.0-1694487524-sie-mfa.ts} (100%) rename packages/schemas/alterations/{next-1694509714-keep-existing-password-policy.ts => 1.9.0-1694509714-keep-existing-password-policy.ts} (100%) rename packages/schemas/alterations/{next-1694746763-user-verifications.ts => 1.9.0-1694746763-user-verifications.ts} (100%) diff --git a/.changeset/cold-deers-drive.md b/.changeset/cold-deers-drive.md deleted file mode 100644 index b4db780e0..000000000 --- a/.changeset/cold-deers-drive.md +++ /dev/null @@ -1,47 +0,0 @@ ---- -"@logto/schemas": minor -"@logto/console": minor -"@logto/core": minor -"@logto/phrases": minor -"@logto/phrases-experience": minor -"@logto/core-kit": minor -"@logto/experience": minor ---- - -feature: password policy - -### Summary - -This feature enables custom password policy for users. Now it is possible to guard with the following rules when a user is creating a new password: - -- Minimum length (default: `8`) -- Minimum character types (default: `1`) -- If the password has been pwned (default: `true`) -- If the password is exactly the same as or made up of the restricted phrases: - - Repetitive or sequential characters (default: `true`) - - User information (default: `true`) - - Custom words (default: `[]`) - -If you are an existing Logto Cloud user or upgrading from a previous version, to ensure a smooth experience, we'll keep the original policy as much as possible: - -> The original password policy requires a minimum length of 8 and at least 2 character types (letters, numbers, and symbols). - -Note in the new policy implementation, it is not possible to combine lower and upper case letters into one character type. So the original password policy will be translated into the following: - -- Minimum length: `8` -- Minimum character types: `2` -- Pwned: `false` -- Repetitive or sequential characters: `false` -- User information: `false` -- Custom words: `[]` - -If you want to change the policy, you can do it: - -- Logto Console -> Sign-in experience -> Password policy. -- Update `passwordPolicy` property in the sign-in experience via Management API. - -### Side effects - -- All new users will be affected by the new policy immediately. -- Existing users will not be affected by the new policy until they change their password. -- We removed password restrictions when adding or updating a user via Management API. diff --git a/.changeset/famous-clocks-collect.md b/.changeset/famous-clocks-collect.md deleted file mode 100644 index be4a6e460..000000000 --- a/.changeset/famous-clocks-collect.md +++ /dev/null @@ -1,31 +0,0 @@ ---- -"@logto/cli": patch ---- - -keep original untranslated mark when syncing keys - -When executing `pnpm cli translate sk --target all`: - -- use JSDoc comment to stick with the standard approach -- if the value was originally untranslated, keep the mark - -For example: - -**Original** - -```ts -{ - "hello": "Hello", // UNTRANSLATED - "world": "世界", -} -``` - -**Now** - -```ts -{ - /** UNTRANSLATED */ - "hello": "Hello", - "world": "世界", -} -``` diff --git a/.changeset/funny-bikes-press.md b/.changeset/funny-bikes-press.md deleted file mode 100644 index 165398232..000000000 --- a/.changeset/funny-bikes-press.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -"@logto/phrases-experience": patch -"@logto/integration-tests": patch -"@logto/console": patch -"@logto/schemas": patch -"@logto/core": patch -"@logto/cli": patch -"@logto/experience": patch ---- - -rename the package `phrases-ui` to `phrases-experience` diff --git a/.changeset/lucky-wolves-buy.md b/.changeset/lucky-wolves-buy.md deleted file mode 100644 index 173e952b9..000000000 --- a/.changeset/lucky-wolves-buy.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@logto/schemas": minor -"@logto/core": minor ---- - -Support region option for s3 storage diff --git a/.changeset/mean-jeans-clap.md b/.changeset/mean-jeans-clap.md deleted file mode 100644 index 1ab46821e..000000000 --- a/.changeset/mean-jeans-clap.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@logto/console": patch ---- - -fix the app crash when inputting verification code in Console profile page diff --git a/.changeset/poor-bikes-grow.md b/.changeset/poor-bikes-grow.md deleted file mode 100644 index 6998185be..000000000 --- a/.changeset/poor-bikes-grow.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -"@logto/phrases-experience": patch -"@logto/integration-tests": patch -"@logto/experience": patch -"@logto/console": patch -"@logto/schemas": patch -"@logto/core": patch -"@logto/cli": patch ---- - -rename the package `ui` to `experience` diff --git a/.changeset/three-pigs-search.md b/.changeset/three-pigs-search.md deleted file mode 100644 index 594181bc7..000000000 --- a/.changeset/three-pigs-search.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@logto/shared": patch -"@logto/cli": patch ---- - -align cli output for a better looking diff --git a/.changeset/violet-mugs-tickle.md b/.changeset/violet-mugs-tickle.md deleted file mode 100644 index 5902c4dfe..000000000 --- a/.changeset/violet-mugs-tickle.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -"@logto/schemas": minor ---- - -Add `type` field to `roles` schema. - -`type` can be either 'User' or 'MachineToMachine' in our case, this change distinguish between the two types of roles. -Roles with type 'MachineToMachine' are not allowed to be assigned to users and 'User' roles can not be assigned to machine-to-machine apps. -It's worth noting that we do not differentiate by `scope` (or `permission` in Admin Console), so a scope can be assigned to both the 'User' role and the 'MachineToMachine' role simultaneously. diff --git a/packages/cli/CHANGELOG.md b/packages/cli/CHANGELOG.md index c5343889c..b8d57ac57 100644 --- a/packages/cli/CHANGELOG.md +++ b/packages/cli/CHANGELOG.md @@ -1,5 +1,52 @@ # Change Log +## 1.9.0 + +### Patch Changes + +- daf9674b6: keep original untranslated mark when syncing keys + + When executing `pnpm cli translate sk --target all`: + + - use JSDoc comment to stick with the standard approach + - if the value was originally untranslated, keep the mark + + For example: + + **Original** + + ```ts + { + "hello": "Hello", // UNTRANSLATED + "world": "世界", + } + ``` + + **Now** + + ```ts + { + /** UNTRANSLATED */ + "hello": "Hello", + "world": "世界", + } + ``` + +- f8408fa77: rename the package `phrases-ui` to `phrases-experience` +- f6723d5e2: rename the package `ui` to `experience` +- 310698b0d: align cli output for a better looking +- Updated dependencies [e8b0b1d02] +- Updated dependencies [f8408fa77] +- Updated dependencies [17fd64e64] +- Updated dependencies [f6723d5e2] +- Updated dependencies [310698b0d] +- Updated dependencies [5d78c7271] + - @logto/schemas@1.9.0 + - @logto/phrases@1.5.0 + - @logto/phrases-experience@1.3.0 + - @logto/core-kit@2.1.0 + - @logto/shared@2.0.1 + ## 1.8.0 ### Minor Changes diff --git a/packages/cli/package.json b/packages/cli/package.json index 515c8d925..087b94b0b 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,6 +1,6 @@ { "name": "@logto/cli", - "version": "1.8.0", + "version": "1.9.0", "description": "Logto CLI.", "author": "Silverhand Inc. ", "homepage": "https://github.com/logto-io/logto#readme", @@ -44,12 +44,12 @@ }, "dependencies": { "@logto/connector-kit": "workspace:^1.1.1", - "@logto/core-kit": "workspace:^2.0.1", + "@logto/core-kit": "workspace:^2.1.0", "@logto/language-kit": "workspace:^1.0.0", - "@logto/phrases": "workspace:^1.4.1", - "@logto/phrases-experience": "workspace:^1.2.0", - "@logto/schemas": "workspace:1.8.0", - "@logto/shared": "workspace:^2.0.0", + "@logto/phrases": "workspace:^1.5.0", + "@logto/phrases-experience": "workspace:^1.3.0", + "@logto/schemas": "workspace:1.9.0", + "@logto/shared": "workspace:^2.0.1", "@silverhand/essentials": "^2.8.4", "chalk": "^5.0.0", "decamelize": "^6.0.0", diff --git a/packages/console/CHANGELOG.md b/packages/console/CHANGELOG.md index d9dd25737..fc6f76b5f 100644 --- a/packages/console/CHANGELOG.md +++ b/packages/console/CHANGELOG.md @@ -1,5 +1,53 @@ # Change Log +## 1.7.0 + +### Minor Changes + +- e8b0b1d02: feature: password policy + + ### Summary + + This feature enables custom password policy for users. Now it is possible to guard with the following rules when a user is creating a new password: + + - Minimum length (default: `8`) + - Minimum character types (default: `1`) + - If the password has been pwned (default: `true`) + - If the password is exactly the same as or made up of the restricted phrases: + - Repetitive or sequential characters (default: `true`) + - User information (default: `true`) + - Custom words (default: `[]`) + + If you are an existing Logto Cloud user or upgrading from a previous version, to ensure a smooth experience, we'll keep the original policy as much as possible: + + > The original password policy requires a minimum length of 8 and at least 2 character types (letters, numbers, and symbols). + + Note in the new policy implementation, it is not possible to combine lower and upper case letters into one character type. So the original password policy will be translated into the following: + + - Minimum length: `8` + - Minimum character types: `2` + - Pwned: `false` + - Repetitive or sequential characters: `false` + - User information: `false` + - Custom words: `[]` + + If you want to change the policy, you can do it: + + - Logto Console -> Sign-in experience -> Password policy. + - Update `passwordPolicy` property in the sign-in experience via Management API. + + ### Side effects + + - All new users will be affected by the new policy immediately. + - Existing users will not be affected by the new policy until they change their password. + - We removed password restrictions when adding or updating a user via Management API. + +### Patch Changes + +- f8408fa77: rename the package `phrases-ui` to `phrases-experience` +- 18e05586c: fix the app crash when inputting verification code in Console profile page +- f6723d5e2: rename the package `ui` to `experience` + ## 1.6.0 ### Minor Changes diff --git a/packages/console/package.json b/packages/console/package.json index 672516903..3092fcbc5 100644 --- a/packages/console/package.json +++ b/packages/console/package.json @@ -1,6 +1,6 @@ { "name": "@logto/console", - "version": "1.6.0", + "version": "1.7.0", "description": "> TODO: description", "author": "Silverhand Inc. ", "homepage": "https://github.com/logto-io/logto#readme", @@ -28,13 +28,13 @@ "@logto/app-insights": "workspace:^1.3.1", "@logto/cloud": "0.2.5-444ed49", "@logto/connector-kit": "workspace:^1.1.1", - "@logto/core-kit": "workspace:^2.0.1", + "@logto/core-kit": "workspace:^2.1.0", "@logto/language-kit": "workspace:^1.0.0", - "@logto/phrases": "workspace:^1.4.1", - "@logto/phrases-experience": "workspace:^1.2.0", + "@logto/phrases": "workspace:^1.5.0", + "@logto/phrases-experience": "workspace:^1.3.0", "@logto/react": "^2.1.0", - "@logto/schemas": "workspace:^1.8.0", - "@logto/shared": "workspace:^2.0.0", + "@logto/schemas": "workspace:^1.9.0", + "@logto/shared": "workspace:^2.0.1", "@mdx-js/react": "^1.6.22", "@parcel/compressor-brotli": "2.9.3", "@parcel/compressor-gzip": "2.9.3", diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index b9076a53d..7ed3cadd7 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/CHANGELOG.md @@ -1,5 +1,70 @@ # Change Log +## 1.9.0 + +### Minor Changes + +- e8b0b1d02: feature: password policy + + ### Summary + + This feature enables custom password policy for users. Now it is possible to guard with the following rules when a user is creating a new password: + + - Minimum length (default: `8`) + - Minimum character types (default: `1`) + - If the password has been pwned (default: `true`) + - If the password is exactly the same as or made up of the restricted phrases: + - Repetitive or sequential characters (default: `true`) + - User information (default: `true`) + - Custom words (default: `[]`) + + If you are an existing Logto Cloud user or upgrading from a previous version, to ensure a smooth experience, we'll keep the original policy as much as possible: + + > The original password policy requires a minimum length of 8 and at least 2 character types (letters, numbers, and symbols). + + Note in the new policy implementation, it is not possible to combine lower and upper case letters into one character type. So the original password policy will be translated into the following: + + - Minimum length: `8` + - Minimum character types: `2` + - Pwned: `false` + - Repetitive or sequential characters: `false` + - User information: `false` + - Custom words: `[]` + + If you want to change the policy, you can do it: + + - Logto Console -> Sign-in experience -> Password policy. + - Update `passwordPolicy` property in the sign-in experience via Management API. + + ### Side effects + + - All new users will be affected by the new policy immediately. + - Existing users will not be affected by the new policy until they change their password. + - We removed password restrictions when adding or updating a user via Management API. + +- 17fd64e64: Support region option for s3 storage + +### Patch Changes + +- f8408fa77: rename the package `phrases-ui` to `phrases-experience` +- f6723d5e2: rename the package `ui` to `experience` +- Updated dependencies [e8b0b1d02] +- Updated dependencies [daf9674b6] +- Updated dependencies [f8408fa77] +- Updated dependencies [17fd64e64] +- Updated dependencies [18e05586c] +- Updated dependencies [f6723d5e2] +- Updated dependencies [310698b0d] +- Updated dependencies [5d78c7271] + - @logto/schemas@1.9.0 + - @logto/console@1.7.0 + - @logto/phrases@1.5.0 + - @logto/phrases-experience@1.3.0 + - @logto/core-kit@2.1.0 + - @logto/experience@1.2.0 + - @logto/cli@1.9.0 + - @logto/shared@2.0.1 + ## 1.8.0 ### Patch Changes diff --git a/packages/core/package.json b/packages/core/package.json index 6cb341acf..d41929e99 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@logto/core", - "version": "1.8.0", + "version": "1.9.0", "description": "The open source identity solution.", "main": "build/index.js", "author": "Silverhand Inc. ", @@ -30,16 +30,16 @@ "@koa/cors": "^4.0.0", "@logto/affiliate": "^0.1.0", "@logto/app-insights": "workspace:^1.3.1", - "@logto/cli": "workspace:^1.8.0", + "@logto/cli": "workspace:^1.9.0", "@logto/connector-kit": "workspace:^1.1.1", "@logto/console": "workspace:*", - "@logto/core-kit": "workspace:^2.0.1", + "@logto/core-kit": "workspace:^2.1.0", "@logto/demo-app": "workspace:*", "@logto/language-kit": "workspace:^1.0.0", - "@logto/phrases": "workspace:^1.4.1", - "@logto/phrases-experience": "workspace:^1.2.0", - "@logto/schemas": "workspace:^1.8.0", - "@logto/shared": "workspace:^2.0.0", + "@logto/phrases": "workspace:^1.5.0", + "@logto/phrases-experience": "workspace:^1.3.0", + "@logto/schemas": "workspace:^1.9.0", + "@logto/shared": "workspace:^2.0.1", "@logto/experience": "workspace:*", "@silverhand/essentials": "^2.8.4", "@withtyped/client": "^0.7.22", diff --git a/packages/create/CHANGELOG.md b/packages/create/CHANGELOG.md index 6ba18f963..3821a4fd5 100644 --- a/packages/create/CHANGELOG.md +++ b/packages/create/CHANGELOG.md @@ -1,5 +1,15 @@ # Change Log +## 1.9.0 + +### Patch Changes + +- Updated dependencies [daf9674b6] +- Updated dependencies [f8408fa77] +- Updated dependencies [f6723d5e2] +- Updated dependencies [310698b0d] + - @logto/cli@1.9.0 + ## 1.8.0 ### Patch Changes diff --git a/packages/create/package.json b/packages/create/package.json index 8255a8de6..fde197740 100644 --- a/packages/create/package.json +++ b/packages/create/package.json @@ -1,6 +1,6 @@ { "name": "@logto/create", - "version": "1.8.0", + "version": "1.9.0", "author": "Silverhand Inc. ", "license": "MPL-2.0", "type": "module", @@ -15,6 +15,6 @@ "node": "^18.12.0" }, "dependencies": { - "@logto/cli": "workspace:^1.8.0" + "@logto/cli": "workspace:^1.9.0" } } diff --git a/packages/experience/CHANGELOG.md b/packages/experience/CHANGELOG.md index 42dea13a4..03ca85057 100644 --- a/packages/experience/CHANGELOG.md +++ b/packages/experience/CHANGELOG.md @@ -1,5 +1,52 @@ # Change Log +## 1.2.0 + +### Minor Changes + +- e8b0b1d02: feature: password policy + + ### Summary + + This feature enables custom password policy for users. Now it is possible to guard with the following rules when a user is creating a new password: + + - Minimum length (default: `8`) + - Minimum character types (default: `1`) + - If the password has been pwned (default: `true`) + - If the password is exactly the same as or made up of the restricted phrases: + - Repetitive or sequential characters (default: `true`) + - User information (default: `true`) + - Custom words (default: `[]`) + + If you are an existing Logto Cloud user or upgrading from a previous version, to ensure a smooth experience, we'll keep the original policy as much as possible: + + > The original password policy requires a minimum length of 8 and at least 2 character types (letters, numbers, and symbols). + + Note in the new policy implementation, it is not possible to combine lower and upper case letters into one character type. So the original password policy will be translated into the following: + + - Minimum length: `8` + - Minimum character types: `2` + - Pwned: `false` + - Repetitive or sequential characters: `false` + - User information: `false` + - Custom words: `[]` + + If you want to change the policy, you can do it: + + - Logto Console -> Sign-in experience -> Password policy. + - Update `passwordPolicy` property in the sign-in experience via Management API. + + ### Side effects + + - All new users will be affected by the new policy immediately. + - Existing users will not be affected by the new policy until they change their password. + - We removed password restrictions when adding or updating a user via Management API. + +### Patch Changes + +- f8408fa77: rename the package `phrases-ui` to `phrases-experience` +- f6723d5e2: rename the package `ui` to `experience` + ## 1.1.5 ### Patch Changes diff --git a/packages/experience/package.json b/packages/experience/package.json index f7ab4ef92..fe499d140 100644 --- a/packages/experience/package.json +++ b/packages/experience/package.json @@ -1,6 +1,6 @@ { "name": "@logto/experience", - "version": "1.1.5", + "version": "1.2.0", "license": "MPL-2.0", "type": "module", "private": true, @@ -23,11 +23,11 @@ "@jest/types": "^29.5.0", "@logto/app-insights": "workspace:^1.3.1", "@logto/connector-kit": "workspace:^1.1.1", - "@logto/core-kit": "workspace:^2.0.1", + "@logto/core-kit": "workspace:^2.1.0", "@logto/language-kit": "workspace:^1.0.0", - "@logto/phrases": "workspace:^1.4.1", - "@logto/phrases-experience": "workspace:^1.2.0", - "@logto/schemas": "workspace:^1.6.0", + "@logto/phrases": "workspace:^1.5.0", + "@logto/phrases-experience": "workspace:^1.3.0", + "@logto/schemas": "workspace:^1.9.0", "@parcel/compressor-brotli": "2.9.3", "@parcel/compressor-gzip": "2.9.3", "@parcel/core": "2.9.3", diff --git a/packages/integration-tests/CHANGELOG.md b/packages/integration-tests/CHANGELOG.md index 60e2fc7d4..578562a57 100644 --- a/packages/integration-tests/CHANGELOG.md +++ b/packages/integration-tests/CHANGELOG.md @@ -1,5 +1,12 @@ # Change Log +## 1.4.1 + +### Patch Changes + +- f8408fa77: rename the package `phrases-ui` to `phrases-experience` +- f6723d5e2: rename the package `ui` to `experience` + ## 1.4.0 ### Minor Changes diff --git a/packages/integration-tests/package.json b/packages/integration-tests/package.json index 2b805330f..efd8245fc 100644 --- a/packages/integration-tests/package.json +++ b/packages/integration-tests/package.json @@ -1,6 +1,6 @@ { "name": "@logto/integration-tests", - "version": "1.4.0", + "version": "1.4.1", "description": "Integration tests for Logto.", "author": "Silverhand Inc. ", "license": "MPL-2.0", @@ -26,8 +26,8 @@ "@logto/connector-kit": "workspace:^1.1.0", "@logto/js": "^2.1.1", "@logto/node": "^2.1.1", - "@logto/schemas": "workspace:^1.6.0", - "@logto/shared": "workspace:^2.0.0", + "@logto/schemas": "workspace:^1.9.0", + "@logto/shared": "workspace:^2.0.1", "@silverhand/eslint-config": "4.0.1", "@silverhand/essentials": "^2.8.4", "@silverhand/ts-config": "4.0.0", diff --git a/packages/phrases-experience/CHANGELOG.md b/packages/phrases-experience/CHANGELOG.md index 453b5537f..43cb9cfe0 100644 --- a/packages/phrases-experience/CHANGELOG.md +++ b/packages/phrases-experience/CHANGELOG.md @@ -1,5 +1,54 @@ # Change Log +## 1.3.0 + +### Minor Changes + +- e8b0b1d02: feature: password policy + + ### Summary + + This feature enables custom password policy for users. Now it is possible to guard with the following rules when a user is creating a new password: + + - Minimum length (default: `8`) + - Minimum character types (default: `1`) + - If the password has been pwned (default: `true`) + - If the password is exactly the same as or made up of the restricted phrases: + - Repetitive or sequential characters (default: `true`) + - User information (default: `true`) + - Custom words (default: `[]`) + + If you are an existing Logto Cloud user or upgrading from a previous version, to ensure a smooth experience, we'll keep the original policy as much as possible: + + > The original password policy requires a minimum length of 8 and at least 2 character types (letters, numbers, and symbols). + + Note in the new policy implementation, it is not possible to combine lower and upper case letters into one character type. So the original password policy will be translated into the following: + + - Minimum length: `8` + - Minimum character types: `2` + - Pwned: `false` + - Repetitive or sequential characters: `false` + - User information: `false` + - Custom words: `[]` + + If you want to change the policy, you can do it: + + - Logto Console -> Sign-in experience -> Password policy. + - Update `passwordPolicy` property in the sign-in experience via Management API. + + ### Side effects + + - All new users will be affected by the new policy immediately. + - Existing users will not be affected by the new policy until they change their password. + - We removed password restrictions when adding or updating a user via Management API. + +### Patch Changes + +- f8408fa77: rename the package `phrases-ui` to `phrases-experience` +- f6723d5e2: rename the package `ui` to `experience` +- Updated dependencies [e8b0b1d02] + - @logto/core-kit@2.1.0 + ## 1.2.0 ### Minor Changes diff --git a/packages/phrases-experience/package.json b/packages/phrases-experience/package.json index b54ac82b4..50306fcff 100644 --- a/packages/phrases-experience/package.json +++ b/packages/phrases-experience/package.json @@ -1,6 +1,6 @@ { "name": "@logto/phrases-experience", - "version": "1.2.0", + "version": "1.3.0", "description": "Logto shared phrases (i18n) for experience.", "author": "Silverhand Inc. ", "homepage": "https://github.com/logto-io/logto#readme", @@ -33,7 +33,7 @@ "url": "https://github.com/logto-io/logto/issues" }, "dependencies": { - "@logto/core-kit": "workspace:^2.0.1", + "@logto/core-kit": "workspace:^2.1.0", "@logto/language-kit": "workspace:^1.0.0", "@silverhand/essentials": "^2.8.4" }, diff --git a/packages/phrases/CHANGELOG.md b/packages/phrases/CHANGELOG.md index 43e11e466..1413d6da9 100644 --- a/packages/phrases/CHANGELOG.md +++ b/packages/phrases/CHANGELOG.md @@ -1,5 +1,47 @@ # Change Log +## 1.5.0 + +### Minor Changes + +- e8b0b1d02: feature: password policy + + ### Summary + + This feature enables custom password policy for users. Now it is possible to guard with the following rules when a user is creating a new password: + + - Minimum length (default: `8`) + - Minimum character types (default: `1`) + - If the password has been pwned (default: `true`) + - If the password is exactly the same as or made up of the restricted phrases: + - Repetitive or sequential characters (default: `true`) + - User information (default: `true`) + - Custom words (default: `[]`) + + If you are an existing Logto Cloud user or upgrading from a previous version, to ensure a smooth experience, we'll keep the original policy as much as possible: + + > The original password policy requires a minimum length of 8 and at least 2 character types (letters, numbers, and symbols). + + Note in the new policy implementation, it is not possible to combine lower and upper case letters into one character type. So the original password policy will be translated into the following: + + - Minimum length: `8` + - Minimum character types: `2` + - Pwned: `false` + - Repetitive or sequential characters: `false` + - User information: `false` + - Custom words: `[]` + + If you want to change the policy, you can do it: + + - Logto Console -> Sign-in experience -> Password policy. + - Update `passwordPolicy` property in the sign-in experience via Management API. + + ### Side effects + + - All new users will be affected by the new policy immediately. + - Existing users will not be affected by the new policy until they change their password. + - We removed password restrictions when adding or updating a user via Management API. + ## 1.4.1 ### Patch Changes diff --git a/packages/phrases/package.json b/packages/phrases/package.json index 60593cfbd..ef0818527 100644 --- a/packages/phrases/package.json +++ b/packages/phrases/package.json @@ -1,6 +1,6 @@ { "name": "@logto/phrases", - "version": "1.4.1", + "version": "1.5.0", "description": "Logto shared phrases (i18n).", "author": "Silverhand Inc. ", "homepage": "https://github.com/logto-io/logto#readme", diff --git a/packages/schemas/CHANGELOG.md b/packages/schemas/CHANGELOG.md index 538017f67..0ed59fefc 100644 --- a/packages/schemas/CHANGELOG.md +++ b/packages/schemas/CHANGELOG.md @@ -1,5 +1,67 @@ # Change Log +## 1.9.0 + +### Minor Changes + +- e8b0b1d02: feature: password policy + + ### Summary + + This feature enables custom password policy for users. Now it is possible to guard with the following rules when a user is creating a new password: + + - Minimum length (default: `8`) + - Minimum character types (default: `1`) + - If the password has been pwned (default: `true`) + - If the password is exactly the same as or made up of the restricted phrases: + - Repetitive or sequential characters (default: `true`) + - User information (default: `true`) + - Custom words (default: `[]`) + + If you are an existing Logto Cloud user or upgrading from a previous version, to ensure a smooth experience, we'll keep the original policy as much as possible: + + > The original password policy requires a minimum length of 8 and at least 2 character types (letters, numbers, and symbols). + + Note in the new policy implementation, it is not possible to combine lower and upper case letters into one character type. So the original password policy will be translated into the following: + + - Minimum length: `8` + - Minimum character types: `2` + - Pwned: `false` + - Repetitive or sequential characters: `false` + - User information: `false` + - Custom words: `[]` + + If you want to change the policy, you can do it: + + - Logto Console -> Sign-in experience -> Password policy. + - Update `passwordPolicy` property in the sign-in experience via Management API. + + ### Side effects + + - All new users will be affected by the new policy immediately. + - Existing users will not be affected by the new policy until they change their password. + - We removed password restrictions when adding or updating a user via Management API. + +- 17fd64e64: Support region option for s3 storage +- 5d78c7271: Add `type` field to `roles` schema. + + `type` can be either 'User' or 'MachineToMachine' in our case, this change distinguish between the two types of roles. + Roles with type 'MachineToMachine' are not allowed to be assigned to users and 'User' roles can not be assigned to machine-to-machine apps. + It's worth noting that we do not differentiate by `scope` (or `permission` in Admin Console), so a scope can be assigned to both the 'User' role and the 'MachineToMachine' role simultaneously. + +### Patch Changes + +- f8408fa77: rename the package `phrases-ui` to `phrases-experience` +- f6723d5e2: rename the package `ui` to `experience` +- Updated dependencies [e8b0b1d02] +- Updated dependencies [f8408fa77] +- Updated dependencies [f6723d5e2] +- Updated dependencies [310698b0d] + - @logto/phrases@1.5.0 + - @logto/phrases-experience@1.3.0 + - @logto/core-kit@2.1.0 + - @logto/shared@2.0.1 + ## 1.8.0 ### Patch Changes diff --git a/packages/schemas/alterations/next-1693554904-add-possword-policy.ts b/packages/schemas/alterations/1.9.0-1693554904-add-possword-policy.ts similarity index 100% rename from packages/schemas/alterations/next-1693554904-add-possword-policy.ts rename to packages/schemas/alterations/1.9.0-1693554904-add-possword-policy.ts diff --git a/packages/schemas/alterations/next-1694399696-add-type-col-to-roles-table.ts b/packages/schemas/alterations/1.9.0-1694399696-add-type-col-to-roles-table.ts similarity index 100% rename from packages/schemas/alterations/next-1694399696-add-type-col-to-roles-table.ts rename to packages/schemas/alterations/1.9.0-1694399696-add-type-col-to-roles-table.ts diff --git a/packages/schemas/alterations/next-1694418765-specify-check-role-type-function-to-be-public-schema.ts b/packages/schemas/alterations/1.9.0-1694418765-specify-check-role-type-function-to-be-public-schema.ts similarity index 100% rename from packages/schemas/alterations/next-1694418765-specify-check-role-type-function-to-be-public-schema.ts rename to packages/schemas/alterations/1.9.0-1694418765-specify-check-role-type-function-to-be-public-schema.ts diff --git a/packages/schemas/alterations/next-1694484927-remove-deprecated-challenge-flag.ts b/packages/schemas/alterations/1.9.0-1694484927-remove-deprecated-challenge-flag.ts similarity index 100% rename from packages/schemas/alterations/next-1694484927-remove-deprecated-challenge-flag.ts rename to packages/schemas/alterations/1.9.0-1694484927-remove-deprecated-challenge-flag.ts diff --git a/packages/schemas/alterations/next-1694487524-sie-mfa.ts b/packages/schemas/alterations/1.9.0-1694487524-sie-mfa.ts similarity index 100% rename from packages/schemas/alterations/next-1694487524-sie-mfa.ts rename to packages/schemas/alterations/1.9.0-1694487524-sie-mfa.ts diff --git a/packages/schemas/alterations/next-1694509714-keep-existing-password-policy.ts b/packages/schemas/alterations/1.9.0-1694509714-keep-existing-password-policy.ts similarity index 100% rename from packages/schemas/alterations/next-1694509714-keep-existing-password-policy.ts rename to packages/schemas/alterations/1.9.0-1694509714-keep-existing-password-policy.ts diff --git a/packages/schemas/alterations/next-1694746763-user-verifications.ts b/packages/schemas/alterations/1.9.0-1694746763-user-verifications.ts similarity index 100% rename from packages/schemas/alterations/next-1694746763-user-verifications.ts rename to packages/schemas/alterations/1.9.0-1694746763-user-verifications.ts diff --git a/packages/schemas/package.json b/packages/schemas/package.json index 29ce287f1..d9ac048dd 100644 --- a/packages/schemas/package.json +++ b/packages/schemas/package.json @@ -1,6 +1,6 @@ { "name": "@logto/schemas", - "version": "1.8.0", + "version": "1.9.0", "author": "Silverhand Inc. ", "license": "MPL-2.0", "type": "module", @@ -81,11 +81,11 @@ "prettier": "@silverhand/eslint-config/.prettierrc", "dependencies": { "@logto/connector-kit": "workspace:^1.1.1", - "@logto/core-kit": "workspace:^2.0.1", + "@logto/core-kit": "workspace:^2.1.0", "@logto/language-kit": "workspace:^1.0.0", - "@logto/phrases": "workspace:^1.4.1", - "@logto/phrases-experience": "workspace:^1.2.0", - "@logto/shared": "workspace:^2.0.0", + "@logto/phrases": "workspace:^1.5.0", + "@logto/phrases-experience": "workspace:^1.3.0", + "@logto/shared": "workspace:^2.0.1", "@withtyped/server": "^0.12.9" }, "peerDependencies": { diff --git a/packages/shared/CHANGELOG.md b/packages/shared/CHANGELOG.md index c084789aa..3cfcfb0f4 100644 --- a/packages/shared/CHANGELOG.md +++ b/packages/shared/CHANGELOG.md @@ -1,5 +1,11 @@ # Change Log +## 2.0.1 + +### Patch Changes + +- 310698b0d: align cli output for a better looking + ## 2.0.0 ### Major Changes diff --git a/packages/shared/package.json b/packages/shared/package.json index 5897c5498..55b0de7b1 100644 --- a/packages/shared/package.json +++ b/packages/shared/package.json @@ -1,6 +1,6 @@ { "name": "@logto/shared", - "version": "2.0.0", + "version": "2.0.1", "main": "lib/index.js", "author": "Silverhand Inc. ", "license": "MPL-2.0", diff --git a/packages/toolkit/core-kit/CHANGELOG.md b/packages/toolkit/core-kit/CHANGELOG.md index 17fe85e42..b3f52aa2d 100644 --- a/packages/toolkit/core-kit/CHANGELOG.md +++ b/packages/toolkit/core-kit/CHANGELOG.md @@ -1,5 +1,52 @@ # Change Log +## 2.1.0 + +### Minor Changes + +- e8b0b1d02: feature: password policy + + ### Summary + + This feature enables custom password policy for users. Now it is possible to guard with the following rules when a user is creating a new password: + + - Minimum length (default: `8`) + - Minimum character types (default: `1`) + - If the password has been pwned (default: `true`) + - If the password is exactly the same as or made up of the restricted phrases: + - Repetitive or sequential characters (default: `true`) + - User information (default: `true`) + - Custom words (default: `[]`) + + If you are an existing Logto Cloud user or upgrading from a previous version, to ensure a smooth experience, we'll keep the original policy as much as possible: + + > The original password policy requires a minimum length of 8 and at least 2 character types (letters, numbers, and symbols). + + Note in the new policy implementation, it is not possible to combine lower and upper case letters into one character type. So the original password policy will be translated into the following: + + - Minimum length: `8` + - Minimum character types: `2` + - Pwned: `false` + - Repetitive or sequential characters: `false` + - User information: `false` + - Custom words: `[]` + + If you want to change the policy, you can do it: + + - Logto Console -> Sign-in experience -> Password policy. + - Update `passwordPolicy` property in the sign-in experience via Management API. + + ### Side effects + + - All new users will be affected by the new policy immediately. + - Existing users will not be affected by the new policy until they change their password. + - We removed password restrictions when adding or updating a user via Management API. + +### Patch Changes + +- Updated dependencies [310698b0d] + - @logto/shared@2.0.1 + ## 2.0.1 ### Patch Changes diff --git a/packages/toolkit/core-kit/package.json b/packages/toolkit/core-kit/package.json index 629c6778f..e5692718e 100644 --- a/packages/toolkit/core-kit/package.json +++ b/packages/toolkit/core-kit/package.json @@ -1,6 +1,6 @@ { "name": "@logto/core-kit", - "version": "2.0.1", + "version": "2.1.0", "author": "Silverhand Inc. ", "homepage": "https://github.com/logto-io/toolkit#readme", "repository": { @@ -44,7 +44,7 @@ }, "dependencies": { "@logto/language-kit": "workspace:^1.0.0", - "@logto/shared": "workspace:^2.0.0", + "@logto/shared": "workspace:^2.0.1", "color": "^4.2.3" }, "optionalDependencies": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 10a928769..6e0fce6bb 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -107,22 +107,22 @@ importers: specifier: workspace:^1.1.1 version: link:../toolkit/connector-kit '@logto/core-kit': - specifier: workspace:^2.0.1 + specifier: workspace:^2.1.0 version: link:../toolkit/core-kit '@logto/language-kit': specifier: workspace:^1.0.0 version: link:../toolkit/language-kit '@logto/phrases': - specifier: workspace:^1.4.1 + specifier: workspace:^1.5.0 version: link:../phrases '@logto/phrases-experience': - specifier: workspace:^1.2.0 + specifier: workspace:^1.3.0 version: link:../phrases-experience '@logto/schemas': - specifier: workspace:1.8.0 + specifier: workspace:1.9.0 version: link:../schemas '@logto/shared': - specifier: workspace:^2.0.0 + specifier: workspace:^2.0.1 version: link:../shared '@silverhand/essentials': specifier: ^2.8.4 @@ -2840,25 +2840,25 @@ importers: specifier: workspace:^1.1.1 version: link:../toolkit/connector-kit '@logto/core-kit': - specifier: workspace:^2.0.1 + specifier: workspace:^2.1.0 version: link:../toolkit/core-kit '@logto/language-kit': specifier: workspace:^1.0.0 version: link:../toolkit/language-kit '@logto/phrases': - specifier: workspace:^1.4.1 + specifier: workspace:^1.5.0 version: link:../phrases '@logto/phrases-experience': - specifier: workspace:^1.2.0 + specifier: workspace:^1.3.0 version: link:../phrases-experience '@logto/react': specifier: ^2.1.0 version: 2.1.0(react@18.2.0) '@logto/schemas': - specifier: workspace:^1.8.0 + specifier: workspace:^1.9.0 version: link:../schemas '@logto/shared': - specifier: workspace:^2.0.0 + specifier: workspace:^2.0.1 version: link:../shared '@mdx-js/react': specifier: ^1.6.22 @@ -3131,7 +3131,7 @@ importers: specifier: workspace:^1.3.1 version: link:../app-insights '@logto/cli': - specifier: workspace:^1.8.0 + specifier: workspace:^1.9.0 version: link:../cli '@logto/connector-kit': specifier: workspace:^1.1.1 @@ -3140,7 +3140,7 @@ importers: specifier: workspace:* version: link:../console '@logto/core-kit': - specifier: workspace:^2.0.1 + specifier: workspace:^2.1.0 version: link:../toolkit/core-kit '@logto/demo-app': specifier: workspace:* @@ -3152,16 +3152,16 @@ importers: specifier: workspace:^1.0.0 version: link:../toolkit/language-kit '@logto/phrases': - specifier: workspace:^1.4.1 + specifier: workspace:^1.5.0 version: link:../phrases '@logto/phrases-experience': - specifier: workspace:^1.2.0 + specifier: workspace:^1.3.0 version: link:../phrases-experience '@logto/schemas': - specifier: workspace:^1.8.0 + specifier: workspace:^1.9.0 version: link:../schemas '@logto/shared': - specifier: workspace:^2.0.0 + specifier: workspace:^2.0.1 version: link:../shared '@silverhand/essentials': specifier: ^2.8.4 @@ -3378,7 +3378,7 @@ importers: packages/create: dependencies: '@logto/cli': - specifier: workspace:^1.8.0 + specifier: workspace:^1.9.0 version: link:../cli packages/demo-app: @@ -3480,19 +3480,19 @@ importers: specifier: workspace:^1.1.1 version: link:../toolkit/connector-kit '@logto/core-kit': - specifier: workspace:^2.0.1 + specifier: workspace:^2.1.0 version: link:../toolkit/core-kit '@logto/language-kit': specifier: workspace:^1.0.0 version: link:../toolkit/language-kit '@logto/phrases': - specifier: workspace:^1.4.1 + specifier: workspace:^1.5.0 version: link:../phrases '@logto/phrases-experience': - specifier: workspace:^1.2.0 + specifier: workspace:^1.3.0 version: link:../phrases-experience '@logto/schemas': - specifier: workspace:^1.6.0 + specifier: workspace:^1.9.0 version: link:../schemas '@parcel/compressor-brotli': specifier: 2.9.3 @@ -3693,10 +3693,10 @@ importers: specifier: ^2.1.1 version: 2.1.1 '@logto/schemas': - specifier: workspace:^1.6.0 + specifier: workspace:^1.9.0 version: link:../schemas '@logto/shared': - specifier: workspace:^2.0.0 + specifier: workspace:^2.0.1 version: link:../shared '@silverhand/eslint-config': specifier: 4.0.1 @@ -3787,7 +3787,7 @@ importers: packages/phrases-experience: dependencies: '@logto/core-kit': - specifier: workspace:^2.0.1 + specifier: workspace:^2.1.0 version: link:../toolkit/core-kit '@logto/language-kit': specifier: workspace:^1.0.0 @@ -3827,19 +3827,19 @@ importers: specifier: workspace:^1.1.1 version: link:../toolkit/connector-kit '@logto/core-kit': - specifier: workspace:^2.0.1 + specifier: workspace:^2.1.0 version: link:../toolkit/core-kit '@logto/language-kit': specifier: workspace:^1.0.0 version: link:../toolkit/language-kit '@logto/phrases': - specifier: workspace:^1.4.1 + specifier: workspace:^1.5.0 version: link:../phrases '@logto/phrases-experience': - specifier: workspace:^1.2.0 + specifier: workspace:^1.3.0 version: link:../phrases-experience '@logto/shared': - specifier: workspace:^2.0.0 + specifier: workspace:^2.0.1 version: link:../shared '@withtyped/server': specifier: ^0.12.9 @@ -4011,7 +4011,7 @@ importers: specifier: workspace:^1.0.0 version: link:../language-kit '@logto/shared': - specifier: workspace:^2.0.0 + specifier: workspace:^2.0.1 version: link:../../shared color: specifier: ^4.2.3