Skip to content

Commit

Permalink
Release v2.0.0 (#477)
Browse files Browse the repository at this point in the history
  • Loading branch information
ewanharris committed Jan 19, 2023
1 parent 24deb27 commit e18247f
Show file tree
Hide file tree
Showing 43 changed files with 4,179 additions and 2,150 deletions.
3 changes: 1 addition & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ workflows:
context:
- browserstack-env
- ship/node-publish:
publish-command: npm publish --tag beta
publish-command: npm publish
node-version: 18.12.1
context:
- publish-npm
Expand All @@ -71,6 +71,5 @@ workflows:
branches:
only:
- master
- beta
requires:
- browserstack
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
# Change Log

## [v2.0.0](https://github.com/auth0/auth0-react/tree/v2.0.0) (2023-01-19)

Auth0-React v2 includes many significant changes compared to v1:

- Removal of polyfills from bundles
- Introduction of `authorizationParams` and `logoutParams` for properties sent to Auth0
- Removal of `buildAuthorizeUrl` and `buildLogoutUrl`
- Removal of `redirectMethod` on `loginWithRedirect` in favour of `openUrl`
- Removal of `localOnly` from `logout` in favour of `openUrl`
- Renaming of `ignoreCache` to `cacheMode` and introduction of `cache-only`
- Use `application/x-www-form-urlencoded` by default
- Do not fallback to refreshing tokens via iframe by default
- Changes to default scopes and removal of `advancedOptions.defaultScope`
- Removal of `claimCheck` on `withAuthenticationRequired`

As with any major version bump, v2 of Auth0-React contains a set of breaking changes. **Please review [the migration guide](./MIGRATION_GUIDE.md) thoroughly to understand the changes required to migrate your application to v2.**

## [v2.0.0-beta.0](https://github.com/auth0/auth0-react/tree/v2.0.0-beta.0) (2022-12-12)

Auth0-React v2 includes many significant changes compared to v1:
Expand Down
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
![Auth0 SDK for React Single Page Applications](https://cdn.auth0.com/website/sdks/banners/auth0-react-banner.png)

> :warning: Please be aware that v2 is currently in [**Beta**](https://auth0.com/docs/troubleshoot/product-lifecycle/product-release-stages). Whilst we encourage you to test the update within your applications, we do no recommend using this version in production yet. Please follow the [migration guide](./MIGRATION_GUIDE.md) when updating your application.
[![npm](https://img.shields.io/npm/v/@auth0/auth0-react.svg?style=flat)](https://www.npmjs.com/package/@auth0/auth0-react)
[![codecov](https://img.shields.io/codecov/c/github/auth0/auth0-react/master.svg?style=flat)](https://codecov.io/gh/auth0/auth0-react)
![Downloads](https://img.shields.io/npm/dw/@auth0/auth0-react)
Expand All @@ -25,13 +23,13 @@
Using [npm](https://npmjs.org/)

```bash
npm install @auth0/auth0-react@beta
npm install @auth0/auth0-react
```

Using [yarn](https://yarnpkg.com/)

```bash
yarn add @auth0/auth0-react@beta
yarn add @auth0/auth0-react
```

### Configure Auth0
Expand Down
58 changes: 29 additions & 29 deletions docs/assets/highlight.css
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
:root {
--light-hl-0: #800000;
--dark-hl-0: #808080;
--light-hl-1: #267F99;
--dark-hl-1: #4EC9B0;
--light-hl-2: #000000;
--dark-hl-2: #D4D4D4;
--light-hl-3: #FF0000;
--dark-hl-3: #9CDCFE;
--light-hl-4: #0000FF;
--dark-hl-4: #569CD6;
--light-hl-5: #001080;
--dark-hl-5: #9CDCFE;
--light-hl-6: #000000FF;
--dark-hl-6: #D4D4D4;
--light-hl-7: #008000;
--dark-hl-7: #6A9955;
--light-hl-8: #0070C1;
--dark-hl-8: #4FC1FF;
--light-hl-9: #795E26;
--dark-hl-9: #DCDCAA;
--light-hl-10: #AF00DB;
--dark-hl-10: #C586C0;
--light-hl-11: #800000;
--dark-hl-11: #569CD6;
--light-hl-12: #A31515;
--dark-hl-12: #CE9178;
--light-hl-0: #000000;
--dark-hl-0: #D4D4D4;
--light-hl-1: #A31515;
--dark-hl-1: #CE9178;
--light-hl-2: #008000;
--dark-hl-2: #6A9955;
--light-hl-3: #AF00DB;
--dark-hl-3: #C586C0;
--light-hl-4: #001080;
--dark-hl-4: #9CDCFE;
--light-hl-5: #795E26;
--dark-hl-5: #DCDCAA;
--light-hl-6: #800000;
--dark-hl-6: #808080;
--light-hl-7: #267F99;
--dark-hl-7: #4EC9B0;
--light-hl-8: #E50000;
--dark-hl-8: #9CDCFE;
--light-hl-9: #0000FF;
--dark-hl-9: #569CD6;
--light-hl-10: #000000FF;
--dark-hl-10: #D4D4D4;
--light-hl-11: #0070C1;
--dark-hl-11: #4FC1FF;
--light-hl-12: #800000;
--dark-hl-12: #569CD6;
--light-hl-13: #098658;
--dark-hl-13: #B5CEA8;
--light-code-background: #F5F5F5;
--light-code-background: #FFFFFF;
--dark-code-background: #1E1E1E;
}

Expand Down Expand Up @@ -67,7 +67,7 @@
--code-background: var(--dark-code-background);
} }

body.light {
:root[data-theme='light'] {
--hl-0: var(--light-hl-0);
--hl-1: var(--light-hl-1);
--hl-2: var(--light-hl-2);
Expand All @@ -85,7 +85,7 @@ body.light {
--code-background: var(--light-code-background);
}

body.dark {
:root[data-theme='dark'] {
--hl-0: var(--dark-hl-0);
--hl-1: var(--dark-hl-1);
--hl-2: var(--dark-hl-2);
Expand Down

0 comments on commit e18247f

Please sign in to comment.