From 9fb8723c3e18369d1225e674199865a2e6818c3d Mon Sep 17 00:00:00 2001 From: Patrick Date: Mon, 4 Nov 2024 13:43:12 -0500 Subject: [PATCH] feat(scaffolder-http-request): deprecate new-backend.ts re-export from index.ts --- .changeset/short-poems-sleep.md | 5 +++++ .../scaffolder-backend-module-http-request/README.md | 4 +--- .../scaffolder-backend-module-http-request/src/index.ts | 1 + .../src/new-backend.ts | 4 ++++ 4 files changed, 11 insertions(+), 3 deletions(-) create mode 100644 .changeset/short-poems-sleep.md diff --git a/.changeset/short-poems-sleep.md b/.changeset/short-poems-sleep.md new file mode 100644 index 000000000..5e2880c46 --- /dev/null +++ b/.changeset/short-poems-sleep.md @@ -0,0 +1,5 @@ +--- +'@roadiehq/scaffolder-backend-module-http-request': major +--- + +Deprecated the exports from `new-backend.ts` and re-export from `index.ts` as part of the transition to the new backend system diff --git a/plugins/scaffolder-actions/scaffolder-backend-module-http-request/README.md b/plugins/scaffolder-actions/scaffolder-backend-module-http-request/README.md index 9cab2d525..f4929bc68 100644 --- a/plugins/scaffolder-actions/scaffolder-backend-module-http-request/README.md +++ b/plugins/scaffolder-actions/scaffolder-backend-module-http-request/README.md @@ -66,9 +66,7 @@ import { createBackendModule } from '@backstage/backend-plugin-api'; const backend = createBackend(); backend.add(import('@backstage/plugin-proxy-backend/alpha')); backend.add(import('@backstage/plugin-scaffolder-backend/alpha')); -backend.add( - import('@roadiehq/scaffolder-backend-module-http-request/new-backend'), -); +backend.add(import('@roadiehq/scaffolder-backend-module-http-request')); backend.start(); ``` diff --git a/plugins/scaffolder-actions/scaffolder-backend-module-http-request/src/index.ts b/plugins/scaffolder-actions/scaffolder-backend-module-http-request/src/index.ts index 709648d3e..43bfbfb73 100644 --- a/plugins/scaffolder-actions/scaffolder-backend-module-http-request/src/index.ts +++ b/plugins/scaffolder-actions/scaffolder-backend-module-http-request/src/index.ts @@ -14,3 +14,4 @@ * limitations under the License. */ export * from './actions'; +export { scaffolderBackendModuleHttpRequest as default } from './module'; diff --git a/plugins/scaffolder-actions/scaffolder-backend-module-http-request/src/new-backend.ts b/plugins/scaffolder-actions/scaffolder-backend-module-http-request/src/new-backend.ts index 8cdecd21b..0ca64b4d4 100644 --- a/plugins/scaffolder-actions/scaffolder-backend-module-http-request/src/new-backend.ts +++ b/plugins/scaffolder-actions/scaffolder-backend-module-http-request/src/new-backend.ts @@ -13,4 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + +/** + * @deprecated Please import from the root path instead. + */ export { scaffolderBackendModuleHttpRequest as default } from './module';