From 2538bf72e3cdd88ef0f59d6812b57a24cfdcd5f7 Mon Sep 17 00:00:00 2001 From: blam Date: Thu, 31 Mar 2022 21:12:46 +0200 Subject: [PATCH 1/5] chore: @node/types -> 16.x Signed-off-by: blam --- package.json | 2 +- packages/app-defaults/package.json | 2 +- packages/app/package.json | 2 +- packages/cli/package.json | 2 +- packages/codemods/package.json | 2 +- packages/config-loader/package.json | 2 +- packages/core-app-api/package.json | 2 +- packages/core-components/package.json | 2 +- packages/core-plugin-api/package.json | 2 +- packages/create-app/package.json | 2 +- packages/e2e-test/package.json | 2 +- packages/e2e-test/src/commands/run.ts | 10 ++++--- packages/integration-react/package.json | 2 +- .../techdocs-cli-embedded-app/package.json | 2 +- packages/techdocs-cli/package.json | 2 +- packages/test-utils/package.json | 2 +- plugins/airbrake/package.json | 2 +- plugins/allure/package.json | 2 +- plugins/analytics-module-ga/package.json | 2 +- plugins/apache-airflow/package.json | 2 +- plugins/api-docs/package.json | 2 +- plugins/azure-devops/package.json | 2 +- plugins/badges/package.json | 2 +- plugins/bitrise/package.json | 2 +- plugins/circleci/package.json | 2 +- plugins/cloudbuild/package.json | 2 +- plugins/code-climate/package.json | 2 +- plugins/code-coverage/package.json | 2 +- plugins/config-schema/package.json | 2 +- plugins/cost-insights/package.json | 2 +- plugins/explore-react/package.json | 2 +- plugins/explore/package.json | 2 +- plugins/firehydrant/package.json | 2 +- plugins/fossa/package.json | 2 +- plugins/gcalendar/package.json | 2 +- plugins/gcp-projects/package.json | 2 +- plugins/git-release-manager/package.json | 2 +- plugins/github-actions/package.json | 2 +- plugins/github-deployments/package.json | 2 +- plugins/gitops-profiles/package.json | 2 +- plugins/gocd/package.json | 2 +- plugins/graphiql/package.json | 2 +- plugins/home/package.json | 2 +- plugins/ilert/package.json | 2 +- plugins/jenkins/package.json | 2 +- plugins/kafka/package.json | 2 +- plugins/kubernetes/package.json | 2 +- plugins/lighthouse/package.json | 2 +- plugins/newrelic/package.json | 2 +- plugins/org/package.json | 2 +- plugins/pagerduty/package.json | 2 +- plugins/periskop/package.json | 2 +- plugins/rollbar/package.json | 2 +- .../package.json | 2 +- plugins/scaffolder/package.json | 2 +- plugins/search/package.json | 2 +- plugins/sentry/package.json | 2 +- plugins/shortcuts/package.json | 2 +- plugins/sonarqube/package.json | 2 +- plugins/splunk-on-call/package.json | 2 +- plugins/stack-overflow/package.json | 2 +- plugins/tech-insights/package.json | 2 +- plugins/tech-radar/package.json | 2 +- plugins/techdocs/package.json | 2 +- plugins/todo/package.json | 2 +- plugins/user-settings/package.json | 2 +- plugins/xcmetrics/package.json | 2 +- yarn.lock | 27 +++++++++---------- 68 files changed, 84 insertions(+), 85 deletions(-) diff --git a/package.json b/package.json index 57f7b41835..db6ee87d8c 100644 --- a/package.json +++ b/package.json @@ -59,7 +59,7 @@ "@changesets/cli": "^2.14.0", "@octokit/rest": "^18.12.0", "@spotify/prettier-config": "^13.0.0", - "@types/node": "^14.14.32", + "@types/node": "^16.x", "@types/webpack": "^5.28.0", "command-exists": "^1.2.9", "cross-env": "^7.0.0", diff --git a/packages/app-defaults/package.json b/packages/app-defaults/package.json index ae5994eaef..7463a70a4d 100644 --- a/packages/app-defaults/package.json +++ b/packages/app-defaults/package.json @@ -51,7 +51,7 @@ "@testing-library/jest-dom": "^5.10.1", "@testing-library/react": "^12.1.3", "@types/jest": "^26.0.7", - "@types/node": "^14.14.32", + "@types/node": "^16.x", "@types/react": "^16.13.1 || ^17.0.0" }, "files": [ diff --git a/packages/app/package.json b/packages/app/package.json index 0f96afd6ec..7d6f3640ae 100644 --- a/packages/app/package.json +++ b/packages/app/package.json @@ -84,7 +84,7 @@ "@testing-library/user-event": "^13.1.8", "@types/jest": "^26.0.7", "@types/jquery": "^3.3.34", - "@types/node": "^14.14.32", + "@types/node": "^16.x", "@types/react-dom": "*", "@types/zen-observable": "^0.8.0", "cross-env": "^7.0.0", diff --git a/packages/cli/package.json b/packages/cli/package.json index b56d2ff006..4a32a1c834 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -137,7 +137,7 @@ "@types/inquirer": "^8.1.3", "@types/minimatch": "^3.0.5", "@types/mock-fs": "^4.13.0", - "@types/node": "^14.14.32", + "@types/node": "^16.x", "@types/npm-packlist": "^3.0.0", "@types/recursive-readdir": "^2.2.0", "@types/rollup-plugin-peer-deps-external": "^2.2.0", diff --git a/packages/codemods/package.json b/packages/codemods/package.json index a4cd09a0fd..bf75396279 100644 --- a/packages/codemods/package.json +++ b/packages/codemods/package.json @@ -41,7 +41,7 @@ }, "devDependencies": { "@types/jscodeshift": "^0.11.0", - "@types/node": "^14.14.32", + "@types/node": "^16.x", "commander": "^6.1.0", "ts-node": "^10.0.0" }, diff --git a/packages/config-loader/package.json b/packages/config-loader/package.json index 051048ded6..43fc836a84 100644 --- a/packages/config-loader/package.json +++ b/packages/config-loader/package.json @@ -54,7 +54,7 @@ "@types/jest": "^26.0.7", "@types/json-schema-merge-allof": "^0.6.0", "@types/mock-fs": "^4.10.0", - "@types/node": "^14.14.32", + "@types/node": "^16.x", "@types/yup": "^0.29.13", "mock-fs": "^5.1.0", "msw": "^0.35.0" diff --git a/packages/core-app-api/package.json b/packages/core-app-api/package.json index dd37f90369..33c5e6c5b8 100644 --- a/packages/core-app-api/package.json +++ b/packages/core-app-api/package.json @@ -56,7 +56,7 @@ "@testing-library/react-hooks": "^7.0.2", "@testing-library/user-event": "^13.1.8", "@types/jest": "^26.0.7", - "@types/node": "^14.14.32", + "@types/node": "^16.x", "@types/zen-observable": "^0.8.0", "cross-fetch": "^3.1.5", "msw": "^0.35.0" diff --git a/packages/core-components/package.json b/packages/core-components/package.json index e51f041884..70e482a317 100644 --- a/packages/core-components/package.json +++ b/packages/core-components/package.json @@ -93,7 +93,7 @@ "@types/dagre": "^0.7.44", "@types/google-protobuf": "^3.7.2", "@types/jest": "^26.0.7", - "@types/node": "^14.14.32", + "@types/node": "^16.x", "@types/react-helmet": "^6.1.0", "@types/react-syntax-highlighter": "^13.5.2", "@types/react-virtualized-auto-sizer": "^1.0.1", diff --git a/packages/core-plugin-api/package.json b/packages/core-plugin-api/package.json index 35c716863a..5c2045c623 100644 --- a/packages/core-plugin-api/package.json +++ b/packages/core-plugin-api/package.json @@ -54,7 +54,7 @@ "@testing-library/react-hooks": "^7.0.2", "@testing-library/user-event": "^13.1.8", "@types/jest": "^26.0.7", - "@types/node": "^14.14.32", + "@types/node": "^16.x", "@types/prop-types": "^15.7.3", "@types/zen-observable": "^0.8.0", "cross-fetch": "^3.1.5", diff --git a/packages/create-app/package.json b/packages/create-app/package.json index 964250f398..2e4c0ed7dc 100644 --- a/packages/create-app/package.json +++ b/packages/create-app/package.json @@ -45,7 +45,7 @@ "devDependencies": { "@types/fs-extra": "^9.0.1", "@types/inquirer": "^8.1.3", - "@types/node": "^14.14.32", + "@types/node": "^16.x", "@types/recursive-readdir": "^2.2.0", "mock-fs": "^5.1.1", "ts-node": "^10.0.0" diff --git a/packages/e2e-test/package.json b/packages/e2e-test/package.json index 72469875ef..6ddaae3a94 100644 --- a/packages/e2e-test/package.json +++ b/packages/e2e-test/package.json @@ -32,7 +32,7 @@ "@backstage/cli-common": "^0.1.8", "@backstage/errors": "^1.0.0", "@types/fs-extra": "^9.0.1", - "@types/node": "^14.14.32", + "@types/node": "^16.x", "@types/puppeteer": "^5.4.4", "chalk": "^4.0.0", "commander": "^6.1.0", diff --git a/packages/e2e-test/src/commands/run.ts b/packages/e2e-test/src/commands/run.ts index 83e0bc78e9..85365428dc 100644 --- a/packages/e2e-test/src/commands/run.ts +++ b/packages/e2e-test/src/commands/run.ts @@ -372,8 +372,9 @@ async function testAppServe(pluginName: string, appDir: string) { } } finally { // Kill entire process group, otherwise we'll end up with hanging serve processes - await new Promise((res, rej) => - killTree(startApp.pid, err => (err ? rej(err) : res())), + await new Promise( + (res, rej) => + startApp.pid && killTree(startApp.pid, err => (err ? rej(err) : res())), ); } @@ -477,8 +478,9 @@ async function testBackendStart(appDir: string, isPostgres: boolean) { } finally { print('Stopping the child process'); // Kill entire process group, otherwise we'll end up with hanging serve processes - await new Promise((res, rej) => - killTree(child.pid, err => (err ? rej(err) : res())), + await new Promise( + (res, rej) => + child.pid && killTree(child.pid, err => (err ? rej(err) : res())), ); } diff --git a/packages/integration-react/package.json b/packages/integration-react/package.json index 70902e8fb3..a5703fa575 100644 --- a/packages/integration-react/package.json +++ b/packages/integration-react/package.json @@ -45,7 +45,7 @@ "@testing-library/react": "^12.1.3", "@testing-library/user-event": "^13.1.8", "@types/jest": "^26.0.7", - "@types/node": "^14.14.32", + "@types/node": "^16.x", "msw": "^0.35.0", "cross-fetch": "^3.1.5" }, diff --git a/packages/techdocs-cli-embedded-app/package.json b/packages/techdocs-cli-embedded-app/package.json index 4330ba46f3..d0f8f33f9f 100644 --- a/packages/techdocs-cli-embedded-app/package.json +++ b/packages/techdocs-cli-embedded-app/package.json @@ -34,7 +34,7 @@ "@testing-library/react": "^12.1.3", "@testing-library/user-event": "^13.1.8", "@types/jest": "^26.0.7", - "@types/node": "^14.14.32", + "@types/node": "^16.x", "@types/react-dom": "*", "cross-env": "^7.0.0", "cypress": "^9.5.0", diff --git a/packages/techdocs-cli/package.json b/packages/techdocs-cli/package.json index 7b03f0d3ab..715990a514 100644 --- a/packages/techdocs-cli/package.json +++ b/packages/techdocs-cli/package.json @@ -42,7 +42,7 @@ "@types/fs-extra": "^9.0.6", "@types/http-proxy": "^1.17.4", "@types/jest": "^26.0.7", - "@types/node": "^14.14.32", + "@types/node": "^16.x", "@types/serve-handler": "^6.1.0", "@types/webpack-env": "^1.15.3", "cypress": "^9.5.0", diff --git a/packages/test-utils/package.json b/packages/test-utils/package.json index 8d7dd24b85..5cf223ae2a 100644 --- a/packages/test-utils/package.json +++ b/packages/test-utils/package.json @@ -57,7 +57,7 @@ "devDependencies": { "@backstage/cli": "^0.17.0-next.1", "@types/jest": "^26.0.7", - "@types/node": "^14.14.32", + "@types/node": "^16.x", "msw": "^0.35.0" }, "files": [ diff --git a/plugins/airbrake/package.json b/plugins/airbrake/package.json index 8237490ac3..95d676056c 100644 --- a/plugins/airbrake/package.json +++ b/plugins/airbrake/package.json @@ -48,7 +48,7 @@ "@testing-library/react": "^12.1.3", "@testing-library/user-event": "^13.1.8", "@types/jest": "^26.0.7", - "@types/node": "^14.14.32", + "@types/node": "^16.x", "@types/object-hash": "^2.2.1", "cross-fetch": "^3.1.5", "msw": "^0.35.0", diff --git a/plugins/allure/package.json b/plugins/allure/package.json index 18bf6646e5..c4d4ade667 100644 --- a/plugins/allure/package.json +++ b/plugins/allure/package.json @@ -48,7 +48,7 @@ "@testing-library/react": "^12.1.3", "@testing-library/user-event": "^13.1.8", "@types/jest": "^26.0.7", - "@types/node": "^14.14.32", + "@types/node": "^16.x", "cross-fetch": "^3.1.5", "msw": "^0.35.0" }, diff --git a/plugins/analytics-module-ga/package.json b/plugins/analytics-module-ga/package.json index f9281e4c86..0efb8a6e2a 100644 --- a/plugins/analytics-module-ga/package.json +++ b/plugins/analytics-module-ga/package.json @@ -46,7 +46,7 @@ "@testing-library/react": "^12.1.3", "@testing-library/user-event": "^13.1.8", "@types/jest": "^26.0.7", - "@types/node": "^14.14.32", + "@types/node": "^16.x", "cross-fetch": "^3.1.5", "msw": "^0.35.0" }, diff --git a/plugins/apache-airflow/package.json b/plugins/apache-airflow/package.json index bda73686b6..d12892ed6d 100644 --- a/plugins/apache-airflow/package.json +++ b/plugins/apache-airflow/package.json @@ -44,7 +44,7 @@ "@testing-library/react": "^12.1.3", "@testing-library/user-event": "^13.1.8", "@types/jest": "^26.0.7", - "@types/node": "^14.14.32", + "@types/node": "^16.x", "msw": "^0.35.0" }, "files": [ diff --git a/plugins/api-docs/package.json b/plugins/api-docs/package.json index 9116bb31bc..391cf90eaf 100644 --- a/plugins/api-docs/package.json +++ b/plugins/api-docs/package.json @@ -64,7 +64,7 @@ "@testing-library/react": "^12.1.3", "@testing-library/user-event": "^13.1.8", "@types/jest": "^26.0.7", - "@types/node": "^14.14.32", + "@types/node": "^16.x", "@types/swagger-ui-react": "^4.1.1", "cross-fetch": "^3.1.5", "msw": "^0.35.0" diff --git a/plugins/azure-devops/package.json b/plugins/azure-devops/package.json index 49544120c2..d2c22a421a 100644 --- a/plugins/azure-devops/package.json +++ b/plugins/azure-devops/package.json @@ -57,7 +57,7 @@ "@testing-library/react": "^12.1.3", "@testing-library/user-event": "^13.1.8", "@types/jest": "^26.0.7", - "@types/node": "^14.14.32", + "@types/node": "^16.x", "cross-fetch": "^3.1.5", "msw": "^0.35.0" }, diff --git a/plugins/badges/package.json b/plugins/badges/package.json index f03717cfb0..6e858f4d78 100644 --- a/plugins/badges/package.json +++ b/plugins/badges/package.json @@ -54,7 +54,7 @@ "@testing-library/react": "^12.1.3", "@testing-library/user-event": "^13.1.8", "@types/jest": "^26.0.7", - "@types/node": "^14.14.32", + "@types/node": "^16.x", "cross-fetch": "^3.1.5", "msw": "^0.35.0" }, diff --git a/plugins/bitrise/package.json b/plugins/bitrise/package.json index ffe4d3282b..f32c6435c4 100644 --- a/plugins/bitrise/package.json +++ b/plugins/bitrise/package.json @@ -51,7 +51,7 @@ "@testing-library/react": "^12.1.3", "@testing-library/user-event": "^13.1.8", "@types/jest": "^26.0.7", - "@types/node": "^14.14.32", + "@types/node": "^16.x", "@types/recharts": "^1.8.15", "msw": "^0.35.0" }, diff --git a/plugins/circleci/package.json b/plugins/circleci/package.json index 32d6c99271..6aca5bb494 100644 --- a/plugins/circleci/package.json +++ b/plugins/circleci/package.json @@ -64,7 +64,7 @@ "@testing-library/user-event": "^13.1.8", "@types/humanize-duration": "^3.25.1", "@types/jest": "^26.0.7", - "@types/node": "^14.14.32", + "@types/node": "^16.x", "cross-fetch": "^3.1.5", "msw": "^0.35.0" }, diff --git a/plugins/cloudbuild/package.json b/plugins/cloudbuild/package.json index 593dfff38a..25a579ca07 100644 --- a/plugins/cloudbuild/package.json +++ b/plugins/cloudbuild/package.json @@ -60,7 +60,7 @@ "@testing-library/react": "^12.1.3", "@testing-library/user-event": "^13.1.8", "@types/jest": "^26.0.7", - "@types/node": "^14.14.32", + "@types/node": "^16.x", "cross-fetch": "^3.1.5", "msw": "^0.35.0" }, diff --git a/plugins/code-climate/package.json b/plugins/code-climate/package.json index 89feeca5b4..5f6c3a5db7 100644 --- a/plugins/code-climate/package.json +++ b/plugins/code-climate/package.json @@ -49,7 +49,7 @@ "@types/humanize-duration": "^3.27.1", "@types/jest": "^26.0.7", "@types/luxon": "^2.0.9", - "@types/node": "^14.14.32", + "@types/node": "^16.x", "cross-fetch": "^3.1.5", "msw": "^0.35.0" }, diff --git a/plugins/code-coverage/package.json b/plugins/code-coverage/package.json index fd65f00eb8..3a56ff0ce5 100644 --- a/plugins/code-coverage/package.json +++ b/plugins/code-coverage/package.json @@ -55,7 +55,7 @@ "@testing-library/user-event": "^13.1.8", "@types/highlightjs": "^10.1.0", "@types/jest": "^26.0.7", - "@types/node": "^14.14.32", + "@types/node": "^16.x", "@types/recharts": "^1.8.15", "cross-fetch": "^3.1.5", "msw": "^0.35.0" diff --git a/plugins/config-schema/package.json b/plugins/config-schema/package.json index 64bd4a683b..546002f0db 100644 --- a/plugins/config-schema/package.json +++ b/plugins/config-schema/package.json @@ -49,7 +49,7 @@ "@testing-library/react": "^12.1.3", "@testing-library/user-event": "^13.1.8", "@types/jest": "^26.0.7", - "@types/node": "^14.14.32", + "@types/node": "^16.x", "cross-fetch": "^3.1.5", "msw": "^0.35.0" }, diff --git a/plugins/cost-insights/package.json b/plugins/cost-insights/package.json index 97962bf856..858b221ab5 100644 --- a/plugins/cost-insights/package.json +++ b/plugins/cost-insights/package.json @@ -68,7 +68,7 @@ "@testing-library/react": "^12.1.3", "@testing-library/user-event": "^13.1.8", "@types/jest": "^26.0.7", - "@types/node": "^14.14.32", + "@types/node": "^16.x", "@types/pluralize": "^0.0.29", "@types/recharts": "^1.8.14", "@types/regression": "^2.0.0", diff --git a/plugins/explore-react/package.json b/plugins/explore-react/package.json index 8615543348..fbb6f83357 100644 --- a/plugins/explore-react/package.json +++ b/plugins/explore-react/package.json @@ -43,7 +43,7 @@ "@testing-library/react": "^12.1.3", "@testing-library/user-event": "^13.1.8", "@types/jest": "^26.0.7", - "@types/node": "^14.14.32", + "@types/node": "^16.x", "cross-fetch": "^3.1.5", "msw": "^0.35.0" }, diff --git a/plugins/explore/package.json b/plugins/explore/package.json index 2913e89150..07ea649c8b 100644 --- a/plugins/explore/package.json +++ b/plugins/explore/package.json @@ -61,7 +61,7 @@ "@testing-library/react": "^12.1.3", "@testing-library/user-event": "^13.1.8", "@types/jest": "^26.0.7", - "@types/node": "^14.14.32", + "@types/node": "^16.x", "cross-fetch": "^3.1.5", "msw": "^0.35.0" }, diff --git a/plugins/firehydrant/package.json b/plugins/firehydrant/package.json index 330defcf8c..b4245cd726 100644 --- a/plugins/firehydrant/package.json +++ b/plugins/firehydrant/package.json @@ -47,7 +47,7 @@ "@testing-library/react": "^12.1.3", "@testing-library/user-event": "^13.1.8", "@types/jest": "^26.0.7", - "@types/node": "^14.14.32", + "@types/node": "^16.x", "cross-fetch": "^3.1.5", "msw": "^0.35.0" }, diff --git a/plugins/fossa/package.json b/plugins/fossa/package.json index 0a9931fd48..fa426a9fa8 100644 --- a/plugins/fossa/package.json +++ b/plugins/fossa/package.json @@ -61,7 +61,7 @@ "@testing-library/react": "^12.1.3", "@testing-library/user-event": "^13.1.8", "@types/jest": "^26.0.7", - "@types/node": "^14.14.32", + "@types/node": "^16.x", "msw": "^0.35.0" }, "files": [ diff --git a/plugins/gcalendar/package.json b/plugins/gcalendar/package.json index 5489cd2e19..ece526e7e2 100644 --- a/plugins/gcalendar/package.json +++ b/plugins/gcalendar/package.json @@ -54,7 +54,7 @@ "@types/gapi.auth2": "^0.0.56", "@types/gapi.client.calendar": "^3.0.10", "@types/jest": "^26.0.7", - "@types/node": "^14.14.32", + "@types/node": "^16.x", "@types/sanitize-html": "^2.6.2", "cross-fetch": "^3.1.5", "msw": "^0.35.0" diff --git a/plugins/gcp-projects/package.json b/plugins/gcp-projects/package.json index 2774a47dea..1587a4eac6 100644 --- a/plugins/gcp-projects/package.json +++ b/plugins/gcp-projects/package.json @@ -55,7 +55,7 @@ "@testing-library/react": "^12.1.3", "@testing-library/user-event": "^13.1.8", "@types/jest": "^26.0.7", - "@types/node": "^14.14.32", + "@types/node": "^16.x", "cross-fetch": "^3.1.5", "msw": "^0.35.0" }, diff --git a/plugins/git-release-manager/package.json b/plugins/git-release-manager/package.json index 74b598aebd..3670c79295 100644 --- a/plugins/git-release-manager/package.json +++ b/plugins/git-release-manager/package.json @@ -52,7 +52,7 @@ "@testing-library/react-hooks": "^7.0.2", "@testing-library/user-event": "^13.1.8", "@types/jest": "^26.0.7", - "@types/node": "^14.14.32", + "@types/node": "^16.x", "@types/recharts": "^1.8.15", "cross-fetch": "^3.1.5", "msw": "^0.35.0" diff --git a/plugins/github-actions/package.json b/plugins/github-actions/package.json index 417b8cede9..89c1589d39 100644 --- a/plugins/github-actions/package.json +++ b/plugins/github-actions/package.json @@ -63,7 +63,7 @@ "@testing-library/react": "^12.1.3", "@testing-library/user-event": "^13.1.8", "@types/jest": "^26.0.7", - "@types/node": "^14.14.32", + "@types/node": "^16.x", "cross-fetch": "^3.1.5", "msw": "^0.35.0" }, diff --git a/plugins/github-deployments/package.json b/plugins/github-deployments/package.json index 78af6e1798..13f1cfffad 100644 --- a/plugins/github-deployments/package.json +++ b/plugins/github-deployments/package.json @@ -51,7 +51,7 @@ "@testing-library/react": "^12.1.3", "@testing-library/user-event": "^13.1.8", "@types/jest": "^26.0.7", - "@types/node": "^14.14.32", + "@types/node": "^16.x", "cross-fetch": "^3.1.5", "msw": "^0.35.0" }, diff --git a/plugins/gitops-profiles/package.json b/plugins/gitops-profiles/package.json index 125d4e25b1..fbae74c50c 100644 --- a/plugins/gitops-profiles/package.json +++ b/plugins/gitops-profiles/package.json @@ -56,7 +56,7 @@ "@testing-library/react": "^12.1.3", "@testing-library/user-event": "^13.1.8", "@types/jest": "^26.0.7", - "@types/node": "^14.14.32", + "@types/node": "^16.x", "cross-fetch": "^3.1.5", "msw": "^0.35.0" }, diff --git a/plugins/gocd/package.json b/plugins/gocd/package.json index 4d854c7bbc..f8eaee265a 100644 --- a/plugins/gocd/package.json +++ b/plugins/gocd/package.json @@ -59,7 +59,7 @@ "@types/jest": "^26.0.7", "@types/lodash": "^4.14.173", "@types/luxon": "^2.0.4", - "@types/node": "^14.14.32", + "@types/node": "^16.x", "cross-fetch": "^3.1.5", "msw": "^0.35.0" }, diff --git a/plugins/graphiql/package.json b/plugins/graphiql/package.json index 60d6f9f1ea..629559d029 100644 --- a/plugins/graphiql/package.json +++ b/plugins/graphiql/package.json @@ -57,7 +57,7 @@ "@testing-library/user-event": "^13.1.8", "@types/codemirror": "^0.0.108", "@types/jest": "^26.0.7", - "@types/node": "^14.14.32", + "@types/node": "^16.x", "cross-fetch": "^3.1.5", "msw": "^0.35.0", "react-router-dom": "6.0.0-beta.0" diff --git a/plugins/home/package.json b/plugins/home/package.json index 5c9ad5e24a..88bef54587 100644 --- a/plugins/home/package.json +++ b/plugins/home/package.json @@ -62,7 +62,7 @@ "@testing-library/react": "^12.1.3", "@testing-library/user-event": "^13.1.8", "@types/jest": "^26.0.7", - "@types/node": "^14.14.32", + "@types/node": "^16.x", "cross-fetch": "^3.1.5", "msw": "^0.35.0" }, diff --git a/plugins/ilert/package.json b/plugins/ilert/package.json index f7f7149962..4a24e171a2 100644 --- a/plugins/ilert/package.json +++ b/plugins/ilert/package.json @@ -51,7 +51,7 @@ "@testing-library/react": "^12.1.3", "@testing-library/user-event": "^13.1.8", "@types/jest": "^26.0.7", - "@types/node": "^14.14.32", + "@types/node": "^16.x", "cross-fetch": "^3.1.5", "msw": "^0.35.0" }, diff --git a/plugins/jenkins/package.json b/plugins/jenkins/package.json index 9c0b01b53c..fd918d2f96 100644 --- a/plugins/jenkins/package.json +++ b/plugins/jenkins/package.json @@ -62,7 +62,7 @@ "@testing-library/react": "^12.1.3", "@testing-library/user-event": "^13.1.8", "@types/jest": "^26.0.7", - "@types/node": "^14.14.32", + "@types/node": "^16.x", "@types/testing-library__jest-dom": "^5.9.1", "cross-fetch": "^3.1.5", "msw": "^0.35.0" diff --git a/plugins/kafka/package.json b/plugins/kafka/package.json index 4228822e6b..4650dfbd64 100644 --- a/plugins/kafka/package.json +++ b/plugins/kafka/package.json @@ -48,7 +48,7 @@ "@testing-library/react-hooks": "^7.0.2", "@testing-library/user-event": "^13.1.8", "@types/jest": "^26.0.7", - "@types/node": "^14.14.32", + "@types/node": "^16.x", "cross-fetch": "^3.1.5", "jest-when": "^3.1.0", "msw": "^0.35.0" diff --git a/plugins/kubernetes/package.json b/plugins/kubernetes/package.json index f47d30c117..4d1a8ad288 100644 --- a/plugins/kubernetes/package.json +++ b/plugins/kubernetes/package.json @@ -66,7 +66,7 @@ "@testing-library/react-hooks": "^7.0.2", "@testing-library/user-event": "^13.1.8", "@types/jest": "^26.0.7", - "@types/node": "^14.14.32", + "@types/node": "^16.x", "cross-fetch": "^3.1.5", "msw": "^0.35.0" }, diff --git a/plugins/lighthouse/package.json b/plugins/lighthouse/package.json index 6164ca0f31..14b22b4890 100644 --- a/plugins/lighthouse/package.json +++ b/plugins/lighthouse/package.json @@ -60,7 +60,7 @@ "@testing-library/react-hooks": "^7.0.2", "@testing-library/user-event": "^13.1.8", "@types/jest": "^26.0.7", - "@types/node": "^14.14.32", + "@types/node": "^16.x", "@types/react": "^16.13.1 || ^17.0.0", "cross-fetch": "^3.1.5", "msw": "^0.35.0" diff --git a/plugins/newrelic/package.json b/plugins/newrelic/package.json index a6ee84ab5e..fc3f730dd6 100644 --- a/plugins/newrelic/package.json +++ b/plugins/newrelic/package.json @@ -55,7 +55,7 @@ "@testing-library/react": "^12.1.3", "@testing-library/user-event": "^13.1.8", "@types/jest": "^26.0.7", - "@types/node": "^14.14.32", + "@types/node": "^16.x", "cross-fetch": "^3.1.5", "msw": "^0.35.0" }, diff --git a/plugins/org/package.json b/plugins/org/package.json index 034e32177f..1e9cbe7b58 100644 --- a/plugins/org/package.json +++ b/plugins/org/package.json @@ -57,7 +57,7 @@ "@testing-library/react": "^12.1.3", "@testing-library/user-event": "^13.1.8", "@types/jest": "^26.0.7", - "@types/node": "^14.14.32", + "@types/node": "^16.x", "cross-fetch": "^3.1.5", "msw": "^0.35.0" }, diff --git a/plugins/pagerduty/package.json b/plugins/pagerduty/package.json index 0324cede4f..67d2bbf12e 100644 --- a/plugins/pagerduty/package.json +++ b/plugins/pagerduty/package.json @@ -60,7 +60,7 @@ "@testing-library/react": "^12.1.3", "@testing-library/user-event": "^13.1.8", "@types/jest": "^26.0.7", - "@types/node": "^14.14.32", + "@types/node": "^16.x", "cross-fetch": "^3.1.5", "msw": "^0.35.0" }, diff --git a/plugins/periskop/package.json b/plugins/periskop/package.json index e4eed51eb0..b0be68b889 100644 --- a/plugins/periskop/package.json +++ b/plugins/periskop/package.json @@ -51,7 +51,7 @@ "@testing-library/user-event": "^13.1.8", "@types/jest": "^26.0.7", "@types/luxon": "^2.0.4", - "@types/node": "^14.14.32", + "@types/node": "^16.x", "cross-fetch": "^3.1.5", "msw": "^0.35.0" }, diff --git a/plugins/rollbar/package.json b/plugins/rollbar/package.json index d4f8c476bc..dc4b2f560e 100644 --- a/plugins/rollbar/package.json +++ b/plugins/rollbar/package.json @@ -62,7 +62,7 @@ "@testing-library/react-hooks": "^7.0.2", "@testing-library/user-event": "^13.1.8", "@types/jest": "^26.0.7", - "@types/node": "^14.14.32", + "@types/node": "^16.x", "@types/react": "^16.13.1 || ^17.0.0", "cross-fetch": "^3.1.5", "msw": "^0.35.0" diff --git a/plugins/scaffolder-backend-module-rails/package.json b/plugins/scaffolder-backend-module-rails/package.json index abb0bedf74..59ba41d8d0 100644 --- a/plugins/scaffolder-backend-module-rails/package.json +++ b/plugins/scaffolder-backend-module-rails/package.json @@ -36,7 +36,7 @@ "devDependencies": { "@backstage/cli": "^0.17.0-next.1", "@types/jest": "^26.0.7", - "@types/node": "^14.14.32", + "@types/node": "^16.x", "@types/command-exists": "^1.2.0", "@types/fs-extra": "^9.0.1", "@types/mock-fs": "^4.13.0", diff --git a/plugins/scaffolder/package.json b/plugins/scaffolder/package.json index 25d4fc1246..628f63dd1a 100644 --- a/plugins/scaffolder/package.json +++ b/plugins/scaffolder/package.json @@ -90,7 +90,7 @@ "@testing-library/user-event": "^13.1.8", "@types/humanize-duration": "^3.18.1", "@types/jest": "^26.0.7", - "@types/node": "^14.14.32", + "@types/node": "^16.x", "cross-fetch": "^3.1.5", "event-source-polyfill": "1.0.25", "msw": "^0.35.0" diff --git a/plugins/search/package.json b/plugins/search/package.json index 13079e4b0a..ebaf82503d 100644 --- a/plugins/search/package.json +++ b/plugins/search/package.json @@ -65,7 +65,7 @@ "@testing-library/react-hooks": "^7.0.2", "@testing-library/user-event": "^13.1.8", "@types/jest": "^26.0.7", - "@types/node": "^14.14.32", + "@types/node": "^16.x", "cross-fetch": "^3.1.5", "msw": "^0.35.0" }, diff --git a/plugins/sentry/package.json b/plugins/sentry/package.json index edcf3eb76d..d4e7bd3930 100644 --- a/plugins/sentry/package.json +++ b/plugins/sentry/package.json @@ -62,7 +62,7 @@ "@testing-library/user-event": "^13.1.8", "@types/jest": "^26.0.7", "@types/luxon": "^2.0.4", - "@types/node": "^14.14.32", + "@types/node": "^16.x", "@types/react": "^16.13.1 || ^17.0.0", "cross-fetch": "^3.1.5", "msw": "^0.35.0" diff --git a/plugins/shortcuts/package.json b/plugins/shortcuts/package.json index 1ec2d51e76..351d696d8a 100644 --- a/plugins/shortcuts/package.json +++ b/plugins/shortcuts/package.json @@ -50,7 +50,7 @@ "@testing-library/react": "^12.1.3", "@testing-library/user-event": "^13.1.8", "@types/jest": "^26.0.7", - "@types/node": "^14.14.32", + "@types/node": "^16.x", "cross-fetch": "^3.1.5", "msw": "^0.35.0" }, diff --git a/plugins/sonarqube/package.json b/plugins/sonarqube/package.json index 862f88f36a..85290e2910 100644 --- a/plugins/sonarqube/package.json +++ b/plugins/sonarqube/package.json @@ -61,7 +61,7 @@ "@testing-library/react": "^12.1.3", "@testing-library/user-event": "^13.1.8", "@types/jest": "^26.0.7", - "@types/node": "^14.14.32", + "@types/node": "^16.x", "msw": "^0.35.0" }, "files": [ diff --git a/plugins/splunk-on-call/package.json b/plugins/splunk-on-call/package.json index 262638d793..322144a6fb 100644 --- a/plugins/splunk-on-call/package.json +++ b/plugins/splunk-on-call/package.json @@ -60,7 +60,7 @@ "@testing-library/user-event": "^13.1.8", "@types/jest": "^26.0.7", "@types/luxon": "^2.0.4", - "@types/node": "^14.14.32", + "@types/node": "^16.x", "cross-fetch": "^3.1.5", "msw": "^0.35.0" }, diff --git a/plugins/stack-overflow/package.json b/plugins/stack-overflow/package.json index e44215eecd..738b9f04f6 100644 --- a/plugins/stack-overflow/package.json +++ b/plugins/stack-overflow/package.json @@ -49,7 +49,7 @@ "@backstage/dev-utils": "^1.0.1-next.0", "@testing-library/user-event": "^13.1.8", "@types/jest": "^26.0.7", - "@types/node": "^14.14.32", + "@types/node": "^16.x", "msw": "^0.35.0" }, "files": [ diff --git a/plugins/tech-insights/package.json b/plugins/tech-insights/package.json index 0775a954c7..a43f346ba1 100644 --- a/plugins/tech-insights/package.json +++ b/plugins/tech-insights/package.json @@ -55,7 +55,7 @@ "@testing-library/react": "^12.1.3", "@testing-library/user-event": "^13.1.8", "@types/jest": "^26.0.7", - "@types/node": "^14.14.32", + "@types/node": "^16.x", "cross-fetch": "^3.1.5", "msw": "^0.35.0" }, diff --git a/plugins/tech-radar/package.json b/plugins/tech-radar/package.json index 4d685f349d..e12e101404 100644 --- a/plugins/tech-radar/package.json +++ b/plugins/tech-radar/package.json @@ -59,7 +59,7 @@ "@types/color": "^3.0.1", "@types/d3-force": "^2.1.1", "@types/jest": "^26.0.7", - "@types/node": "^14.14.32", + "@types/node": "^16.x", "@types/react": "^16.13.1 || ^17.0.0", "cross-fetch": "^3.1.5", "msw": "^0.35.0" diff --git a/plugins/techdocs/package.json b/plugins/techdocs/package.json index 24a6538c88..4c1d152a0e 100644 --- a/plugins/techdocs/package.json +++ b/plugins/techdocs/package.json @@ -74,7 +74,7 @@ "@testing-library/user-event": "^13.1.8", "@types/dompurify": "^2.2.2", "@types/jest": "^26.0.7", - "@types/node": "^14.14.32", + "@types/node": "^16.x", "canvas": "^2.6.1", "cross-fetch": "^3.1.5", "msw": "^0.35.0" diff --git a/plugins/todo/package.json b/plugins/todo/package.json index c22b93ad28..a6c119bf0c 100644 --- a/plugins/todo/package.json +++ b/plugins/todo/package.json @@ -53,7 +53,7 @@ "@testing-library/react": "^12.1.3", "@testing-library/user-event": "^13.1.8", "@types/jest": "^26.0.7", - "@types/node": "^14.14.32", + "@types/node": "^16.x", "cross-fetch": "^3.1.5", "react-router": "6.0.0-beta.0", "msw": "^0.35.0" diff --git a/plugins/user-settings/package.json b/plugins/user-settings/package.json index f8e2ffb546..1d088f77fa 100644 --- a/plugins/user-settings/package.json +++ b/plugins/user-settings/package.json @@ -55,7 +55,7 @@ "@testing-library/react": "^12.1.3", "@testing-library/user-event": "^13.1.8", "@types/jest": "^26.0.7", - "@types/node": "^14.14.32", + "@types/node": "^16.x", "cross-fetch": "^3.1.5", "msw": "^0.35.0" }, diff --git a/plugins/xcmetrics/package.json b/plugins/xcmetrics/package.json index 52666e4c39..49fdada791 100644 --- a/plugins/xcmetrics/package.json +++ b/plugins/xcmetrics/package.json @@ -49,7 +49,7 @@ "@testing-library/user-event": "^13.1.8", "@types/jest": "^26.0.7", "@types/luxon": "^2.0.4", - "@types/node": "^14.14.32", + "@types/node": "^16.x", "cross-fetch": "^3.1.5", "msw": "^0.35.0" }, diff --git a/yarn.lock b/yarn.lock index 49060f4eb4..82103e3a21 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2839,9 +2839,9 @@ integrity sha512-NQ17ii0rK1b34VZonlmT2QMJFI70m0TRwbknO/ihlbatXyaktDhN/98vBiUU6kNBPljqGqyIrl2T4nY2RpFANg== "@grpc/grpc-js@~1.4.0": - version "1.4.5" - resolved "https://registry.npmjs.org/@grpc/grpc-js/-/grpc-js-1.4.5.tgz#0cd840b47180624eeedf066f2cdc422d052401f8" - integrity sha512-A6cOzSu7dqXZ7rzvh/9JZf+Jg/MOpLEMP0IdT8pT8hrWJZ6TB4ydN/MRuqOtAugInJe/VQ9F8BPricUpYZSaZA== + version "1.4.6" + resolved "https://registry.npmjs.org/@grpc/grpc-js/-/grpc-js-1.4.6.tgz#8108d7ab7c0c21b38c538c1a48583edbbf2c2412" + integrity sha512-Byau4xiXfIixb1PnW30V/P9mkrZ05lknyNqiK+cVY9J5hj3gecxd/anwaUbAM8j834zg1x78NvAbwGnMfWEu7A== dependencies: "@grpc/proto-loader" "^0.6.4" "@types/node" ">=12.12.47" @@ -6432,6 +6432,11 @@ resolved "https://registry.npmjs.org/@types/node/-/node-15.14.9.tgz#bc43c990c3c9be7281868bbc7b8fdd6e2b57adfa" integrity sha512-qjd88DrCxupx/kJD5yQgZdcYKZKSIGBVDIBE1/LTGcNm3d2Np/jxojkdePDdfnBHJc5W7vSMpbJ1aB7p/Py69A== +"@types/node@^16.x": + version "16.11.26" + resolved "https://registry.npmjs.org/@types/node/-/node-16.11.26.tgz#63d204d136c9916fb4dcd1b50f9740fe86884e47" + integrity sha512-GZ7bu5A6+4DtG7q9GsoHXy3ALcgeIHP4NnL0Vv2wu0uUB/yQex26v0tf6/na1mm0+bS9Uw+0DFex7aaKr2qawQ== + "@types/normalize-package-data@^2.4.0": version "2.4.0" resolved "https://registry.npmjs.org/@types/normalize-package-data/-/normalize-package-data-2.4.0.tgz#e486d0d97396d79beedd0a6e33f4534ff6b4973e" @@ -6779,18 +6784,10 @@ dependencies: "@types/node" "*" -"@types/ssh2@*": - version "0.5.47" - resolved "https://registry.npmjs.org/@types/ssh2/-/ssh2-0.5.47.tgz#67a8b35a0527b2bb668f6dea4c84be6ff1abdc19" - integrity sha512-ZhqJg8BRV7OsCi0KVqPr27lUMMmLEeHYw1VXUNGGDlQEDq9HTsKx+wYvi8E6oNC6gRZ7PV99ZMZmMr5vztcYYA== - dependencies: - "@types/node" "*" - "@types/ssh2-streams" "*" - -"@types/ssh2@^0.5.48": - version "0.5.48" - resolved "https://registry.npmjs.org/@types/ssh2/-/ssh2-0.5.48.tgz#0d9e8654a76eaaf4cfeaeb88d74c4489cfcf7aea" - integrity sha512-cmQu0gp/6RtDXe1r2xXGgi0V0TeCdueDSRMEvBX8cTRT/sSREkUpgCYZLyh+iI8Ql+VNV8Az9toQoYa/IdgHbQ== +"@types/ssh2@*", "@types/ssh2@^0.5.48": + version "0.5.52" + resolved "https://registry.npmjs.org/@types/ssh2/-/ssh2-0.5.52.tgz#9dbd8084e2a976e551d5e5e70b978ed8b5965741" + integrity sha512-lbLLlXxdCZOSJMCInKH2+9V/77ET2J6NPQHpFI0kda61Dd1KglJs+fPQBchizmzYSOJBgdTajhPqBO1xxLywvg== dependencies: "@types/node" "*" "@types/ssh2-streams" "*" From 1cd678be2b7f4dece4e19b82ad71ebec7daf2af8 Mon Sep 17 00:00:00 2001 From: Eric Peterson Date: Fri, 1 Apr 2022 14:55:44 +0200 Subject: [PATCH 2/5] Fix tsc errors in search-backend-node Signed-off-by: Eric Peterson --- .../search-backend-node/src/IndexBuilder.ts | 25 +++++++++++-------- .../src/test-utils/TestPipeline.ts | 2 +- 2 files changed, 15 insertions(+), 12 deletions(-) diff --git a/plugins/search-backend-node/src/IndexBuilder.ts b/plugins/search-backend-node/src/IndexBuilder.ts index 6be4489127..69c1b2e6fc 100644 --- a/plugins/search-backend-node/src/IndexBuilder.ts +++ b/plugins/search-backend-node/src/IndexBuilder.ts @@ -134,18 +134,21 @@ export class IndexBuilder { // Compose collator/decorators/indexer into a pipeline return new Promise(done => { - pipeline([collator, ...decorators, indexer], error => { - if (error) { - this.logger.error( - `Collating documents for ${type} failed: ${error}`, - ); - } else { - this.logger.info(`Collating documents for ${type} succeeded`); - } + pipeline( + [collator, ...decorators, indexer], + (error: NodeJS.ErrnoException | null) => { + if (error) { + this.logger.error( + `Collating documents for ${type} failed: ${error}`, + ); + } else { + this.logger.info(`Collating documents for ${type} succeeded`); + } - // Signal index pipeline completion! - done(); - }); + // Signal index pipeline completion! + done(); + }, + ); }); }, this.collators[type].refreshInterval * 1000); }); diff --git a/plugins/search-backend-node/src/test-utils/TestPipeline.ts b/plugins/search-backend-node/src/test-utils/TestPipeline.ts index 162572d929..dd90de4f38 100644 --- a/plugins/search-backend-node/src/test-utils/TestPipeline.ts +++ b/plugins/search-backend-node/src/test-utils/TestPipeline.ts @@ -129,7 +129,7 @@ export class TestPipeline { } pipes.push(this.indexer!); - pipeline(pipes, error => { + pipeline(pipes, (error: NodeJS.ErrnoException | null) => { done({ error, documents, From f4fd7f5400e99cc7cd8d39a7d1f411f514458d98 Mon Sep 17 00:00:00 2001 From: blam Date: Mon, 4 Apr 2022 15:59:40 +0200 Subject: [PATCH 3/5] chore: fixing the version numbers Signed-off-by: blam --- package.json | 2 +- packages/app-defaults/package.json | 2 +- packages/app/package.json | 2 +- packages/cli/package.json | 2 +- .../templates/default-plugin/package.json.hbs | 2 +- packages/codemods/package.json | 2 +- packages/config-loader/package.json | 2 +- packages/core-app-api/package.json | 2 +- packages/core-components/package.json | 2 +- packages/core-plugin-api/package.json | 2 +- packages/create-app/package.json | 2 +- packages/e2e-test/package.json | 2 +- packages/e2e-test/src/commands/run.ts | 22 ++++++++++++------- packages/integration-react/package.json | 2 +- .../techdocs-cli-embedded-app/package.json | 2 +- packages/techdocs-cli/package.json | 2 +- packages/test-utils/package.json | 2 +- plugins/airbrake/package.json | 2 +- plugins/allure/package.json | 2 +- plugins/analytics-module-ga/package.json | 2 +- plugins/apache-airflow/package.json | 2 +- plugins/api-docs/package.json | 2 +- plugins/azure-devops/package.json | 2 +- plugins/badges/package.json | 2 +- plugins/bitrise/package.json | 2 +- plugins/circleci/package.json | 2 +- plugins/cloudbuild/package.json | 2 +- plugins/code-climate/package.json | 2 +- plugins/code-coverage/package.json | 2 +- plugins/config-schema/package.json | 2 +- plugins/cost-insights/package.json | 2 +- plugins/explore-react/package.json | 2 +- plugins/explore/package.json | 2 +- plugins/firehydrant/package.json | 2 +- plugins/fossa/package.json | 2 +- plugins/gcalendar/package.json | 2 +- plugins/gcp-projects/package.json | 2 +- plugins/git-release-manager/package.json | 2 +- plugins/github-actions/package.json | 2 +- plugins/github-deployments/package.json | 2 +- plugins/gitops-profiles/package.json | 2 +- plugins/gocd/package.json | 2 +- plugins/graphiql/package.json | 2 +- plugins/home/package.json | 2 +- plugins/ilert/package.json | 2 +- plugins/jenkins/package.json | 2 +- plugins/kafka/package.json | 2 +- plugins/kubernetes/package.json | 2 +- plugins/lighthouse/package.json | 2 +- plugins/newrelic/package.json | 2 +- plugins/org/package.json | 2 +- plugins/pagerduty/package.json | 2 +- plugins/periskop/package.json | 2 +- plugins/rollbar/package.json | 2 +- .../package.json | 2 +- plugins/scaffolder/package.json | 2 +- plugins/search/package.json | 2 +- plugins/sentry/package.json | 2 +- plugins/shortcuts/package.json | 2 +- plugins/sonarqube/package.json | 2 +- plugins/splunk-on-call/package.json | 2 +- plugins/stack-overflow/package.json | 2 +- plugins/tech-insights/package.json | 2 +- plugins/tech-radar/package.json | 2 +- plugins/techdocs/package.json | 2 +- plugins/todo/package.json | 2 +- plugins/user-settings/package.json | 2 +- plugins/xcmetrics/package.json | 2 +- yarn.lock | 2 +- 69 files changed, 82 insertions(+), 76 deletions(-) diff --git a/package.json b/package.json index db6ee87d8c..32a7f8d039 100644 --- a/package.json +++ b/package.json @@ -59,7 +59,7 @@ "@changesets/cli": "^2.14.0", "@octokit/rest": "^18.12.0", "@spotify/prettier-config": "^13.0.0", - "@types/node": "^16.x", + "@types/node": "^16.11.26", "@types/webpack": "^5.28.0", "command-exists": "^1.2.9", "cross-env": "^7.0.0", diff --git a/packages/app-defaults/package.json b/packages/app-defaults/package.json index 7463a70a4d..0d70d29c92 100644 --- a/packages/app-defaults/package.json +++ b/packages/app-defaults/package.json @@ -51,7 +51,7 @@ "@testing-library/jest-dom": "^5.10.1", "@testing-library/react": "^12.1.3", "@types/jest": "^26.0.7", - "@types/node": "^16.x", + "@types/node": "^16.11.26", "@types/react": "^16.13.1 || ^17.0.0" }, "files": [ diff --git a/packages/app/package.json b/packages/app/package.json index 7d6f3640ae..e3178eb4d7 100644 --- a/packages/app/package.json +++ b/packages/app/package.json @@ -84,7 +84,7 @@ "@testing-library/user-event": "^13.1.8", "@types/jest": "^26.0.7", "@types/jquery": "^3.3.34", - "@types/node": "^16.x", + "@types/node": "^16.11.26", "@types/react-dom": "*", "@types/zen-observable": "^0.8.0", "cross-env": "^7.0.0", diff --git a/packages/cli/package.json b/packages/cli/package.json index 4a32a1c834..0c2444d671 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -137,7 +137,7 @@ "@types/inquirer": "^8.1.3", "@types/minimatch": "^3.0.5", "@types/mock-fs": "^4.13.0", - "@types/node": "^16.x", + "@types/node": "^16.11.26", "@types/npm-packlist": "^3.0.0", "@types/recursive-readdir": "^2.2.0", "@types/rollup-plugin-peer-deps-external": "^2.2.0", diff --git a/packages/cli/templates/default-plugin/package.json.hbs b/packages/cli/templates/default-plugin/package.json.hbs index 7f7e046605..99935babc5 100644 --- a/packages/cli/templates/default-plugin/package.json.hbs +++ b/packages/cli/templates/default-plugin/package.json.hbs @@ -48,7 +48,7 @@ "@testing-library/react": "{{versionQuery '@testing-library/react' '12.1.3'}}", "@testing-library/user-event": "{{versionQuery '@testing-library/user-event' '13.1.8'}}", "@types/jest": "{{versionQuery '@types/jest' '26.0.7'}}", - "@types/node": "{{versionQuery '@types/node' '14.14.32'}}", + "@types/node": "{{versionQuery '@types/node' '16.11.26'}}", "msw": "{{versionQuery 'msw' '0.35.0'}}", "cross-fetch": "{{versionQuery 'cross-fetch' '3.1.5'}}" }, diff --git a/packages/codemods/package.json b/packages/codemods/package.json index bf75396279..bee26c5f53 100644 --- a/packages/codemods/package.json +++ b/packages/codemods/package.json @@ -41,7 +41,7 @@ }, "devDependencies": { "@types/jscodeshift": "^0.11.0", - "@types/node": "^16.x", + "@types/node": "^16.11.26", "commander": "^6.1.0", "ts-node": "^10.0.0" }, diff --git a/packages/config-loader/package.json b/packages/config-loader/package.json index 43fc836a84..56c3eefee0 100644 --- a/packages/config-loader/package.json +++ b/packages/config-loader/package.json @@ -54,7 +54,7 @@ "@types/jest": "^26.0.7", "@types/json-schema-merge-allof": "^0.6.0", "@types/mock-fs": "^4.10.0", - "@types/node": "^16.x", + "@types/node": "^16.11.26", "@types/yup": "^0.29.13", "mock-fs": "^5.1.0", "msw": "^0.35.0" diff --git a/packages/core-app-api/package.json b/packages/core-app-api/package.json index 33c5e6c5b8..1d44ee5392 100644 --- a/packages/core-app-api/package.json +++ b/packages/core-app-api/package.json @@ -56,7 +56,7 @@ "@testing-library/react-hooks": "^7.0.2", "@testing-library/user-event": "^13.1.8", "@types/jest": "^26.0.7", - "@types/node": "^16.x", + "@types/node": "^16.11.26", "@types/zen-observable": "^0.8.0", "cross-fetch": "^3.1.5", "msw": "^0.35.0" diff --git a/packages/core-components/package.json b/packages/core-components/package.json index 70e482a317..caf8adc8bb 100644 --- a/packages/core-components/package.json +++ b/packages/core-components/package.json @@ -93,7 +93,7 @@ "@types/dagre": "^0.7.44", "@types/google-protobuf": "^3.7.2", "@types/jest": "^26.0.7", - "@types/node": "^16.x", + "@types/node": "^16.11.26", "@types/react-helmet": "^6.1.0", "@types/react-syntax-highlighter": "^13.5.2", "@types/react-virtualized-auto-sizer": "^1.0.1", diff --git a/packages/core-plugin-api/package.json b/packages/core-plugin-api/package.json index 5c2045c623..201b4700e3 100644 --- a/packages/core-plugin-api/package.json +++ b/packages/core-plugin-api/package.json @@ -54,7 +54,7 @@ "@testing-library/react-hooks": "^7.0.2", "@testing-library/user-event": "^13.1.8", "@types/jest": "^26.0.7", - "@types/node": "^16.x", + "@types/node": "^16.11.26", "@types/prop-types": "^15.7.3", "@types/zen-observable": "^0.8.0", "cross-fetch": "^3.1.5", diff --git a/packages/create-app/package.json b/packages/create-app/package.json index 2e4c0ed7dc..8eb7956f92 100644 --- a/packages/create-app/package.json +++ b/packages/create-app/package.json @@ -45,7 +45,7 @@ "devDependencies": { "@types/fs-extra": "^9.0.1", "@types/inquirer": "^8.1.3", - "@types/node": "^16.x", + "@types/node": "^16.11.26", "@types/recursive-readdir": "^2.2.0", "mock-fs": "^5.1.1", "ts-node": "^10.0.0" diff --git a/packages/e2e-test/package.json b/packages/e2e-test/package.json index 6ddaae3a94..95bc79b7f1 100644 --- a/packages/e2e-test/package.json +++ b/packages/e2e-test/package.json @@ -32,7 +32,7 @@ "@backstage/cli-common": "^0.1.8", "@backstage/errors": "^1.0.0", "@types/fs-extra": "^9.0.1", - "@types/node": "^16.x", + "@types/node": "^16.11.26", "@types/puppeteer": "^5.4.4", "chalk": "^4.0.0", "commander": "^6.1.0", diff --git a/packages/e2e-test/src/commands/run.ts b/packages/e2e-test/src/commands/run.ts index 85365428dc..fa0051a4cb 100644 --- a/packages/e2e-test/src/commands/run.ts +++ b/packages/e2e-test/src/commands/run.ts @@ -372,10 +372,13 @@ async function testAppServe(pluginName: string, appDir: string) { } } finally { // Kill entire process group, otherwise we'll end up with hanging serve processes - await new Promise( - (res, rej) => - startApp.pid && killTree(startApp.pid, err => (err ? rej(err) : res())), - ); + await new Promise((res, rej) => { + if (!startApp.pid) { + res(); + return; + } + killTree(startApp.pid, err => (err ? rej(err) : res())); + }); } try { @@ -478,10 +481,13 @@ async function testBackendStart(appDir: string, isPostgres: boolean) { } finally { print('Stopping the child process'); // Kill entire process group, otherwise we'll end up with hanging serve processes - await new Promise( - (res, rej) => - child.pid && killTree(child.pid, err => (err ? rej(err) : res())), - ); + await new Promise((res, rej) => { + if (!child.pid) { + res(); + return; + } + killTree(child.pid, err => (err ? rej(err) : res())); + }); } try { diff --git a/packages/integration-react/package.json b/packages/integration-react/package.json index a5703fa575..ed4f789ce8 100644 --- a/packages/integration-react/package.json +++ b/packages/integration-react/package.json @@ -45,7 +45,7 @@ "@testing-library/react": "^12.1.3", "@testing-library/user-event": "^13.1.8", "@types/jest": "^26.0.7", - "@types/node": "^16.x", + "@types/node": "^16.11.26", "msw": "^0.35.0", "cross-fetch": "^3.1.5" }, diff --git a/packages/techdocs-cli-embedded-app/package.json b/packages/techdocs-cli-embedded-app/package.json index d0f8f33f9f..11588e3dc3 100644 --- a/packages/techdocs-cli-embedded-app/package.json +++ b/packages/techdocs-cli-embedded-app/package.json @@ -34,7 +34,7 @@ "@testing-library/react": "^12.1.3", "@testing-library/user-event": "^13.1.8", "@types/jest": "^26.0.7", - "@types/node": "^16.x", + "@types/node": "^16.11.26", "@types/react-dom": "*", "cross-env": "^7.0.0", "cypress": "^9.5.0", diff --git a/packages/techdocs-cli/package.json b/packages/techdocs-cli/package.json index 715990a514..28d4b64ebb 100644 --- a/packages/techdocs-cli/package.json +++ b/packages/techdocs-cli/package.json @@ -42,7 +42,7 @@ "@types/fs-extra": "^9.0.6", "@types/http-proxy": "^1.17.4", "@types/jest": "^26.0.7", - "@types/node": "^16.x", + "@types/node": "^16.11.26", "@types/serve-handler": "^6.1.0", "@types/webpack-env": "^1.15.3", "cypress": "^9.5.0", diff --git a/packages/test-utils/package.json b/packages/test-utils/package.json index 5cf223ae2a..e4eb136351 100644 --- a/packages/test-utils/package.json +++ b/packages/test-utils/package.json @@ -57,7 +57,7 @@ "devDependencies": { "@backstage/cli": "^0.17.0-next.1", "@types/jest": "^26.0.7", - "@types/node": "^16.x", + "@types/node": "^16.11.26", "msw": "^0.35.0" }, "files": [ diff --git a/plugins/airbrake/package.json b/plugins/airbrake/package.json index 95d676056c..2d7d5ec2f7 100644 --- a/plugins/airbrake/package.json +++ b/plugins/airbrake/package.json @@ -48,7 +48,7 @@ "@testing-library/react": "^12.1.3", "@testing-library/user-event": "^13.1.8", "@types/jest": "^26.0.7", - "@types/node": "^16.x", + "@types/node": "^16.11.26", "@types/object-hash": "^2.2.1", "cross-fetch": "^3.1.5", "msw": "^0.35.0", diff --git a/plugins/allure/package.json b/plugins/allure/package.json index c4d4ade667..85f2aaf9f3 100644 --- a/plugins/allure/package.json +++ b/plugins/allure/package.json @@ -48,7 +48,7 @@ "@testing-library/react": "^12.1.3", "@testing-library/user-event": "^13.1.8", "@types/jest": "^26.0.7", - "@types/node": "^16.x", + "@types/node": "^16.11.26", "cross-fetch": "^3.1.5", "msw": "^0.35.0" }, diff --git a/plugins/analytics-module-ga/package.json b/plugins/analytics-module-ga/package.json index 0efb8a6e2a..25d0dae391 100644 --- a/plugins/analytics-module-ga/package.json +++ b/plugins/analytics-module-ga/package.json @@ -46,7 +46,7 @@ "@testing-library/react": "^12.1.3", "@testing-library/user-event": "^13.1.8", "@types/jest": "^26.0.7", - "@types/node": "^16.x", + "@types/node": "^16.11.26", "cross-fetch": "^3.1.5", "msw": "^0.35.0" }, diff --git a/plugins/apache-airflow/package.json b/plugins/apache-airflow/package.json index d12892ed6d..38d6f5315f 100644 --- a/plugins/apache-airflow/package.json +++ b/plugins/apache-airflow/package.json @@ -44,7 +44,7 @@ "@testing-library/react": "^12.1.3", "@testing-library/user-event": "^13.1.8", "@types/jest": "^26.0.7", - "@types/node": "^16.x", + "@types/node": "^16.11.26", "msw": "^0.35.0" }, "files": [ diff --git a/plugins/api-docs/package.json b/plugins/api-docs/package.json index 391cf90eaf..67fd4ab92a 100644 --- a/plugins/api-docs/package.json +++ b/plugins/api-docs/package.json @@ -64,7 +64,7 @@ "@testing-library/react": "^12.1.3", "@testing-library/user-event": "^13.1.8", "@types/jest": "^26.0.7", - "@types/node": "^16.x", + "@types/node": "^16.11.26", "@types/swagger-ui-react": "^4.1.1", "cross-fetch": "^3.1.5", "msw": "^0.35.0" diff --git a/plugins/azure-devops/package.json b/plugins/azure-devops/package.json index d2c22a421a..675f3ddc70 100644 --- a/plugins/azure-devops/package.json +++ b/plugins/azure-devops/package.json @@ -57,7 +57,7 @@ "@testing-library/react": "^12.1.3", "@testing-library/user-event": "^13.1.8", "@types/jest": "^26.0.7", - "@types/node": "^16.x", + "@types/node": "^16.11.26", "cross-fetch": "^3.1.5", "msw": "^0.35.0" }, diff --git a/plugins/badges/package.json b/plugins/badges/package.json index 6e858f4d78..1e4e0a8d80 100644 --- a/plugins/badges/package.json +++ b/plugins/badges/package.json @@ -54,7 +54,7 @@ "@testing-library/react": "^12.1.3", "@testing-library/user-event": "^13.1.8", "@types/jest": "^26.0.7", - "@types/node": "^16.x", + "@types/node": "^16.11.26", "cross-fetch": "^3.1.5", "msw": "^0.35.0" }, diff --git a/plugins/bitrise/package.json b/plugins/bitrise/package.json index f32c6435c4..d97da8828d 100644 --- a/plugins/bitrise/package.json +++ b/plugins/bitrise/package.json @@ -51,7 +51,7 @@ "@testing-library/react": "^12.1.3", "@testing-library/user-event": "^13.1.8", "@types/jest": "^26.0.7", - "@types/node": "^16.x", + "@types/node": "^16.11.26", "@types/recharts": "^1.8.15", "msw": "^0.35.0" }, diff --git a/plugins/circleci/package.json b/plugins/circleci/package.json index 6aca5bb494..ca12c0e66c 100644 --- a/plugins/circleci/package.json +++ b/plugins/circleci/package.json @@ -64,7 +64,7 @@ "@testing-library/user-event": "^13.1.8", "@types/humanize-duration": "^3.25.1", "@types/jest": "^26.0.7", - "@types/node": "^16.x", + "@types/node": "^16.11.26", "cross-fetch": "^3.1.5", "msw": "^0.35.0" }, diff --git a/plugins/cloudbuild/package.json b/plugins/cloudbuild/package.json index 25a579ca07..3314ab437a 100644 --- a/plugins/cloudbuild/package.json +++ b/plugins/cloudbuild/package.json @@ -60,7 +60,7 @@ "@testing-library/react": "^12.1.3", "@testing-library/user-event": "^13.1.8", "@types/jest": "^26.0.7", - "@types/node": "^16.x", + "@types/node": "^16.11.26", "cross-fetch": "^3.1.5", "msw": "^0.35.0" }, diff --git a/plugins/code-climate/package.json b/plugins/code-climate/package.json index 5f6c3a5db7..ca1c53ddb1 100644 --- a/plugins/code-climate/package.json +++ b/plugins/code-climate/package.json @@ -49,7 +49,7 @@ "@types/humanize-duration": "^3.27.1", "@types/jest": "^26.0.7", "@types/luxon": "^2.0.9", - "@types/node": "^16.x", + "@types/node": "^16.11.26", "cross-fetch": "^3.1.5", "msw": "^0.35.0" }, diff --git a/plugins/code-coverage/package.json b/plugins/code-coverage/package.json index 3a56ff0ce5..1dca346d30 100644 --- a/plugins/code-coverage/package.json +++ b/plugins/code-coverage/package.json @@ -55,7 +55,7 @@ "@testing-library/user-event": "^13.1.8", "@types/highlightjs": "^10.1.0", "@types/jest": "^26.0.7", - "@types/node": "^16.x", + "@types/node": "^16.11.26", "@types/recharts": "^1.8.15", "cross-fetch": "^3.1.5", "msw": "^0.35.0" diff --git a/plugins/config-schema/package.json b/plugins/config-schema/package.json index 546002f0db..6abee7d414 100644 --- a/plugins/config-schema/package.json +++ b/plugins/config-schema/package.json @@ -49,7 +49,7 @@ "@testing-library/react": "^12.1.3", "@testing-library/user-event": "^13.1.8", "@types/jest": "^26.0.7", - "@types/node": "^16.x", + "@types/node": "^16.11.26", "cross-fetch": "^3.1.5", "msw": "^0.35.0" }, diff --git a/plugins/cost-insights/package.json b/plugins/cost-insights/package.json index 858b221ab5..fed4bb3b93 100644 --- a/plugins/cost-insights/package.json +++ b/plugins/cost-insights/package.json @@ -68,7 +68,7 @@ "@testing-library/react": "^12.1.3", "@testing-library/user-event": "^13.1.8", "@types/jest": "^26.0.7", - "@types/node": "^16.x", + "@types/node": "^16.11.26", "@types/pluralize": "^0.0.29", "@types/recharts": "^1.8.14", "@types/regression": "^2.0.0", diff --git a/plugins/explore-react/package.json b/plugins/explore-react/package.json index fbb6f83357..95b46dfab7 100644 --- a/plugins/explore-react/package.json +++ b/plugins/explore-react/package.json @@ -43,7 +43,7 @@ "@testing-library/react": "^12.1.3", "@testing-library/user-event": "^13.1.8", "@types/jest": "^26.0.7", - "@types/node": "^16.x", + "@types/node": "^16.11.26", "cross-fetch": "^3.1.5", "msw": "^0.35.0" }, diff --git a/plugins/explore/package.json b/plugins/explore/package.json index 07ea649c8b..4322364f9c 100644 --- a/plugins/explore/package.json +++ b/plugins/explore/package.json @@ -61,7 +61,7 @@ "@testing-library/react": "^12.1.3", "@testing-library/user-event": "^13.1.8", "@types/jest": "^26.0.7", - "@types/node": "^16.x", + "@types/node": "^16.11.26", "cross-fetch": "^3.1.5", "msw": "^0.35.0" }, diff --git a/plugins/firehydrant/package.json b/plugins/firehydrant/package.json index b4245cd726..ef88f4aaa2 100644 --- a/plugins/firehydrant/package.json +++ b/plugins/firehydrant/package.json @@ -47,7 +47,7 @@ "@testing-library/react": "^12.1.3", "@testing-library/user-event": "^13.1.8", "@types/jest": "^26.0.7", - "@types/node": "^16.x", + "@types/node": "^16.11.26", "cross-fetch": "^3.1.5", "msw": "^0.35.0" }, diff --git a/plugins/fossa/package.json b/plugins/fossa/package.json index fa426a9fa8..0a3ec2c21d 100644 --- a/plugins/fossa/package.json +++ b/plugins/fossa/package.json @@ -61,7 +61,7 @@ "@testing-library/react": "^12.1.3", "@testing-library/user-event": "^13.1.8", "@types/jest": "^26.0.7", - "@types/node": "^16.x", + "@types/node": "^16.11.26", "msw": "^0.35.0" }, "files": [ diff --git a/plugins/gcalendar/package.json b/plugins/gcalendar/package.json index ece526e7e2..ec0d08b055 100644 --- a/plugins/gcalendar/package.json +++ b/plugins/gcalendar/package.json @@ -54,7 +54,7 @@ "@types/gapi.auth2": "^0.0.56", "@types/gapi.client.calendar": "^3.0.10", "@types/jest": "^26.0.7", - "@types/node": "^16.x", + "@types/node": "^16.11.26", "@types/sanitize-html": "^2.6.2", "cross-fetch": "^3.1.5", "msw": "^0.35.0" diff --git a/plugins/gcp-projects/package.json b/plugins/gcp-projects/package.json index 1587a4eac6..3a24c59923 100644 --- a/plugins/gcp-projects/package.json +++ b/plugins/gcp-projects/package.json @@ -55,7 +55,7 @@ "@testing-library/react": "^12.1.3", "@testing-library/user-event": "^13.1.8", "@types/jest": "^26.0.7", - "@types/node": "^16.x", + "@types/node": "^16.11.26", "cross-fetch": "^3.1.5", "msw": "^0.35.0" }, diff --git a/plugins/git-release-manager/package.json b/plugins/git-release-manager/package.json index 3670c79295..6e5eb81eb3 100644 --- a/plugins/git-release-manager/package.json +++ b/plugins/git-release-manager/package.json @@ -52,7 +52,7 @@ "@testing-library/react-hooks": "^7.0.2", "@testing-library/user-event": "^13.1.8", "@types/jest": "^26.0.7", - "@types/node": "^16.x", + "@types/node": "^16.11.26", "@types/recharts": "^1.8.15", "cross-fetch": "^3.1.5", "msw": "^0.35.0" diff --git a/plugins/github-actions/package.json b/plugins/github-actions/package.json index 89c1589d39..c7843633be 100644 --- a/plugins/github-actions/package.json +++ b/plugins/github-actions/package.json @@ -63,7 +63,7 @@ "@testing-library/react": "^12.1.3", "@testing-library/user-event": "^13.1.8", "@types/jest": "^26.0.7", - "@types/node": "^16.x", + "@types/node": "^16.11.26", "cross-fetch": "^3.1.5", "msw": "^0.35.0" }, diff --git a/plugins/github-deployments/package.json b/plugins/github-deployments/package.json index 13f1cfffad..d4a917da22 100644 --- a/plugins/github-deployments/package.json +++ b/plugins/github-deployments/package.json @@ -51,7 +51,7 @@ "@testing-library/react": "^12.1.3", "@testing-library/user-event": "^13.1.8", "@types/jest": "^26.0.7", - "@types/node": "^16.x", + "@types/node": "^16.11.26", "cross-fetch": "^3.1.5", "msw": "^0.35.0" }, diff --git a/plugins/gitops-profiles/package.json b/plugins/gitops-profiles/package.json index fbae74c50c..7787881b6f 100644 --- a/plugins/gitops-profiles/package.json +++ b/plugins/gitops-profiles/package.json @@ -56,7 +56,7 @@ "@testing-library/react": "^12.1.3", "@testing-library/user-event": "^13.1.8", "@types/jest": "^26.0.7", - "@types/node": "^16.x", + "@types/node": "^16.11.26", "cross-fetch": "^3.1.5", "msw": "^0.35.0" }, diff --git a/plugins/gocd/package.json b/plugins/gocd/package.json index f8eaee265a..ca4e0c1b32 100644 --- a/plugins/gocd/package.json +++ b/plugins/gocd/package.json @@ -59,7 +59,7 @@ "@types/jest": "^26.0.7", "@types/lodash": "^4.14.173", "@types/luxon": "^2.0.4", - "@types/node": "^16.x", + "@types/node": "^16.11.26", "cross-fetch": "^3.1.5", "msw": "^0.35.0" }, diff --git a/plugins/graphiql/package.json b/plugins/graphiql/package.json index 629559d029..01bd12097d 100644 --- a/plugins/graphiql/package.json +++ b/plugins/graphiql/package.json @@ -57,7 +57,7 @@ "@testing-library/user-event": "^13.1.8", "@types/codemirror": "^0.0.108", "@types/jest": "^26.0.7", - "@types/node": "^16.x", + "@types/node": "^16.11.26", "cross-fetch": "^3.1.5", "msw": "^0.35.0", "react-router-dom": "6.0.0-beta.0" diff --git a/plugins/home/package.json b/plugins/home/package.json index 88bef54587..d30642ff2f 100644 --- a/plugins/home/package.json +++ b/plugins/home/package.json @@ -62,7 +62,7 @@ "@testing-library/react": "^12.1.3", "@testing-library/user-event": "^13.1.8", "@types/jest": "^26.0.7", - "@types/node": "^16.x", + "@types/node": "^16.11.26", "cross-fetch": "^3.1.5", "msw": "^0.35.0" }, diff --git a/plugins/ilert/package.json b/plugins/ilert/package.json index 4a24e171a2..12ad30bcb7 100644 --- a/plugins/ilert/package.json +++ b/plugins/ilert/package.json @@ -51,7 +51,7 @@ "@testing-library/react": "^12.1.3", "@testing-library/user-event": "^13.1.8", "@types/jest": "^26.0.7", - "@types/node": "^16.x", + "@types/node": "^16.11.26", "cross-fetch": "^3.1.5", "msw": "^0.35.0" }, diff --git a/plugins/jenkins/package.json b/plugins/jenkins/package.json index fd918d2f96..e474f2626c 100644 --- a/plugins/jenkins/package.json +++ b/plugins/jenkins/package.json @@ -62,7 +62,7 @@ "@testing-library/react": "^12.1.3", "@testing-library/user-event": "^13.1.8", "@types/jest": "^26.0.7", - "@types/node": "^16.x", + "@types/node": "^16.11.26", "@types/testing-library__jest-dom": "^5.9.1", "cross-fetch": "^3.1.5", "msw": "^0.35.0" diff --git a/plugins/kafka/package.json b/plugins/kafka/package.json index 4650dfbd64..5556bc6b4e 100644 --- a/plugins/kafka/package.json +++ b/plugins/kafka/package.json @@ -48,7 +48,7 @@ "@testing-library/react-hooks": "^7.0.2", "@testing-library/user-event": "^13.1.8", "@types/jest": "^26.0.7", - "@types/node": "^16.x", + "@types/node": "^16.11.26", "cross-fetch": "^3.1.5", "jest-when": "^3.1.0", "msw": "^0.35.0" diff --git a/plugins/kubernetes/package.json b/plugins/kubernetes/package.json index 4d1a8ad288..8672681e33 100644 --- a/plugins/kubernetes/package.json +++ b/plugins/kubernetes/package.json @@ -66,7 +66,7 @@ "@testing-library/react-hooks": "^7.0.2", "@testing-library/user-event": "^13.1.8", "@types/jest": "^26.0.7", - "@types/node": "^16.x", + "@types/node": "^16.11.26", "cross-fetch": "^3.1.5", "msw": "^0.35.0" }, diff --git a/plugins/lighthouse/package.json b/plugins/lighthouse/package.json index 14b22b4890..6c3a1fbb1c 100644 --- a/plugins/lighthouse/package.json +++ b/plugins/lighthouse/package.json @@ -60,7 +60,7 @@ "@testing-library/react-hooks": "^7.0.2", "@testing-library/user-event": "^13.1.8", "@types/jest": "^26.0.7", - "@types/node": "^16.x", + "@types/node": "^16.11.26", "@types/react": "^16.13.1 || ^17.0.0", "cross-fetch": "^3.1.5", "msw": "^0.35.0" diff --git a/plugins/newrelic/package.json b/plugins/newrelic/package.json index fc3f730dd6..54b347be0e 100644 --- a/plugins/newrelic/package.json +++ b/plugins/newrelic/package.json @@ -55,7 +55,7 @@ "@testing-library/react": "^12.1.3", "@testing-library/user-event": "^13.1.8", "@types/jest": "^26.0.7", - "@types/node": "^16.x", + "@types/node": "^16.11.26", "cross-fetch": "^3.1.5", "msw": "^0.35.0" }, diff --git a/plugins/org/package.json b/plugins/org/package.json index 1e9cbe7b58..d8446d126e 100644 --- a/plugins/org/package.json +++ b/plugins/org/package.json @@ -57,7 +57,7 @@ "@testing-library/react": "^12.1.3", "@testing-library/user-event": "^13.1.8", "@types/jest": "^26.0.7", - "@types/node": "^16.x", + "@types/node": "^16.11.26", "cross-fetch": "^3.1.5", "msw": "^0.35.0" }, diff --git a/plugins/pagerduty/package.json b/plugins/pagerduty/package.json index 67d2bbf12e..40b95705b2 100644 --- a/plugins/pagerduty/package.json +++ b/plugins/pagerduty/package.json @@ -60,7 +60,7 @@ "@testing-library/react": "^12.1.3", "@testing-library/user-event": "^13.1.8", "@types/jest": "^26.0.7", - "@types/node": "^16.x", + "@types/node": "^16.11.26", "cross-fetch": "^3.1.5", "msw": "^0.35.0" }, diff --git a/plugins/periskop/package.json b/plugins/periskop/package.json index b0be68b889..3262712c48 100644 --- a/plugins/periskop/package.json +++ b/plugins/periskop/package.json @@ -51,7 +51,7 @@ "@testing-library/user-event": "^13.1.8", "@types/jest": "^26.0.7", "@types/luxon": "^2.0.4", - "@types/node": "^16.x", + "@types/node": "^16.11.26", "cross-fetch": "^3.1.5", "msw": "^0.35.0" }, diff --git a/plugins/rollbar/package.json b/plugins/rollbar/package.json index dc4b2f560e..944cbd0247 100644 --- a/plugins/rollbar/package.json +++ b/plugins/rollbar/package.json @@ -62,7 +62,7 @@ "@testing-library/react-hooks": "^7.0.2", "@testing-library/user-event": "^13.1.8", "@types/jest": "^26.0.7", - "@types/node": "^16.x", + "@types/node": "^16.11.26", "@types/react": "^16.13.1 || ^17.0.0", "cross-fetch": "^3.1.5", "msw": "^0.35.0" diff --git a/plugins/scaffolder-backend-module-rails/package.json b/plugins/scaffolder-backend-module-rails/package.json index 59ba41d8d0..d1e100720d 100644 --- a/plugins/scaffolder-backend-module-rails/package.json +++ b/plugins/scaffolder-backend-module-rails/package.json @@ -36,7 +36,7 @@ "devDependencies": { "@backstage/cli": "^0.17.0-next.1", "@types/jest": "^26.0.7", - "@types/node": "^16.x", + "@types/node": "^16.11.26", "@types/command-exists": "^1.2.0", "@types/fs-extra": "^9.0.1", "@types/mock-fs": "^4.13.0", diff --git a/plugins/scaffolder/package.json b/plugins/scaffolder/package.json index 628f63dd1a..2338fd8208 100644 --- a/plugins/scaffolder/package.json +++ b/plugins/scaffolder/package.json @@ -90,7 +90,7 @@ "@testing-library/user-event": "^13.1.8", "@types/humanize-duration": "^3.18.1", "@types/jest": "^26.0.7", - "@types/node": "^16.x", + "@types/node": "^16.11.26", "cross-fetch": "^3.1.5", "event-source-polyfill": "1.0.25", "msw": "^0.35.0" diff --git a/plugins/search/package.json b/plugins/search/package.json index ebaf82503d..d60d19579b 100644 --- a/plugins/search/package.json +++ b/plugins/search/package.json @@ -65,7 +65,7 @@ "@testing-library/react-hooks": "^7.0.2", "@testing-library/user-event": "^13.1.8", "@types/jest": "^26.0.7", - "@types/node": "^16.x", + "@types/node": "^16.11.26", "cross-fetch": "^3.1.5", "msw": "^0.35.0" }, diff --git a/plugins/sentry/package.json b/plugins/sentry/package.json index d4e7bd3930..ebe43af098 100644 --- a/plugins/sentry/package.json +++ b/plugins/sentry/package.json @@ -62,7 +62,7 @@ "@testing-library/user-event": "^13.1.8", "@types/jest": "^26.0.7", "@types/luxon": "^2.0.4", - "@types/node": "^16.x", + "@types/node": "^16.11.26", "@types/react": "^16.13.1 || ^17.0.0", "cross-fetch": "^3.1.5", "msw": "^0.35.0" diff --git a/plugins/shortcuts/package.json b/plugins/shortcuts/package.json index 351d696d8a..8c8801c0ac 100644 --- a/plugins/shortcuts/package.json +++ b/plugins/shortcuts/package.json @@ -50,7 +50,7 @@ "@testing-library/react": "^12.1.3", "@testing-library/user-event": "^13.1.8", "@types/jest": "^26.0.7", - "@types/node": "^16.x", + "@types/node": "^16.11.26", "cross-fetch": "^3.1.5", "msw": "^0.35.0" }, diff --git a/plugins/sonarqube/package.json b/plugins/sonarqube/package.json index 85290e2910..b16157ab89 100644 --- a/plugins/sonarqube/package.json +++ b/plugins/sonarqube/package.json @@ -61,7 +61,7 @@ "@testing-library/react": "^12.1.3", "@testing-library/user-event": "^13.1.8", "@types/jest": "^26.0.7", - "@types/node": "^16.x", + "@types/node": "^16.11.26", "msw": "^0.35.0" }, "files": [ diff --git a/plugins/splunk-on-call/package.json b/plugins/splunk-on-call/package.json index 322144a6fb..de2457bd72 100644 --- a/plugins/splunk-on-call/package.json +++ b/plugins/splunk-on-call/package.json @@ -60,7 +60,7 @@ "@testing-library/user-event": "^13.1.8", "@types/jest": "^26.0.7", "@types/luxon": "^2.0.4", - "@types/node": "^16.x", + "@types/node": "^16.11.26", "cross-fetch": "^3.1.5", "msw": "^0.35.0" }, diff --git a/plugins/stack-overflow/package.json b/plugins/stack-overflow/package.json index 738b9f04f6..6d2ada193f 100644 --- a/plugins/stack-overflow/package.json +++ b/plugins/stack-overflow/package.json @@ -49,7 +49,7 @@ "@backstage/dev-utils": "^1.0.1-next.0", "@testing-library/user-event": "^13.1.8", "@types/jest": "^26.0.7", - "@types/node": "^16.x", + "@types/node": "^16.11.26", "msw": "^0.35.0" }, "files": [ diff --git a/plugins/tech-insights/package.json b/plugins/tech-insights/package.json index a43f346ba1..a9cbddf212 100644 --- a/plugins/tech-insights/package.json +++ b/plugins/tech-insights/package.json @@ -55,7 +55,7 @@ "@testing-library/react": "^12.1.3", "@testing-library/user-event": "^13.1.8", "@types/jest": "^26.0.7", - "@types/node": "^16.x", + "@types/node": "^16.11.26", "cross-fetch": "^3.1.5", "msw": "^0.35.0" }, diff --git a/plugins/tech-radar/package.json b/plugins/tech-radar/package.json index e12e101404..d038a4891c 100644 --- a/plugins/tech-radar/package.json +++ b/plugins/tech-radar/package.json @@ -59,7 +59,7 @@ "@types/color": "^3.0.1", "@types/d3-force": "^2.1.1", "@types/jest": "^26.0.7", - "@types/node": "^16.x", + "@types/node": "^16.11.26", "@types/react": "^16.13.1 || ^17.0.0", "cross-fetch": "^3.1.5", "msw": "^0.35.0" diff --git a/plugins/techdocs/package.json b/plugins/techdocs/package.json index 4c1d152a0e..4250522589 100644 --- a/plugins/techdocs/package.json +++ b/plugins/techdocs/package.json @@ -74,7 +74,7 @@ "@testing-library/user-event": "^13.1.8", "@types/dompurify": "^2.2.2", "@types/jest": "^26.0.7", - "@types/node": "^16.x", + "@types/node": "^16.11.26", "canvas": "^2.6.1", "cross-fetch": "^3.1.5", "msw": "^0.35.0" diff --git a/plugins/todo/package.json b/plugins/todo/package.json index a6c119bf0c..248dab90bb 100644 --- a/plugins/todo/package.json +++ b/plugins/todo/package.json @@ -53,7 +53,7 @@ "@testing-library/react": "^12.1.3", "@testing-library/user-event": "^13.1.8", "@types/jest": "^26.0.7", - "@types/node": "^16.x", + "@types/node": "^16.11.26", "cross-fetch": "^3.1.5", "react-router": "6.0.0-beta.0", "msw": "^0.35.0" diff --git a/plugins/user-settings/package.json b/plugins/user-settings/package.json index 1d088f77fa..097585d3c1 100644 --- a/plugins/user-settings/package.json +++ b/plugins/user-settings/package.json @@ -55,7 +55,7 @@ "@testing-library/react": "^12.1.3", "@testing-library/user-event": "^13.1.8", "@types/jest": "^26.0.7", - "@types/node": "^16.x", + "@types/node": "^16.11.26", "cross-fetch": "^3.1.5", "msw": "^0.35.0" }, diff --git a/plugins/xcmetrics/package.json b/plugins/xcmetrics/package.json index 49fdada791..e5baac9c6a 100644 --- a/plugins/xcmetrics/package.json +++ b/plugins/xcmetrics/package.json @@ -49,7 +49,7 @@ "@testing-library/user-event": "^13.1.8", "@types/jest": "^26.0.7", "@types/luxon": "^2.0.4", - "@types/node": "^16.x", + "@types/node": "^16.11.26", "cross-fetch": "^3.1.5", "msw": "^0.35.0" }, diff --git a/yarn.lock b/yarn.lock index 82103e3a21..d73be865d7 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6432,7 +6432,7 @@ resolved "https://registry.npmjs.org/@types/node/-/node-15.14.9.tgz#bc43c990c3c9be7281868bbc7b8fdd6e2b57adfa" integrity sha512-qjd88DrCxupx/kJD5yQgZdcYKZKSIGBVDIBE1/LTGcNm3d2Np/jxojkdePDdfnBHJc5W7vSMpbJ1aB7p/Py69A== -"@types/node@^16.x": +"@types/node@^16.11.26": version "16.11.26" resolved "https://registry.npmjs.org/@types/node/-/node-16.11.26.tgz#63d204d136c9916fb4dcd1b50f9740fe86884e47" integrity sha512-GZ7bu5A6+4DtG7q9GsoHXy3ALcgeIHP4NnL0Vv2wu0uUB/yQex26v0tf6/na1mm0+bS9Uw+0DFex7aaKr2qawQ== From 4bfde894e0891efdbf0ba61264159f971286e6fb Mon Sep 17 00:00:00 2001 From: blam Date: Wed, 6 Apr 2022 14:30:00 +0200 Subject: [PATCH 4/5] chore: just force the type for now to see if it works Signed-off-by: blam --- packages/e2e-test/src/commands/run.ts | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/packages/e2e-test/src/commands/run.ts b/packages/e2e-test/src/commands/run.ts index fa0051a4cb..441dd9b9fe 100644 --- a/packages/e2e-test/src/commands/run.ts +++ b/packages/e2e-test/src/commands/run.ts @@ -373,11 +373,7 @@ async function testAppServe(pluginName: string, appDir: string) { } finally { // Kill entire process group, otherwise we'll end up with hanging serve processes await new Promise((res, rej) => { - if (!startApp.pid) { - res(); - return; - } - killTree(startApp.pid, err => (err ? rej(err) : res())); + killTree(startApp.pid!, err => (err ? rej(err) : res())); }); } @@ -482,11 +478,7 @@ async function testBackendStart(appDir: string, isPostgres: boolean) { print('Stopping the child process'); // Kill entire process group, otherwise we'll end up with hanging serve processes await new Promise((res, rej) => { - if (!child.pid) { - res(); - return; - } - killTree(child.pid, err => (err ? rej(err) : res())); + killTree(child.pid!, err => (err ? rej(err) : res())); }); } From 230ad0826f0ba2887d7686b3659c231f75cb36ef Mon Sep 17 00:00:00 2001 From: blam Date: Wed, 6 Apr 2022 15:07:29 +0200 Subject: [PATCH 5/5] chore: added changeset Signed-off-by: blam --- .changeset/quiet-ties-happen.md | 67 +++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 .changeset/quiet-ties-happen.md diff --git a/.changeset/quiet-ties-happen.md b/.changeset/quiet-ties-happen.md new file mode 100644 index 0000000000..ece2ff7e23 --- /dev/null +++ b/.changeset/quiet-ties-happen.md @@ -0,0 +1,67 @@ +--- +'@backstage/app-defaults': patch +'@backstage/cli': patch +'@backstage/codemods': patch +'@backstage/config-loader': patch +'@backstage/core-app-api': patch +'@backstage/core-components': patch +'@backstage/core-plugin-api': patch +'@backstage/create-app': patch +'@backstage/integration-react': patch +'@techdocs/cli': patch +'@backstage/test-utils': patch +'@backstage/plugin-airbrake': patch +'@backstage/plugin-allure': patch +'@backstage/plugin-analytics-module-ga': patch +'@backstage/plugin-apache-airflow': patch +'@backstage/plugin-api-docs': patch +'@backstage/plugin-azure-devops': patch +'@backstage/plugin-badges': patch +'@backstage/plugin-bitrise': patch +'@backstage/plugin-circleci': patch +'@backstage/plugin-cloudbuild': patch +'@backstage/plugin-code-climate': patch +'@backstage/plugin-code-coverage': patch +'@backstage/plugin-config-schema': patch +'@backstage/plugin-cost-insights': patch +'@backstage/plugin-explore': patch +'@backstage/plugin-explore-react': patch +'@backstage/plugin-firehydrant': patch +'@backstage/plugin-fossa': patch +'@backstage/plugin-gcalendar': patch +'@backstage/plugin-gcp-projects': patch +'@backstage/plugin-git-release-manager': patch +'@backstage/plugin-github-actions': patch +'@backstage/plugin-github-deployments': patch +'@backstage/plugin-gitops-profiles': patch +'@backstage/plugin-gocd': patch +'@backstage/plugin-graphiql': patch +'@backstage/plugin-home': patch +'@backstage/plugin-ilert': patch +'@backstage/plugin-jenkins': patch +'@backstage/plugin-kafka': patch +'@backstage/plugin-kubernetes': patch +'@backstage/plugin-lighthouse': patch +'@backstage/plugin-newrelic': patch +'@backstage/plugin-org': patch +'@backstage/plugin-pagerduty': patch +'@backstage/plugin-periskop': patch +'@backstage/plugin-rollbar': patch +'@backstage/plugin-scaffolder': patch +'@backstage/plugin-scaffolder-backend-module-rails': patch +'@backstage/plugin-search': patch +'@backstage/plugin-search-backend-node': patch +'@backstage/plugin-sentry': patch +'@backstage/plugin-shortcuts': patch +'@backstage/plugin-sonarqube': patch +'@backstage/plugin-splunk-on-call': patch +'@backstage/plugin-stack-overflow': patch +'@backstage/plugin-tech-insights': patch +'@backstage/plugin-tech-radar': patch +'@backstage/plugin-techdocs': patch +'@backstage/plugin-todo': patch +'@backstage/plugin-user-settings': patch +'@backstage/plugin-xcmetrics': patch +--- + +Bump to using `@types/node` v16