@backstage/plugin-scaffolder-node 0.5.1-next.2 → 0.6.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 +34 -0
- package/dist/index.d.ts +4 -1
- package/package.json +21 -12
- package/alpha/package.json +0 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,39 @@
|
|
|
1
1
|
# @backstage/plugin-scaffolder-node
|
|
2
2
|
|
|
3
|
+
## 0.6.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- e61d5ef: BREAKING EXPERIMENTAL: The `checkpoint` method now takes an object instead of previous arguments.
|
|
8
|
+
|
|
9
|
+
```ts
|
|
10
|
+
await ctx.checkpoint({ key: 'repo.create', fn: () => ockokit.repo.create({...})})
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
You can also now return `void` from the checkpoint if the method returns `void` inside the `checkpoint` handler.
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
- @backstage/types@1.2.0
|
|
19
|
+
- @backstage/plugin-scaffolder-common@1.5.7
|
|
20
|
+
- @backstage/backend-plugin-api@1.0.2
|
|
21
|
+
- @backstage/catalog-model@1.7.1
|
|
22
|
+
- @backstage/errors@1.2.5
|
|
23
|
+
- @backstage/integration@1.15.2
|
|
24
|
+
|
|
25
|
+
## 0.5.1-next.3
|
|
26
|
+
|
|
27
|
+
### Patch Changes
|
|
28
|
+
|
|
29
|
+
- Updated dependencies
|
|
30
|
+
- @backstage/plugin-scaffolder-common@1.5.7-next.0
|
|
31
|
+
- @backstage/backend-plugin-api@1.0.2-next.2
|
|
32
|
+
- @backstage/catalog-model@1.7.0
|
|
33
|
+
- @backstage/errors@1.2.4
|
|
34
|
+
- @backstage/integration@1.15.1
|
|
35
|
+
- @backstage/types@1.1.1
|
|
36
|
+
|
|
3
37
|
## 0.5.1-next.2
|
|
4
38
|
|
|
5
39
|
### Patch Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -181,7 +181,10 @@ type ActionContext<TActionInput extends JsonObject, TActionOutput extends JsonOb
|
|
|
181
181
|
secrets?: TaskSecrets;
|
|
182
182
|
workspacePath: string;
|
|
183
183
|
input: TActionInput;
|
|
184
|
-
checkpoint<
|
|
184
|
+
checkpoint<T extends JsonValue | void>(opts: {
|
|
185
|
+
key: string;
|
|
186
|
+
fn: () => Promise<T> | T;
|
|
187
|
+
}): Promise<T>;
|
|
185
188
|
output(name: keyof TActionOutput, value: TActionOutput[keyof TActionOutput]): void;
|
|
186
189
|
/**
|
|
187
190
|
* Creates a temporary directory for use by the action, which is then cleaned up automatically.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/plugin-scaffolder-node",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"description": "The plugin-scaffolder-node module for @backstage/plugin-scaffolder-backend",
|
|
5
5
|
"backstage": {
|
|
6
6
|
"role": "node-library",
|
|
@@ -39,9 +39,18 @@
|
|
|
39
39
|
},
|
|
40
40
|
"main": "./dist/index.cjs.js",
|
|
41
41
|
"types": "./dist/index.d.ts",
|
|
42
|
+
"typesVersions": {
|
|
43
|
+
"*": {
|
|
44
|
+
"index": [
|
|
45
|
+
"dist/index.d.ts"
|
|
46
|
+
],
|
|
47
|
+
"alpha": [
|
|
48
|
+
"dist/alpha.d.ts"
|
|
49
|
+
]
|
|
50
|
+
}
|
|
51
|
+
},
|
|
42
52
|
"files": [
|
|
43
|
-
"dist"
|
|
44
|
-
"alpha"
|
|
53
|
+
"dist"
|
|
45
54
|
],
|
|
46
55
|
"scripts": {
|
|
47
56
|
"build": "backstage-cli package build",
|
|
@@ -54,12 +63,12 @@
|
|
|
54
63
|
},
|
|
55
64
|
"dependencies": {
|
|
56
65
|
"@backstage/backend-common": "^0.25.0",
|
|
57
|
-
"@backstage/backend-plugin-api": "1.0.2
|
|
58
|
-
"@backstage/catalog-model": "1.7.
|
|
59
|
-
"@backstage/errors": "1.2.
|
|
60
|
-
"@backstage/integration": "1.15.
|
|
61
|
-
"@backstage/plugin-scaffolder-common": "1.5.
|
|
62
|
-
"@backstage/types": "1.
|
|
66
|
+
"@backstage/backend-plugin-api": "^1.0.2",
|
|
67
|
+
"@backstage/catalog-model": "^1.7.1",
|
|
68
|
+
"@backstage/errors": "^1.2.5",
|
|
69
|
+
"@backstage/integration": "^1.15.2",
|
|
70
|
+
"@backstage/plugin-scaffolder-common": "^1.5.7",
|
|
71
|
+
"@backstage/types": "^1.2.0",
|
|
63
72
|
"concat-stream": "^2.0.0",
|
|
64
73
|
"fs-extra": "^11.2.0",
|
|
65
74
|
"globby": "^11.0.0",
|
|
@@ -72,8 +81,8 @@
|
|
|
72
81
|
"zod-to-json-schema": "^3.20.4"
|
|
73
82
|
},
|
|
74
83
|
"devDependencies": {
|
|
75
|
-
"@backstage/backend-test-utils": "1.1.0
|
|
76
|
-
"@backstage/cli": "0.29.0
|
|
77
|
-
"@backstage/config": "1.
|
|
84
|
+
"@backstage/backend-test-utils": "^1.1.0",
|
|
85
|
+
"@backstage/cli": "^0.29.0",
|
|
86
|
+
"@backstage/config": "^1.3.0"
|
|
78
87
|
}
|
|
79
88
|
}
|