@backstage-community/plugin-analytics-module-newrelic-browser 0.10.0 → 0.12.0

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,33 @@
1
1
  # @backstage-community/plugin-analytics-module-newrelic-browser
2
2
 
3
+ ## 0.12.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 1e3b40b: Backstage version bump to v1.44.0
8
+
9
+ ## 0.11.0
10
+
11
+ ### Minor Changes
12
+
13
+ - 2258b1a: Backstage version bump to v1.43.2
14
+
15
+ ### Patch Changes
16
+
17
+ - 58c21b3: Added support for Backstage's New Frontend System.
18
+
19
+ If you're migrating to the new frontend system, you no longer need to wire up an API implementation in `apis.ts`. Instead, pass the module in to the `createApp()` function:
20
+
21
+ ```tsx
22
+ import newRelicBrowserModule from '@backstage-community/plugin-analytics-module-newrelic-browser/alpha';
23
+
24
+ const app = createApp({
25
+ features: [newRelicBrowserModule],
26
+ });
27
+ ```
28
+
29
+ This can be skipped if you have feature discovery enabled.
30
+
3
31
  ## 0.10.0
4
32
 
5
33
  ### Minor Changes
package/README.md CHANGED
@@ -15,6 +15,21 @@ yarn --cwd packages/app add @backstage-community/plugin-analytics-module-newreli
15
15
 
16
16
  2. Wire up the API implementation to your App:
17
17
 
18
+ If your App is built using the New Frontend System, it's enough to supply this
19
+ module to `createApp()`:
20
+
21
+ ```tsx
22
+ import newRelicBrowserModule from '@backstage-community/plugin-analytics-module-newrelic-browser/alpha';
23
+
24
+ const app = createApp({
25
+ features: [newRelicBrowserModule],
26
+ });
27
+ ```
28
+
29
+ This can be skipped entirely if you have feature discovery enabled.
30
+
31
+ For all other Backstage apps, wire up the API implementation like this:
32
+
18
33
  ```tsx
19
34
  // packages/app/src/apis.ts
20
35
  import {
@@ -0,0 +1,8 @@
1
+ import * as _backstage_frontend_plugin_api from '@backstage/frontend-plugin-api';
2
+
3
+ /**
4
+ * @public
5
+ */
6
+ declare const newRelicBrowserModule: _backstage_frontend_plugin_api.FrontendModule;
7
+
8
+ export { newRelicBrowserModule as default };
@@ -0,0 +1,2 @@
1
+ export { newRelicBrowserModule as default } from './module.esm.js';
2
+ //# sourceMappingURL=alpha.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"alpha.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,17 @@
1
+ import { AnalyticsImplementationBlueprint, configApiRef, identityApiRef, createFrontendModule } from '@backstage/frontend-plugin-api';
2
+ import { NewRelicBrowser } from './apis/implementations/AnalyticsApi/NewRelicBrowser.esm.js';
3
+
4
+ const newRelicBrowserImplementation = AnalyticsImplementationBlueprint.make({
5
+ name: "newrelic-browser",
6
+ params: (defineParams) => defineParams({
7
+ deps: { configApi: configApiRef, identityApi: identityApiRef },
8
+ factory: ({ configApi, identityApi }) => NewRelicBrowser.fromConfig(configApi, { identityApi })
9
+ })
10
+ });
11
+ const newRelicBrowserModule = createFrontendModule({
12
+ pluginId: "app",
13
+ extensions: [newRelicBrowserImplementation]
14
+ });
15
+
16
+ export { newRelicBrowserModule };
17
+ //# sourceMappingURL=module.esm.js.map
@@ -0,0 +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 AnalyticsImplementationBlueprint,\n configApiRef,\n createFrontendModule,\n identityApiRef,\n} from '@backstage/frontend-plugin-api';\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":";;;AAuBA,MAAM,6BAAA,GAAgC,iCAAiC,IAAK,CAAA;AAAA,EAC1E,IAAM,EAAA,kBAAA;AAAA,EACN,MAAA,EAAQ,kBACN,YAAa,CAAA;AAAA,IACX,IAAM,EAAA,EAAE,SAAW,EAAA,YAAA,EAAc,aAAa,cAAe,EAAA;AAAA,IAC7D,OAAA,EAAS,CAAC,EAAE,SAAW,EAAA,WAAA,EACrB,KAAA,eAAA,CAAgB,UAAW,CAAA,SAAA,EAAW,EAAE,WAAA,EAAa;AAAA,GACxD;AACL,CAAC,CAAA;AAKM,MAAM,wBAAwB,oBAAqB,CAAA;AAAA,EACxD,QAAU,EAAA,KAAA;AAAA,EACV,UAAA,EAAY,CAAC,6BAA6B;AAC5C,CAAC;;;;"}
package/package.json CHANGED
@@ -1,15 +1,40 @@
1
1
  {
2
2
  "name": "@backstage-community/plugin-analytics-module-newrelic-browser",
3
- "version": "0.10.0",
3
+ "version": "0.12.0",
4
4
  "backstage": {
5
5
  "role": "frontend-plugin-module",
6
6
  "pluginId": "app",
7
- "pluginPackage": "@backstage/plugin-app-backend"
7
+ "pluginPackage": "@backstage/plugin-app-backend",
8
+ "features": {
9
+ "./alpha": "@backstage/FrontendModule"
10
+ }
8
11
  },
9
12
  "publishConfig": {
10
- "access": "public",
11
- "main": "dist/index.esm.js",
12
- "types": "dist/index.d.ts"
13
+ "access": "public"
14
+ },
15
+ "exports": {
16
+ ".": {
17
+ "import": "./dist/index.esm.js",
18
+ "types": "./dist/index.d.ts",
19
+ "default": "./dist/index.esm.js"
20
+ },
21
+ "./alpha": {
22
+ "backstage": "@backstage/FrontendModule",
23
+ "import": "./dist/alpha.esm.js",
24
+ "types": "./dist/alpha.d.ts",
25
+ "default": "./dist/alpha.esm.js"
26
+ },
27
+ "./package.json": "./package.json"
28
+ },
29
+ "typesVersions": {
30
+ "*": {
31
+ "alpha": [
32
+ "dist/alpha.d.ts"
33
+ ],
34
+ "package.json": [
35
+ "package.json"
36
+ ]
37
+ }
13
38
  },
14
39
  "repository": {
15
40
  "type": "git",
@@ -18,8 +43,8 @@
18
43
  },
19
44
  "license": "Apache-2.0",
20
45
  "sideEffects": false,
21
- "main": "dist/index.esm.js",
22
- "types": "dist/index.d.ts",
46
+ "main": "./dist/index.esm.js",
47
+ "types": "./dist/index.d.ts",
23
48
  "files": [
24
49
  "dist",
25
50
  "config.d.ts"
@@ -34,15 +59,15 @@
34
59
  "test": "backstage-cli package test"
35
60
  },
36
61
  "dependencies": {
37
- "@backstage/config": "^1.3.3",
38
- "@backstage/core-components": "^0.17.5",
39
- "@backstage/core-plugin-api": "^1.10.9",
40
- "@backstage/frontend-plugin-api": "^0.11.0",
62
+ "@backstage/config": "^1.3.5",
63
+ "@backstage/core-components": "^0.18.2",
64
+ "@backstage/core-plugin-api": "^1.11.1",
65
+ "@backstage/frontend-plugin-api": "^0.12.1",
41
66
  "@newrelic/browser-agent": "^1.295.0"
42
67
  },
43
68
  "devDependencies": {
44
- "@backstage/cli": "^0.34.1",
45
- "@backstage/dev-utils": "^1.1.13",
69
+ "@backstage/cli": "^0.34.4",
70
+ "@backstage/dev-utils": "^1.1.15",
46
71
  "@testing-library/jest-dom": "^6.0.0",
47
72
  "@testing-library/react": "^15.0.0",
48
73
  "@types/react": "^18.2.58",
@@ -53,12 +78,5 @@
53
78
  "react": "^16.13.1 || ^17.0.0 || ^18.0.0"
54
79
  },
55
80
  "configSchema": "config.d.ts",
56
- "typesVersions": {
57
- "*": {
58
- "package.json": [
59
- "package.json"
60
- ]
61
- }
62
- },
63
81
  "module": "./dist/index.esm.js"
64
82
  }