@backstage/plugin-catalog-backend-module-incremental-ingestion 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 +54 -0
- package/alpha/package.json +1 -1
- package/package.json +14 -14
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,59 @@
|
|
|
1
1
|
# @backstage/plugin-catalog-backend-module-incremental-ingestion
|
|
2
2
|
|
|
3
|
+
## 0.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- b1cc10696f2f: **BREAKING** Allow incremental event handlers to be async; Force event handler
|
|
8
|
+
to indicate if it made a change. Instead of returning `null` or `undefined` from an event
|
|
9
|
+
handler to indicate no-oop, instead return the value { type: "ignored" }.
|
|
10
|
+
|
|
11
|
+
**before**
|
|
12
|
+
|
|
13
|
+
```javascript
|
|
14
|
+
import { createDelta, shouldIgnore } from "./my-delta-creater";
|
|
15
|
+
|
|
16
|
+
eventHandler: {
|
|
17
|
+
onEvent(params) {
|
|
18
|
+
if (shouldIgnore(params)) {
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
return createDelta(params);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
**after**
|
|
27
|
+
|
|
28
|
+
```javascript
|
|
29
|
+
import { createDelta, shouldIgnore } from "./my-delta-creater";
|
|
30
|
+
|
|
31
|
+
eventHandler: {
|
|
32
|
+
async onEvent(params) {
|
|
33
|
+
if (shouldIgnore(params) {
|
|
34
|
+
return { type: "ignored" };
|
|
35
|
+
}
|
|
36
|
+
// code to create delta can now be async if needed
|
|
37
|
+
return await createDelta(params);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
### Patch Changes
|
|
43
|
+
|
|
44
|
+
- e1d615757f48: Update readme and instructions
|
|
45
|
+
- Updated dependencies
|
|
46
|
+
- @backstage/errors@1.2.1
|
|
47
|
+
- @backstage/backend-common@0.19.1
|
|
48
|
+
- @backstage/plugin-catalog-backend@1.11.0
|
|
49
|
+
- @backstage/plugin-catalog-node@1.4.0
|
|
50
|
+
- @backstage/backend-plugin-api@0.5.4
|
|
51
|
+
- @backstage/backend-tasks@0.5.4
|
|
52
|
+
- @backstage/catalog-model@1.4.1
|
|
53
|
+
- @backstage/config@1.0.8
|
|
54
|
+
- @backstage/plugin-events-node@0.2.8
|
|
55
|
+
- @backstage/plugin-permission-common@0.7.7
|
|
56
|
+
|
|
3
57
|
## 0.4.0-next.1
|
|
4
58
|
|
|
5
59
|
### Minor Changes
|
package/alpha/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/plugin-catalog-backend-module-incremental-ingestion",
|
|
3
3
|
"description": "An entity provider for streaming large asset sources into the catalog",
|
|
4
|
-
"version": "0.4.0
|
|
4
|
+
"version": "0.4.0",
|
|
5
5
|
"main": "./dist/index.cjs.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
7
7
|
"license": "Apache-2.0",
|
|
@@ -43,16 +43,16 @@
|
|
|
43
43
|
"postpack": "backstage-cli package postpack"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@backstage/backend-common": "^0.19.1
|
|
47
|
-
"@backstage/backend-plugin-api": "^0.5.4
|
|
48
|
-
"@backstage/backend-tasks": "^0.5.4
|
|
49
|
-
"@backstage/catalog-model": "^1.4.1
|
|
46
|
+
"@backstage/backend-common": "^0.19.1",
|
|
47
|
+
"@backstage/backend-plugin-api": "^0.5.4",
|
|
48
|
+
"@backstage/backend-tasks": "^0.5.4",
|
|
49
|
+
"@backstage/catalog-model": "^1.4.1",
|
|
50
50
|
"@backstage/config": "^1.0.8",
|
|
51
|
-
"@backstage/errors": "^1.2.1
|
|
52
|
-
"@backstage/plugin-catalog-backend": "^1.11.0
|
|
53
|
-
"@backstage/plugin-catalog-node": "^1.4.0
|
|
54
|
-
"@backstage/plugin-events-node": "^0.2.8
|
|
55
|
-
"@backstage/plugin-permission-common": "^0.7.7
|
|
51
|
+
"@backstage/errors": "^1.2.1",
|
|
52
|
+
"@backstage/plugin-catalog-backend": "^1.11.0",
|
|
53
|
+
"@backstage/plugin-catalog-node": "^1.4.0",
|
|
54
|
+
"@backstage/plugin-events-node": "^0.2.8",
|
|
55
|
+
"@backstage/plugin-permission-common": "^0.7.7",
|
|
56
56
|
"@types/express": "^4.17.6",
|
|
57
57
|
"@types/luxon": "^3.0.0",
|
|
58
58
|
"express": "^4.17.1",
|
|
@@ -64,10 +64,10 @@
|
|
|
64
64
|
"winston": "^3.2.1"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
|
-
"@backstage/backend-app-api": "^0.4.5
|
|
68
|
-
"@backstage/backend-defaults": "^0.1.12
|
|
69
|
-
"@backstage/backend-test-utils": "^0.1.39
|
|
70
|
-
"@backstage/cli": "^0.22.9
|
|
67
|
+
"@backstage/backend-app-api": "^0.4.5",
|
|
68
|
+
"@backstage/backend-defaults": "^0.1.12",
|
|
69
|
+
"@backstage/backend-test-utils": "^0.1.39",
|
|
70
|
+
"@backstage/cli": "^0.22.9"
|
|
71
71
|
},
|
|
72
72
|
"files": [
|
|
73
73
|
"dist",
|