From f4c3906a361255bc33d64d68871b3bddbc69b058 Mon Sep 17 00:00:00 2001 From: Roy Razon Date: Sat, 18 May 2024 19:39:13 +0300 Subject: [PATCH] fix compatibility with node v22 - replace import `assert` keyword with `with`, see https://github.com/livecycle/preevy/issues/492 - upgrade azure package to support node v22 fixes #492 --- packages/driver-azure/package.json | 4 +-- packages/driver-kube-pod/src/static.ts | 2 +- yarn.lock | 44 +++++++++++++------------- 3 files changed, 25 insertions(+), 25 deletions(-) diff --git a/packages/driver-azure/package.json b/packages/driver-azure/package.json index 5622c23a..b741d3cd 100644 --- a/packages/driver-azure/package.json +++ b/packages/driver-azure/package.json @@ -18,7 +18,7 @@ "@azure/arm-resources": "^5.2.0", "@azure/arm-storage": "^18.2.0", "@azure/arm-subscriptions": "^5.1.0", - "@azure/identity": "^3.2.2", + "@azure/identity": "^4.2.0", "@azure/logger": "^1.0.4", "@azure/storage-blob": "^12.17.0", "@inquirer/prompts": "^3.3.0", @@ -59,4 +59,4 @@ "prepack": "yarn clean && yarn build", "prepare": "cd ../.. && husky install" } -} +} \ No newline at end of file diff --git a/packages/driver-kube-pod/src/static.ts b/packages/driver-kube-pod/src/static.ts index c8723301..bb4bb2f3 100644 --- a/packages/driver-kube-pod/src/static.ts +++ b/packages/driver-kube-pod/src/static.ts @@ -1,6 +1,6 @@ import path from 'path' import url from 'url' -import packageJsonImport from '../package.json' assert { type: 'json' } +import packageJsonImport from '../package.json' with { type: 'json' } // eslint-disable-next-line no-underscore-dangle const __dirname = url.fileURLToPath(new URL('.', import.meta.url)) diff --git a/yarn.lock b/yarn.lock index cdf22335..4caba32d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -910,7 +910,7 @@ dependencies: tslib "^2.2.0" -"@azure/core-util@^1.0.0", "@azure/core-util@^1.1.0", "@azure/core-util@^1.1.1", "@azure/core-util@^1.2.0", "@azure/core-util@^1.3.0", "@azure/core-util@^1.6.1": +"@azure/core-util@^1.0.0", "@azure/core-util@^1.1.0", "@azure/core-util@^1.1.1", "@azure/core-util@^1.2.0", "@azure/core-util@^1.3.0": version "1.7.0" resolved "https://registry.npmjs.org/@azure/core-util/-/core-util-1.7.0.tgz#3a2f73e8c7eed0666e8b6ff9ca2c1951e175feba" integrity sha512-Zq2i3QO6k9DA8vnm29mYM4G8IE9u1mhF1GUabVEqPNX8Lj833gdxQ2NAFxt2BZsfAL+e9cT8SyVN7dFVJ/Hf0g== @@ -918,20 +918,20 @@ "@azure/abort-controller" "^2.0.0" tslib "^2.2.0" -"@azure/identity@^3.2.2": - version "3.4.2" - resolved "https://registry.yarnpkg.com/@azure/identity/-/identity-3.4.2.tgz#6b01724c9caac7cadab6b63c76584345bda8e2de" - integrity sha512-0q5DL4uyR0EZ4RXQKD8MadGH6zTIcloUoS/RVbCpNpej4pwte0xpqYxk8K97Py2RiuUvI7F4GXpoT4046VfufA== +"@azure/identity@^4.2.0": + version "4.2.0" + resolved "https://registry.yarnpkg.com/@azure/identity/-/identity-4.2.0.tgz#acaee2f50785cc87778ec7eedcc20d6e72c1da23" + integrity sha512-ve3aYv79qXOJ8wRxQ5jO0eIz2DZ4o0TyME4m4vlGV5YyePddVZ+pFMzusAMODNAflYAAv1cBIhKnd4xytmXyig== dependencies: "@azure/abort-controller" "^1.0.0" "@azure/core-auth" "^1.5.0" "@azure/core-client" "^1.4.0" "@azure/core-rest-pipeline" "^1.1.0" "@azure/core-tracing" "^1.0.0" - "@azure/core-util" "^1.6.1" + "@azure/core-util" "^1.3.0" "@azure/logger" "^1.0.0" - "@azure/msal-browser" "^3.5.0" - "@azure/msal-node" "^2.5.1" + "@azure/msal-browser" "^3.11.1" + "@azure/msal-node" "^2.6.6" events "^3.0.0" jws "^4.0.0" open "^8.0.0" @@ -945,24 +945,24 @@ dependencies: tslib "^2.6.2" -"@azure/msal-browser@^3.5.0": - version "3.5.0" - resolved "https://registry.yarnpkg.com/@azure/msal-browser/-/msal-browser-3.5.0.tgz#eb64c931c78c2b75c70807f618e1284bbb183380" - integrity sha512-2NtMuel4CI3UEelCPKkNRXgKzpWEX48fvxIvPz7s0/sTcCaI08r05IOkH2GkXW+czUOtuY6+oGafJCpumnjRLg== +"@azure/msal-browser@^3.11.1": + version "3.14.0" + resolved "https://registry.yarnpkg.com/@azure/msal-browser/-/msal-browser-3.14.0.tgz#1cb5cab438a9943212aa50c403d11f775c787b21" + integrity sha512-Un85LhOoecJ3HDTS3Uv3UWnXC9/43ZSO+Kc+anSqpZvcEt58SiO/3DuVCAe1A3I5UIBYJNMgTmZPGXQ0MVYrwA== dependencies: - "@azure/msal-common" "14.4.0" + "@azure/msal-common" "14.10.0" -"@azure/msal-common@14.4.0": - version "14.4.0" - resolved "https://registry.yarnpkg.com/@azure/msal-common/-/msal-common-14.4.0.tgz#f938c1d96bb73d65baab985c96faaa273c97cfd5" - integrity sha512-ffCymScQuMKVj+YVfwNI52A5Tu+uiZO2eTf+c+3TXxdAssks4nokJhtr+uOOMxH0zDi6d1OjFKFKeXODK0YLSg== +"@azure/msal-common@14.10.0": + version "14.10.0" + resolved "https://registry.yarnpkg.com/@azure/msal-common/-/msal-common-14.10.0.tgz#215449726717b53d549953db77562cad6cb8421c" + integrity sha512-Zk6DPDz7e1wPgLoLgAp0349Yay9RvcjPM5We/ehuenDNsz/t9QEFI7tRoHpp/e47I4p20XE3FiDlhKwAo3utDA== -"@azure/msal-node@^2.5.1": - version "2.5.1" - resolved "https://registry.yarnpkg.com/@azure/msal-node/-/msal-node-2.5.1.tgz#d180a1ba5fdc611a318a8f018a2db3453e2e2898" - integrity sha512-PsPRISqCG253HQk1cAS7eJW7NWTbnBGpG+vcGGz5z4JYRdnM2EIXlj1aBpXCdozenEPtXEVvHn2ELleW1w82nQ== +"@azure/msal-node@^2.6.6": + version "2.8.1" + resolved "https://registry.yarnpkg.com/@azure/msal-node/-/msal-node-2.8.1.tgz#aded28d37eea2e7278c9bd44f2016647390f239c" + integrity sha512-VcZZM+5VvCWRBTOF7SxMKaxrz+EXjntx2u5AQe7QE06e6FuPJElGBrImgNgCh5QmFaNCfVFO+3qNR7UoFD/Gfw== dependencies: - "@azure/msal-common" "14.4.0" + "@azure/msal-common" "14.10.0" jsonwebtoken "^9.0.0" uuid "^8.3.0"