@red-hat-developer-hub/backstage-plugin-adoption-insights-backend 0.6.0 → 0.6.2

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,18 @@
1
1
  # @red-hat-developer-hub/backstage-plugin-adoption-insights-backend
2
2
 
3
+ ## 0.6.2
4
+
5
+ ### Patch Changes
6
+
7
+ - @red-hat-developer-hub/backstage-plugin-adoption-insights-common@0.6.2
8
+
9
+ ## 0.6.1
10
+
11
+ ### Patch Changes
12
+
13
+ - 3cf4c58: Mark the app-config `app.analytics.adoptionInsights` option as optional. It was already read with getOptional<Number/Boolean> so there is no code change or configuration change needed, this just reflect the status quo better.
14
+ - @red-hat-developer-hub/backstage-plugin-adoption-insights-common@0.6.1
15
+
3
16
  ## 0.6.0
4
17
 
5
18
  ### Minor Changes
package/README.md CHANGED
@@ -23,13 +23,15 @@ backend.add(
23
23
 
24
24
  ## Configuration
25
25
 
26
+ The following optional configuration parameters are available to fine tune adoption analytics events:
27
+
26
28
  ```yaml
27
29
  app:
28
30
  analytics:
29
31
  adoptionInsights:
30
- maxBufferSize: 25
31
- flushInterval: 6000
32
- debug: false # enable this to debug
32
+ maxBufferSize: 20 # Optional: Maximum buffer size for event batching (default: 20)
33
+ flushInterval: 5000 # Optional: Flush interval in milliseconds for event batching (default: 5000ms)
34
+ debug: false # Optional: Enable debug mode to log every event in the browser console (default: false)
33
35
  licensedUsers: 100 # Administrators can set this value to see the user adoption metrics.
34
36
  ```
35
37
 
package/config.d.ts CHANGED
@@ -16,8 +16,8 @@
16
16
 
17
17
  export interface Config {
18
18
  app?: {
19
- analytics: {
20
- adoptionInsights: {
19
+ analytics?: {
20
+ adoptionInsights?: {
21
21
  /**
22
22
  * Maximum buffer size for event batching.
23
23
  * default 20
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@red-hat-developer-hub/backstage-plugin-adoption-insights-backend",
3
- "version": "0.6.0",
3
+ "version": "0.6.2",
4
4
  "license": "Apache-2.0",
5
5
  "main": "dist/index.cjs.js",
6
6
  "types": "dist/index.d.ts",
@@ -42,7 +42,7 @@
42
42
  "@backstage/errors": "^1.2.7",
43
43
  "@backstage/plugin-catalog-node": "^1.20.0",
44
44
  "@backstage/plugin-permission-common": "^0.9.3",
45
- "@red-hat-developer-hub/backstage-plugin-adoption-insights-common": "^0.6.0",
45
+ "@red-hat-developer-hub/backstage-plugin-adoption-insights-common": "^0.6.2",
46
46
  "express": "^4.17.1",
47
47
  "express-promise-router": "^4.1.0",
48
48
  "json-2-csv": "^5.5.8",