Skip to content

Commit 671e63c

Browse files
Release v2.0.0-beta.0 (#398)
* Bump version to 2.0.0 * Update changelog * Ensure types are exported * Update docs * Bump version to 2.0.0-beta.0 * fix test * Update CHANGELOG.md
1 parent 5bab3fd commit 671e63c

Some content is hidden

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

63 files changed

+4530
-16938
lines changed

CHANGELOG.md

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

3+
## [v2.0.0-beta.0](https://github.com/auth0/auth0-angular/tree/v2.0.0-beta.0) (2022-12-13)
4+
5+
[Full Changelog](https://github.com/auth0/auth0-angular/compare/v1.11.0...v2.0.0-beta.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
## [v1.11.1](https://github.com/auth0/auth0-angular/tree/v1.11.1) (2022-11-17)
424

525
[Full Changelog](https://github.com/auth0/auth0-angular/compare/v1.11.0...v1.11.1)

docs/assets/highlight.css

Lines changed: 61 additions & 88 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,29 @@
11
:root {
2-
--light-hl-0: #000000;
3-
--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;
10-
--light-hl-4: #795e26;
11-
--dark-hl-4: #dcdcaa;
12-
--light-hl-5: #008000;
13-
--dark-hl-5: #6a9955;
14-
--light-hl-6: #0000ff;
15-
--dark-hl-6: #569cd6;
16-
--light-hl-7: #267f99;
17-
--dark-hl-7: #4ec9b0;
18-
--light-hl-8: #000000;
19-
--dark-hl-8: #c8c8c8;
20-
--light-hl-9: #0070c1;
21-
--dark-hl-9: #4fc1ff;
22-
--light-code-background: #f5f5f5;
23-
--dark-code-background: #1e1e1e;
2+
--light-hl-0: #000000;
3+
--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;
10+
--light-hl-4: #795E26;
11+
--dark-hl-4: #DCDCAA;
12+
--light-hl-5: #008000;
13+
--dark-hl-5: #6A9955;
14+
--light-hl-6: #0000FF;
15+
--dark-hl-6: #569CD6;
16+
--light-hl-7: #267F99;
17+
--dark-hl-7: #4EC9B0;
18+
--light-hl-8: #000000;
19+
--dark-hl-8: #C8C8C8;
20+
--light-hl-9: #0070C1;
21+
--dark-hl-9: #4FC1FF;
22+
--light-code-background: #FFFFFF;
23+
--dark-code-background: #1E1E1E;
2424
}
2525

26-
@media (prefers-color-scheme: light) {
27-
:root {
26+
@media (prefers-color-scheme: light) { :root {
2827
--hl-0: var(--light-hl-0);
2928
--hl-1: var(--light-hl-1);
3029
--hl-2: var(--light-hl-2);
@@ -36,11 +35,9 @@
3635
--hl-8: var(--light-hl-8);
3736
--hl-9: var(--light-hl-9);
3837
--code-background: var(--light-code-background);
39-
}
40-
}
38+
} }
4139

42-
@media (prefers-color-scheme: dark) {
43-
:root {
40+
@media (prefers-color-scheme: dark) { :root {
4441
--hl-0: var(--dark-hl-0);
4542
--hl-1: var(--dark-hl-1);
4643
--hl-2: var(--dark-hl-2);
@@ -52,68 +49,44 @@
5249
--hl-8: var(--dark-hl-8);
5350
--hl-9: var(--dark-hl-9);
5451
--code-background: var(--dark-code-background);
55-
}
56-
}
52+
} }
5753

58-
body.light {
59-
--hl-0: var(--light-hl-0);
60-
--hl-1: var(--light-hl-1);
61-
--hl-2: var(--light-hl-2);
62-
--hl-3: var(--light-hl-3);
63-
--hl-4: var(--light-hl-4);
64-
--hl-5: var(--light-hl-5);
65-
--hl-6: var(--light-hl-6);
66-
--hl-7: var(--light-hl-7);
67-
--hl-8: var(--light-hl-8);
68-
--hl-9: var(--light-hl-9);
69-
--code-background: var(--light-code-background);
54+
:root[data-theme='light'] {
55+
--hl-0: var(--light-hl-0);
56+
--hl-1: var(--light-hl-1);
57+
--hl-2: var(--light-hl-2);
58+
--hl-3: var(--light-hl-3);
59+
--hl-4: var(--light-hl-4);
60+
--hl-5: var(--light-hl-5);
61+
--hl-6: var(--light-hl-6);
62+
--hl-7: var(--light-hl-7);
63+
--hl-8: var(--light-hl-8);
64+
--hl-9: var(--light-hl-9);
65+
--code-background: var(--light-code-background);
7066
}
7167

72-
body.dark {
73-
--hl-0: var(--dark-hl-0);
74-
--hl-1: var(--dark-hl-1);
75-
--hl-2: var(--dark-hl-2);
76-
--hl-3: var(--dark-hl-3);
77-
--hl-4: var(--dark-hl-4);
78-
--hl-5: var(--dark-hl-5);
79-
--hl-6: var(--dark-hl-6);
80-
--hl-7: var(--dark-hl-7);
81-
--hl-8: var(--dark-hl-8);
82-
--hl-9: var(--dark-hl-9);
83-
--code-background: var(--dark-code-background);
68+
:root[data-theme='dark'] {
69+
--hl-0: var(--dark-hl-0);
70+
--hl-1: var(--dark-hl-1);
71+
--hl-2: var(--dark-hl-2);
72+
--hl-3: var(--dark-hl-3);
73+
--hl-4: var(--dark-hl-4);
74+
--hl-5: var(--dark-hl-5);
75+
--hl-6: var(--dark-hl-6);
76+
--hl-7: var(--dark-hl-7);
77+
--hl-8: var(--dark-hl-8);
78+
--hl-9: var(--dark-hl-9);
79+
--code-background: var(--dark-code-background);
8480
}
8581

86-
.hl-0 {
87-
color: var(--hl-0);
88-
}
89-
.hl-1 {
90-
color: var(--hl-1);
91-
}
92-
.hl-2 {
93-
color: var(--hl-2);
94-
}
95-
.hl-3 {
96-
color: var(--hl-3);
97-
}
98-
.hl-4 {
99-
color: var(--hl-4);
100-
}
101-
.hl-5 {
102-
color: var(--hl-5);
103-
}
104-
.hl-6 {
105-
color: var(--hl-6);
106-
}
107-
.hl-7 {
108-
color: var(--hl-7);
109-
}
110-
.hl-8 {
111-
color: var(--hl-8);
112-
}
113-
.hl-9 {
114-
color: var(--hl-9);
115-
}
116-
pre,
117-
code {
118-
background: var(--code-background);
119-
}
82+
.hl-0 { color: var(--hl-0); }
83+
.hl-1 { color: var(--hl-1); }
84+
.hl-2 { color: var(--hl-2); }
85+
.hl-3 { color: var(--hl-3); }
86+
.hl-4 { color: var(--hl-4); }
87+
.hl-5 { color: var(--hl-5); }
88+
.hl-6 { color: var(--hl-6); }
89+
.hl-7 { color: var(--hl-7); }
90+
.hl-8 { color: var(--hl-8); }
91+
.hl-9 { color: var(--hl-9); }
92+
pre, code { background: var(--code-background); }

0 commit comments

Comments
 (0)