Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): update dependency supertokens-web-js to v0.13.0 #472

Closed
wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jul 26, 2023

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
supertokens-web-js 0.6.0 -> 0.13.0 age adoption passing confidence

Release Notes

supertokens/supertokens-web-js (supertokens-web-js)

v0.13.0

Compare Source

Breaking Changes
  • Removes the default maxAgeInSeconds value (previously 300 seconds) in EmailVerification Claim. If the claim value is true and maxAgeInSeconds is not provided, it will not be refreshed.

v0.12.0

Compare Source

Breaking Changes
  • Removed ThirdPartyEmailPassword and ThirdPartyPasswordless recipes
  • Dropped support for FDI version 1.X
  • Added support for FDI version 2.0 and 3.0
  • Removed createCode, resendCode and consumeCode from the exports of recipe/passwordless/utils
  • Added the SESSION_ALREADY_EXISTS event to the session recipe. This is used by our pre-built UI.
Migration guide
  • If you were using ThirdPartyEmailPassword, you should now init ThirdParty and EmailPassword recipes separately. The config for the individual recipes are mostly the same, except the syntax may be different. Check our recipe guides for ThirdParty and EmailPassword for more information.

  • If you were using ThirdPartyPasswordless, you should now init ThirdParty and Passwordless recipes separately. The config for the individual recipes are mostly the same, except the syntax may be different. Check our recipe guides for ThirdParty and Passwordless for more information.

v0.11.0

Compare Source

Breaking changes

The shouldDoInterceptionBasedOnUrl function now returns true:

  • If sessionTokenBackendDomain is a valid subdomain of the URL's domain. This aligns with the behavior of browsers when sending cookies to subdomains.
  • Even if the ports of the URL you are querying are different compared to the apiDomain's port ot the sessionTokenBackendDomain port (as long as the hostname is the same, or a subdomain of the sessionTokenBackendDomain): #​217

v0.10.1

Compare Source

Fixes
  • Reduced the number of unnecessary email verification checks by fixing the default values for refetchTimeOnFalseInSeconds and maxAgeInSeconds

v0.10.0

Compare Source

Overview
Introducing multi-factor authentication

With this release, we are introducing MultiFactorAuthentication and TOTP, this will let you:

  • require (2FA or MFA) during sign in
  • make use of our TOTP

Check our guide for more information.

Changes
  • Added support for FDI 1.19 (Node SDK>= 17.0.0), but keeping support FDI version 1.17 and 1.18 (node >= 15.0.0, golang>=0.13, python>=0.15.0)
  • Added the MultiFactorAuth and TOTP recipes. To start using them you'll need compatible versions:
    • Core>=8.0.0
    • supertokens-node>=17.0.0
    • supertokens-website>=18.0.0
    • supertokens-web-js>=0.10.0
    • supertokens-auth-react>=0.39.0
Breaking changes
  • Added firstFactors into the return type of getLoginMethods and removed the enabled flags of different login methods.
    • For older FDI versions, the firstFactors array will be calculated based on those enabled flags.
  • Renamed validatorId in claim validation errors to id to match the backend SDKs
Migration guide
getLoginMethods interface change

If you used to use the enabled flags in getLoginMethods:

Before:

async function checkLoginMethods() {
    const loginMethods = await Multitenancy.getLoginMethods();
    if (loginMethods.thirdParty.enabled) {
        // custom logic
    }
    if (loginMethods.emailPassword.enabled) {
        // custom logic
    }
    if (loginMethods.passwordless.enabled) {
        // custom logic
    }
}

After:

async function checkLoginMethods() {
    const loginMethods = await Multitenancy.getLoginMethods();
    if (loginMethods.firstFactors.includes("thirdparty")) {
        // custom logic
    }
    if (loginMethods.firstFactors.includes("emailpassword")) {
        // custom logic
    }

    if (
        loginMethods.firstFactors.includes("otp-email") ||
        loginMethods.firstFactors.includes("otp-phone") ||
        loginMethods.firstFactors.includes("link-email") ||
        loginMethods.firstFactors.includes("link-phone")
    ) {
        // custom logic
    }
}
Renamed validatorId

If you used to use the validatorId prop of validationErrors, you should now use id instead.

Before:

async function checkValidators() {
    const validationErrors = await Session.validateClaims();
    for (const error of validationErrors) {
        console.log(error.validatorId, error.reason);
    }
}

After:

async function checkValidators() {
    const validationErrors = await Session.validateClaims();
    for (const error of validationErrors) {
        console.log(error.id, error.reason);
    }
}

v0.9.2

Compare Source

What's Changed

Full Changelog: supertokens/supertokens-web-js@v0.10.1...v0.9.2

v0.9.1

Compare Source

Changes
  • Added dateprovider.js bundle file to enable importing DateProvider via a script tag

v0.9.0

Compare Source

v0.8.0

Compare Source

Overview
Introducing account-linking

With this release, we are introducing AccountLinking, this will let you:

  • link accounts automatically,
  • implement manual account linking flows.

Check our guide for more information.

To use this you'll need compatible versions:

  • Core>=7.0.0
  • supertokens-node>=16.0.0 (support is pending in other backend SDKs)
  • supertokens-website>=17.0.3
  • supertokens-web-js>=0.8.0
  • supertokens-auth-react>=0.35.0
Breaking changes
  • Added support for FDI 1.18 (Node SDK>= 16.0.0), but keeping support FDI version1.17 (node >= 15.0.0, golang>=0.13, python>=0.15.0)
  • User type has changed across recipes and functions: recipe specific user types have been removed and replaced by a generic one that contains more information
  • createdNewUser has been renamed to createdNewRecipeUser
  • createCode, consumeCode, createPasswordlessCode and consumePasswordlessCode can now return status: SIGN_IN_UP_NOT_ALLOWED
  • signInAndUp and thirdPartySignInAndUp can now return new status: SIGN_IN_UP_NOT_ALLOWED
  • sendPasswordResetEmail can now return status: "PASSWORD_RESET_NOT_ALLOWED"
  • signIn and emailPasswordSignIn can now return SIGN_IN_NOT_ALLOWED
  • signUp and emailPasswordSignUp can now return SIGN_UP_NOT_ALLOWED
Migration
New User structure

We've added a generic User type instead of the old recipe specific ones. The mapping of old props to new in case you are not using account-linking:

  • user.id stays user.id
  • user.email becomes user.emails[0]
  • user.phoneNumber becomes user.phoneNumbers[0]
  • user.thirdParty becomes user.thirdParty[0]
  • user.timeJoined is still user.timeJoined
  • user.tenantIds is still user.tenantIds
Checking if a user signed up or signed in
  • When calling passwordless consumeCode / social login signinup APIs, you can check if a user signed up by:
    // Here res refers to the result the function/api functions mentioned above.
    const isNewUser = res.createdNewRecipeUser && res.user.loginMethods.length === 1;
  • When calling the emailpassword sign up API, you can check if a user signed up by:
    const isNewUser = res.user.loginMethods.length === 1;

v0.7.3

Compare Source

Fixes
  • Fixed clientType usage in thirdpartypasswordless

v0.7.2

Compare Source

Fixes
  • Fixed clientType usage in thirdpartyemailpassword and thirdpartypasswordless

v0.7.1

Compare Source

Changes
  • Removed unused tenant id param from isEmailVerified and sendVerificationEmail requests

v0.7.0

Compare Source

Added
  • Multitenancy recipe
  • Added an overrideable getTenantIdFromURL to multiple recipes
  • Optional clientType config in the input for SuperTokens.init function, that is used by thirdparty and multitenancy recipes.
Breaking changes
  • Only supporting FDI 1.17
  • Backend SDKs have to be updated first to a version that supports multi-tenancy for thirdparty
    • supertokens-node: >= 15.0.0
    • supertokens-golang: >= 0.13.0
    • supertokens-python: >= 0.15.0
  • In ThirdParty recipe,
    • Changed signatures of the functions getAuthorisationURLWithQueryParamsAndSetState
    • Removed functions - setStateAndOtherInfoToStorage, getAuthorisationURLFromBackend, generateStateToSendToOAuthProvider, verifyAndGetStateOrThrowError, getAuthCodeFromURL, getAuthErrorFromURL, getAuthStateFromURL
  • In ThirdPartyEmailpassword recipe,
    • Changed signatures of the functions getAuthorisationURLWithQueryParamsAndSetState
    • Removed functions - setStateAndOtherInfoToStorage, getAuthorisationURLFromBackend, generateStateToSendToOAuthProvider, verifyAndGetStateOrThrowError, getAuthCodeFromURL, getAuthErrorFromURL, getAuthStateFromURL
  • In ThirdPartyPasswordless recipe,
    • Changed signatures of the functions getThirdPartyAuthorisationURLWithQueryParamsAndSetState
    • Removed functions - setThirdPartyStateAndOtherInfoToStorage, getAuthorisationURLFromBackend, generateThirdPartyStateToSendToOAuthProvider, verifyAndGetThirdPartyStateOrThrowError, getThirdPartyAuthCodeFromURL, getThirdPartyAuthErrorFromURL, getThirdPartyAuthStateFromURL
Changes
  • Updates dependencies and backend config for the vue with-thirdpartyemailpassword example app
Migration
Renamed parameters in getAuthorisationURLWithQueryParamsAndSetState

Before:

    const authUrl = await ThirdPartyEmailPassword.getAuthorisationURLWithQueryParamsAndSetState({
        providerId: "google",
        authorisationURL: `${websiteDomain}/auth/callback/google`,
    });

After:

    const authUrl = await ThirdPartyEmailPassword.getAuthorisationURLWithQueryParamsAndSetState({
        thirdPartyId: "google",
        frontendRedirectURI: `${websiteDomain}/auth/callback/google`,
    });
If the provider is redirecting to the backend directly (i.e.: Apple)

Before:

    const authUrl = await ThirdPartyEmailPassword.getAuthorisationURLWithQueryParamsAndSetState({
        providerId: "apple",
        authorisationURL: `${websiteDomain}/auth/callback/apple`,
    });

After:

    const authUrl = await ThirdPartyEmailPassword.getAuthorisationURLWithQueryParamsAndSetState({
        thirdPartyId: "apple",
        frontendRedirectURI: `${websiteDomain}/auth/callback/apple`,
        redirectURIOnProviderDashboard: `${apiDomain}/auth/callback/apple`
    });

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot changed the title fix(deps): update dependency supertokens-web-js to v0.7.0 fix(deps): update dependency supertokens-web-js to v0.7.1 Jul 27, 2023
@renovate renovate bot force-pushed the renovate/supertokens-web-js-0.x branch from bbaa7f9 to 5b833fd Compare July 27, 2023 20:37
@renovate renovate bot changed the title fix(deps): update dependency supertokens-web-js to v0.7.1 fix(deps): update dependency supertokens-web-js to v0.7.2 Aug 8, 2023
@renovate renovate bot force-pushed the renovate/supertokens-web-js-0.x branch 2 times, most recently from 9afce81 to 59de009 Compare August 15, 2023 04:31
@renovate renovate bot changed the title fix(deps): update dependency supertokens-web-js to v0.7.2 fix(deps): update dependency supertokens-web-js to v0.7.3 Aug 21, 2023
@renovate renovate bot force-pushed the renovate/supertokens-web-js-0.x branch from 59de009 to 7608737 Compare August 21, 2023 10:09
@renovate renovate bot changed the title fix(deps): update dependency supertokens-web-js to v0.7.3 fix(deps): update dependency supertokens-web-js to v0.8.0 Sep 21, 2023
@renovate renovate bot force-pushed the renovate/supertokens-web-js-0.x branch 2 times, most recently from 838ead4 to cea9d12 Compare September 26, 2023 08:20
@renovate renovate bot force-pushed the renovate/supertokens-web-js-0.x branch from cea9d12 to 0d47891 Compare October 4, 2023 08:56
@renovate renovate bot force-pushed the renovate/supertokens-web-js-0.x branch 3 times, most recently from 16e5db2 to d0db3a8 Compare January 29, 2024 08:54
@renovate renovate bot changed the title fix(deps): update dependency supertokens-web-js to v0.8.0 fix(deps): update dependency supertokens-web-js to v0.9.0 Jan 29, 2024
@renovate renovate bot force-pushed the renovate/supertokens-web-js-0.x branch from d0db3a8 to 3f24529 Compare February 12, 2024 09:52
@renovate renovate bot changed the title fix(deps): update dependency supertokens-web-js to v0.9.0 fix(deps): update dependency supertokens-web-js to v0.9.1 Feb 12, 2024
@renovate renovate bot force-pushed the renovate/supertokens-web-js-0.x branch from 3f24529 to 6b0ecb4 Compare March 18, 2024 17:00
@renovate renovate bot changed the title fix(deps): update dependency supertokens-web-js to v0.9.1 fix(deps): update dependency supertokens-web-js to v0.10.0 Mar 18, 2024
@renovate renovate bot force-pushed the renovate/supertokens-web-js-0.x branch from 6b0ecb4 to 595a47d Compare April 8, 2024 09:47
@renovate renovate bot changed the title fix(deps): update dependency supertokens-web-js to v0.10.0 fix(deps): update dependency supertokens-web-js to v0.10.1 Apr 8, 2024
@renovate renovate bot force-pushed the renovate/supertokens-web-js-0.x branch from 595a47d to 4d956d2 Compare April 8, 2024 11:33
@renovate renovate bot force-pushed the renovate/supertokens-web-js-0.x branch 2 times, most recently from cdd96d6 to d9c36a5 Compare May 6, 2024 08:24
@renovate renovate bot force-pushed the renovate/supertokens-web-js-0.x branch from d9c36a5 to 2b78c46 Compare May 9, 2024 17:21
@renovate renovate bot changed the title fix(deps): update dependency supertokens-web-js to v0.10.1 fix(deps): update dependency supertokens-web-js to v0.11.0 May 9, 2024
@renovate renovate bot force-pushed the renovate/supertokens-web-js-0.x branch from 2b78c46 to 2e45cc7 Compare May 28, 2024 21:11
@renovate renovate bot changed the title fix(deps): update dependency supertokens-web-js to v0.11.0 fix(deps): update dependency supertokens-web-js to v0.12.0 May 28, 2024
@renovate renovate bot force-pushed the renovate/supertokens-web-js-0.x branch from 2e45cc7 to ed33341 Compare July 17, 2024 08:30
@renovate renovate bot changed the title fix(deps): update dependency supertokens-web-js to v0.12.0 fix(deps): update dependency supertokens-web-js to v0.13.0 Jul 17, 2024
@renovate renovate bot force-pushed the renovate/supertokens-web-js-0.x branch from ed33341 to 07bb9ea Compare August 28, 2024 10:41
Copy link
Contributor Author

renovate bot commented Sep 20, 2024

Renovate Ignore Notification

Because you closed this PR without merging, Renovate will ignore this update (0.13.0). You will get a PR once a newer version is released. To ignore this dependency forever, add it to the ignoreDeps array of your Renovate config.

If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.

@renovate renovate bot deleted the renovate/supertokens-web-js-0.x branch September 20, 2024 04:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant