From 893c65f8af6b2119e0d51185357c0672e31f2e2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filip=20P=C3=BDrek?= Date: Mon, 21 Mar 2022 20:56:51 +0100 Subject: [PATCH] feat: upgrade to Backstage 1.0 BREAKING CHANGE: upgrade to Backstage 1.0 --- package-lock.json | 244 +++++++++--------- package.json | 12 +- .../CloudFormationRegionProcessor.ts | 15 +- .../CloudFormationStackProcessor.ts | 8 +- 4 files changed, 139 insertions(+), 140 deletions(-) diff --git a/package-lock.json b/package-lock.json index c990464..1cdea81 100644 --- a/package-lock.json +++ b/package-lock.json @@ -491,9 +491,9 @@ } }, "@babel/runtime": { - "version": "7.17.7", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.17.7.tgz", - "integrity": "sha512-L6rvG9GDxaLgFjg41K+5Yv9OMrU98sWe+Ykmc6FDJW/+vYZMhdOMKkISgzptMaERHvS2Y2lw9MDRm2gHhlQQoA==", + "version": "7.17.8", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.17.8.tgz", + "integrity": "sha512-dQpEpK0O9o6lj6oPu0gRDbbnk+4LeHlNcBpspf6Olzt3GIX4P1lWF1gS+pHLDFlaJvbR6q7jCfQ08zA4QJBnmA==", "dev": true, "requires": { "regenerator-runtime": "^0.13.4" @@ -721,17 +721,17 @@ } }, "@backstage/backend-common": { - "version": "0.13.0", - "resolved": "https://registry.npmjs.org/@backstage/backend-common/-/backend-common-0.13.0.tgz", - "integrity": "sha512-eD2BSSXVBkDW8qTs5IFsQR7f4NLJfAb6ELIysyD8zX1epC1ycxTNyE05d6on1LzBNcGUT9ERtHz7XSXJ8ftRuA==", + "version": "0.13.1", + "resolved": "https://registry.npmjs.org/@backstage/backend-common/-/backend-common-0.13.1.tgz", + "integrity": "sha512-bZYj5WVGIsel6chK2EesBsACVmozAgTuODcsGo36eT5uxCl97WlQS7F8yBZyuBi6YunAwlQje28aH6+kHvijdA==", "dev": true, "requires": { "@backstage/cli-common": "^0.1.8", - "@backstage/config": "^0.1.15", - "@backstage/config-loader": "^0.9.7", - "@backstage/errors": "^0.2.2", - "@backstage/integration": "^0.8.0", - "@backstage/types": "^0.1.3", + "@backstage/config": "^1.0.0", + "@backstage/config-loader": "^1.0.0", + "@backstage/errors": "^1.0.0", + "@backstage/integration": "^1.0.0", + "@backstage/types": "^1.0.0", "@google-cloud/storage": "^5.8.0", "@keyv/redis": "^2.2.3", "@manypkg/get-packages": "^1.1.3", @@ -794,25 +794,25 @@ } }, "@backstage/catalog-client": { - "version": "0.9.0", - "resolved": "https://registry.npmjs.org/@backstage/catalog-client/-/catalog-client-0.9.0.tgz", - "integrity": "sha512-mr2wrb+7uAPczOOYt07C4AbXIeX0mu+Iw6RPDNg67GvPvQVcbKCrjth9VEj8rScFGmJAn66ZcronbcZSS0MJww==", + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@backstage/catalog-client/-/catalog-client-1.0.0.tgz", + "integrity": "sha512-m2FiV9+gQElYrZMICFpr3Dj7H34as9Jly1onF/yFhKi4DSovZpgemTG6I0KQuNuEwmrqYTkTd6kDDYvpUis9Ow==", "dev": true, "requires": { - "@backstage/catalog-model": "^0.13.0", - "@backstage/errors": "^0.2.2", + "@backstage/catalog-model": "^1.0.0", + "@backstage/errors": "^1.0.0", "cross-fetch": "^3.1.5" } }, "@backstage/catalog-model": { - "version": "0.13.0", - "resolved": "https://registry.npmjs.org/@backstage/catalog-model/-/catalog-model-0.13.0.tgz", - "integrity": "sha512-Q+0C0LJ8niNQ4TXduUNTycZ2PLMbhKmfgWywunJLO34DZAoFnTWJEAdEYF536YyLciHhLO0dHRUaHY29Sdr+Xg==", + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@backstage/catalog-model/-/catalog-model-1.0.0.tgz", + "integrity": "sha512-hjvTzs+P1/TG42FhX6jJvRIBbYZJC0vE9Qqn9MTb4n8vaoZuBT5jYTnK6K80gpEyNfbznpD5vsE8ss5lmzWz+Q==", "dev": true, "requires": { - "@backstage/config": "^0.1.15", - "@backstage/errors": "^0.2.2", - "@backstage/types": "^0.1.3", + "@backstage/config": "^1.0.0", + "@backstage/errors": "^1.0.0", + "@backstage/types": "^1.0.0", "ajv": "^7.0.3", "json-schema": "^0.4.0", "lodash": "^4.17.21", @@ -846,25 +846,25 @@ "dev": true }, "@backstage/config": { - "version": "0.1.15", - "resolved": "https://registry.npmjs.org/@backstage/config/-/config-0.1.15.tgz", - "integrity": "sha512-eNJEYYSEu9MkrkBYiMpUBWEc3Bu64YgB9pZZGCMW7/9350tV2wbylEdoBJHslilJlJhiUyTXBckn8Ua7DOH7rw==", + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@backstage/config/-/config-1.0.0.tgz", + "integrity": "sha512-0M8UPHjCev3i/Puz/DGV7hor/vujx27bpWip5UTjachzBorI5xB0CBV1GfZ1UZMm5R5py7RJ+lKdmSJVFdw9IA==", "dev": true, "requires": { - "@backstage/types": "^0.1.3", + "@backstage/types": "^1.0.0", "lodash": "^4.17.21" } }, "@backstage/config-loader": { - "version": "0.9.7", - "resolved": "https://registry.npmjs.org/@backstage/config-loader/-/config-loader-0.9.7.tgz", - "integrity": "sha512-dt+z5MSRG4qGYPsmlxZioEpXpf4/6R6wD7NJodcV5JbXd109sPALwwxMG4KLDuBvhJnKlJmOK1ZhQGe/11jHjA==", + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@backstage/config-loader/-/config-loader-1.0.0.tgz", + "integrity": "sha512-gSC3hE+7oxXwWasuEBUOkX48ka84aZ8tQBUieU4NsP0R/b7YRspiE0bcynxsi9wzhwo2/waGy39iPnCqZRD6bg==", "dev": true, "requires": { "@backstage/cli-common": "^0.1.8", - "@backstage/config": "^0.1.15", - "@backstage/errors": "^0.2.2", - "@backstage/types": "^0.1.3", + "@backstage/config": "^1.0.0", + "@backstage/errors": "^1.0.0", + "@backstage/types": "^1.0.0", "@types/json-schema": "^7.0.6", "ajv": "^7.0.3", "chokidar": "^3.5.2", @@ -873,7 +873,7 @@ "json-schema-merge-allof": "^0.8.1", "json-schema-traverse": "^1.0.0", "node-fetch": "^2.6.7", - "typescript-json-schema": "^0.52.0", + "typescript-json-schema": "^0.53.0", "yaml": "^1.9.2", "yup": "^0.32.9" }, @@ -899,23 +899,23 @@ } }, "@backstage/errors": { - "version": "0.2.2", - "resolved": "https://registry.npmjs.org/@backstage/errors/-/errors-0.2.2.tgz", - "integrity": "sha512-s6Ru3NL4oFiHwNsMY1uiwqNKuOu9KQWkpse3adWZsDu1fCQKOw2omQ2qBHZ4Uj1xJ6x9Ye0yNTJ4vfHfdwiaEg==", + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@backstage/errors/-/errors-1.0.0.tgz", + "integrity": "sha512-2SpjdhH9ZOQ4RGEeu3/A7ARkl/1E9E6uBGQZ2DZOU4azTK1UZG/HE1KBMOThp3jL/8is2vOIJZLBA3r3DxLfVw==", "dev": true, "requires": { - "@backstage/types": "^0.1.3", + "@backstage/types": "^1.0.0", "cross-fetch": "^3.1.5", "serialize-error": "^8.0.1" } }, "@backstage/integration": { - "version": "0.8.0", - "resolved": "https://registry.npmjs.org/@backstage/integration/-/integration-0.8.0.tgz", - "integrity": "sha512-GfNJRdcU7NMFjVqUSJOFRRrqEjKRGmgsL+s3TDtqmqqji7XPttTKD43+Ou50hRf0dkIETe5m1XHr1Fd5ksMt9A==", + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@backstage/integration/-/integration-1.0.0.tgz", + "integrity": "sha512-DpEoSCQyurLSNGLAAfZzwb8IGEoxm6po6ZkKq9Gt9I63NbLhixBEnCcoPbm5+ld4MVNwg+FgzIoktsjdBt3JIw==", "dev": true, "requires": { - "@backstage/config": "^0.1.15", + "@backstage/config": "^1.0.0", "@octokit/auth-app": "^3.4.0", "@octokit/rest": "^18.5.3", "cross-fetch": "^3.1.5", @@ -925,38 +925,38 @@ } }, "@backstage/plugin-auth-node": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/@backstage/plugin-auth-node/-/plugin-auth-node-0.1.5.tgz", - "integrity": "sha512-+PoZ5JVerqaclHNp0yPRj1QgvpsTY6TsLjSRDGFhPLAO7aWDlLe/mDXPbizQxCq69r6hqeeiClHhsYaZwHMB9g==", + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/@backstage/plugin-auth-node/-/plugin-auth-node-0.1.6.tgz", + "integrity": "sha512-y4cMV/RtAT5bywTUHfF+m8ehiDLw3AK8SmnhnCt9bYiyVqi4totU2pdnM1yk6CtoiobLWN5V9HdSUL8O4/Ystg==", "dev": true, "requires": { - "@backstage/backend-common": "^0.13.0", - "@backstage/catalog-model": "^0.13.0", - "@backstage/config": "^0.1.15", - "@backstage/errors": "^0.2.2", + "@backstage/backend-common": "^0.13.1", + "@backstage/catalog-model": "^1.0.0", + "@backstage/config": "^1.0.0", + "@backstage/errors": "^1.0.0", "jose": "^1.27.1", "node-fetch": "^2.6.7", "winston": "^3.2.1" } }, "@backstage/plugin-catalog-backend": { - "version": "0.24.0", - "resolved": "https://registry.npmjs.org/@backstage/plugin-catalog-backend/-/plugin-catalog-backend-0.24.0.tgz", - "integrity": "sha512-yPhsJMQVXpkDIRbnrd8jm9dSBcDbQGzAyXfyTNiTnTEMib645M9g1Hq0KX5SWaLgFtnE8q+AukQ5m5uYt8r3eQ==", - "dev": true, - "requires": { - "@backstage/backend-common": "^0.13.0", - "@backstage/catalog-client": "^0.9.0", - "@backstage/catalog-model": "^0.13.0", - "@backstage/config": "^0.1.15", - "@backstage/errors": "^0.2.2", - "@backstage/integration": "^0.8.0", - "@backstage/plugin-catalog-common": "^0.2.2", - "@backstage/plugin-permission-common": "^0.5.2", - "@backstage/plugin-permission-node": "^0.5.4", - "@backstage/plugin-scaffolder-common": "^0.3.0", - "@backstage/plugin-search-common": "^0.3.1", - "@backstage/types": "^0.1.3", + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@backstage/plugin-catalog-backend/-/plugin-catalog-backend-1.0.0.tgz", + "integrity": "sha512-YFZpRiJPVl38wFbb/IM8Sb1xTdXfXhH3AHNhuO/M38l3I2ThkhJnkUt3QWA+mIyf0k2q0xtawvjJU/6pqwAo6A==", + "dev": true, + "requires": { + "@backstage/backend-common": "^0.13.1", + "@backstage/catalog-client": "^1.0.0", + "@backstage/catalog-model": "^1.0.0", + "@backstage/config": "^1.0.0", + "@backstage/errors": "^1.0.0", + "@backstage/integration": "^1.0.0", + "@backstage/plugin-catalog-common": "^1.0.0", + "@backstage/plugin-permission-common": "^0.5.3", + "@backstage/plugin-permission-node": "^0.5.5", + "@backstage/plugin-scaffolder-common": "^1.0.0", + "@backstage/plugin-search-common": "^0.3.2", + "@backstage/types": "^1.0.0", "@types/express": "^4.17.6", "codeowners-utils": "^1.0.2", "core-js": "^3.6.5", @@ -980,39 +980,39 @@ } }, "@backstage/plugin-catalog-common": { - "version": "0.2.2", - "resolved": "https://registry.npmjs.org/@backstage/plugin-catalog-common/-/plugin-catalog-common-0.2.2.tgz", - "integrity": "sha512-qJbvKNZQ0URMiS/+rizOsdSPWt8Vkdn00VcJkhjVAB+Seuts835zme5eyvrObZ4D2LLoKG6huWcpbH5FGrKyGQ==", + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@backstage/plugin-catalog-common/-/plugin-catalog-common-1.0.0.tgz", + "integrity": "sha512-XKBMlh/2RMJ8Nkc6n/hYS07To+MVe2oCp3tHJpmXYzYe0Uc8nfE09iam26n9Kz/mtcmlIP2LJcjYW2mq1k2vnA==", "dev": true, "requires": { - "@backstage/plugin-permission-common": "^0.5.2", - "@backstage/search-common": "^0.3.1" + "@backstage/plugin-permission-common": "^0.5.3", + "@backstage/search-common": "^0.3.2" } }, "@backstage/plugin-permission-common": { - "version": "0.5.2", - "resolved": "https://registry.npmjs.org/@backstage/plugin-permission-common/-/plugin-permission-common-0.5.2.tgz", - "integrity": "sha512-AkhIqKtsaV1DSUAMYVc2wm10IS/0Yc23ZeN1UZa2XhzgTJsl0JK37t0ceM5Hc5SF4/Se8zuaCyxznwdEblsxTQ==", + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/@backstage/plugin-permission-common/-/plugin-permission-common-0.5.3.tgz", + "integrity": "sha512-zppDsNZEK9ffgXbf/Zx0sw4ffuOVOEvBZlft1+Oph2rO4+uN7dmCLMRRcKsYeNQ6/F50e6BMyNWpPZQDR/JQsA==", "dev": true, "requires": { - "@backstage/config": "^0.1.15", - "@backstage/errors": "^0.2.2", + "@backstage/config": "^1.0.0", + "@backstage/errors": "^1.0.0", "cross-fetch": "^3.1.5", "uuid": "^8.0.0", "zod": "^3.11.6" } }, "@backstage/plugin-permission-node": { - "version": "0.5.4", - "resolved": "https://registry.npmjs.org/@backstage/plugin-permission-node/-/plugin-permission-node-0.5.4.tgz", - "integrity": "sha512-q2Ccr0GELlb9JoS1LAdoLKijDhujgTqwLkf3fUUJDbiEehNYuynN0NVMOu3gYkiLrf06Tg8IsjATBAVn8+77NA==", + "version": "0.5.5", + "resolved": "https://registry.npmjs.org/@backstage/plugin-permission-node/-/plugin-permission-node-0.5.5.tgz", + "integrity": "sha512-K7vyeLZLeDAiWHp9Xwhd33knlKuph2NnJmdz/M7gLh/TqevIRz82MS0qtXGfJ8ML8fhUm3VCAKdFpgJzEWO9EQ==", "dev": true, "requires": { - "@backstage/backend-common": "^0.13.0", - "@backstage/config": "^0.1.15", - "@backstage/errors": "^0.2.2", - "@backstage/plugin-auth-node": "^0.1.5", - "@backstage/plugin-permission-common": "^0.5.2", + "@backstage/backend-common": "^0.13.1", + "@backstage/config": "^1.0.0", + "@backstage/errors": "^1.0.0", + "@backstage/plugin-auth-node": "^0.1.6", + "@backstage/plugin-permission-common": "^0.5.3", "@types/express": "^4.17.6", "express": "^4.17.1", "express-promise-router": "^4.1.0", @@ -1020,38 +1020,38 @@ } }, "@backstage/plugin-scaffolder-common": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/@backstage/plugin-scaffolder-common/-/plugin-scaffolder-common-0.3.0.tgz", - "integrity": "sha512-u+dG9HzCdFvD5J1rGaFzAceAUB785kHLXAyO7epesF9ZtYGLzziI043Xhb696akUPV0T7VhtIvc5KQRHqfnm8g==", + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@backstage/plugin-scaffolder-common/-/plugin-scaffolder-common-1.0.0.tgz", + "integrity": "sha512-vmlpdkbfMGiVycyyKYPeiDRzXJO/ruoMtsFLi1BTw/w5FXKB4NmP/+nUWomXC212ZjUqKvCza3OcpBgI5PztTw==", "dev": true, "requires": { - "@backstage/catalog-model": "^0.13.0", - "@backstage/types": "^0.1.3" + "@backstage/catalog-model": "^1.0.0", + "@backstage/types": "^1.0.0" } }, "@backstage/plugin-search-common": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/@backstage/plugin-search-common/-/plugin-search-common-0.3.1.tgz", - "integrity": "sha512-ymGW6vviClNQhrZxNm7LdF9OIMhYwZ4c/Joha/Wip2vUdUCowPG0p757lxRjP7Hm/hpBLMp6uzj5x9GvF/lX2g==", + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/@backstage/plugin-search-common/-/plugin-search-common-0.3.2.tgz", + "integrity": "sha512-7vcpRo+5MB/QW/M77zPfcqxw0LzcQCHNXql0uxF+qBwVPJSHz9QB+YBuzGyaAlqfm5UPFXuweLQGqtoB+0DMLg==", "dev": true, "requires": { - "@backstage/plugin-permission-common": "^0.5.2", - "@backstage/types": "^0.1.3" + "@backstage/plugin-permission-common": "^0.5.3", + "@backstage/types": "^1.0.0" } }, "@backstage/search-common": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/@backstage/search-common/-/search-common-0.3.1.tgz", - "integrity": "sha512-6CB4Hn3qks5wenbY0Z0kxgiRXtQyMfgj1JRqHxMZE2CPpKXNMhFndQKdWj9o34m1tZARwyx+FUyqUTNdOepmiw==", + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/@backstage/search-common/-/search-common-0.3.2.tgz", + "integrity": "sha512-CvkgpVnMrDJsZghsJiMjOWGf5O/9fROsGHnv24EHK8h724nShieALfyawfKsScnpjDLDXU0TIZFDGuXiP/wIUw==", "dev": true, "requires": { - "@backstage/plugin-search-common": "^0.3.1" + "@backstage/plugin-search-common": "0.3.2" } }, "@backstage/types": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/@backstage/types/-/types-0.1.3.tgz", - "integrity": "sha512-fJVi4oVrlO+G3PRv1fYSll9/X4pE11HLnkI//Geare9sP6wSfp/2zXpLYfKVsG0e24jOl7Swkc8lwLkQ90zMaQ==", + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@backstage/types/-/types-1.0.0.tgz", + "integrity": "sha512-x5650F/lXUO1Bo++Eg1T9vreuIzlOeljxTUCP6mxqOGgOWr8yBku42HiHX6KE80OpckFDTUyKtEWqboclfKUkg==", "dev": true }, "@bcoe/v8-coverage": { @@ -2181,9 +2181,9 @@ } }, "@types/dockerode": { - "version": "3.3.4", - "resolved": "https://registry.npmjs.org/@types/dockerode/-/dockerode-3.3.4.tgz", - "integrity": "sha512-V+jKF7GE5t5jAeINZDnFF6RgjANP6R8ycN6lecjnvGh/1MMrwbL4kDIfg1w0Yj3BtSmiVuqCq4Q22e8+jfM5xQ==", + "version": "3.3.5", + "resolved": "https://registry.npmjs.org/@types/dockerode/-/dockerode-3.3.5.tgz", + "integrity": "sha512-QEfaHvsENH5Iot+8vM2ePZRe8NZMlsjKmZnqvPo624VimRZe3KWkUakcsHMuTZ6GcGI/sW6sr4OVS28HCj7IUw==", "dev": true, "requires": { "@types/docker-modem": "*", @@ -2284,9 +2284,9 @@ "dev": true }, "@types/luxon": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/@types/luxon/-/luxon-2.3.0.tgz", - "integrity": "sha512-mWXdRlg+5dWvxU+uaijB2RY5NrJtMEXR6j+D6W66hPuezSVXrQqQvWa/JNHntgEYgjzeoVRrQVmMWAbKjUJiFQ==", + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/@types/luxon/-/luxon-2.3.1.tgz", + "integrity": "sha512-nAPUltOT28fal2eDZz8yyzNhBjHw1NEymFBP7Q9iCShqpflWPybxHbD7pw/46jQmT+HXOy1QN5hNTms8MOTlOQ==", "dev": true }, "@types/mime": { @@ -5900,9 +5900,9 @@ "dev": true }, "isomorphic-git": { - "version": "1.14.0", - "resolved": "https://registry.npmjs.org/isomorphic-git/-/isomorphic-git-1.14.0.tgz", - "integrity": "sha512-YO9PPLnLLSZRQ/BMwnGZ78eAftaEzhoAAhCiI6zrgUq7NZF2V/lNYVtf2ypes7Bj8+SgOn/HCv1ssIaPw/PYsA==", + "version": "1.15.2", + "resolved": "https://registry.npmjs.org/isomorphic-git/-/isomorphic-git-1.15.2.tgz", + "integrity": "sha512-1o5+37fTikaEY35V+B69Y8mnk1tiqX+lsi9RW/GzWu1np0uJUPyKdTs6aOyvwO51Q/VOpT0mD9bC37RlwO+CMw==", "dev": true, "requires": { "async-lock": "^1.1.0", @@ -7535,9 +7535,9 @@ } }, "node-forge": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-1.2.1.tgz", - "integrity": "sha512-Fcvtbb+zBcZXbTTVwqGA5W+MKBj56UjVRevvchv5XrcyXbmNdesfZL37nlcWOfpgHhgmxApw3tQbTr4CqNmX4w==", + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-1.3.0.tgz", + "integrity": "sha512-08ARB91bUi6zNKzVmaj3QO7cr397uiDT2nJ63cHjyNtCTWIgvS47j3eT0WfzUwS9+6Z5YshRaoasFkXCKrIYbA==", "dev": true }, "node-int64": { @@ -9380,9 +9380,9 @@ "dev": true }, "typescript-json-schema": { - "version": "0.52.0", - "resolved": "https://registry.npmjs.org/typescript-json-schema/-/typescript-json-schema-0.52.0.tgz", - "integrity": "sha512-3ZdHzx116gZ+D9LmMl5/+d1G3Rpt8baWngKzepYWHnXbAa8Winv64CmFRqLlMKneE1c40yugYDFcWdyX1FjGzQ==", + "version": "0.53.0", + "resolved": "https://registry.npmjs.org/typescript-json-schema/-/typescript-json-schema-0.53.0.tgz", + "integrity": "sha512-BcFxC9nipQQOXxrBGI/jOWU31BwzVh6vqJR008G8VHKJtQ8YrZX6veriXfTK1l+L0/ff0yKl3mZigMLA6ZqkHg==", "dev": true, "requires": { "@types/json-schema": "^7.0.9", @@ -9390,7 +9390,7 @@ "glob": "^7.1.7", "safe-stable-stringify": "^2.2.0", "ts-node": "^10.2.1", - "typescript": "~4.4.4", + "typescript": "~4.5.0", "yargs": "^17.1.1" }, "dependencies": { @@ -9401,9 +9401,9 @@ "dev": true }, "typescript": { - "version": "4.4.4", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.4.4.tgz", - "integrity": "sha512-DqGhF5IKoBl8WNf8C1gu8q0xZSInh9j1kJJMqT3a94w1JzVaBU4EXOSMrz9yDqMT0xt3selp83fuFMQ0uzv6qA==", + "version": "4.5.5", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.5.5.tgz", + "integrity": "sha512-TCTIul70LyWe6IJWT8QSYeA54WQe8EjQFU4wY52Fasj5UKx88LNYKCgBEHcOMOrFF1rKGbD8v/xcNWVUq9SymA==", "dev": true } } @@ -9910,9 +9910,9 @@ } }, "zod": { - "version": "3.13.4", - "resolved": "https://registry.npmjs.org/zod/-/zod-3.13.4.tgz", - "integrity": "sha512-LZRucWt4j/ru5azOkJxCfpR87IyFDn8h2UODdqvXzZLb3K7bb9chUrUIGTy3BPsr8XnbQYfQ5Md5Hu2OYIo1mg==", + "version": "3.14.2", + "resolved": "https://registry.npmjs.org/zod/-/zod-3.14.2.tgz", + "integrity": "sha512-iF+wrtzz7fQfkmn60PG6XFxaWBhYYKzp2i+nv24WbLUWb2JjymdkHlzBwP0erpc78WotwP5g9AAu7Sk8GWVVNw==", "dev": true } } diff --git a/package.json b/package.json index 7291940..8280b8a 100644 --- a/package.json +++ b/package.json @@ -20,9 +20,9 @@ "release": "standard-version" }, "devDependencies": { - "@backstage/catalog-model": "^0.13.0", - "@backstage/config": "^0.1.15", - "@backstage/plugin-catalog-backend": "^0.24.0", + "@backstage/catalog-model": "^1.0.0", + "@backstage/config": "^1.0.0", + "@backstage/plugin-catalog-backend": "^1.0.0", "@commitlint/cli": "^16.2.1", "@commitlint/config-conventional": "^16.2.1", "@types/jest": "^27.4.1", @@ -49,9 +49,9 @@ "find-and-replace-anything": "^2.2.2" }, "peerDependencies": { - "@backstage/catalog-model": "0.x", - "@backstage/config": "0.x", - "@backstage/plugin-catalog-backend": "0.x" + "@backstage/catalog-model": "1.x", + "@backstage/config": "1.x", + "@backstage/plugin-catalog-backend": "1.x" }, "homepage": "https://github.com/purple-technology/backstage-aws-cloudformation-plugin#readme", "repository": { diff --git a/src/processors/CloudFormationRegionProcessor/CloudFormationRegionProcessor.ts b/src/processors/CloudFormationRegionProcessor/CloudFormationRegionProcessor.ts index d005060..2cedefd 100644 --- a/src/processors/CloudFormationRegionProcessor/CloudFormationRegionProcessor.ts +++ b/src/processors/CloudFormationRegionProcessor/CloudFormationRegionProcessor.ts @@ -3,7 +3,7 @@ import { LocationSpec } from '@backstage/plugin-catalog-backend' import { CatalogProcessor, CatalogProcessorEmit, - results + processingResult } from '@backstage/plugin-catalog-backend' import { CloudFormationProcessor } from '../CloudFormationProcessor' @@ -48,18 +48,15 @@ export class CloudFormationRegionProcessor profile })) { emit( - results.location( - { - target: `${profile}@${stackId}`, - type: STACK_LOCATION_TYPE - }, - false - ) + processingResult.location({ + target: `${profile}@${stackId}`, + type: STACK_LOCATION_TYPE + }) ) } } catch (e) { const message = `${location.type} ${location.target} could not be read, ${e}` - emit(results.generalError(location, message)) + emit(processingResult.generalError(location, message)) } return true diff --git a/src/processors/CloudFormationStackProcessor/CloudFormationStackProcessor.ts b/src/processors/CloudFormationStackProcessor/CloudFormationStackProcessor.ts index fb0fbcc..1759c46 100644 --- a/src/processors/CloudFormationStackProcessor/CloudFormationStackProcessor.ts +++ b/src/processors/CloudFormationStackProcessor/CloudFormationStackProcessor.ts @@ -3,7 +3,7 @@ import { LocationSpec } from '@backstage/plugin-catalog-backend' import { CatalogProcessor, CatalogProcessorEmit, - results + processingResult } from '@backstage/plugin-catalog-backend' import { CloudFormationProcessor } from '../CloudFormationProcessor' @@ -45,10 +45,12 @@ export class CloudFormationStackProcessor region, profile }) - entities.forEach((entity) => emit(results.entity(location, entity))) + entities.forEach((entity) => + emit(processingResult.entity(location, entity)) + ) } catch (e) { const message = `${location.type} ${location.target} could not be read, ${e}` - emit(results.generalError(location, message)) + emit(processingResult.generalError(location, message)) } return true