@backstage/plugin-scaffolder-node 0.3.3-next.0 → 0.4.0-next.1
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 +18 -0
- package/alpha/package.json +1 -1
- package/dist/index.d.ts +7 -1
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @backstage/plugin-scaffolder-node
|
|
2
2
|
|
|
3
|
+
## 0.4.0-next.1
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- aa543c9: Update task context type to contain the new auth initiator credentials.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- bbd1fe1: Made "checkpoint" on scaffolder action context non-optional
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
- @backstage/backend-common@0.21.4-next.1
|
|
14
|
+
- @backstage/backend-plugin-api@0.6.14-next.1
|
|
15
|
+
- @backstage/integration@1.9.1-next.1
|
|
16
|
+
- @backstage/catalog-model@1.4.5-next.0
|
|
17
|
+
- @backstage/errors@1.2.4-next.0
|
|
18
|
+
- @backstage/types@1.1.1
|
|
19
|
+
- @backstage/plugin-scaffolder-common@1.5.1-next.1
|
|
20
|
+
|
|
3
21
|
## 0.3.3-next.0
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
package/alpha/package.json
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import { Logger } from 'winston';
|
|
3
3
|
import { Writable } from 'stream';
|
|
4
4
|
import { JsonObject, JsonValue, Observable } from '@backstage/types';
|
|
5
|
+
import { BackstageCredentials } from '@backstage/backend-plugin-api';
|
|
5
6
|
import { TaskSpec, TemplateInfo } from '@backstage/plugin-scaffolder-common';
|
|
6
7
|
import { UserEntity } from '@backstage/catalog-model';
|
|
7
8
|
import { Schema } from 'jsonschema';
|
|
@@ -108,6 +109,7 @@ interface TaskContext {
|
|
|
108
109
|
reason: string;
|
|
109
110
|
}): Promise<void>;
|
|
110
111
|
getWorkspaceName(): Promise<string>;
|
|
112
|
+
getInitiatorCredentials(): Promise<BackstageCredentials>;
|
|
111
113
|
}
|
|
112
114
|
/**
|
|
113
115
|
* TaskBroker
|
|
@@ -146,12 +148,16 @@ type ActionContext<TActionInput extends JsonObject, TActionOutput extends JsonOb
|
|
|
146
148
|
secrets?: TaskSecrets;
|
|
147
149
|
workspacePath: string;
|
|
148
150
|
input: TActionInput;
|
|
149
|
-
checkpoint
|
|
151
|
+
checkpoint<U extends JsonValue>(key: string, fn: () => Promise<U>): Promise<U>;
|
|
150
152
|
output(name: keyof TActionOutput, value: TActionOutput[keyof TActionOutput]): void;
|
|
151
153
|
/**
|
|
152
154
|
* Creates a temporary directory for use by the action, which is then cleaned up automatically.
|
|
153
155
|
*/
|
|
154
156
|
createTemporaryDirectory(): Promise<string>;
|
|
157
|
+
/**
|
|
158
|
+
* Get the credentials for the current request
|
|
159
|
+
*/
|
|
160
|
+
getInitiatorCredentials(): Promise<BackstageCredentials>;
|
|
155
161
|
templateInfo?: TemplateInfo;
|
|
156
162
|
/**
|
|
157
163
|
* Whether this action invocation is a dry-run or not.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/plugin-scaffolder-node",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0-next.1",
|
|
4
4
|
"description": "The plugin-scaffolder-node module for @backstage/plugin-scaffolder-backend",
|
|
5
5
|
"backstage": {
|
|
6
6
|
"role": "node-library"
|
|
@@ -44,12 +44,12 @@
|
|
|
44
44
|
"test": "backstage-cli package test"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@backstage/backend-common": "^0.21.
|
|
48
|
-
"@backstage/backend-plugin-api": "^0.6.
|
|
47
|
+
"@backstage/backend-common": "^0.21.4-next.1",
|
|
48
|
+
"@backstage/backend-plugin-api": "^0.6.14-next.1",
|
|
49
49
|
"@backstage/catalog-model": "^1.4.5-next.0",
|
|
50
50
|
"@backstage/errors": "^1.2.4-next.0",
|
|
51
|
-
"@backstage/integration": "^1.9.1-next.
|
|
52
|
-
"@backstage/plugin-scaffolder-common": "^1.5.1-next.
|
|
51
|
+
"@backstage/integration": "^1.9.1-next.1",
|
|
52
|
+
"@backstage/plugin-scaffolder-common": "^1.5.1-next.1",
|
|
53
53
|
"@backstage/types": "^1.1.1",
|
|
54
54
|
"fs-extra": "^11.2.0",
|
|
55
55
|
"globby": "^11.0.0",
|
|
@@ -60,8 +60,8 @@
|
|
|
60
60
|
"zod-to-json-schema": "^3.20.4"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
|
-
"@backstage/backend-test-utils": "^0.3.
|
|
64
|
-
"@backstage/cli": "^0.25.3-next.
|
|
65
|
-
"@backstage/config": "^1.
|
|
63
|
+
"@backstage/backend-test-utils": "^0.3.4-next.1",
|
|
64
|
+
"@backstage/cli": "^0.25.3-next.1",
|
|
65
|
+
"@backstage/config": "^1.2.0-next.1"
|
|
66
66
|
}
|
|
67
67
|
}
|