@backstage/backend-dynamic-feature-service 0.4.0-next.2 → 0.4.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.
Files changed (2) hide show
  1. package/CHANGELOG.md +67 -0
  2. package/package.json +17 -17
package/CHANGELOG.md CHANGED
@@ -1,5 +1,72 @@
1
1
  # @backstage/backend-dynamic-feature-service
2
2
 
3
+ ## 0.4.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 9080f57: **BREAKING**: `dynamicPluginsServiceFactory` is no longer callable as a function. If you need to provide options to make a custom factory, use `dynamicPluginsSchemasServiceFactoryWithOptions` instead.
8
+
9
+ ### Patch Changes
10
+
11
+ - cd38da8: Deprecate the `dynamicPluginsServiceRef`, `dynamicPluginsServiceFactory` and `dynamicPluginsServiceFactoryWithOptions` in favor of using the `dynamicPluginsFeatureDiscoveryLoader` to discover dynamic features in a new backend system.
12
+
13
+ See usage examples below:
14
+
15
+ Example using the `dynamicPluginsFeatureDiscoveryLoader` loader in a backend instance:
16
+
17
+ ```ts
18
+ import { createBackend } from '@backstage/backend-defaults';
19
+ import { dynamicPluginsFeatureDiscoveryLoader } from '@backstage/backend-dynamic-feature-service';
20
+ //...
21
+
22
+ const backend = createBackend();
23
+ backend.add(dynamicPluginsFeatureDiscoveryLoader);
24
+ //...
25
+ backend.start();
26
+ ```
27
+
28
+ Passing options to the `dynamicPluginsFeatureDiscoveryLoader` loader in a backend instance:
29
+
30
+ ```ts
31
+ import { createBackend } from '@backstage/backend-defaults';
32
+ import { dynamicPluginsFeatureDiscoveryLoader } from '@backstage/backend-dynamic-feature-service';
33
+ import { myCustomModuleLoader } from './myCustomModuleLoader';
34
+ //...
35
+
36
+ const backend = createBackend();
37
+ backend.add(
38
+ dynamicPluginsFeatureDiscoveryLoader({
39
+ moduleLoader: myCustomModuleLoader,
40
+ }),
41
+ );
42
+ //...
43
+ backend.start();
44
+ ```
45
+
46
+ - e27f889: Relax type check for a plugin's default export to also accept a BackendFeature defined as a function instead of an object
47
+ - d425fc4: Modules, plugins, and services are now `BackendFeature`, not a function that returns a feature.
48
+ - Updated dependencies
49
+ - @backstage/backend-defaults@0.5.0
50
+ - @backstage/backend-common@0.25.0
51
+ - @backstage/backend-app-api@1.0.0
52
+ - @backstage/backend-plugin-api@1.0.0
53
+ - @backstage/plugin-auth-node@0.5.2
54
+ - @backstage/plugin-catalog-backend@1.26.0
55
+ - @backstage/plugin-app-node@0.1.25
56
+ - @backstage/cli-node@0.2.8
57
+ - @backstage/plugin-permission-node@0.8.3
58
+ - @backstage/plugin-events-backend@0.3.12
59
+ - @backstage/config-loader@1.9.1
60
+ - @backstage/plugin-events-node@0.4.0
61
+ - @backstage/cli-common@0.1.14
62
+ - @backstage/config@1.2.0
63
+ - @backstage/errors@1.2.4
64
+ - @backstage/types@1.1.1
65
+ - @backstage/plugin-permission-common@0.8.1
66
+ - @backstage/plugin-scaffolder-node@0.4.11
67
+ - @backstage/plugin-search-backend-node@1.3.2
68
+ - @backstage/plugin-search-common@1.2.14
69
+
3
70
  ## 0.4.0-next.2
4
71
 
5
72
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/backend-dynamic-feature-service",
3
- "version": "0.4.0-next.2",
3
+ "version": "0.4.0",
4
4
  "description": "Backstage dynamic feature service",
5
5
  "backstage": {
6
6
  "role": "node-library"
@@ -42,24 +42,24 @@
42
42
  "test": "backstage-cli package test"
43
43
  },
44
44
  "dependencies": {
45
- "@backstage/backend-app-api": "^1.0.0-next.2",
46
- "@backstage/backend-common": "^0.25.0-next.2",
47
- "@backstage/backend-defaults": "^0.5.0-next.2",
48
- "@backstage/backend-plugin-api": "^1.0.0-next.2",
45
+ "@backstage/backend-app-api": "^1.0.0",
46
+ "@backstage/backend-common": "^0.25.0",
47
+ "@backstage/backend-defaults": "^0.5.0",
48
+ "@backstage/backend-plugin-api": "^1.0.0",
49
49
  "@backstage/cli-common": "^0.1.14",
50
- "@backstage/cli-node": "^0.2.8-next.0",
50
+ "@backstage/cli-node": "^0.2.8",
51
51
  "@backstage/config": "^1.2.0",
52
- "@backstage/config-loader": "^1.9.1-next.0",
52
+ "@backstage/config-loader": "^1.9.1",
53
53
  "@backstage/errors": "^1.2.4",
54
- "@backstage/plugin-app-node": "^0.1.25-next.2",
55
- "@backstage/plugin-auth-node": "^0.5.2-next.2",
56
- "@backstage/plugin-catalog-backend": "^1.26.0-next.2",
57
- "@backstage/plugin-events-backend": "^0.3.12-next.2",
58
- "@backstage/plugin-events-node": "^0.4.0-next.2",
54
+ "@backstage/plugin-app-node": "^0.1.25",
55
+ "@backstage/plugin-auth-node": "^0.5.2",
56
+ "@backstage/plugin-catalog-backend": "^1.26.0",
57
+ "@backstage/plugin-events-backend": "^0.3.12",
58
+ "@backstage/plugin-events-node": "^0.4.0",
59
59
  "@backstage/plugin-permission-common": "^0.8.1",
60
- "@backstage/plugin-permission-node": "^0.8.3-next.2",
61
- "@backstage/plugin-scaffolder-node": "^0.4.11-next.2",
62
- "@backstage/plugin-search-backend-node": "^1.3.2-next.2",
60
+ "@backstage/plugin-permission-node": "^0.8.3",
61
+ "@backstage/plugin-scaffolder-node": "^0.4.11",
62
+ "@backstage/plugin-search-backend-node": "^1.3.2",
63
63
  "@backstage/plugin-search-common": "^1.2.14",
64
64
  "@backstage/types": "^1.1.1",
65
65
  "@manypkg/get-packages": "^1.1.3",
@@ -71,8 +71,8 @@
71
71
  "winston": "^3.2.1"
72
72
  },
73
73
  "devDependencies": {
74
- "@backstage/backend-test-utils": "^1.0.0-next.2",
75
- "@backstage/cli": "^0.27.1-next.2",
74
+ "@backstage/backend-test-utils": "^1.0.0",
75
+ "@backstage/cli": "^0.27.1",
76
76
  "wait-for-expect": "^3.0.2"
77
77
  }
78
78
  }