@backstage/plugin-scaffolder-node 0.4.0-next.1 → 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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,44 @@
1
1
  # @backstage/plugin-scaffolder-node
2
2
 
3
+ ## 0.4.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 02ee466: **DEPRECATION** - Deprecated the `logStream` in the `ActionContext`. Please move to using `ctx.logger.x` instead.
8
+ - aa543c9: Update task context type to contain the new auth initiator credentials.
9
+
10
+ ### Patch Changes
11
+
12
+ - 85f4723: Fixed file corruption for non UTF-8 data in fetch contents
13
+ - 984abfa: Fixing the lost of the initial state after a task recovery.
14
+ - c6b132e: Introducing checkpoints for scaffolder task action idempotency
15
+ - bbd1fe1: Made "checkpoint" on scaffolder action context non-optional
16
+ - Updated dependencies
17
+ - @backstage/backend-common@0.21.4
18
+ - @backstage/integration@1.9.1
19
+ - @backstage/errors@1.2.4
20
+ - @backstage/backend-plugin-api@0.6.14
21
+ - @backstage/catalog-model@1.4.5
22
+ - @backstage/types@1.1.1
23
+ - @backstage/plugin-scaffolder-common@1.5.1
24
+
25
+ ## 0.4.0-next.2
26
+
27
+ ### Minor Changes
28
+
29
+ - 02ee466: **DEPRECATION** - Deprecated the `logStream` in the `ActionContext`. Please move to using `ctx.logger.x` instead.
30
+
31
+ ### Patch Changes
32
+
33
+ - Updated dependencies
34
+ - @backstage/integration@1.9.1-next.2
35
+ - @backstage/backend-common@0.21.4-next.2
36
+ - @backstage/backend-plugin-api@0.6.14-next.2
37
+ - @backstage/catalog-model@1.4.5-next.0
38
+ - @backstage/errors@1.2.4-next.0
39
+ - @backstage/types@1.1.1
40
+ - @backstage/plugin-scaffolder-common@1.5.1-next.1
41
+
3
42
  ## 0.4.0-next.1
4
43
 
5
44
  ### Minor Changes
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-scaffolder-node",
3
- "version": "0.4.0-next.1",
3
+ "version": "0.4.0",
4
4
  "main": "../dist/alpha.cjs.js",
5
5
  "types": "../dist/alpha.d.ts"
6
6
  }
package/dist/index.d.ts CHANGED
@@ -44,6 +44,7 @@ type SerializedTask = {
44
44
  lastHeartbeatAt?: string;
45
45
  createdBy?: string;
46
46
  secrets?: TaskSecrets;
47
+ state?: JsonObject;
47
48
  };
48
49
  /**
49
50
  * TaskEventType
@@ -144,6 +145,7 @@ interface TaskBroker {
144
145
  */
145
146
  type ActionContext<TActionInput extends JsonObject, TActionOutput extends JsonObject = JsonObject> = {
146
147
  logger: Logger;
148
+ /** @deprecated - use `ctx.logger` instead */
147
149
  logStream: Writable;
148
150
  secrets?: TaskSecrets;
149
151
  workspacePath: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-scaffolder-node",
3
- "version": "0.4.0-next.1",
3
+ "version": "0.4.0",
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.4-next.1",
48
- "@backstage/backend-plugin-api": "^0.6.14-next.1",
49
- "@backstage/catalog-model": "^1.4.5-next.0",
50
- "@backstage/errors": "^1.2.4-next.0",
51
- "@backstage/integration": "^1.9.1-next.1",
52
- "@backstage/plugin-scaffolder-common": "^1.5.1-next.1",
47
+ "@backstage/backend-common": "^0.21.4",
48
+ "@backstage/backend-plugin-api": "^0.6.14",
49
+ "@backstage/catalog-model": "^1.4.5",
50
+ "@backstage/errors": "^1.2.4",
51
+ "@backstage/integration": "^1.9.1",
52
+ "@backstage/plugin-scaffolder-common": "^1.5.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.4-next.1",
64
- "@backstage/cli": "^0.25.3-next.1",
65
- "@backstage/config": "^1.2.0-next.1"
63
+ "@backstage/backend-test-utils": "^0.3.4",
64
+ "@backstage/cli": "^0.26.0",
65
+ "@backstage/config": "^1.2.0"
66
66
  }
67
67
  }