Skip to content

Commit

Permalink
Merge pull request #1034 from auth0/release/v2.0.0
Browse files Browse the repository at this point in the history
Release v2.0.0
  • Loading branch information
frederikprijck authored Oct 27, 2022
2 parents 091009d + b239286 commit 78bed4d
Show file tree
Hide file tree
Showing 61 changed files with 6,126 additions and 92,532 deletions.
1 change: 0 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,6 @@ workflows:
requires:
- build
- ship/node-publish:
publish-command: npm publish --tag beta
context:
- publish-npm
- publish-gh
Expand Down
28 changes: 27 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,31 @@
# Change Log

## [v2.0.0](https://github.com/auth0/auth0-spa-js/tree/v2.0.0) (2022-10-27)

[Full Changelog](https://github.com/auth0/auth0-spa-js/compare/v1.22.5...v2.0.0)

Auth0-SPA-JS v2 includes many significant changes compared to v1:

- Refactor module output and avoid default export [#942](https://github.com/auth0/auth0-spa-js/pull/942) ([frederikprijck](https://github.com/frederikprijck))
- Do not throw from `checkSession` [#943](https://github.com/auth0/auth0-spa-js/pull/943) ([frederikprijck](https://github.com/frederikprijck))
- Rework `ignoreCache` to `cacheMode` and introduce `cache-only` [#950](https://github.com/auth0/auth0-spa-js/pull/950) ([ewanharris](https://github.com/ewanharris))
- Do not fallback to refreshing tokens via iframe method by default [#946](https://github.com/auth0/auth0-spa-js/pull/946) ([ewanharris](https://github.com/ewanharris))
- Use form-encoded data by default [#945](https://github.com/auth0/auth0-spa-js/pull/945) ([frederikprijck](https://github.com/frederikprijck))
- Remove `getIdTokenClaimsOptions` type [#960](https://github.com/auth0/auth0-spa-js/pull/960) ([ewanharris](https://github.com/ewanharris))
- Rename `client_id` to `clientId` [#956](https://github.com/auth0/auth0-spa-js/pull/956) ([ewanharris](https://github.com/ewanharris))
- Remove polyfills from bundles [#951](https://github.com/auth0/auth0-spa-js/pull/951) ([frederikprijck](https://github.com/frederikprijck))
- Update output target to **ES2017** [#953](https://github.com/auth0/auth0-spa-js/pull/953) ([frederikprijck](https://github.com/frederikprijck))
- Introduce `authorizationParams` to hold properties sent to Auth0 [#959](https://github.com/auth0/auth0-spa-js/pull/959) ([ewanharris](https://github.com/ewanharris))
- Do not build Common JS module with externals [#971](https://github.com/auth0/auth0-spa-js/pull/971) ([frederikprijck](https://github.com/frederikprijck))
- De-dupe Id token; getUser and getIdTokenClaims no longer take any arguments [#967](https://github.com/auth0/auth0-spa-js/pull/967) ([frederikprijck](https://github.com/frederikprijck))
- Remove `advancedOptions.defaultScope` and replace with `scope` [#972](https://github.com/auth0/auth0-spa-js/pull/972) ([ewanharris](https://github.com/ewanharris))
- Cache and return id token from memory [#975](https://github.com/auth0/auth0-spa-js/pull/975) ([ewanharris](https://github.com/ewanharris))
- Remove `buildAuthorizeUrl` [#980](https://github.com/auth0/auth0-spa-js/pull/980) ([frederikprijck](https://github.com/frederikprijck))
- Make `buildLogoutUrl` internal [#982](https://github.com/auth0/auth0-spa-js/pull/982) ([ewanharris](https://github.com/ewanharris))
- Fix spelling mistakes in id token validation messages [#940](https://github.com/auth0/auth0-spa-js/pull/940) ([frederikprijck](https://github.com/frederikprijck))

As with any major version bump, v2 of Auth0-SPA-JS 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.1](https://github.com/auth0/auth0-spa-js/tree/v2.0.0-beta.1) (2022-10-12)

[Full Changelog](https://github.com/auth0/auth0-spa-js/compare/v2.0.0-beta.0...v2.0.0-beta.1)
Expand All @@ -11,7 +37,7 @@

## [v2.0.0-beta.0](https://github.com/auth0/auth0-spa-js/tree/v2.0.0-beta.0) (2022-10-01)

[Full Changelog](https://github.com/auth0/auth0-spa-js/compare/master...v2.0.0-beta.0)
[Full Changelog](https://github.com/auth0/auth0-spa-js/compare/v1.22.5...v2.0.0-beta.0)

Auth0-SPA-JS v2 includes many significant changes compared to v1:

Expand Down
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
![Auth0 SDK for Single Page Applications using Authorization Code Grant Flow with PKCE.](https://cdn.auth0.com/website/sdks/banners/spa-js-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.
![Stage: Beta Release](https://img.shields.io/badge/stage-fa-yellow)
![Release](https://img.shields.io/npm/v/@auth0/auth0-spa-js)
[![Codecov](https://img.shields.io/codecov/c/github/auth0/auth0-spa-js)](https://codecov.io/gh/auth0/auth0-spa-js)
![Downloads](https://img.shields.io/npm/dw/@auth0/auth0-spa-js)
Expand All @@ -26,7 +23,7 @@
Using [npm](https://npmjs.org) in your project directory run the following command:

```sh
npm install @auth0/auth0-spa-js@beta
npm install @auth0/auth0-spa-js
```

From the CDN:
Expand Down
1 change: 1 addition & 0 deletions docs/.nojekyll
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
TypeDoc added this file to prevent GitHub Pages from using Jekyll. You can turn off this behavior by setting the `githubPages` option to false.
Loading

0 comments on commit 78bed4d

Please sign in to comment.