From d39a83a8b258ec5aef0450dcb234715c115edb1c Mon Sep 17 00:00:00 2001 From: Subhankar Maiti Date: Thu, 17 Apr 2025 22:40:12 +0530 Subject: [PATCH] Release v5.0.0-beta.0 --- .eslintrc.js | 2 +- .github/actions/get-prerelease/action.yml | 2 +- .github/actions/release-create/action.yml | 2 +- .github/dependabot.yml | 10 ++-- .github/stale.yml | 2 +- .prettierrc.js | 2 +- .version | 2 +- .watchmanconfig | 2 +- CHANGELOG.md | 8 +++ docs/assets/hierarchy.js | 2 +- docs/classes/TimeoutError.html | 6 +- docs/classes/Types.Auth.html | 42 ++++++------- docs/classes/Types.BaseError.html | 6 +- docs/classes/Types.CredentialsManager.html | 18 +++--- docs/classes/Types.Users.html | 6 +- docs/classes/Types.WebAuth.html | 8 +-- docs/classes/default.html | 12 ++-- docs/enums/LocalAuthenticationLevel.html | 8 +-- docs/enums/LocalAuthenticationStrategy.html | 6 +- ...SafariViewControllerPresentationStyle.html | 22 +++---- docs/functions/Auth0Provider.html | 4 +- docs/functions/useAuth0.html | 2 +- docs/hierarchy.html | 2 +- docs/index.html | 2 +- docs/interfaces/AuthorizeUrlOptions.html | 8 +-- docs/interfaces/ClearSessionOptions.html | 6 +- docs/interfaces/ClearSessionParameters.html | 6 +- docs/interfaces/CreateUserOptions.html | 22 +++---- .../ExchangeNativeSocialOptions.html | 12 ++-- docs/interfaces/ExchangeOptions.html | 8 +-- docs/interfaces/GetUserOptions.html | 4 +- .../LocalAuthenticationOptions.html | 42 ++++++------- docs/interfaces/LoginWithEmailOptions.html | 10 ++-- docs/interfaces/LoginWithOOBOptions.html | 8 +-- docs/interfaces/LoginWithOTPOptions.html | 8 +-- .../LoginWithRecoveryCodeOptions.html | 6 +- docs/interfaces/LoginWithSMSOptions.html | 10 ++-- docs/interfaces/LogoutUrlOptions.html | 8 +-- .../MultifactorChallengeOptions.html | 8 +-- docs/interfaces/PasswordRealmOptions.html | 12 ++-- .../PasswordlessWithEmailOptions.html | 8 +-- .../PasswordlessWithSMSOptions.html | 8 +-- docs/interfaces/PatchUserOptions.html | 6 +- docs/interfaces/RefreshTokenOptions.html | 6 +- docs/interfaces/ResetPasswordOptions.html | 6 +- docs/interfaces/RevokeOptions.html | 4 +- .../Types.Auth0ContextInterface.html | 44 +++++++------- docs/interfaces/Types.AuthState.html | 10 ++-- docs/interfaces/UserInfoOptions.html | 4 +- docs/interfaces/WebAuthorizeOptions.html | 12 ++-- docs/interfaces/WebAuthorizeParameters.html | 22 +++---- docs/types/Credentials.html | 14 ++--- .../MultifactorChallengeOOBResponse.html | 2 +- ...factorChallengeOOBWithBindingResponse.html | 2 +- .../MultifactorChallengeOTPResponse.html | 4 +- docs/types/MultifactorChallengeResponse.html | 2 +- docs/types/Types.Auth0Response.html | 12 ++-- docs/types/Types.Telemetry.html | 8 +-- docs/types/User.html | 42 ++++++------- example/.watchmanconfig | 2 +- jest.environment.js | 2 +- package-lock.json | 4 +- package.json | 2 +- src/management/__tests__/users.spec.js | 48 +++++++-------- src/networking/__tests__/index.spec.js | 36 +++++------ src/networking/__tests__/telemetry.spec.js | 2 +- .../__tests__/timestampConversion.spec.js | 59 ++++++++++--------- src/utils/__tests__/userConversion.spec.js | 2 +- src/utils/__tests__/whitelist.spec.js | 38 ++++++------ src/utils/camel.ts | 2 +- src/utils/fetchWithTimeout.ts | 4 +- src/utils/timestampConversion.ts | 10 ++-- src/utils/whitelist.ts | 12 ++-- src/webauth/index.ts | 4 +- tsconfig.build.json | 9 ++- 75 files changed, 412 insertions(+), 396 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 0421db75..40c6dcd0 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,4 +1,4 @@ module.exports = { root: true, extends: '@react-native-community', -}; \ No newline at end of file +}; diff --git a/.github/actions/get-prerelease/action.yml b/.github/actions/get-prerelease/action.yml index 131f93d1..ce7acdc3 100644 --- a/.github/actions/get-prerelease/action.yml +++ b/.github/actions/get-prerelease/action.yml @@ -27,4 +27,4 @@ runs: echo "PRERELEASE=false" >> $GITHUB_OUTPUT fi env: - VERSION: ${{ inputs.version }} \ No newline at end of file + VERSION: ${{ inputs.version }} diff --git a/.github/actions/release-create/action.yml b/.github/actions/release-create/action.yml index a0db443d..6a2bf804 100644 --- a/.github/actions/release-create/action.yml +++ b/.github/actions/release-create/action.yml @@ -44,4 +44,4 @@ runs: fail_on_unmatched_files: ${{ inputs.fail_on_unmatched_files }} files: ${{ inputs.files }} env: - GITHUB_TOKEN: ${{ inputs.token }} \ No newline at end of file + GITHUB_TOKEN: ${{ inputs.token }} diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 94fc8b3d..b5f45518 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -5,10 +5,10 @@ updates: directory: / schedule: interval: daily - - package-ecosystem: "npm" - directory: "/" + - package-ecosystem: 'npm' + directory: '/' schedule: - interval: "daily" + interval: 'daily' ignore: - - dependency-name: "*" - update-types: ["version-update:semver-major"] + - dependency-name: '*' + update-types: ['version-update:semver-major'] diff --git a/.github/stale.yml b/.github/stale.yml index b2e13fc7..3cc35f17 100644 --- a/.github/stale.yml +++ b/.github/stale.yml @@ -17,4 +17,4 @@ staleLabel: closed:stale # Comment to post when marking as stale. Set to `false` to disable markComment: > - This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you have not received a response for our team (apologies for the delay) and this is still a blocker, please reply with additional information or just a ping. Thank you for your contribution! 🙇‍♂️ \ No newline at end of file + This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you have not received a response for our team (apologies for the delay) and this is still a blocker, please reply with additional information or just a ping. Thank you for your contribution! 🙇‍♂️ diff --git a/.prettierrc.js b/.prettierrc.js index 6e29914c..5c4de1a4 100644 --- a/.prettierrc.js +++ b/.prettierrc.js @@ -3,4 +3,4 @@ module.exports = { jsxBracketSameLine: true, singleQuote: true, trailingComma: 'all', -}; \ No newline at end of file +}; diff --git a/.version b/.version index 7422eeba..a0d1420f 100644 --- a/.version +++ b/.version @@ -1 +1 @@ -v4.5.0 \ No newline at end of file +v5.0.0-beta.0 \ No newline at end of file diff --git a/.watchmanconfig b/.watchmanconfig index 9e26dfee..0967ef42 100644 --- a/.watchmanconfig +++ b/.watchmanconfig @@ -1 +1 @@ -{} \ No newline at end of file +{} diff --git a/CHANGELOG.md b/CHANGELOG.md index db95e81c..86aa898d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Change Log +## [v5.0.0-beta.0](https://github.com/auth0/react-native-auth0/tree/v5.0.0-beta.0) (2025-04-17) + +[Full Changelog](https://github.com/auth0/react-native-auth0/compare/v4.5.0...v5.0.0-beta.0) + +**⚠️ BREAKING CHANGES** + +- BREAKING CHANGE: feat: Support Turbo Modules [\#1101](https://github.com/auth0/react-native-auth0/pull/1101) ([guabu](https://github.com/guabu)) + ## [v4.5.0](https://github.com/auth0/react-native-auth0/tree/v4.5.0) (2025-04-17) [Full Changelog](https://github.com/auth0/react-native-auth0/compare/v4.4.0...v4.5.0) diff --git a/docs/assets/hierarchy.js b/docs/assets/hierarchy.js index 9b539efa..4b04d197 100644 --- a/docs/assets/hierarchy.js +++ b/docs/assets/hierarchy.js @@ -1,2 +1,2 @@ window.hierarchyData = - 'eJyNj8FqwzAQRP9lzkrqCMs2uiWlh57bW/BB2BssIktFWkNL8L8XN9i4pSE5LezO8N5eEEPgBH3MKyVkUdYCkU6OGrbBJ+gLZKam4U1P0Hi3PYWBX2IMEQJn61vonawEhuig0TiTEqWndW7bce8grjdocGo3U3FzXYwCsihXjINJdB/w9UFpu0TvMASazro2koc+ykzVE7TMV9D9wF32HDzTJ796pngyDS0CUhWzgJ2Ps8O/zZs+S336O6/UH4U3Nvw49if9AOr3+2Vej+P4Dc50qC0='; + 'eJyNj8tqwzAQRf/lrpXUEfID7ZLSRdftLngh7AkWkaUijaEl+N+LG2zc0pCsBmbu5Zy5IIbACfqoKiVkUdYCkU6OGrbBJ+gLZJZPw5ueoPFuewoDv8QYIgTO1rfQO1kJDNFBo3EmJUpP69y2495BXG/Q4NRupuLmuhgFZFGuGAeT6D7g64PSdoneYQg0nXVtJA99lFleT9BSraD7gbvsOXimT371TPFkGloEZF7MAnY+zg7/Nm/6LPXpb1X9VXhjw49jf9IPoH6/X6p6HMdvzAuoKw=='; diff --git a/docs/classes/TimeoutError.html b/docs/classes/TimeoutError.html index 99d9333b..2b92f44f 100644 --- a/docs/classes/TimeoutError.html +++ b/docs/classes/TimeoutError.html @@ -113,7 +113,7 @@

  • Defined in utils/fetchWithTimeout.ts:3
  • @@ -250,7 +250,7 @@

  • Defined in utils/fetchWithTimeout.ts:4
  • @@ -300,7 +300,7 @@

  • Defined in auth/index.ts:585
  • @@ -723,7 +723,7 @@

  • Defined in auth/index.ts:305
  • @@ -1042,7 +1042,7 @@

  • Defined in auth/index.ts:406
  • @@ -1147,7 +1147,7 @@

  • Defined in auth/index.ts:373
  • @@ -1257,7 +1257,7 @@

  • Defined in auth/index.ts:440
  • @@ -1353,7 +1353,7 @@

  • Defined in auth/index.ts:337
  • @@ -1450,7 +1450,7 @@

  • Defined in auth/index.ts:474
  • @@ -1648,7 +1648,7 @@

  • Defined in auth/index.ts:262
  • @@ -1737,7 +1737,7 @@

  • Defined in auth/index.ts:279
  • @@ -1851,7 +1851,7 @@

  • Defined in auth/index.ts:566
  • @@ -2126,7 +2126,7 @@

  • Defined in auth/index.ts:503
  • @@ -2210,7 +2210,7 @@

  • Defined in auth/index.ts:530
  • diff --git a/docs/classes/Types.BaseError.html b/docs/classes/Types.BaseError.html index 3af4ac11..3e3b9e21 100644 --- a/docs/classes/Types.BaseError.html +++ b/docs/classes/Types.BaseError.html @@ -120,7 +120,7 @@

  • Defined in utils/baseError.ts:1
  • @@ -271,7 +271,7 @@

  • Defined in utils/baseError.ts:3
  • @@ -315,7 +315,7 @@

    Class CredentialsManager

  • Defined in credentials-manager/index.ts:8
  • @@ -223,8 +223,8 @@

  • Defined in credentials-manager/index.ts:123credentials-manager/index.ts:121
  • @@ -395,8 +395,8 @@

  • Defined in credentials-manager/index.ts:70credentials-manager/index.ts:68
  • @@ -487,8 +487,8 @@

  • Defined in credentials-manager/index.ts:110credentials-manager/index.ts:108
  • @@ -568,8 +568,8 @@

  • Defined in credentials-manager/index.ts:31credentials-manager/index.ts:29
  • diff --git a/docs/classes/Types.Users.html b/docs/classes/Types.Users.html index 1350c768..ef5b7e1a 100644 --- a/docs/classes/Types.Users.html +++ b/docs/classes/Types.Users.html @@ -126,7 +126,7 @@

  • Defined in webauth/index.ts:79
  • @@ -515,7 +515,7 @@

    Class default

  • Defined in auth0.ts:12
  • @@ -434,7 +434,7 @@

  • Defined in auth0.ts:28
  • @@ -482,7 +482,7 @@

  • Defined in auth0.ts:55
  • diff --git a/docs/enums/LocalAuthenticationLevel.html b/docs/enums/LocalAuthenticationLevel.html index 8a3df491..720669c8 100644 --- a/docs/enums/LocalAuthenticationLevel.html +++ b/docs/enums/LocalAuthenticationLevel.html @@ -103,7 +103,7 @@

    Enumeration LocalAuthenticationLevel

  • Defined in credentials-manager/localAuthenticationLevel.ts:5
  • @@ -206,7 +206,7 @@

    Enumeration LocalAuthenticationStrategy

  • Defined in credentials-manager/localAuthenticationStrategy.ts:4
  • @@ -201,7 +201,7 @@

    Enumeration SafariViewControllerPresentationStyle

  • Defined in types.ts:601
  • @@ -272,7 +272,7 @@

  • Defined in hooks/use-auth0.ts:38
  • diff --git a/docs/hierarchy.html b/docs/hierarchy.html index 7c06f82b..210d5d59 100644 --- a/docs/hierarchy.html +++ b/docs/hierarchy.html @@ -81,7 +81,7 @@

    react-native-auth0

    Hierarchy Summary

    -
    +

    Hierarchy (View Summary
  • Defined in hooks/auth0-context.ts:143
  • @@ -287,7 +287,7 @@

    Interface UserInfoOptions

  • Defined in types.ts:512
  • @@ -189,7 +189,7 @@

    Interface WebAuthorizeOptions

  • Defined in types.ts:110
  • @@ -273,7 +273,7 @@

    Interface WebAuthorizeParameters

  • Defined in types.ts:56
  • @@ -347,7 +347,7 @@

    Indexable

  • Defined in types.ts:1
  • @@ -284,7 +284,7 @@

    Type Alias MultifactorChallengeOOBResponse

  • Defined in types.ts:583
  • diff --git a/docs/types/MultifactorChallengeOOBWithBindingResponse.html b/docs/types/MultifactorChallengeOOBWithBindingResponse.html index 7759e781..f5fa3b32 100644 --- a/docs/types/MultifactorChallengeOOBWithBindingResponse.html +++ b/docs/types/MultifactorChallengeOOBWithBindingResponse.html @@ -119,7 +119,7 @@

    Type Alias MultifactorChallengeOOBWithBindingResponse

  • Defined in types.ts:587
  • diff --git a/docs/types/MultifactorChallengeOTPResponse.html b/docs/types/MultifactorChallengeOTPResponse.html index 1ab08471..f06b9b24 100644 --- a/docs/types/MultifactorChallengeOTPResponse.html +++ b/docs/types/MultifactorChallengeOTPResponse.html @@ -112,7 +112,7 @@

    Type Alias MultifactorChallengeOTPResponse

  • Defined in types.ts:581
  • @@ -187,7 +187,7 @@

    Type Alias MultifactorChallengeResponse

  • Defined in types.ts:592
  • diff --git a/docs/types/Types.Auth0Response.html b/docs/types/Types.Auth0Response.html index f912079c..80f9fdde 100644 --- a/docs/types/Types.Auth0Response.html +++ b/docs/types/Types.Auth0Response.html @@ -148,7 +148,7 @@

    Type Parameters

  • Defined in networking/index.ts:135
  • @@ -259,7 +259,7 @@

    Type Alias Telemetry

  • Defined in networking/telemetry.ts:3
  • @@ -211,7 +211,7 @@

    Indexable

  • Defined in types.ts:29
  • @@ -490,7 +490,7 @@