@backstage/plugin-scaffolder-node 0.9.0-next.2 → 0.9.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 +73 -0
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,78 @@
|
|
|
1
1
|
# @backstage/plugin-scaffolder-node
|
|
2
2
|
|
|
3
|
+
## 0.9.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 5863b04: **BREAKING CHANGES**
|
|
8
|
+
|
|
9
|
+
The legacy methods to define `createTemplateActions` have been replaced with the new native `zod` approaches for defining input and output schemas.
|
|
10
|
+
|
|
11
|
+
You can migrate actions that look like the following with the below examples:
|
|
12
|
+
|
|
13
|
+
```ts
|
|
14
|
+
// really old legacy json schema
|
|
15
|
+
createTemplateAction<{ repoUrl: string }, { repoOutput: string }>({
|
|
16
|
+
id: 'test',
|
|
17
|
+
schema: {
|
|
18
|
+
input: {
|
|
19
|
+
type: 'object'
|
|
20
|
+
required: ['repoUrl']
|
|
21
|
+
properties: {
|
|
22
|
+
repoUrl: {
|
|
23
|
+
type: 'string',
|
|
24
|
+
description: 'repository url description'
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
// old zod method
|
|
32
|
+
createTemplateAction({
|
|
33
|
+
id: 'test'
|
|
34
|
+
schema: {
|
|
35
|
+
input: {
|
|
36
|
+
repoUrl: z.string({ description: 'repository url description' })
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
})
|
|
40
|
+
|
|
41
|
+
// new method:
|
|
42
|
+
createTemplateAction({
|
|
43
|
+
id: 'test',
|
|
44
|
+
schema: {
|
|
45
|
+
input: {
|
|
46
|
+
repoUrl: z => z.string({ description: 'repository url description' })
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
})
|
|
50
|
+
|
|
51
|
+
// or for more complex zod types like unions
|
|
52
|
+
createTemplateAction({
|
|
53
|
+
id: 'test',
|
|
54
|
+
schema: {
|
|
55
|
+
input: z => z.object({
|
|
56
|
+
repoUrl: z.string({ description: 'repository url description' })
|
|
57
|
+
})
|
|
58
|
+
}
|
|
59
|
+
})
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
This breaking change also means that `logStream` has been removed entirely from `ActionsContext`, and that the `logger` is now just a `LoggerService` implementation instead. There is no replacement for the `logStream`, if you wish to still keep using a `logStream` we recommend that you create your own stream that writes to `ctx.logger` instead.
|
|
63
|
+
|
|
64
|
+
### Patch Changes
|
|
65
|
+
|
|
66
|
+
- e89d7b6: Use `LoggerService` instead of `Logger`. This is a non-breaking change, as the `LoggerService` is a subset of the `Logger` interface.
|
|
67
|
+
- 9c8ff0c: Update pull request creation filter to include .gitignore files in the created pull request
|
|
68
|
+
- Updated dependencies
|
|
69
|
+
- @backstage/backend-plugin-api@1.4.0
|
|
70
|
+
- @backstage/catalog-model@1.7.4
|
|
71
|
+
- @backstage/errors@1.2.7
|
|
72
|
+
- @backstage/integration@1.17.0
|
|
73
|
+
- @backstage/types@1.2.1
|
|
74
|
+
- @backstage/plugin-scaffolder-common@1.5.11
|
|
75
|
+
|
|
3
76
|
## 0.9.0-next.2
|
|
4
77
|
|
|
5
78
|
### Minor Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/plugin-scaffolder-node",
|
|
3
|
-
"version": "0.9.0
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"description": "The plugin-scaffolder-node module for @backstage/plugin-scaffolder-backend",
|
|
5
5
|
"backstage": {
|
|
6
6
|
"role": "node-library",
|
|
@@ -62,12 +62,12 @@
|
|
|
62
62
|
"test": "backstage-cli package test"
|
|
63
63
|
},
|
|
64
64
|
"dependencies": {
|
|
65
|
-
"@backstage/backend-plugin-api": "1.4.0
|
|
66
|
-
"@backstage/catalog-model": "1.7.4",
|
|
67
|
-
"@backstage/errors": "1.2.7",
|
|
68
|
-
"@backstage/integration": "1.17.0",
|
|
69
|
-
"@backstage/plugin-scaffolder-common": "1.5.11",
|
|
70
|
-
"@backstage/types": "1.2.1",
|
|
65
|
+
"@backstage/backend-plugin-api": "^1.4.0",
|
|
66
|
+
"@backstage/catalog-model": "^1.7.4",
|
|
67
|
+
"@backstage/errors": "^1.2.7",
|
|
68
|
+
"@backstage/integration": "^1.17.0",
|
|
69
|
+
"@backstage/plugin-scaffolder-common": "^1.5.11",
|
|
70
|
+
"@backstage/types": "^1.2.1",
|
|
71
71
|
"@isomorphic-git/pgp-plugin": "^0.0.7",
|
|
72
72
|
"concat-stream": "^2.0.0",
|
|
73
73
|
"fs-extra": "^11.2.0",
|
|
@@ -83,9 +83,9 @@
|
|
|
83
83
|
"zod-to-json-schema": "^3.20.4"
|
|
84
84
|
},
|
|
85
85
|
"devDependencies": {
|
|
86
|
-
"@backstage/backend-test-utils": "1.6.0
|
|
87
|
-
"@backstage/cli": "0.33.0
|
|
88
|
-
"@backstage/config": "1.3.2",
|
|
86
|
+
"@backstage/backend-test-utils": "^1.6.0",
|
|
87
|
+
"@backstage/cli": "^0.33.0",
|
|
88
|
+
"@backstage/config": "^1.3.2",
|
|
89
89
|
"@types/lodash": "^4.14.151"
|
|
90
90
|
}
|
|
91
91
|
}
|