@chemmangat/msal-next 5.1.0 → 5.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +22 -0
- package/README.md +1383 -560
- package/dist/index.js +31 -8
- package/dist/index.mjs +37 -8
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,28 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## [5.2.0] - 2026-04-07
|
|
6
|
+
|
|
7
|
+
### 🔧 Compatibility
|
|
8
|
+
|
|
9
|
+
#### Support for `@azure/msal-browser` v5.x and `@azure/msal-react` v4.x / v5.x
|
|
10
|
+
|
|
11
|
+
Peer dependency ranges updated to include the latest MSAL major versions:
|
|
12
|
+
|
|
13
|
+
```json
|
|
14
|
+
"@azure/msal-browser": "^3.11.0 || ^4.0.0 || ^5.0.0",
|
|
15
|
+
"@azure/msal-react": "^2.0.0 || ^3.0.0 || ^4.0.0 || ^5.0.0"
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Breaking changes in `msal-browser` v5 are handled transparently at runtime — no changes required in your app code.
|
|
19
|
+
|
|
20
|
+
**What changed internally:**
|
|
21
|
+
|
|
22
|
+
- `handleRedirectPromise()` now receives an options object on v5 (`navigateToLoginRequestUrl` moved here from config)
|
|
23
|
+
- `storeAuthStateInCookie` and `navigateToLoginRequestUrl` are conditionally omitted from the MSAL config object when running on v5 (both were removed from `BrowserAuthOptions`/`CacheOptions`)
|
|
24
|
+
- `EventType.LOGIN_SUCCESS` payload is now `AccountInfo` on v5 (was `AuthenticationResult` on v3/v4) — handled with a runtime type guard
|
|
25
|
+
- `EventType.LOGIN_FAILURE` was removed in v5; login failures now surface as `ACQUIRE_TOKEN_FAILURE` — both are handled
|
|
26
|
+
|
|
5
27
|
## [5.1.0] - 2026-03-17
|
|
6
28
|
|
|
7
29
|
### ✨ New Features
|