Skip to content

Commit 78bed4d

Browse files
Merge pull request #1034 from auth0/release/v2.0.0
Release v2.0.0
2 parents 091009d + b239286 commit 78bed4d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+6126
-92532
lines changed

.circleci/config.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,6 @@ workflows:
193193
requires:
194194
- build
195195
- ship/node-publish:
196-
publish-command: npm publish --tag beta
197196
context:
198197
- publish-npm
199198
- publish-gh

CHANGELOG.md

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,31 @@
11
# Change Log
22

3+
## [v2.0.0](https://github.com/auth0/auth0-spa-js/tree/v2.0.0) (2022-10-27)
4+
5+
[Full Changelog](https://github.com/auth0/auth0-spa-js/compare/v1.22.5...v2.0.0)
6+
7+
Auth0-SPA-JS v2 includes many significant changes compared to v1:
8+
9+
- Refactor module output and avoid default export [#942](https://github.com/auth0/auth0-spa-js/pull/942) ([frederikprijck](https://github.com/frederikprijck))
10+
- Do not throw from `checkSession` [#943](https://github.com/auth0/auth0-spa-js/pull/943) ([frederikprijck](https://github.com/frederikprijck))
11+
- Rework `ignoreCache` to `cacheMode` and introduce `cache-only` [#950](https://github.com/auth0/auth0-spa-js/pull/950) ([ewanharris](https://github.com/ewanharris))
12+
- 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))
13+
- Use form-encoded data by default [#945](https://github.com/auth0/auth0-spa-js/pull/945) ([frederikprijck](https://github.com/frederikprijck))
14+
- Remove `getIdTokenClaimsOptions` type [#960](https://github.com/auth0/auth0-spa-js/pull/960) ([ewanharris](https://github.com/ewanharris))
15+
- Rename `client_id` to `clientId` [#956](https://github.com/auth0/auth0-spa-js/pull/956) ([ewanharris](https://github.com/ewanharris))
16+
- Remove polyfills from bundles [#951](https://github.com/auth0/auth0-spa-js/pull/951) ([frederikprijck](https://github.com/frederikprijck))
17+
- Update output target to **ES2017** [#953](https://github.com/auth0/auth0-spa-js/pull/953) ([frederikprijck](https://github.com/frederikprijck))
18+
- Introduce `authorizationParams` to hold properties sent to Auth0 [#959](https://github.com/auth0/auth0-spa-js/pull/959) ([ewanharris](https://github.com/ewanharris))
19+
- Do not build Common JS module with externals [#971](https://github.com/auth0/auth0-spa-js/pull/971) ([frederikprijck](https://github.com/frederikprijck))
20+
- 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))
21+
- Remove `advancedOptions.defaultScope` and replace with `scope` [#972](https://github.com/auth0/auth0-spa-js/pull/972) ([ewanharris](https://github.com/ewanharris))
22+
- Cache and return id token from memory [#975](https://github.com/auth0/auth0-spa-js/pull/975) ([ewanharris](https://github.com/ewanharris))
23+
- Remove `buildAuthorizeUrl` [#980](https://github.com/auth0/auth0-spa-js/pull/980) ([frederikprijck](https://github.com/frederikprijck))
24+
- Make `buildLogoutUrl` internal [#982](https://github.com/auth0/auth0-spa-js/pull/982) ([ewanharris](https://github.com/ewanharris))
25+
- Fix spelling mistakes in id token validation messages [#940](https://github.com/auth0/auth0-spa-js/pull/940) ([frederikprijck](https://github.com/frederikprijck))
26+
27+
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.**
28+
329
## [v2.0.0-beta.1](https://github.com/auth0/auth0-spa-js/tree/v2.0.0-beta.1) (2022-10-12)
430

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

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

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

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

README.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
![Auth0 SDK for Single Page Applications using Authorization Code Grant Flow with PKCE.](https://cdn.auth0.com/website/sdks/banners/spa-js-banner.png)
22

3-
> :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.
4-
5-
![Stage: Beta Release](https://img.shields.io/badge/stage-fa-yellow)
63
![Release](https://img.shields.io/npm/v/@auth0/auth0-spa-js)
74
[![Codecov](https://img.shields.io/codecov/c/github/auth0/auth0-spa-js)](https://codecov.io/gh/auth0/auth0-spa-js)
85
![Downloads](https://img.shields.io/npm/dw/@auth0/auth0-spa-js)
@@ -26,7 +23,7 @@
2623
Using [npm](https://npmjs.org) in your project directory run the following command:
2724

2825
```sh
29-
npm install @auth0/auth0-spa-js@beta
26+
npm install @auth0/auth0-spa-js
3027
```
3128

3229
From the CDN:

docs/.nojekyll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
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.

0 commit comments

Comments
 (0)