diff --git a/.changeset/odd-ducks-spend.md b/.changeset/odd-ducks-spend.md index 365e39bd40..426f417186 100644 --- a/.changeset/odd-ducks-spend.md +++ b/.changeset/odd-ducks-spend.md @@ -3,4 +3,4 @@ '@backstage/plugin-events-backend-module-gitlab': minor --- -**BREAKING ALPHA**: Modules from `events-backend-module-github` and `events-backend-module-gitlab` are now exported as `default` instead of being a named export. +**BREAKING ALPHA**: Modules from `events-backend-module-github` and `events-backend-module-gitlab` are now exported as `default` instead of being a named export. In addition, they have been moved from `aplha` to `public`. diff --git a/plugins/events-backend-module-github/src/alpha.ts b/plugins/events-backend-module-github/src/alpha.ts deleted file mode 100644 index b5f33168d0..0000000000 --- a/plugins/events-backend-module-github/src/alpha.ts +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Copyright 2023 The Backstage Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { createBackendFeatureLoader } from '@backstage/backend-plugin-api'; - -export default createBackendFeatureLoader({ - loader() { - return [ - import('./service/eventsModuleGithubEventRouter'), - import('./service/eventsModuleGithubWebhook'), - ]; - }, -}); diff --git a/plugins/events-backend-module-github/src/index.ts b/plugins/events-backend-module-github/src/index.ts index d02ea1deaf..72b55f892b 100644 --- a/plugins/events-backend-module-github/src/index.ts +++ b/plugins/events-backend-module-github/src/index.ts @@ -20,6 +20,16 @@ * * @packageDocumentation */ +import { createBackendFeatureLoader } from '@backstage/backend-plugin-api'; + +export default createBackendFeatureLoader({ + loader() { + return [ + import('./service/eventsModuleGithubEventRouter'), + import('./service/eventsModuleGithubWebhook'), + ]; + }, +}); export { createGithubSignatureValidator } from './http/createGithubSignatureValidator'; export { GithubEventRouter } from './router/GithubEventRouter'; diff --git a/plugins/events-backend-module-github/src/service/eventsModuleGithubEventRouter.ts b/plugins/events-backend-module-github/src/service/eventsModuleGithubEventRouter.ts index 0550d016b7..f2bb07e837 100644 --- a/plugins/events-backend-module-github/src/service/eventsModuleGithubEventRouter.ts +++ b/plugins/events-backend-module-github/src/service/eventsModuleGithubEventRouter.ts @@ -23,7 +23,7 @@ import { GithubEventRouter } from '../router/GithubEventRouter'; * * Registers the `GithubEventRouter`. * - * @alpha + * @public */ export default createBackendModule({ pluginId: 'events', diff --git a/plugins/events-backend-module-gitlab/src/alpha.ts b/plugins/events-backend-module-gitlab/src/alpha.ts deleted file mode 100644 index 5c4b3488a7..0000000000 --- a/plugins/events-backend-module-gitlab/src/alpha.ts +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Copyright 2023 The Backstage Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { createBackendFeatureLoader } from '@backstage/backend-plugin-api'; - -export default createBackendFeatureLoader({ - loader() { - return [ - import('./service/eventsModuleGitlabEventRouter'), - import('./service/eventsModuleGitlabWebhook'), - ]; - }, -}); diff --git a/plugins/events-backend-module-gitlab/src/index.ts b/plugins/events-backend-module-gitlab/src/index.ts index 3788e02955..67cc34ee40 100644 --- a/plugins/events-backend-module-gitlab/src/index.ts +++ b/plugins/events-backend-module-gitlab/src/index.ts @@ -21,5 +21,16 @@ * @packageDocumentation */ +import { createBackendFeatureLoader } from '@backstage/backend-plugin-api'; + +export default createBackendFeatureLoader({ + loader() { + return [ + import('./service/eventsModuleGitlabEventRouter'), + import('./service/eventsModuleGitlabWebhook'), + ]; + }, +}); + export { createGitlabTokenValidator } from './http/createGitlabTokenValidator'; export { GitlabEventRouter } from './router/GitlabEventRouter'; diff --git a/plugins/events-backend-module-gitlab/src/service/eventsModuleGitlabEventRouter.ts b/plugins/events-backend-module-gitlab/src/service/eventsModuleGitlabEventRouter.ts index 3e4f4f5561..4dd4d1531b 100644 --- a/plugins/events-backend-module-gitlab/src/service/eventsModuleGitlabEventRouter.ts +++ b/plugins/events-backend-module-gitlab/src/service/eventsModuleGitlabEventRouter.ts @@ -23,7 +23,7 @@ import { GitlabEventRouter } from '../router/GitlabEventRouter'; * * Registers the `GitlabEventRouter`. * - * @alpha + * @public */ export default createBackendModule({ pluginId: 'events', diff --git a/plugins/events-backend-module-gitlab/src/service/eventsModuleGitlabWebhook.ts b/plugins/events-backend-module-gitlab/src/service/eventsModuleGitlabWebhook.ts index 34a047fbe6..f0896e1a99 100644 --- a/plugins/events-backend-module-gitlab/src/service/eventsModuleGitlabWebhook.ts +++ b/plugins/events-backend-module-gitlab/src/service/eventsModuleGitlabWebhook.ts @@ -28,7 +28,7 @@ import { createGitlabTokenValidator } from '../http/createGitlabTokenValidator'; * * Registers the `GitlabEventRouter`. * - * @alpha + * @public */ export default createBackendModule({ pluginId: 'events',