@backstage/plugin-events-backend-module-bitbucket-cloud 0.1.5-next.2 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # @backstage/plugin-events-backend-module-bitbucket-cloud
2
2
 
3
+ ## 0.1.5
4
+
5
+ ### Patch Changes
6
+
7
+ - a5de745ac17: Renamed `bitbucketCloudEventRouterEventsModule` to `eventsModuleBitbucketCloudEventRouter` to match the [recommended naming patterns](https://backstage.io/docs/backend-system/architecture/naming-patterns).
8
+ - 928a12a9b3e: Internal refactor of `/alpha` exports.
9
+ - Updated dependencies
10
+ - @backstage/backend-plugin-api@0.5.0
11
+ - @backstage/plugin-events-node@0.2.4
12
+
3
13
  ## 0.1.5-next.2
4
14
 
5
15
  ### Patch Changes
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-events-backend-module-bitbucket-cloud",
3
- "version": "0.1.5-next.2",
3
+ "version": "0.1.5",
4
4
  "main": "../dist/alpha.cjs.js",
5
5
  "types": "../dist/alpha.d.ts"
6
6
  }
package/dist/alpha.cjs.js CHANGED
@@ -16,7 +16,7 @@ class BitbucketCloudEventRouter extends pluginEventsNode.SubTopicEventRouter {
16
16
  }
17
17
  }
18
18
 
19
- const bitbucketCloudEventRouterEventsModule = backendPluginApi.createBackendModule({
19
+ const eventsModuleBitbucketCloudEventRouter = backendPluginApi.createBackendModule({
20
20
  pluginId: "events",
21
21
  moduleId: "bitbucketCloudEventRouter",
22
22
  register(env) {
@@ -33,5 +33,5 @@ const bitbucketCloudEventRouterEventsModule = backendPluginApi.createBackendModu
33
33
  }
34
34
  });
35
35
 
36
- exports.bitbucketCloudEventRouterEventsModule = bitbucketCloudEventRouterEventsModule;
36
+ exports.eventsModuleBitbucketCloudEventRouter = eventsModuleBitbucketCloudEventRouter;
37
37
  //# sourceMappingURL=alpha.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"alpha.cjs.js","sources":["../src/router/BitbucketCloudEventRouter.ts","../src/service/BitbucketCloudEventRouterEventsModule.ts"],"sourcesContent":["/*\n * Copyright 2022 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n EventParams,\n SubTopicEventRouter,\n} from '@backstage/plugin-events-node';\n\n/**\n * Subscribes to the generic `bitbucketCloud` topic\n * and publishes the events under the more concrete sub-topic\n * depending on the `x-event-key` provided.\n *\n * @public\n */\nexport class BitbucketCloudEventRouter extends SubTopicEventRouter {\n constructor() {\n super('bitbucketCloud');\n }\n\n protected determineSubTopic(params: EventParams): string | undefined {\n return params.metadata?.['x-event-key'] as string | undefined;\n }\n}\n","/*\n * Copyright 2022 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { createBackendModule } from '@backstage/backend-plugin-api';\nimport { eventsExtensionPoint } from '@backstage/plugin-events-node/alpha';\nimport { BitbucketCloudEventRouter } from '../router/BitbucketCloudEventRouter';\n\n/**\n * Module for the events-backend plugin, adding an event router for Bitbucket Cloud.\n *\n * Registers the `BitbucketCloudEventRouter`.\n *\n * @alpha\n */\nexport const bitbucketCloudEventRouterEventsModule = createBackendModule({\n pluginId: 'events',\n moduleId: 'bitbucketCloudEventRouter',\n register(env) {\n env.registerInit({\n deps: {\n events: eventsExtensionPoint,\n },\n async init({ events }) {\n const eventRouter = new BitbucketCloudEventRouter();\n\n events.addPublishers(eventRouter);\n events.addSubscribers(eventRouter);\n },\n });\n },\n});\n"],"names":["SubTopicEventRouter","createBackendModule","eventsExtensionPoint"],"mappings":";;;;;;;;AA4BO,MAAM,kCAAkCA,oCAAoB,CAAA;AAAA,EACjE,WAAc,GAAA;AACZ,IAAA,KAAA,CAAM,gBAAgB,CAAA,CAAA;AAAA,GACxB;AAAA,EAEU,kBAAkB,MAAyC,EAAA;AAjCvE,IAAA,IAAA,EAAA,CAAA;AAkCI,IAAO,OAAA,CAAA,EAAA,GAAA,MAAA,CAAO,aAAP,IAAkB,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,aAAA,CAAA,CAAA;AAAA,GAC3B;AACF;;ACTO,MAAM,wCAAwCC,oCAAoB,CAAA;AAAA,EACvE,QAAU,EAAA,QAAA;AAAA,EACV,QAAU,EAAA,2BAAA;AAAA,EACV,SAAS,GAAK,EAAA;AACZ,IAAA,GAAA,CAAI,YAAa,CAAA;AAAA,MACf,IAAM,EAAA;AAAA,QACJ,MAAQ,EAAAC,0BAAA;AAAA,OACV;AAAA,MACA,MAAM,IAAA,CAAK,EAAE,MAAA,EAAU,EAAA;AACrB,QAAM,MAAA,WAAA,GAAc,IAAI,yBAA0B,EAAA,CAAA;AAElD,QAAA,MAAA,CAAO,cAAc,WAAW,CAAA,CAAA;AAChC,QAAA,MAAA,CAAO,eAAe,WAAW,CAAA,CAAA;AAAA,OACnC;AAAA,KACD,CAAA,CAAA;AAAA,GACH;AACF,CAAC;;;;"}
1
+ {"version":3,"file":"alpha.cjs.js","sources":["../src/router/BitbucketCloudEventRouter.ts","../src/service/eventsModuleBitbucketCloudEventRouter.ts"],"sourcesContent":["/*\n * Copyright 2022 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n EventParams,\n SubTopicEventRouter,\n} from '@backstage/plugin-events-node';\n\n/**\n * Subscribes to the generic `bitbucketCloud` topic\n * and publishes the events under the more concrete sub-topic\n * depending on the `x-event-key` provided.\n *\n * @public\n */\nexport class BitbucketCloudEventRouter extends SubTopicEventRouter {\n constructor() {\n super('bitbucketCloud');\n }\n\n protected determineSubTopic(params: EventParams): string | undefined {\n return params.metadata?.['x-event-key'] as string | undefined;\n }\n}\n","/*\n * Copyright 2022 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { createBackendModule } from '@backstage/backend-plugin-api';\nimport { eventsExtensionPoint } from '@backstage/plugin-events-node/alpha';\nimport { BitbucketCloudEventRouter } from '../router/BitbucketCloudEventRouter';\n\n/**\n * Module for the events-backend plugin, adding an event router for Bitbucket Cloud.\n *\n * Registers the `BitbucketCloudEventRouter`.\n *\n * @alpha\n */\nexport const eventsModuleBitbucketCloudEventRouter = createBackendModule({\n pluginId: 'events',\n moduleId: 'bitbucketCloudEventRouter',\n register(env) {\n env.registerInit({\n deps: {\n events: eventsExtensionPoint,\n },\n async init({ events }) {\n const eventRouter = new BitbucketCloudEventRouter();\n\n events.addPublishers(eventRouter);\n events.addSubscribers(eventRouter);\n },\n });\n },\n});\n"],"names":["SubTopicEventRouter","createBackendModule","eventsExtensionPoint"],"mappings":";;;;;;;;AA4BO,MAAM,kCAAkCA,oCAAoB,CAAA;AAAA,EACjE,WAAc,GAAA;AACZ,IAAA,KAAA,CAAM,gBAAgB,CAAA,CAAA;AAAA,GACxB;AAAA,EAEU,kBAAkB,MAAyC,EAAA;AAjCvE,IAAA,IAAA,EAAA,CAAA;AAkCI,IAAO,OAAA,CAAA,EAAA,GAAA,MAAA,CAAO,aAAP,IAAkB,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,aAAA,CAAA,CAAA;AAAA,GAC3B;AACF;;ACTO,MAAM,wCAAwCC,oCAAoB,CAAA;AAAA,EACvE,QAAU,EAAA,QAAA;AAAA,EACV,QAAU,EAAA,2BAAA;AAAA,EACV,SAAS,GAAK,EAAA;AACZ,IAAA,GAAA,CAAI,YAAa,CAAA;AAAA,MACf,IAAM,EAAA;AAAA,QACJ,MAAQ,EAAAC,0BAAA;AAAA,OACV;AAAA,MACA,MAAM,IAAA,CAAK,EAAE,MAAA,EAAU,EAAA;AACrB,QAAM,MAAA,WAAA,GAAc,IAAI,yBAA0B,EAAA,CAAA;AAElD,QAAA,MAAA,CAAO,cAAc,WAAW,CAAA,CAAA;AAChC,QAAA,MAAA,CAAO,eAAe,WAAW,CAAA,CAAA;AAAA,OACnC;AAAA,KACD,CAAA,CAAA;AAAA,GACH;AACF,CAAC;;;;"}
package/dist/alpha.d.ts CHANGED
@@ -7,6 +7,6 @@ import * as _backstage_backend_plugin_api from '@backstage/backend-plugin-api';
7
7
  *
8
8
  * @alpha
9
9
  */
10
- declare const bitbucketCloudEventRouterEventsModule: () => _backstage_backend_plugin_api.BackendFeature;
10
+ declare const eventsModuleBitbucketCloudEventRouter: () => _backstage_backend_plugin_api.BackendFeature;
11
11
 
12
- export { bitbucketCloudEventRouterEventsModule };
12
+ export { eventsModuleBitbucketCloudEventRouter };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-events-backend-module-bitbucket-cloud",
3
- "version": "0.1.5-next.2",
3
+ "version": "0.1.5",
4
4
  "main": "./dist/index.cjs.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "license": "Apache-2.0",
@@ -33,14 +33,14 @@
33
33
  "postpack": "backstage-cli package postpack"
34
34
  },
35
35
  "dependencies": {
36
- "@backstage/backend-plugin-api": "^0.4.1-next.2",
37
- "@backstage/plugin-events-node": "^0.2.4-next.2",
36
+ "@backstage/backend-plugin-api": "^0.5.0",
37
+ "@backstage/plugin-events-node": "^0.2.4",
38
38
  "winston": "^3.2.1"
39
39
  },
40
40
  "devDependencies": {
41
- "@backstage/backend-test-utils": "^0.1.35-next.2",
42
- "@backstage/cli": "^0.22.4-next.1",
43
- "@backstage/plugin-events-backend-test-utils": "^0.1.5-next.2",
41
+ "@backstage/backend-test-utils": "^0.1.35",
42
+ "@backstage/cli": "^0.22.4",
43
+ "@backstage/plugin-events-backend-test-utils": "^0.1.5",
44
44
  "supertest": "^6.1.3"
45
45
  },
46
46
  "files": [