@backstage-community/plugin-analytics-module-newrelic-browser 0.22.0 → 0.22.1

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,11 @@
1
1
  # @backstage-community/plugin-analytics-module-newrelic-browser
2
2
 
3
+ ## 0.22.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 7c6b73e: Export the analytics implementation extension from each module, so it can be referenced directly rather than only through the module that carries it. Added tests covering the APIs each implementation asks the app to inject and the analytics client it builds.
8
+
3
9
  ## 0.22.0
4
10
 
5
11
  ### Minor Changes
@@ -14,5 +14,5 @@ const newRelicBrowserModule = createFrontendModule({
14
14
  extensions: [newRelicBrowserImplementation]
15
15
  });
16
16
 
17
- export { newRelicBrowserModule };
17
+ export { newRelicBrowserImplementation, newRelicBrowserModule };
18
18
  //# sourceMappingURL=module.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"module.esm.js","sources":["../src/module.ts"],"sourcesContent":["/*\n * Copyright 2025 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 */\nimport {\n configApiRef,\n createFrontendModule,\n identityApiRef,\n} from '@backstage/frontend-plugin-api';\nimport { AnalyticsImplementationBlueprint } from '@backstage/plugin-app-react';\n\nimport { NewRelicBrowser } from './apis/implementations/AnalyticsApi';\n\nconst newRelicBrowserImplementation = AnalyticsImplementationBlueprint.make({\n name: 'newrelic-browser',\n params: defineParams =>\n defineParams({\n deps: { configApi: configApiRef, identityApi: identityApiRef },\n factory: ({ configApi, identityApi }) =>\n NewRelicBrowser.fromConfig(configApi, { identityApi }),\n }),\n});\n\n/**\n * @public\n */\nexport const newRelicBrowserModule = createFrontendModule({\n pluginId: 'app',\n extensions: [newRelicBrowserImplementation],\n});\n"],"names":[],"mappings":";;;;AAwBA,MAAM,6BAAA,GAAgC,iCAAiC,IAAA,CAAK;AAAA,EAC1E,IAAA,EAAM,kBAAA;AAAA,EACN,MAAA,EAAQ,kBACN,YAAA,CAAa;AAAA,IACX,IAAA,EAAM,EAAE,SAAA,EAAW,YAAA,EAAc,aAAa,cAAA,EAAe;AAAA,IAC7D,OAAA,EAAS,CAAC,EAAE,SAAA,EAAW,WAAA,EAAY,KACjC,eAAA,CAAgB,UAAA,CAAW,SAAA,EAAW,EAAE,WAAA,EAAa;AAAA,GACxD;AACL,CAAC,CAAA;AAKM,MAAM,wBAAwB,oBAAA,CAAqB;AAAA,EACxD,QAAA,EAAU,KAAA;AAAA,EACV,UAAA,EAAY,CAAC,6BAA6B;AAC5C,CAAC;;;;"}
1
+ {"version":3,"file":"module.esm.js","sources":["../src/module.ts"],"sourcesContent":["/*\n * Copyright 2025 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 */\nimport {\n configApiRef,\n createFrontendModule,\n identityApiRef,\n} from '@backstage/frontend-plugin-api';\nimport { AnalyticsImplementationBlueprint } from '@backstage/plugin-app-react';\n\nimport { NewRelicBrowser } from './apis/implementations/AnalyticsApi';\n\nexport const newRelicBrowserImplementation =\n AnalyticsImplementationBlueprint.make({\n name: 'newrelic-browser',\n params: defineParams =>\n defineParams({\n deps: { configApi: configApiRef, identityApi: identityApiRef },\n factory: ({ configApi, identityApi }) =>\n NewRelicBrowser.fromConfig(configApi, { identityApi }),\n }),\n });\n\n/**\n * @public\n */\nexport const newRelicBrowserModule = createFrontendModule({\n pluginId: 'app',\n extensions: [newRelicBrowserImplementation],\n});\n"],"names":[],"mappings":";;;;AAwBO,MAAM,6BAAA,GACX,iCAAiC,IAAA,CAAK;AAAA,EACpC,IAAA,EAAM,kBAAA;AAAA,EACN,MAAA,EAAQ,kBACN,YAAA,CAAa;AAAA,IACX,IAAA,EAAM,EAAE,SAAA,EAAW,YAAA,EAAc,aAAa,cAAA,EAAe;AAAA,IAC7D,OAAA,EAAS,CAAC,EAAE,SAAA,EAAW,WAAA,EAAY,KACjC,eAAA,CAAgB,UAAA,CAAW,SAAA,EAAW,EAAE,WAAA,EAAa;AAAA,GACxD;AACL,CAAC;AAKI,MAAM,wBAAwB,oBAAA,CAAqB;AAAA,EACxD,QAAA,EAAU,KAAA;AAAA,EACV,UAAA,EAAY,CAAC,6BAA6B;AAC5C,CAAC;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage-community/plugin-analytics-module-newrelic-browser",
3
- "version": "0.22.0",
3
+ "version": "0.22.1",
4
4
  "backstage": {
5
5
  "role": "frontend-plugin-module",
6
6
  "pluginId": "app",
@@ -69,6 +69,7 @@
69
69
  "devDependencies": {
70
70
  "@backstage/cli": "^0.36.5",
71
71
  "@backstage/dev-utils": "^1.1.26",
72
+ "@backstage/frontend-test-utils": "^0.6.3",
72
73
  "@testing-library/jest-dom": "^6.0.0",
73
74
  "@testing-library/react": "^16.0.0",
74
75
  "@types/react": "^18.2.58",