logto-io / logto

🧑‍🚀 The better identity infrastructure for developers and the open-source alternative to Auth0.
https://logto.io
Mozilla Public License 2.0
8.94k stars 446 forks source link

refactor(core): rename prefix to account #6814

Closed wangsijie closed 4 days ago

wangsijie commented 1 week ago

Summary

Per discussion, rename /profile to /account.

Testing

Existing tests should pass.

Checklist

github-actions[bot] commented 1 week ago

COMPARE TO master

Total Size Diff :chart_with_upwards_trend: +7.1 KB

Diff by File |Name|Diff| |---|---| |packages/core/src/routes/account-center/index.openapi.json|:chart_with_upwards_trend: +105 Bytes| |packages/core/src/routes/account/constants.ts|:chart_with_upwards_trend: +44 Bytes| |packages/core/src/routes/account/email-and-phone.ts|:chart_with_upwards_trend: +6.42 KB| |packages/core/src/routes/account/identities.ts|:chart_with_upwards_trend: +3.6 KB| |packages/core/src/routes/account/index.openapi.json|:chart_with_upwards_trend: +9.35 KB| |packages/core/src/routes/account/index.ts|:chart_with_upwards_trend: +5.82 KB| |packages/core/src/routes/account/middlewares/koa-account-center.ts|:chart_with_upwards_trend: +1.02 KB| |packages/core/src/routes/account/utils/get-scoped-profile.ts|:chart_with_upwards_trend: +3.17 KB| |packages/core/src/routes/init.ts|:chart_with_upwards_trend: +97 Bytes| |packages/core/src/routes/profile/email-and-phone.ts|:chart_with_upwards_trend: +6.33 KB| |packages/core/src/routes/profile/identities.ts|:chart_with_upwards_trend: +3.53 KB| |packages/core/src/routes/profile/index.openapi.json|:chart_with_upwards_trend: +9.35 KB| |packages/core/src/routes/profile/index.ts|:chart_with_upwards_trend: +5.72 KB| |packages/core/src/routes/profile/middlewares/koa-account-center.ts|:chart_with_upwards_trend: +1.02 KB| |packages/core/src/routes/profile/utils/get-scoped-profile.ts|:chart_with_upwards_trend: +3.17 KB| |packages/core/src/routes/swagger/utils/operation-id.ts|0 Bytes| |packages/core/src/routes/types.ts|0 Bytes| |packages/core/src/routes/verification/index.ts|:chart_with_upwards_trend: +106 Bytes| |packages/core/src/routes/well-known/well-known.openapi.ts|0 Bytes| |packages/integration-tests/src/api/profile.ts|0 Bytes| |packages/integration-tests/src/tests/api/account/account-center-reject.test.ts|:chart_with_upwards_trend: +3.63 KB| |packages/integration-tests/src/tests/api/account/email-and-phone.test.ts|:warning: :chart_with_upwards_trend: +23.52 KB| |packages/integration-tests/src/tests/api/account/index.test.ts|:warning: :chart_with_upwards_trend: +11.09 KB| |packages/integration-tests/src/tests/api/account/social.test.ts|:chart_with_upwards_trend: +8.85 KB| |packages/integration-tests/src/tests/api/profile/account-center-reject.test.ts|:chart_with_upwards_trend: +3.64 KB| |packages/integration-tests/src/tests/api/profile/email-and-phone.test.ts|:chart_with_upwards_trend: +16.07 KB| |packages/integration-tests/src/tests/api/profile/index.test.ts|:chart_with_upwards_trend: +11.09 KB| |packages/integration-tests/src/tests/api/profile/social.test.ts|:chart_with_upwards_trend: +8.85 KB| |packages/schemas/src/foundations/jsonb-types/account-center.ts|:chart_with_upwards_trend: +969 Bytes|