Merge pull request #12558 from backstage/rugvip/node18

Switch Node.js versions to 16 & 18
This commit is contained in:
Patrik Oldsberg
2022-11-07 13:41:26 +01:00
committed by GitHub
42 changed files with 179 additions and 112 deletions
+1 -1
View File
@@ -60,7 +60,7 @@
"morgan": "^1.10.0",
"node-cache": "^5.1.2",
"node-fetch": "^2.6.7",
"openid-client": "^5.1.3",
"openid-client": "^5.2.1",
"passport": "^0.6.0",
"passport-auth0": "^1.4.3",
"passport-bitbucket-oauth2": "^0.1.2",
@@ -25,6 +25,11 @@ import {
getOrganizationRepositories,
QueryResponse,
} from './github';
import fetch from 'node-fetch';
// Workaround for Node.js 18, where native fetch is available, but not yet picked up by msw
// TODO(Rugvip): remove once https://github.com/mswjs/msw/issues/1388 is resolved
(global as any).fetch = fetch;
describe('github', () => {
const server = setupServer();
+1 -1
View File
@@ -71,7 +71,7 @@
"@types/recharts": "^1.8.14",
"@types/regression": "^2.0.0",
"@types/yup": "^0.29.13",
"canvas": "^2.6.1",
"canvas": "^2.10.2",
"cross-fetch": "^3.1.5",
"msw": "^0.47.0"
},
+1 -1
View File
@@ -43,7 +43,7 @@
"@backstage/plugin-auth-node": "workspace:^",
"@backstage/plugin-kubernetes-common": "workspace:^",
"@google-cloud/container": "^4.0.0",
"@kubernetes/client-node": "^0.17.0",
"@kubernetes/client-node": "0.17.0",
"@types/express": "^4.17.6",
"@types/luxon": "^3.0.0",
"aws-sdk": "^2.840.0",
+1 -1
View File
@@ -39,7 +39,7 @@
},
"dependencies": {
"@backstage/catalog-model": "workspace:^",
"@kubernetes/client-node": "^0.17.0"
"@kubernetes/client-node": "0.17.0"
},
"devDependencies": {
"@backstage/cli": "workspace:^"
+1 -1
View File
@@ -40,7 +40,7 @@
"@backstage/plugin-catalog-react": "workspace:^",
"@backstage/plugin-kubernetes-common": "workspace:^",
"@backstage/theme": "workspace:^",
"@kubernetes/client-node": "^0.17.0",
"@kubernetes/client-node": "0.17.0",
"@material-ui/core": "^4.12.2",
"@material-ui/icons": "^4.9.1",
"@material-ui/lab": "4.0.0-alpha.57",
@@ -58,7 +58,7 @@ require('esbuild')
bundle: true,
format: 'cjs',
platform: 'node',
target: 'node14',
target: 'node16',
banner: { js: NUNJUCKS_LICENSE },
external: ['fsevents'],
outfile: path.resolve(__dirname, '../assets/nunjucks.js.txt'),
+1 -1
View File
@@ -76,7 +76,7 @@
"@types/dompurify": "^2.2.2",
"@types/event-source-polyfill": "^1.0.0",
"@types/node": "^16.11.26",
"canvas": "^2.6.1",
"canvas": "^2.10.2",
"cross-fetch": "^3.1.5",
"msw": "^0.47.0"
},