From f2e085ecde90d3ed54d74a1518150a1ab41aa457 Mon Sep 17 00:00:00 2001 From: Arjen Bloemsma Date: Sat, 14 Dec 2024 15:43:12 +0100 Subject: [PATCH 1/2] Updated react packages and peerDependencies --- lib/msal-react/package.json | 14 ++-- package-lock.json | 151 ++++++++++++++++++++++++------------ 2 files changed, 108 insertions(+), 57 deletions(-) diff --git a/lib/msal-react/package.json b/lib/msal-react/package.json index 2eee4387e2..a694a9b0cc 100644 --- a/lib/msal-react/package.json +++ b/lib/msal-react/package.json @@ -57,28 +57,28 @@ }, "peerDependencies": { "@azure/msal-browser": "^3.27.0", - "react": "^16.8.0 || ^17 || ^18" + "react": "^16.8.0 || ^17 || ^18 || ^19" }, "devDependencies": { "@azure/msal-browser": "^3.27.0", "@microsoft/api-extractor": "^7.43.4", "@rollup/plugin-typescript": "^11.1.5", "@testing-library/jest-dom": "^5.11.5", - "@testing-library/react": "^13.4.0", + "@testing-library/react": "^16.1.0", "@types/jest": "^29.5.0", "@types/node": "^20.5.1", - "@types/react": "^18.2.13", - "@types/react-dom": "^18.2.6", + "@types/react": "^19.0.01", + "@types/react-dom": "^19.0.2", "eslint-config-msal": "file:../../shared-configs/eslint-config-msal", "jest": "^29.5.0", "jest-environment-jsdom": "^29.5.0", "prettier": "2.8.7", - "react": "^18.2.0", - "react-dom": "^18.2.0", + "react": "^19.0.0", + "react-dom": "^19.0.0", "rollup": "^4.22.4", "ts-jest": "^29.1.0", "ts-jest-resolver": "^2.0.1", "tslib": "^2.0.0", "typescript": "^4.9.5" } -} +} \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index c9996d0a29..7ea5ce46eb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -506,17 +506,17 @@ "@microsoft/api-extractor": "^7.43.4", "@rollup/plugin-typescript": "^11.1.5", "@testing-library/jest-dom": "^5.11.5", - "@testing-library/react": "^13.4.0", + "@testing-library/react": "^16.1.0", "@types/jest": "^29.5.0", "@types/node": "^20.5.1", - "@types/react": "^18.2.13", - "@types/react-dom": "^18.2.6", + "@types/react": "^19.0.01", + "@types/react-dom": "^19.0.2", "eslint-config-msal": "file:../../shared-configs/eslint-config-msal", "jest": "^29.5.0", "jest-environment-jsdom": "^29.5.0", "prettier": "2.8.7", - "react": "^18.2.0", - "react-dom": "^18.2.0", + "react": "^19.0.0", + "react-dom": "^19.0.0", "rollup": "^4.22.4", "ts-jest": "^29.1.0", "ts-jest-resolver": "^2.0.1", @@ -528,9 +528,101 @@ }, "peerDependencies": { "@azure/msal-browser": "^3.27.0", - "react": "^16.8.0 || ^17 || ^18" + "react": "^16.8.0 || ^17 || ^18 || ^19" + } + }, + "lib/msal-react/node_modules/@testing-library/dom": { + "version": "10.4.0", + "resolved": "https://registry.npmjs.org/@testing-library/dom/-/dom-10.4.0.tgz", + "integrity": "sha512-pemlzrSESWbdAloYml3bAJMEfNh1Z7EduzqPKprCH5S341frlpYnUEW0H72dLxa6IsYr+mPno20GiSm+h9dEdQ==", + "dev": true, + "peer": true, + "dependencies": { + "@babel/code-frame": "^7.10.4", + "@babel/runtime": "^7.12.5", + "@types/aria-query": "^5.0.1", + "aria-query": "5.3.0", + "chalk": "^4.1.0", + "dom-accessibility-api": "^0.5.9", + "lz-string": "^1.5.0", + "pretty-format": "^27.0.2" + }, + "engines": { + "node": ">=18" + } + }, + "lib/msal-react/node_modules/@testing-library/react": { + "version": "16.1.0", + "resolved": "https://registry.npmjs.org/@testing-library/react/-/react-16.1.0.tgz", + "integrity": "sha512-Q2ToPvg0KsVL0ohND9A3zLJWcOXXcO8IDu3fj11KhNt0UlCWyFyvnCIBkd12tidB2lkiVRG8VFqdhcqhqnAQtg==", + "dev": true, + "dependencies": { + "@babel/runtime": "^7.12.5" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "@testing-library/dom": "^10.0.0", + "@types/react": "^18.0.0 || ^19.0.0", + "@types/react-dom": "^18.0.0 || ^19.0.0", + "react": "^18.0.0 || ^19.0.0", + "react-dom": "^18.0.0 || ^19.0.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "lib/msal-react/node_modules/@types/react": { + "version": "19.0.1", + "resolved": "https://registry.npmjs.org/@types/react/-/react-19.0.1.tgz", + "integrity": "sha512-YW6614BDhqbpR5KtUYzTA+zlA7nayzJRA9ljz9CQoxthR0sDisYZLuvSMsil36t4EH/uAt8T52Xb4sVw17G+SQ==", + "dev": true, + "dependencies": { + "csstype": "^3.0.2" + } + }, + "lib/msal-react/node_modules/@types/react-dom": { + "version": "19.0.2", + "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-19.0.2.tgz", + "integrity": "sha512-c1s+7TKFaDRRxr1TxccIX2u7sfCnc3RxkVyBIUA2lCpyqCF+QoAwQ/CBg7bsMdVwP120HEH143VQezKtef5nCg==", + "dev": true, + "peerDependencies": { + "@types/react": "^19.0.0" + } + }, + "lib/msal-react/node_modules/react": { + "version": "19.0.0", + "resolved": "https://registry.npmjs.org/react/-/react-19.0.0.tgz", + "integrity": "sha512-V8AVnmPIICiWpGfm6GLzCR/W5FXLchHop40W4nXBmdlEceh16rCN8O8LNWm5bh5XUX91fh7KpA+W0TgMKmgTpQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "lib/msal-react/node_modules/react-dom": { + "version": "19.0.0", + "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.0.0.tgz", + "integrity": "sha512-4GV5sHFG0e/0AD4X+ySy6UJd3jVl1iNsNHdpad0qhABJ11twS3TTBnseqsKurKcsNqCEFeGL3uLpVChpIO3QfQ==", + "dev": true, + "dependencies": { + "scheduler": "^0.25.0" + }, + "peerDependencies": { + "react": "^19.0.0" } }, + "lib/msal-react/node_modules/scheduler": { + "version": "0.25.0", + "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.25.0.tgz", + "integrity": "sha512-xFVuu11jh+xcO7JOAGJNOXld8/TcEHK/4CituBUeUb5hqxJLj9YuemAEuvm9gQ/+pgXYfbQuqAkiYu+u7YEsNA==", + "dev": true + }, "node_modules/@adobe/css-tools": { "version": "4.4.0", "dev": true, @@ -12353,32 +12445,6 @@ "node": ">=10" } }, - "node_modules/@testing-library/dom": { - "version": "8.20.1", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/code-frame": "^7.10.4", - "@babel/runtime": "^7.12.5", - "@types/aria-query": "^5.0.1", - "aria-query": "5.1.3", - "chalk": "^4.1.0", - "dom-accessibility-api": "^0.5.9", - "lz-string": "^1.5.0", - "pretty-format": "^27.0.2" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/@testing-library/dom/node_modules/aria-query": { - "version": "5.1.3", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "deep-equal": "^2.0.5" - } - }, "node_modules/@testing-library/jest-dom": { "version": "5.17.0", "dev": true, @@ -12423,23 +12489,6 @@ "node": ">=8" } }, - "node_modules/@testing-library/react": { - "version": "13.4.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.12.5", - "@testing-library/dom": "^8.5.0", - "@types/react-dom": "^18.0.0" - }, - "engines": { - "node": ">=12" - }, - "peerDependencies": { - "react": "^18.0.0", - "react-dom": "^18.0.0" - } - }, "node_modules/@tootallnate/once": { "version": "2.0.0", "dev": true, @@ -12526,7 +12575,8 @@ "node_modules/@types/aria-query": { "version": "5.0.4", "dev": true, - "license": "MIT" + "license": "MIT", + "peer": true }, "node_modules/@types/babel__core": { "version": "7.20.5", @@ -25376,6 +25426,7 @@ "version": "1.5.0", "dev": true, "license": "MIT", + "peer": true, "bin": { "lz-string": "bin/bin.js" } From d3e11a1565a0c9d868123d6aab357f0c11a6911f Mon Sep 17 00:00:00 2001 From: Arjen Bloemsma Date: Sat, 14 Dec 2024 16:05:28 +0100 Subject: [PATCH 2/2] Change files --- ...-msal-browser-97253ea7-d606-42ce-b474-9af12c38c390.json | 7 +++++++ ...re-msal-react-52a632ba-21f7-42c1-af73-92f6cfeea994.json | 7 +++++++ 2 files changed, 14 insertions(+) create mode 100644 change/@azure-msal-browser-97253ea7-d606-42ce-b474-9af12c38c390.json create mode 100644 change/@azure-msal-react-52a632ba-21f7-42c1-af73-92f6cfeea994.json diff --git a/change/@azure-msal-browser-97253ea7-d606-42ce-b474-9af12c38c390.json b/change/@azure-msal-browser-97253ea7-d606-42ce-b474-9af12c38c390.json new file mode 100644 index 0000000000..47bdb1454c --- /dev/null +++ b/change/@azure-msal-browser-97253ea7-d606-42ce-b474-9af12c38c390.json @@ -0,0 +1,7 @@ +{ + "type": "minor", + "comment": "Updated react packages and peerDependencies", + "packageName": "@azure/msal-browser", + "email": "arjen@bloemium.com", + "dependentChangeType": "patch" +} diff --git a/change/@azure-msal-react-52a632ba-21f7-42c1-af73-92f6cfeea994.json b/change/@azure-msal-react-52a632ba-21f7-42c1-af73-92f6cfeea994.json new file mode 100644 index 0000000000..0a0c33061e --- /dev/null +++ b/change/@azure-msal-react-52a632ba-21f7-42c1-af73-92f6cfeea994.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Updated react packages and peerDependencies", + "packageName": "@azure/msal-react", + "email": "arjen@bloemium.com", + "dependentChangeType": "patch" +}