@backstage/plugin-scaffolder-backend 1.24.0 → 1.25.0-next.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 +37 -0
- package/alpha/package.json +1 -1
- package/dist/alpha.cjs.js +1 -1
- package/dist/alpha.d.ts +1 -1
- package/dist/cjs/{router-DlESPVAB.cjs.js → router-CNlgKIy9.cjs.js} +6 -5
- package/dist/cjs/router-CNlgKIy9.cjs.js.map +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +4 -2
- package/package.json +22 -22
- package/dist/cjs/router-DlESPVAB.cjs.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,42 @@
|
|
|
1
1
|
# @backstage/plugin-scaffolder-backend
|
|
2
2
|
|
|
3
|
+
## 1.25.0-next.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 62898bd: `createRouter` and its related types has been marked as deprecared. This backend should instead be initialized using the new backend system.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- c160951: Found the issue during testing the clean up of the workspace for the database implementation.
|
|
12
|
+
- d425fc4: Modules, plugins, and services are now `BackendFeature`, not a function that returns a feature.
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
- @backstage/backend-plugin-api@0.9.0-next.0
|
|
15
|
+
- @backstage/backend-defaults@0.5.0-next.0
|
|
16
|
+
- @backstage/plugin-permission-node@0.8.3-next.0
|
|
17
|
+
- @backstage/backend-common@0.25.0-next.0
|
|
18
|
+
- @backstage/plugin-catalog-backend-module-scaffolder-entity-model@0.2.0-next.0
|
|
19
|
+
- @backstage/plugin-scaffolder-backend-module-azure@0.2.0-next.0
|
|
20
|
+
- @backstage/plugin-scaffolder-backend-module-bitbucket-cloud@0.2.0-next.0
|
|
21
|
+
- @backstage/plugin-scaffolder-backend-module-bitbucket-server@0.2.0-next.0
|
|
22
|
+
- @backstage/plugin-scaffolder-backend-module-bitbucket@0.3.0-next.0
|
|
23
|
+
- @backstage/plugin-scaffolder-backend-module-gerrit@0.2.0-next.0
|
|
24
|
+
- @backstage/plugin-scaffolder-backend-module-gitea@0.2.0-next.0
|
|
25
|
+
- @backstage/plugin-scaffolder-backend-module-github@0.5.0-next.0
|
|
26
|
+
- @backstage/plugin-scaffolder-backend-module-gitlab@0.5.0-next.0
|
|
27
|
+
- @backstage/plugin-auth-node@0.5.2-next.0
|
|
28
|
+
- @backstage/plugin-catalog-node@1.12.7-next.0
|
|
29
|
+
- @backstage/plugin-scaffolder-node@0.4.11-next.0
|
|
30
|
+
- @backstage/catalog-client@1.6.6
|
|
31
|
+
- @backstage/catalog-model@1.6.0
|
|
32
|
+
- @backstage/config@1.2.0
|
|
33
|
+
- @backstage/errors@1.2.4
|
|
34
|
+
- @backstage/integration@1.14.0
|
|
35
|
+
- @backstage/types@1.1.1
|
|
36
|
+
- @backstage/plugin-bitbucket-cloud-common@0.2.22
|
|
37
|
+
- @backstage/plugin-permission-common@0.8.1
|
|
38
|
+
- @backstage/plugin-scaffolder-common@1.5.5
|
|
39
|
+
|
|
3
40
|
## 1.24.0
|
|
4
41
|
|
|
5
42
|
### Minor Changes
|
package/alpha/package.json
CHANGED
package/dist/alpha.cjs.js
CHANGED
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var alpha = require('@backstage/plugin-scaffolder-common/alpha');
|
|
6
6
|
var pluginPermissionNode = require('@backstage/plugin-permission-node');
|
|
7
|
-
var router = require('./cjs/router-
|
|
7
|
+
var router = require('./cjs/router-CNlgKIy9.cjs.js');
|
|
8
8
|
var backendPluginApi = require('@backstage/backend-plugin-api');
|
|
9
9
|
var backendCommon = require('@backstage/backend-common');
|
|
10
10
|
var integration = require('@backstage/integration');
|
package/dist/alpha.d.ts
CHANGED
|
@@ -94,6 +94,6 @@ declare const scaffolderActionConditions: _backstage_plugin_permission_node.Cond
|
|
|
94
94
|
*
|
|
95
95
|
* @alpha
|
|
96
96
|
*/
|
|
97
|
-
declare const scaffolderPlugin: _backstage_backend_plugin_api.
|
|
97
|
+
declare const scaffolderPlugin: _backstage_backend_plugin_api.BackendFeature;
|
|
98
98
|
|
|
99
99
|
export { createScaffolderActionConditionalDecision, createScaffolderTemplateConditionalDecision, scaffolderPlugin as default, scaffolderActionConditions, scaffolderTemplateConditions };
|
|
@@ -1827,13 +1827,14 @@ class DatabaseTaskStore {
|
|
|
1827
1827
|
}
|
|
1828
1828
|
async cleanWorkspace({ taskId }) {
|
|
1829
1829
|
await this.db("tasks").where({ id: taskId }).update({
|
|
1830
|
-
workspace:
|
|
1830
|
+
workspace: null
|
|
1831
1831
|
});
|
|
1832
1832
|
}
|
|
1833
1833
|
async serializeWorkspace(options) {
|
|
1834
1834
|
if (options.path) {
|
|
1835
|
+
const workspace = (await alpha.serializeWorkspace(options)).contents;
|
|
1835
1836
|
await this.db("tasks").where({ id: options.taskId }).update({
|
|
1836
|
-
workspace
|
|
1837
|
+
workspace
|
|
1837
1838
|
});
|
|
1838
1839
|
}
|
|
1839
1840
|
}
|
|
@@ -1919,7 +1920,7 @@ class DatabaseWorkspaceProvider {
|
|
|
1919
1920
|
return new DatabaseWorkspaceProvider(storage);
|
|
1920
1921
|
}
|
|
1921
1922
|
async serializeWorkspace(options) {
|
|
1922
|
-
this.storage.serializeWorkspace?.(options);
|
|
1923
|
+
await this.storage.serializeWorkspace?.(options);
|
|
1923
1924
|
}
|
|
1924
1925
|
async rehydrateWorkspace(options) {
|
|
1925
1926
|
return this.storage.rehydrateWorkspace?.(options);
|
|
@@ -2812,10 +2813,10 @@ class NunjucksWorkflowRunner {
|
|
|
2812
2813
|
}
|
|
2813
2814
|
const output = this.render(task.spec.output, context, renderTemplate);
|
|
2814
2815
|
await taskTrack.markSuccessful();
|
|
2816
|
+
await task.cleanWorkspace?.();
|
|
2815
2817
|
return { output };
|
|
2816
2818
|
} finally {
|
|
2817
2819
|
if (workspacePath) {
|
|
2818
|
-
await task.cleanWorkspace?.();
|
|
2819
2820
|
await fs__default.default.remove(workspacePath);
|
|
2820
2821
|
}
|
|
2821
2822
|
}
|
|
@@ -3839,4 +3840,4 @@ exports.createRouter = createRouter;
|
|
|
3839
3840
|
exports.createWaitAction = createWaitAction;
|
|
3840
3841
|
exports.scaffolderActionRules = scaffolderActionRules;
|
|
3841
3842
|
exports.scaffolderTemplateRules = scaffolderTemplateRules;
|
|
3842
|
-
//# sourceMappingURL=router-
|
|
3843
|
+
//# sourceMappingURL=router-CNlgKIy9.cjs.js.map
|