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

chore(deps): update dependency supertokens-auth-react to v0.42.2 #10636

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented May 16, 2024

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
supertokens-auth-react 0.39.1 -> 0.42.2 age adoption passing confidence

Release Notes

supertokens/supertokens-auth-react (supertokens-auth-react)

v0.42.2

Compare Source

Changes
  • Updating publish script to update to the lib on chromatic

v0.42.1

Compare Source

Changes
  • Re-built docs folder

v0.42.0

Compare Source

Breaking changes
  • Removed ThirdPartyEmailPassword and ThirdPartyPasswordless recipes.

  • EmailPassword recipe:

    • Removed embeddable components: SignInUp, SignInAndUpTheme
    • Removed overridable components: EmailPasswordSignIn, EmailPasswordSignInFooter, EmailPasswordSignInHeader, EmailPasswordSignUp, EmailPasswordSignUpFooter, EmailPasswordSignUpHeader
    • Moved useShadowDom, defaultToSignUp, privacyPolicyLink, termsOfServiceLink from the config to the root configuration passed to SuperTokens.init.
  • Passwordless recipe:

    • Removed embeddable components: SignInUp
    • Removed overrideable components: PasswordlessSignInUpHeader_Override, PasswordlessSignInUpFooter_Override
    • Removed the guessInternationPhoneNumberFromInputPhoneNumber configurable callback, since now the user sets if they are entering email or a phone number explicitly
    • Moved useShadowDom, privacyPolicyLink, termsOfServiceLink from the config to the root configuration passed to SuperTokens.init.
    • Changed the UX of the contactinfo entry form for EMAIL_OR_PHONE
    • Added defaultToEmail configuration option, which decides if the contact info input form starts in the email or phone state if the contactMethod is set to EMAIL_OR_PHONE
  • ThirdParty recipe:

    • Removed embeddable components: SignInAndUp
    • Removed overridable components: ThirdPartySignInAndUpHeader, ThirdPartySignUpFooter
    • Moved useShadowDom, privacyPolicyLink, termsOfServiceLink from the config to the root configuration passed to SuperTokens.init.
  • Removed SESSION_ALREADY_EXISTS event from auth recipes and moved it into the Session recipe

  • Added new keys to data-supertokens props of several elements

  • Updated some styles to work with the updated UI structure

  • Renamed translation strings to reflect the new component/UI structure:

    • EMAIL_PASSWORD_SIGN_IN_FORGOT_PW_LINK instead of EMAIL_PASSWORD_SIGN_IN_FOOTER_FORGOT_PW_LINK
    • AUTH_PAGE_HEADER_TITLE_SIGN_IN_AND_UP instead of PWLESS_SIGN_IN_UP_HEADER_TITLE and THIRD_PARTY_SIGN_IN_AND_UP_HEADER_TITLE
    • AUTH_PAGE_HEADER_TITLE_SIGN_IN instead of EMAIL_PASSWORD_SIGN_IN_HEADER_TITLE
    • AUTH_PAGE_HEADER_SUBTITLE_SIGN_UP_START instead of EMAIL_PASSWORD_SIGN_IN_HEADER_SUBTITLE_START
    • AUTH_PAGE_HEADER_SUBTITLE_SIGN_UP_SIGN_IN_LINK instead of EMAIL_PASSWORD_SIGN_IN_HEADER_SUBTITLE_SIGN_UP_LINK
    • AUTH_PAGE_HEADER_SUBTITLE_SIGN_UP_END instead of EMAIL_PASSWORD_SIGN_IN_HEADER_SUBTITLE_END
    • AUTH_PAGE_HEADER_TITLE_SIGN_UP instead of EMAIL_PASSWORD_SIGN_UP_HEADER_TITLE
    • AUTH_PAGE_HEADER_SUBTITLE_SIGN_IN_START instead of EMAIL_PASSWORD_SIGN_UP_HEADER_SUBTITLE_START
    • AUTH_PAGE_HEADER_SUBTITLE_SIGN_IN_SIGN_UP_LINK instead of EMAIL_PASSWORD_SIGN_UP_HEADER_SUBTITLE_SIGN_IN_LINK
    • AUTH_PAGE_HEADER_SUBTITLE_SIGN_IN_END instead of EMAIL_PASSWORD_SIGN_UP_HEADER_SUBTITLE_END
    • AUTH_PAGE_FOOTER_START instead of EMAIL_PASSWORD_SIGN_UP_FOOTER_START, PWLESS_SIGN_IN_UP_FOOTER_START and THIRD_PARTY_SIGN_IN_UP_FOOTER_START
    • AUTH_PAGE_FOOTER_TOS instead of: EMAIL_PASSWORD_SIGN_UP_FOOTER_TOS, PWLESS_SIGN_IN_UP_FOOTER_TOS and THIRD_PARTY_SIGN_IN_UP_FOOTER_TOS
    • AUTH_PAGE_FOOTER_AND instead of EMAIL_PASSWORD_SIGN_UP_FOOTER_AND, PWLESS_SIGN_IN_UP_FOOTER_AND and THIRD_PARTY_SIGN_IN_UP_FOOTER_AND
    • AUTH_PAGE_FOOTER_PP instead of EMAIL_PASSWORD_SIGN_UP_FOOTER_PP, PWLESS_SIGN_IN_UP_FOOTER_PP and THIRD_PARTY_SIGN_IN_UP_FOOTER_PP
    • AUTH_PAGE_FOOTER_END instead of EMAIL_PASSWORD_SIGN_UP_FOOTER_END, PWLESS_SIGN_IN_UP_FOOTER_END and THIRD_PARTY_SIGN_IN_UP_FOOTER_END
Changes
  • Added overrideable components:
    • General: AuthPageComponentList, AuthPageHeader, AuthPageFooter.
      • These can be overridden by using AuthRecipeComponentsOverrideContextProvider
    • Passwordless: PasswordlessContinueWithPasswordless_Override
  • Added new embeddable components:
    • General: AuthPage and AuthPageTheme
    • EmailPassword: SignInTheme, SignUpTheme
  • Added a new style prop to the root level config
Migration guide
Removed recipes
  • 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.

Moved configuration options

Several configuration options (useShadowDom, defaultToSignUp, privacyPolicyLink, termsOfServiceLink) were moved to the root configuration (the one passed directly to SuperTokens.init) out of recipe specific configs. The function of these props remain identical, the only necessary migration is moving them:

Before:

SuperTokens.init({
    appInfo: {
        // appInfo
    },
    recipeList: [
        EmailPassword.init({
            useShadowDom: false,
            signInAndUpFeature: {
                defaultToSignUp: true,
                signUpForm: {
                    privacyPolicyLink: "http://example.com",
                    termsOfServiceLink: "http://example.com",
                },
            },
        }),
        Session.init(),
    ],
});

After:

SuperTokens.init({
    appInfo: {
        // appInfo
    },
    useShadowDom: false,
    defaultToSignUp: true,
    privacyPolicyLink: "http://example.com",
    termsOfServiceLink: "http://example.com",
    recipeList: [EmailPassword.init(), Session.init()],
});
Removed embeddable components

The auth page related embeddable components (SignInAndUp, SignInUp) and the related theme components were removed. We instead recommend you to use the new AuthPage component with the appropriate pre-built UI objects and factorsIds set. For more information check the following guide

Before:

import { SignInAndUp } from "supertokens-auth-react/recipe/thirdpartyemailpassword/prebuiltui";

const Component = () => {
    const navigate = useNavigate();

    return <SignInAndUp navigate={navigate} />;
};

After:

import { PasswordlessPreBuiltUI } from "supertokens-auth-react/recipe/passwordless/prebuiltui";
import { AuthPage } from "supertokens-auth-react/ui";

const Component = () => {
    const navigate = useNavigate();

    return <AuthPage preBuiltUIList={[PasswordlessPreBuiltUI]} factors={["otp-phone"]} navigate={navigate} />;
};
Updated styles

Some parts of our default styles have been changed, including some changes to the data-supertokens props added to elements. Since customizations can take many forms we cannot give you exact guidance on how/what needs to change. In almost all cases, no updates should be required, but please check that your custom styles still work as you expect.

v0.41.1

Compare Source

Fixes
  • Custom inputComponents (in sign in/up form fields) now get reference-stable callbacks.

v0.41.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.40.1

Compare Source

CI changes
  • Changed an internal test script to fix a dependency issue in CI

v0.40.0

Compare Source

Breaking Changes
  • onFailureRedirection is no longer allowed to return relative paths.
  • We now throw an error if onFailureRedirection returns the current URL or path when:
    • redirecting away from the auth page (websiteBasePath, usually /auth) when a session already exists,
    • redirecting after sign in/up,
    • redirecting after successful email verification,
    • redirecting after a successful MFA factor completion.
Changes
  • We now redirect to the factor chooser screen if the MFA claim validator fails even if there is no available next factor. This will always show an access denied screen, which should help debugging.
  • clearOnSubmit now only clears the field value if the request returned an error. This is because the form navigates on success, making clearing the field unnecessary (which can lead to confusing UX if the navigation takes too long).
  • Fixed an issue where SessionAuth contents popped in before navigating away if a claim validator failed:
    • Now we ony set the context if onFailureRedirection returned the current URL.
    • Now we ony call the navigation function if onFailureRedirection returned something different than the current URL.
  • Made the name property optional in custom provider configs for usage with usesDynamicLoginMethods, where the tenant configuration is expected to set the name dynamically.
    • Note, that not setting the name will make the UI crash if the usesDynamicLoginMethods is set to false or if the tenant configuration doesn't include a provider list.

Configuration

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

🚦 Automerge: Enabled.

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

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


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

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot enabled auto-merge (squash) May 16, 2024 23:29
@Josh-Walker-GM Josh-Walker-GM added release:chore This PR is a chore (means nothing for users) changesets-ok Override the changesets check labels May 16, 2024
@Josh-Walker-GM Josh-Walker-GM modified the milestone: next-release May 16, 2024
@renovate renovate bot changed the title chore(deps): update dependency supertokens-auth-react to v0.41.1 Update dependency supertokens-auth-react to v0.41.1 May 22, 2024
@renovate renovate bot changed the title Update dependency supertokens-auth-react to v0.41.1 chore(deps): update dependency supertokens-auth-react to v0.41.1 May 29, 2024
@renovate renovate bot force-pushed the renovate/supertokens-auth-react-0.x branch from 5e65c63 to f277ca0 Compare May 29, 2024 06:11
@renovate renovate bot changed the title chore(deps): update dependency supertokens-auth-react to v0.41.1 chore(deps): update dependency supertokens-auth-react to v0.42.0 May 29, 2024
@renovate renovate bot changed the title chore(deps): update dependency supertokens-auth-react to v0.42.0 Update dependency supertokens-auth-react to v0.42.0 May 29, 2024
@renovate renovate bot force-pushed the renovate/supertokens-auth-react-0.x branch from f277ca0 to 84bf6ab Compare May 29, 2024 14:19
@renovate renovate bot changed the title Update dependency supertokens-auth-react to v0.42.0 Update dependency supertokens-auth-react to v0.42.2 May 29, 2024
@renovate renovate bot force-pushed the renovate/supertokens-auth-react-0.x branch from 84bf6ab to 42cc501 Compare May 30, 2024 08:02
@renovate renovate bot changed the title Update dependency supertokens-auth-react to v0.42.2 chore(deps): update dependency supertokens-auth-react to v0.42.2 May 30, 2024
Copy link

replay-io bot commented May 30, 2024

Status Complete ↗︎
Commit 42cc501
Results
23 Passed
  • check favicon.png (Replay 1, Replay 2, Replay 3, Replay 4)
  • check robots.txt (Replay 1, Replay 2, Replay 3, Replay 4)
  • Check that a specific blog post is prerendered (Replay 1, Replay 2, Replay 3)
  • Check that about is prerendered
  • Check that homepage is prerendered (Replay 1, Replay 2)
  • Check that meta-tags are rendering the correct dynamic data
  • Check that rehydration works for page not wrapped in Set (Replay 1, Replay 2, Replay 3)
  • Check that rehydration works for page with Cell in Set (Replay 1, Replay 2, Replay 3)
  • Check that rehydration works for page with code split chunks (Replay 1, Replay 2, Replay 3)
  • Check that you can navigate from home page to specific blog post (Replay 1, Replay 2, Replay 3)
  • Fragments (Replay 1, Replay 2)
  • Loads Cell mocks when Cell is nested in another story (Replay 1, Replay 2)
  • Loads Cell stories (Replay 1, Replay 2)
  • Loads MDX Stories (Replay 1, Replay 2)
  • Mocks current user, and updates UI while dev server is running (Replay 1, Replay 2)
  • prerender with broken gql query
  • RBAC: Admin user should be able to delete contacts (Replay 1, Replay 2)
  • RBAC: Should not be able to delete contact as non-admin user (Replay 1, Replay 2, Replay 3, Replay 4, Replay 5, Replay 6, Replay 7, Replay 8)
  • requireAuth graphql checks (Replay 1, Replay 2)
  • Smoke test with dev server (Replay 1, Replay 2)
  • Smoke test with rw serve (Replay 1, Replay 2)
  • useAuth hook, auth redirects checks (Replay 1, Replay 2, Replay 3, Replay 4)
  • Waterfall prerendering (nested cells)
  • @renovate renovate bot force-pushed the renovate/supertokens-auth-react-0.x branch from 42cc501 to 3f932de Compare May 31, 2024 12:48
    @renovate renovate bot changed the title chore(deps): update dependency supertokens-auth-react to v0.42.2 Update dependency supertokens-auth-react to v0.42.2 May 31, 2024
    @renovate renovate bot changed the title Update dependency supertokens-auth-react to v0.42.2 chore(deps): update dependency supertokens-auth-react to v0.42.2 May 31, 2024
    @renovate renovate bot changed the title chore(deps): update dependency supertokens-auth-react to v0.42.2 Update dependency supertokens-auth-react to v0.42.2 Jun 9, 2024
    @renovate renovate bot changed the title Update dependency supertokens-auth-react to v0.42.2 chore(deps): update dependency supertokens-auth-react to v0.42.2 Jun 9, 2024
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    changesets-ok Override the changesets check release:chore This PR is a chore (means nothing for users)
    Projects
    None yet
    Development

    Successfully merging this pull request may close these issues.

    None yet

    1 participant