@backstage/plugin-scaffolder-backend 0.15.24 → 0.17.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,111 @@
1
1
  # @backstage/plugin-scaffolder-backend
2
2
 
3
+ ## 0.17.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 91c6faeb7b: - **BREAKING** - the `/v2/tasks` endpoint now takes `templateRef` instead of `templateName` in the POST body. This should be a valid stringified `entityRef`.
8
+ - 7f193ff019: - **BREAKING** - `DatabaseTaskStore()` constructor is now removed. Please use the `DatabaseTaskStore.create()` method instead.
9
+
10
+ - **BREAKING** - `TaskStore.createTask()` method now only takes one argument of type `TaskStoreCreateTaskOptions` which encapsulates the `spec` and `secrets`
11
+
12
+ ```diff
13
+ - TaskStore.createTask(spec, secrets)
14
+ + TaskStore.createTask({ spec, secrets})
15
+ ```
16
+
17
+ - **BREAKING** - `TaskBroker.dispatch()` method now only takes one argument of type `TaskBrokerDispatchOptions` which encapsulates the `spec` and `secrets`
18
+
19
+ ```diff
20
+ - TaskBroker.dispatch(spec, secrets)
21
+ + TaskBroker.dispatch({ spec, secrets})
22
+ ```
23
+
24
+ - 9d9b2bab47: - **BREAKING** - Removed the re-export of types `TaskSpec` `TaskSpecV1Beta2` and `TaskSpecV1Beta3` these should now be import from `@backstage/plugin-scaffolder-common` directly.
25
+ - **BREAKING** - Removed the `observe` method from the `TaskBroker` interface, this has now been replaced with an `Observable` implementation under `event# @backstage/plugin-scaffolder-backend.
26
+
27
+ ### Patch Changes
28
+
29
+ - 9d9b2bab47: - **DEPRECATED** - Deprecated the `runCommand` export in favour of `executeShellCommand`. Please migrate to using the new method.
30
+ - Added a type parameter to `TaskStoreEmitOptions` to type the `body` property
31
+ - 65a7939c6c: - **DEPRECATED** - `TaskState` has been deprecated in favour of `CurrentClaimedTask`
32
+ - Narrowed the types from `JSONValue` to `JSONObject` as the usage is and should always be `JSONObject` for `complete` and `emitLog` `metadata` in `TaskContext`
33
+ - 67a7c02d26: Remove usages of `EntityRef` and `parseEntityName` from `@backstage/catalog-model`
34
+ - ed09ad8093: Updated usage of the `LocationSpec` type from `@backstage/catalog-model`, which is deprecated.
35
+ - 6981ac4ad2: - **DEPRECATED** - The `containerRunner` option passed to `createBuiltinActions` has now been deprecated.
36
+
37
+ - **DEPRECATED** - The `createFetchCookiecutterAction` export has also been deprecated and will soon disappear from this plugin.
38
+
39
+ The `fetch:cookiecutter` action will soon be removed from the default list of actions that are provided out of the box from the scaffolder plugin. It will still be supported, and maintained by the community, so you can install the package (`@backstage/plugin-scaffolder-backend-module-cookiecutter`) and pass it in as a custom action. Or you can migrate your templates to use [`fetch:template`](https://backstage.io/docs/features/software-templates/builtin-actions#migrating-from-fetchcookiecutter-to-fetchtemplate) with the `cookiecutterCompat` option.
40
+
41
+ - b1744f1153: - **DEPRECATED** - `OctokitProvider` has been deprecated and will be removed in upcoming versions
42
+ This helper doesn't make sense to be export from the `plugin-scaffolder-backend` and possibly will be moved into the `integrations` package at a later date.
43
+ All implementations have been moved over to a private implementation called `getOctokitOptions` which is then passed to the `Octokit` constructor. If you're using this API you should consider duplicating the logic that lives in `getOctokitOptions` and move away from the deprecated export.
44
+ - 0f37cdef19: Migrated over from the deprecated `spec.metadata` to `spec.templateInfo` for the `name` and the `baseUrl` of the template.
45
+ - 7f193ff019: - **DEPRECATED** - `Status` has been deprecated in favour of `TaskStatus`
46
+ - **DEPRECATED** - `CompletedTaskState` has been deprecated in favour of `TaskCompletionState`
47
+ - **DEPRECATED** - `DispatchResult` has been deprecated in favour of `TaskBrokerDispatchResult`
48
+ - df61ca71dd: Implemented required `getProcessorName` method for catalog processor.
49
+ - Updated dependencies
50
+ - @backstage/backend-common@0.11.0
51
+ - @backstage/plugin-catalog-backend@0.22.0
52
+ - @backstage/plugin-scaffolder-common@0.2.2
53
+ - @backstage/catalog-model@0.11.0
54
+ - @backstage/catalog-client@0.7.2
55
+ - @backstage/plugin-scaffolder-backend-module-cookiecutter@0.2.2
56
+ - @backstage/integration@0.7.5
57
+
58
+ ## 0.16.1
59
+
60
+ ### Patch Changes
61
+
62
+ - Fix for the previous release with missing type declarations.
63
+ - Updated dependencies
64
+ - @backstage/backend-common@0.10.9
65
+ - @backstage/catalog-client@0.7.1
66
+ - @backstage/catalog-model@0.10.1
67
+ - @backstage/config@0.1.15
68
+ - @backstage/errors@0.2.2
69
+ - @backstage/integration@0.7.4
70
+ - @backstage/types@0.1.3
71
+ - @backstage/plugin-catalog-backend@0.21.5
72
+ - @backstage/plugin-scaffolder-backend-module-cookiecutter@0.2.1
73
+ - @backstage/plugin-scaffolder-common@0.2.1
74
+
75
+ ## 0.16.0
76
+
77
+ ### Minor Changes
78
+
79
+ - 661594bf43: **BREAKING**: Updated `TemplateAction` and related types to have its type parameter extend `JsonObject` instead of `InputBase`. The `createTemplateAction` has also been updated to pass through the `TInput` type parameter to the return type, meaning the `TemplateAction` retains its type. This can lead to breakages during type checking especially within tests.
80
+ - 8db2b671c6: **BREAKING**: `ctx.token` is now `ctx.secrets.backstageToken` in Actions. Please update any of your Actions that might call out to Backstage API's with this token.
81
+ - 5a1594330e: **BREAKING** - Removed the `CatalogEntityClient` export. This is no longer provider by this package,
82
+ but you can implement one pretty simply yourself using the `CatalogApi` and applying filters to fetch templates.
83
+ - 7d3471db94: Remove the previously deprecated `scaffolder.provider` config for all providers.
84
+ This config is no longer used anywhere, and adopters should use [`integrations` config](https://backstage.io/docs/integrations) instead.
85
+
86
+ ### Patch Changes
87
+
88
+ - 1ed305728b: Bump `node-fetch` to version 2.6.7 and `cross-fetch` to version 3.1.5
89
+ - 3e59f90b51: Fix error handling of the `runCommand` helper to return `Error`
90
+ instance.
91
+ - c77c5c7eb6: Added `backstage.role` to `package.json`
92
+ - 216725b434: Updated to use new names for `parseLocationRef` and `stringifyLocationRef`
93
+ - e72d371296: Use `TemplateEntityV1beta2` from `@backstage/plugin-scaffolder-common` instead
94
+ of `@backstage/catalog-model`.
95
+ - 1433045c08: Removed unused `helmet` dependency.
96
+ - 27eccab216: Replaces use of deprecated catalog-model constants.
97
+ - Updated dependencies
98
+ - @backstage/plugin-scaffolder-common@0.2.0
99
+ - @backstage/plugin-catalog-backend@0.21.4
100
+ - @backstage/backend-common@0.10.8
101
+ - @backstage/catalog-client@0.7.0
102
+ - @backstage/errors@0.2.1
103
+ - @backstage/integration@0.7.3
104
+ - @backstage/catalog-model@0.10.0
105
+ - @backstage/config@0.1.14
106
+ - @backstage/types@0.1.2
107
+ - @backstage/plugin-scaffolder-backend-module-cookiecutter@0.2.0
108
+
3
109
  ## 0.15.24
4
110
 
5
111
  ### Patch Changes
package/config.d.ts CHANGED
@@ -28,30 +28,5 @@ export interface Config {
28
28
  * The commit message used when new components are created.
29
29
  */
30
30
  defaultCommitMessage?: string;
31
- /**
32
- * @deprecated Replaced by parameters for the publish:github action
33
- */
34
- github?: {
35
- [key: string]: string;
36
- };
37
- /**
38
- * @deprecated Use the Gitlab integration instead
39
- */
40
- gitlab?: {
41
- api: { [key: string]: string };
42
- };
43
- /**
44
- * @deprecated Use the Azure integration instead
45
- */
46
- azure?: {
47
- baseUrl: string;
48
- api: { [key: string]: string };
49
- };
50
- /**
51
- * @deprecated Use the Bitbucket integration instead
52
- */
53
- bitbucket?: {
54
- api: { [key: string]: string };
55
- };
56
31
  };
57
32
  }