@azure/msal-react 3.0.11 → 3.0.13

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/README.md CHANGED
@@ -4,8 +4,8 @@
4
4
  [![npm version](https://img.shields.io/npm/dm/@azure/msal-react.svg)](https://nodei.co/npm/@azure/msal-react/)
5
5
  [![codecov](https://codecov.io/gh/AzureAD/microsoft-authentication-library-for-js/branch/dev/graph/badge.svg?flag=msal-react)](https://codecov.io/gh/AzureAD/microsoft-authentication-library-for-js)
6
6
 
7
- | <a href="https://docs.microsoft.com/azure/active-directory/develop/tutorial-v2-react" target="blank">Getting Started</a> | <a href="https://aka.ms/aaddevv2" target="_blank">AAD Docs</a> | <a href="https://azuread.github.io/microsoft-authentication-library-for-js/ref/modules/_azure_msal_react.html" target="_blank">Library Reference</a> | <a href="https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples" target="blank">Samples</a>
8
- |--- | --- | --- | --- |
7
+ | <a href="https://docs.microsoft.com/azure/active-directory/develop/tutorial-v2-react" target="blank">Getting Started</a> | <a href="https://aka.ms/aaddevv2" target="_blank">AAD Docs</a> | <a href="https://azuread.github.io/microsoft-authentication-library-for-js/ref/modules/_azure_msal_react.html" target="_blank">Library Reference</a> | <a href="https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples" target="blank">Samples</a> |
8
+ | ------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------ |
9
9
 
10
10
  1. [About](#about)
11
11
  1. [FAQ](https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-react/FAQ.md)
@@ -32,16 +32,16 @@ The `@azure/msal-react` package described by the code in this folder uses the [`
32
32
 
33
33
  ## Prerequisites
34
34
 
35
- - `@azure/msal-react` is meant to be used in [Single-Page Application scenarios](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-overview).
35
+ - `@azure/msal-react` is meant to be used in [Single-Page Application scenarios](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-overview).
36
36
 
37
- - Before using `@azure/msal-react` you will need to [register a Single Page Application in Azure AD](https://docs.microsoft.com/en-us/azure/active-directory/develop/scenario-spa-app-registration) to get a valid `clientId` for configuration, and to register the routes that your app will accept redirect traffic on.
37
+ - Before using `@azure/msal-react` you will need to [register a Single Page Application in Azure AD](https://docs.microsoft.com/en-us/azure/active-directory/develop/scenario-spa-app-registration) to get a valid `clientId` for configuration, and to register the routes that your app will accept redirect traffic on.
38
38
 
39
39
  ## Version Support
40
40
 
41
- | MSAL React version | MSAL support status | Supported React versions |
42
- | ------------------ | ------------------- | -------------------------- |
43
- | MSAL React v2 | Active development | 16, 17, 18 |
44
- | MSAL React v1 | In maintenance | 16, 17, 18 |
41
+ | MSAL React version | MSAL support status | Supported React versions |
42
+ | ------------------ | ------------------- | ------------------------ |
43
+ | MSAL React v3 | Active development | 16, 17, 18, 19 |
44
+ | MSAL React v1, v2 | In maintenance | 16, 17, 18 |
45
45
 
46
46
  **Note:** There have been no functional changes in the MSAL React v2 release.
47
47
 
@@ -111,11 +111,11 @@ Since `@azure/msal-react` is a wrapper around `@azure/msal-browser` many docs fr
111
111
 
112
112
  ### Advanced Topics
113
113
 
114
- - [Configuration Options](https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-browser/docs/configuration.md)
115
- - [Request and Response Details](https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-browser/docs/request-response-object.md)
116
- - [Events](https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-browser/docs/events.md)
117
- - [Cache Storage](https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-browser/docs/caching.md)
118
- - [Performance Enhancements](https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-browser/docs/performance.md)
114
+ - [Configuration Options](https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-browser/docs/configuration.md)
115
+ - [Request and Response Details](https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-browser/docs/request-response-object.md)
116
+ - [Events](https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-browser/docs/events.md)
117
+ - [Cache Storage](https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-browser/docs/caching.md)
118
+ - [Performance Enhancements](https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-browser/docs/performance.md)
119
119
 
120
120
  ### MSAL React Specific Concepts
121
121
 
@@ -128,18 +128,18 @@ Since `@azure/msal-react` is a wrapper around `@azure/msal-browser` many docs fr
128
128
 
129
129
  Our [samples directory](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-react-samples) contains several example apps you can spin up to see how this library can be used in different contexts.
130
130
 
131
- - [Create React App (JS) Sample](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-react-samples/react-router-sample)
132
- - [Create React App (TS) Sample](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-react-samples/typescript-sample)
133
- - [Next.js Sample](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-react-samples/nextjs-sample)
134
- - [Gatsby Sample](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-react-samples/gatsby-sample)
135
- - [B2C Sample](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-react-samples/b2c-sample)
131
+ - [Create React App (JS) Sample](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-react-samples/react-router-sample)
132
+ - [Create React App (TS) Sample](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-react-samples/typescript-sample)
133
+ - [Next.js Sample](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-react-samples/nextjs-sample)
134
+ - [Gatsby Sample](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-react-samples/gatsby-sample)
135
+ - [B2C Sample](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-react-samples/b2c-sample)
136
136
 
137
137
  More advanced samples backed with a tutorial can be found in the [Azure Samples](https://github.com/Azure-Samples) space on GitHub:
138
138
 
139
- - [React SPA calling Express.js web API](https://github.com/Azure-Samples/ms-identity-javascript-react-tutorial/tree/main/3-Authorization-II/1-call-api)
140
- - [React SPA calling Express.js web API using App Roles and RBAC](https://github.com/Azure-Samples/ms-identity-javascript-react-tutorial/tree/main/5-AccessControl/1-call-api-roles)
141
- - [React SPA calling Microsoft Graph via Express.js web API using on-behalf-of flow](https://github.com/Azure-Samples/ms-identity-javascript-react-tutorial/tree/main/6-AdvancedScenarios/1-call-api-obo)
142
- - [Deployment tutorial for Azure Static Web Apps](https://github.com/Azure-Samples/ms-identity-javascript-react-tutorial/tree/main/4-Deployment/2-deploy-static)
139
+ - [React SPA calling Express.js web API](https://github.com/Azure-Samples/ms-identity-javascript-react-tutorial/tree/main/3-Authorization-II/1-call-api)
140
+ - [React SPA calling Express.js web API using App Roles and RBAC](https://github.com/Azure-Samples/ms-identity-javascript-react-tutorial/tree/main/5-AccessControl/1-call-api-roles)
141
+ - [React SPA calling Microsoft Graph via Express.js web API using on-behalf-of flow](https://github.com/Azure-Samples/ms-identity-javascript-react-tutorial/tree/main/6-AdvancedScenarios/1-call-api-obo)
142
+ - [Deployment tutorial for Azure Static Web Apps](https://github.com/Azure-Samples/ms-identity-javascript-react-tutorial/tree/main/4-Deployment/2-deploy-static)
143
143
 
144
144
  ## Security Reporting
145
145
 
@@ -147,7 +147,7 @@ If you find a security issue with our libraries or services please report it to
147
147
 
148
148
  ## License
149
149
 
150
- Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License.
150
+ Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License.
151
151
 
152
152
  ## We Value and Adhere to the Microsoft Open Source Code of Conduct
153
153
 
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-react v3.0.11 2025-04-29 */
1
+ /*! @azure/msal-react v3.0.13 2025-06-18 */
2
2
  'use strict';
3
3
  import * as React from 'react';
4
4
  import { stubbedPublicClientApplication, InteractionStatus, Logger } from '@azure/msal-browser';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-react v3.0.11 2025-04-29 */
1
+ /*! @azure/msal-react v3.0.13 2025-06-18 */
2
2
  'use strict';
3
3
  import React__default, { useEffect, useMemo, useReducer } from 'react';
4
4
  import { WrapperSKU, InteractionStatus, EventMessageUtils } from '@azure/msal-browser';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-react v3.0.11 2025-04-29 */
1
+ /*! @azure/msal-react v3.0.13 2025-06-18 */
2
2
  'use strict';
3
3
  import React__default, { useMemo } from 'react';
4
4
  import { getChildrenOrFunction } from '../utils/utilities.js';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-react v3.0.11 2025-04-29 */
1
+ /*! @azure/msal-react v3.0.13 2025-06-18 */
2
2
  'use strict';
3
3
  import React__default, { useMemo } from 'react';
4
4
  import { getChildrenOrFunction } from '../utils/utilities.js';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-react v3.0.11 2025-04-29 */
1
+ /*! @azure/msal-react v3.0.13 2025-06-18 */
2
2
  'use strict';
3
3
  import React__default, { useMemo } from 'react';
4
4
  import { useMsal } from '../hooks/useMsal.js';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-react v3.0.11 2025-04-29 */
1
+ /*! @azure/msal-react v3.0.13 2025-06-18 */
2
2
  'use strict';
3
3
  import React__default from 'react';
4
4
  import { useMsal } from '../hooks/useMsal.js';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-react v3.0.11 2025-04-29 */
1
+ /*! @azure/msal-react v3.0.13 2025-06-18 */
2
2
  'use strict';
3
3
  import { AuthError } from '@azure/msal-browser';
4
4
 
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-react v3.0.11 2025-04-29 */
1
+ /*! @azure/msal-react v3.0.13 2025-06-18 */
2
2
  'use strict';
3
3
  import { useState, useEffect } from 'react';
4
4
  import { InteractionStatus, AccountEntity } from '@azure/msal-browser';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-react v3.0.11 2025-04-29 */
1
+ /*! @azure/msal-react v3.0.13 2025-06-18 */
2
2
  'use strict';
3
3
  import { useMemo } from 'react';
4
4
  import { useMsal } from './useMsal.js';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-react v3.0.11 2025-04-29 */
1
+ /*! @azure/msal-react v3.0.13 2025-06-18 */
2
2
  'use strict';
3
3
  import { useContext } from 'react';
4
4
  import { MsalContext } from '../MsalContext.js';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-react v3.0.11 2025-04-29 */
1
+ /*! @azure/msal-react v3.0.13 2025-06-18 */
2
2
  'use strict';
3
3
  import { useState, useRef, useEffect, useCallback } from 'react';
4
4
  import { InteractionStatus, InteractionType, EventType, OIDC_DEFAULT_SCOPES, InteractionRequiredAuthError } from '@azure/msal-browser';
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-react v3.0.11 2025-04-29 */
1
+ /*! @azure/msal-react v3.0.13 2025-06-18 */
2
2
  'use strict';
3
3
  export { MsalConsumer, MsalContext } from './MsalContext.js';
4
4
  export { MsalProvider } from './MsalProvider.js';
@@ -1,2 +1,2 @@
1
1
  export declare const name = "@azure/msal-react";
2
- export declare const version = "3.0.11";
2
+ export declare const version = "3.0.13";
@@ -1,8 +1,8 @@
1
- /*! @azure/msal-react v3.0.11 2025-04-29 */
1
+ /*! @azure/msal-react v3.0.13 2025-06-18 */
2
2
  'use strict';
3
3
  /* eslint-disable header/header */
4
4
  const name = "@azure/msal-react";
5
- const version = "3.0.11";
5
+ const version = "3.0.13";
6
6
 
7
7
  export { name, version };
8
8
  //# sourceMappingURL=packageMetadata.js.map
@@ -0,0 +1,11 @@
1
+ // This file is read by tools that parse documentation comments conforming to the TSDoc standard.
2
+ // It should be published with your NPM package. It should not be tracked by Git.
3
+ {
4
+ "tsdocVersion": "0.12",
5
+ "toolPackages": [
6
+ {
7
+ "packageName": "@microsoft/api-extractor",
8
+ "packageVersion": "7.49.1"
9
+ }
10
+ ]
11
+ }
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-react v3.0.11 2025-04-29 */
1
+ /*! @azure/msal-react v3.0.13 2025-06-18 */
2
2
  'use strict';
3
3
  /*
4
4
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-react v3.0.11 2025-04-29 */
1
+ /*! @azure/msal-react v3.0.13 2025-06-18 */
2
2
  'use strict';
3
3
  'use strict';
4
4
 
@@ -104,7 +104,7 @@ function getAccountByIdentifiers(allAccounts, accountIdentifiers) {
104
104
 
105
105
  /* eslint-disable header/header */
106
106
  const name = "@azure/msal-react";
107
- const version = "3.0.11";
107
+ const version = "3.0.13";
108
108
 
109
109
  /*
110
110
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,2 +1,2 @@
1
1
  export declare const name = "@azure/msal-react";
2
- export declare const version = "3.0.11";
2
+ export declare const version = "3.0.13";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azure/msal-react",
3
- "version": "3.0.11",
3
+ "version": "3.0.13",
4
4
  "author": {
5
5
  "name": "Microsoft",
6
6
  "email": "nugetaad@microsoft.com",
@@ -56,26 +56,27 @@
56
56
  "apiExtractor": "api-extractor run"
57
57
  },
58
58
  "peerDependencies": {
59
- "@azure/msal-browser": "^4.11.1",
60
- "react": "^16.8.0 || ^17 || ^18"
59
+ "@azure/msal-browser": "^4.13.2",
60
+ "react": "^16.8.0 || ^17 || ^18 || ^19"
61
61
  },
62
62
  "devDependencies": {
63
- "@azure/msal-browser": "^4.11.1",
63
+ "@azure/msal-browser": "^4.13.2",
64
64
  "@microsoft/api-extractor": "^7.43.4",
65
65
  "@rollup/plugin-typescript": "^11.1.5",
66
66
  "@testing-library/jest-dom": "^5.11.5",
67
- "@testing-library/react": "^13.4.0",
67
+ "@testing-library/react": "^16.3.0",
68
68
  "@types/jest": "^29.5.0",
69
69
  "@types/node": "^20.5.1",
70
- "@types/react": "^18.2.13",
71
- "@types/react-dom": "^18.2.6",
70
+ "@types/react": "^19.1.2",
71
+ "@types/react-dom": "^19.1.2",
72
72
  "eslint-config-msal": "file:../../shared-configs/eslint-config-msal",
73
73
  "jest": "^29.5.0",
74
74
  "jest-environment-jsdom": "^29.5.0",
75
+ "jest-junit": "^16.0.0",
75
76
  "msal-test-utils": "file:../../shared-test-utils",
76
77
  "prettier": "2.8.7",
77
- "react": "^18.2.0",
78
- "react-dom": "^18.2.0",
78
+ "react": "^19.1.0",
79
+ "react-dom": "^19.1.0",
79
80
  "rollup": "^4.22.4",
80
81
  "ts-jest": "^29.1.0",
81
82
  "ts-jest-resolver": "^2.0.1",
@@ -1,3 +1,3 @@
1
1
  /* eslint-disable header/header */
2
2
  export const name = "@azure/msal-react";
3
- export const version = "3.0.11";
3
+ export const version = "3.0.13";