Skip to content

Latest commit

 

History

History
345 lines (201 loc) · 9.18 KB

CHANGELOG.md

File metadata and controls

345 lines (201 loc) · 9.18 KB

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning

[0.15.1] - 2021-07-16

Fixed:

  • Handles Uncaught ReferenceError: process is not defined during getting if testing or not.

[0.15.0] - 2021-07-01

Fixed:

  • Styling issues with SVG icons
  • In emailVerificationAuth, querying for is email verified only if a session exists
  • A few test app issues
  • If visiting auth page with session already existing, then we respect redirectTo query param
  • Uses useRef hook when using withRouter so that the underlying component is not unmounted.
  • If redirectToPath is "", and we are not using react-router-dom, then we redirect to /, otherwise we might be stuck in an infinite redirect loop.

Refactor

  • Uses SessionAuth for all our components: supertokens#241
  • Creates an AuthWidgetWrapper component that will redirect login UI if already logged in

Added

  • Allows for SessionAuth to be inside another SessionAuth.
  • Updates session context on session changes: supertokens#228
  • onSessionExpired optional prop on SessionAuth, EmailPasswordAuth, ThirdPartyAuth and ThirdPartyEmailPasswordAuth

Breaking changes

  • If a component is wrapped in an auth wrapper with requiredAuth={true}, and onSessionExpired is not provided, then the user will be automatically redirected to the login screen in case of session expiry.

  • The components override API has changed from (DefaultComponent) => (props) => React.Element to ({ DefaultComponent, …props }) => React.Element.

[0.14.1] - 2021-07-01

Refactor:

  • Normalisation of thirdpartyemailpassword input

Fixed:

  • Allows zero thirdparty providers to be passed into thirdpartyemailpassword
  • Respects disableEmailPassword config provided to thirdpartyemailpassword

Changed:

  • Makes signInAndUpFeature config optional in thirdpartyemailpassword.init

[0.14.0] - 2021-06-24

Added:

  • Ability to override recipe functions to customize the behavior of feature components.
  • Refactors code to:
    • Make types simpler.
    • Remove components folder from AuthRecipeModule, and puts them in the themes of the respective recipes.
    • Uses redirectToAuth everywhere instead of calling redirect manually.
    • Adds additional props / config to Session and EmailVerification recipe to make them more isolated
    • Passes recipe to feature components directly, as opposed to recipeId
  • In session recipe, we remove setAuth0API and getAuth0API
  • Removes GET_REDIRECTION_URL from the possible action types for getRedirectionURL.
  • Changes redirectToAuth to take an object and adds redirectBack param, which can be used to indicate if the user should be redirected to the current page.
  • Removes getRefreshURLDomain function from session recipe.
  • Moves SIGN_OUT even and pre API hook into the Session recipe.
  • Change to type of preAPIHook function
  • Uses supertokens-website version >= 8.0
  • Changed SIGN_IN, SIGN_UP Pre API hook action to EMAIL_PASSWORD_SIGN_IN, EMAIL_PASSWORD_SIGN_UP or THIRD_PARTY_SIGN_IN_UP

Fixed:

  • State update post unmounting when using EmailVerification wrapper.

[0.13.2] - 2021-06-05

Added:

[0.13.1] - 2021-05-28

Fixed:

[0.13.0] - 2021-05-11

Added:

[0.12.1] - 2020-05-07

Changed

  • Update to supertokens-website dependency version

[0.12.0] - 2020-05-05

Breaking changed

  • Fixes supertokens#220
  • When using getSuperTokensRoutesForReactRouterDom, use it like getSuperTokensRoutesForReactRouterDom(require("react-router-dom"))
  • Config value useReactRouterDom is no longer required. React router dom is enabled only if the user uses getSuperTokensRoutesForReactRouterDom.

[0.11.0] - 2020-05-02

Changed

[0.10.1] - 2020-05-02

Fixed

[0.10.0] - 2020-04-28

Changed

[0.9.1] - 2020-04-24

Added

[0.9.0] - 2020-04-14

Added

  • Exports SessionAuth wrapper
  • Adds requireAuth boolean to all Auth wrappers to protect pages optionally
  • Creates a session context that is passed to child components for easy access to session info.

Changed

  • getUserId and doesSessionExist returning Promises

[0.8.0] - 2020-03-30

Added

  • Signout function from session
  • Compatibility with FDI 1.7
  • Adds redirectToAuth function for all auth recipes

Changed

  • Removed type dependency on History

[0.7.2] - 2020-03-05

Fix

  • Fix URL Normalisation with "/.netlify/functions/api".

[0.7.1] - 2020-03-04

Fix

  • Fix Path Normalisation with "/.netlify/functions/api" given as apiBasePath

[0.7.0] - 2020-02-20

Added

  • Third Party & Email Password recipe
  • Update preAPIHook type from ({RequestInit, action}) => Promise<RequestInit> to ({url, RequestInit, action}) => Promise<RequestInit | {RequestInit, url}>

[0.6.0] - 2020-02-16

Added

  • Third Party recipe with Google/Github/Facebook/Apple

Changes

  • Introduce AuthRecipeModule to abstract common functions (hooks, signout, isEmailVerified)
  • Email Verification as a recipe
  • Email Password context from {action: "SIGN_IN_COMPLETE" | "SIGN_UP_COMPLETE"} to {action: "SUCCESS", isNewUser: boolean}

[0.5.6] - 2020-02-06

Fixes

  • Fix react-router-dom issue with EmailPasswordAuth in NextJS.

Added

  • Supertokens config useReactRouterDom.

[0.5.5] - 2020-02-04

Fixes

  • Compare window.location.origin to websiteDomain for redirection => useful for multitenancy

[0.5.4] - 2020-02-03

Fixes

  • Fix websiteBasePath = "/" routing issue.

[0.5.3] - 2020-02-02

Fixes

  • Fix getRedirectionURL hook type
  • No redirectToPath in email verification screen

[0.5.2] - 2020-02-01

Changed

  • Redirect to intended page post authentication

[0.5.1] - 2020-01-27

Fixes

  • Use tsconfig to compile instead of babel

[0.5.0] - 2020-01-22

Changed

  • Success/Error ticks displayed in input
  • Show password displayed in inputs
  • Better password manager handling
  • Remove autofill browser styling

Fixes

  • User Facing typescript definitions
  • setState race condition for redirecting to auth page on successful signup

Added

  • Examples folder

[0.4.3] - 2020-01-18

Changed

  • Input border radius from 8 to 6px
  • Input padding from 20 to 16px
  • Input background colour from 1 to 0.25 opacity on focus

[0.4.2] - 2020-01-18

Changed

  • Add focus state box shadow
  • Show password icon only when password is not empty

Fixes

  • Fix width when wrapped in flex container
  • Fix right input padding

[0.4.1] - 2020-01-16

Fixes

  • Mobile responsiveness

[0.4.0] - 2020-01-07

Added

  • Email Verification Feature
  • Show/Hide password
  • Success tick

Changed

  • Design revamp

Removed

  • Remove generalErrorBackground

[0.3.0] - 2020-12-30

Added

  • Button ripple effect on click
  • Button colour change on hover

Fixed

  • Upgrade to Emotion v11 and react-shadow v19
  • Fix conflicting dependencies with npm link
  • No Shadow DOM for Internet Explorer

[0.2.2] - 2020-12-16

Fixed

  • Made config optional when calling init for recipes

[0.2.1] - 2020-12-10

Added

  • Better error message for SSR.

Fixes

  • Add margin bottom for general Errors.
  • Move react-router-dom to optional dependencies.

[0.2.0] - 2020-11-27

Added

  • Form validation on blur
  • verify if email exists on blur during signup
  • Autocomplete email and password
  • Move error/success ticks to leave space for password managers
  • DefaultToSignUp config and default widget to sign up form.

Fixes

  • Remove all styles from feature wrapper

[0.1.0] - 2020-11-18

Added

  • Email and password implementation
  • Session implementation