Skip to content

Commit 182a266

Browse files
Release v2.0.0 (#410)
* Bump version and updage changelog * Generate docs for v2 * Remove beta references
1 parent 73c1b8c commit 182a266

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

+26849
-15080
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ workflows:
4343
context:
4444
- browserstack-env
4545
- ship/node-publish:
46-
publish-command: npm run build:prod && cp README.md ./dist/auth0-angular/ && npm publish ./dist/auth0-angular --tag beta
46+
publish-command: npm run build:prod && cp README.md ./dist/auth0-angular/ && npm publish ./dist/auth0-angular
4747
app-directory: 'projects/auth0-angular'
4848
node-version: 16.16.0
4949
requires:

CHANGELOG.md

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,25 @@
11
# Change Log
22

3+
## [v2.0.0](https://github.com/auth0/auth0-angular/tree/v2.0.0) (2023-01-19)
4+
5+
[Full Changelog](https://github.com/auth0/auth0-angular/compare/v1.11.0...v2.0.0)
6+
7+
Auth0-Angular v2 includes many significant changes compared to v1:
8+
9+
- Remove polyfills from bundles
10+
- Introduce `authorizationParams` and `logoutParams` to hold properties sent to Auth0
11+
- Remove `buildAuthorizeUrl` and `buildLogoutUrl`
12+
- Remove `redirectMethod`, and replace by `openUrl`
13+
- Remove `localOnly` from `logout` in favor of `openUrl`
14+
- Ensure `logout` returns an Onservable instead of a Promise
15+
- Rework `ignoreCache` to `cacheMode` and introduce `cache-only`
16+
- Use form-encoded data by default
17+
- Do not fallback to refreshing tokens via iframe method by default
18+
- `getUser` and `getIdTokenClaims` are removed
19+
- Remove `advancedOptions.defaultScope` and replace with `scope`
20+
21+
As with any major version bump, v2 of Auth0-Angular 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.**
22+
323
## [v2.0.0-beta.0](https://github.com/auth0/auth0-angular/tree/v2.0.0-beta.0) (2022-12-13)
424

525
[Full Changelog](https://github.com/auth0/auth0-angular/compare/v1.11.0...v2.0.0-beta.0)
@@ -12,11 +32,11 @@ Auth0-Angular v2 includes many significant changes compared to v1:
1232
- Remove `redirectMethod`, and replace by `openUrl`
1333
- Remove `localOnly` from `logout` in favor of `openUrl`
1434
- Ensure `logout` returns an Onservable instead of a Promise
15-
- Rework `ignoreCache` to `cacheMode` and introduce `cache-only`
35+
- Rework `ignoreCache` to `cacheMode` and introduce `cache-only`
1636
- Use form-encoded data by default
1737
- Do not fallback to refreshing tokens via iframe method by default
18-
- `getUser` and `getIdTokenClaims` are removed
19-
- Remove `advancedOptions.defaultScope` and replace with `scope`
38+
- `getUser` and `getIdTokenClaims` are removed
39+
- Remove `advancedOptions.defaultScope` and replace with `scope`
2040

2141
As with any major version bump, v2 of Auth0-Angular 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.**
2242

README.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
A library for integrating [Auth0](https://auth0.com) into an Angular application.
44

5-
> :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.
6-
75
![Release](https://img.shields.io/npm/v/@auth0/auth0-angular)
86
[![Codecov](https://img.shields.io/codecov/c/github/auth0/auth0-angular)](https://codecov.io/gh/auth0/auth0-angular)
97
![Downloads](https://img.shields.io/npm/dw/@auth0/auth0-angular)
@@ -31,13 +29,13 @@ This project only supports the [actively supported versions of Angular as stated
3129
Using npm:
3230

3331
```sh
34-
npm install @auth0/auth0-angular@beta
32+
npm install @auth0/auth0-angular
3533
```
3634

3735
We also have `ng-add` support, so the library can also be installed using the Angular CLI:
3836

3937
```sh
40-
ng add @auth0/auth0-angular@beta
38+
ng add @auth0/auth0-angular
4139
```
4240

4341
### Configure Auth0
@@ -79,8 +77,8 @@ import { AuthModule } from '@auth0/auth0-angular';
7977
domain: 'YOUR_AUTH0_DOMAIN',
8078
clientId: 'YOUR_AUTH0_CLIENT_ID',
8179
authorizationParams: {
82-
redirect_uri: window.location.origin
83-
}
80+
redirect_uri: window.location.origin,
81+
},
8482
}),
8583
],
8684
// ...

docs/assets/highlight.css

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
:root {
22
--light-hl-0: #000000;
33
--dark-hl-0: #d4d4d4;
4-
--light-hl-1: #af00db;
5-
--dark-hl-1: #c586c0;
6-
--light-hl-2: #001080;
7-
--dark-hl-2: #9cdcfe;
8-
--light-hl-3: #a31515;
9-
--dark-hl-3: #ce9178;
4+
--light-hl-1: #a31515;
5+
--dark-hl-1: #ce9178;
6+
--light-hl-2: #af00db;
7+
--dark-hl-2: #c586c0;
8+
--light-hl-3: #001080;
9+
--dark-hl-3: #9cdcfe;
1010
--light-hl-4: #795e26;
1111
--dark-hl-4: #dcdcaa;
1212
--light-hl-5: #008000;
@@ -19,7 +19,7 @@
1919
--dark-hl-8: #c8c8c8;
2020
--light-hl-9: #0070c1;
2121
--dark-hl-9: #4fc1ff;
22-
--light-code-background: #f5f5f5;
22+
--light-code-background: #ffffff;
2323
--dark-code-background: #1e1e1e;
2424
}
2525

@@ -55,7 +55,7 @@
5555
}
5656
}
5757

58-
body.light {
58+
:root[data-theme='light'] {
5959
--hl-0: var(--light-hl-0);
6060
--hl-1: var(--light-hl-1);
6161
--hl-2: var(--light-hl-2);
@@ -69,7 +69,7 @@ body.light {
6969
--code-background: var(--light-code-background);
7070
}
7171

72-
body.dark {
72+
:root[data-theme='dark'] {
7373
--hl-0: var(--dark-hl-0);
7474
--hl-1: var(--dark-hl-1);
7575
--hl-2: var(--dark-hl-2);

0 commit comments

Comments
 (0)