@backstage/plugin-catalog-node 1.0.0 → 1.0.2-next.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 +24 -0
- package/alpha/package.json +1 -1
- package/dist/index.alpha.d.ts +4 -4
- package/dist/index.beta.d.ts +2 -2
- package/dist/index.cjs.js +2 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# @backstage/plugin-catalog-node
|
|
2
2
|
|
|
3
|
+
## 1.0.2-next.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 62788b2ee8: The experimental `CatalogProcessingExtensionPoint` now accepts multiple providers and processors at once.
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
- @backstage/backend-plugin-api@0.1.2-next.0
|
|
10
|
+
|
|
11
|
+
## 1.0.1
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- 0599732ec0: Refactored experimental backend system with new type names.
|
|
16
|
+
- 56e1b4b89c: Fixed typos in alpha types.
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
- @backstage/backend-plugin-api@0.1.1
|
|
19
|
+
|
|
20
|
+
## 1.0.1-next.0
|
|
21
|
+
|
|
22
|
+
### Patch Changes
|
|
23
|
+
|
|
24
|
+
- Updated dependencies
|
|
25
|
+
- @backstage/backend-plugin-api@0.1.1-next.0
|
|
26
|
+
|
|
3
27
|
## 1.0.0
|
|
4
28
|
|
|
5
29
|
### Major Changes
|
package/alpha/package.json
CHANGED
package/dist/index.alpha.d.ts
CHANGED
|
@@ -8,21 +8,21 @@
|
|
|
8
8
|
|
|
9
9
|
import { CompoundEntityRef } from '@backstage/catalog-model';
|
|
10
10
|
import { Entity } from '@backstage/catalog-model';
|
|
11
|
+
import { ExtensionPoint } from '@backstage/backend-plugin-api';
|
|
11
12
|
import { JsonValue } from '@backstage/types';
|
|
12
|
-
import { ServiceRef } from '@backstage/backend-plugin-api';
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* @alpha
|
|
16
16
|
*/
|
|
17
17
|
export declare interface CatalogProcessingExtensionPoint {
|
|
18
|
-
addProcessor(
|
|
19
|
-
addEntityProvider(
|
|
18
|
+
addProcessor(...processors: Array<CatalogProcessor | Array<CatalogProcessor>>): void;
|
|
19
|
+
addEntityProvider(...providers: Array<EntityProvider | Array<EntityProvider>>): void;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
23
|
* @alpha
|
|
24
24
|
*/
|
|
25
|
-
export declare const
|
|
25
|
+
export declare const catalogProcessingExtensionPoint: ExtensionPoint<CatalogProcessingExtensionPoint>;
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
28
|
* @public
|
package/dist/index.beta.d.ts
CHANGED
|
@@ -8,12 +8,12 @@
|
|
|
8
8
|
|
|
9
9
|
import { CompoundEntityRef } from '@backstage/catalog-model';
|
|
10
10
|
import { Entity } from '@backstage/catalog-model';
|
|
11
|
+
import { ExtensionPoint } from '@backstage/backend-plugin-api';
|
|
11
12
|
import { JsonValue } from '@backstage/types';
|
|
12
|
-
import { ServiceRef } from '@backstage/backend-plugin-api';
|
|
13
13
|
|
|
14
14
|
/* Excluded from this release type: CatalogProcessingExtensionPoint */
|
|
15
15
|
|
|
16
|
-
/* Excluded from this release type:
|
|
16
|
+
/* Excluded from this release type: catalogProcessingExtensionPoint */
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* @public
|
package/dist/index.cjs.js
CHANGED
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var backendPluginApi = require('@backstage/backend-plugin-api');
|
|
6
6
|
var errors = require('@backstage/errors');
|
|
7
7
|
|
|
8
|
-
const
|
|
8
|
+
const catalogProcessingExtensionPoint = backendPluginApi.createExtensionPoint({
|
|
9
9
|
id: "catalog.processing"
|
|
10
10
|
});
|
|
11
11
|
|
|
@@ -41,6 +41,6 @@ const processingResult = Object.freeze({
|
|
|
41
41
|
}
|
|
42
42
|
});
|
|
43
43
|
|
|
44
|
-
exports.
|
|
44
|
+
exports.catalogProcessingExtensionPoint = catalogProcessingExtensionPoint;
|
|
45
45
|
exports.processingResult = processingResult;
|
|
46
46
|
//# sourceMappingURL=index.cjs.js.map
|
package/dist/index.cjs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs.js","sources":["../src/extensions.ts","../src/api/processingResult.ts"],"sourcesContent":["/*\n * Copyright 2022 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport {
|
|
1
|
+
{"version":3,"file":"index.cjs.js","sources":["../src/extensions.ts","../src/api/processingResult.ts"],"sourcesContent":["/*\n * Copyright 2022 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { createExtensionPoint } from '@backstage/backend-plugin-api';\nimport { EntityProvider } from './api';\nimport { CatalogProcessor } from './api/processor';\n\n/**\n * @alpha\n */\nexport interface CatalogProcessingExtensionPoint {\n addProcessor(\n ...processors: Array<CatalogProcessor | Array<CatalogProcessor>>\n ): void;\n addEntityProvider(\n ...providers: Array<EntityProvider | Array<EntityProvider>>\n ): void;\n}\n\n/**\n * @alpha\n */\nexport const catalogProcessingExtensionPoint =\n createExtensionPoint<CatalogProcessingExtensionPoint>({\n id: 'catalog.processing',\n });\n","/*\n * Copyright 2020 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { InputError, NotFoundError } from '@backstage/errors';\nimport { Entity } from '@backstage/catalog-model';\nimport { CatalogProcessorResult } from './processor';\nimport { EntityRelationSpec, LocationSpec } from './common';\n\n/**\n * Factory functions for the standard processing result types.\n *\n * @public\n */\nexport const processingResult = Object.freeze({\n notFoundError(\n atLocation: LocationSpec,\n message: string,\n ): CatalogProcessorResult {\n return {\n type: 'error',\n location: atLocation,\n error: new NotFoundError(message),\n };\n },\n\n inputError(\n atLocation: LocationSpec,\n message: string,\n ): CatalogProcessorResult {\n return {\n type: 'error',\n location: atLocation,\n error: new InputError(message),\n };\n },\n\n generalError(\n atLocation: LocationSpec,\n message: string,\n ): CatalogProcessorResult {\n return { type: 'error', location: atLocation, error: new Error(message) };\n },\n\n location(newLocation: LocationSpec): CatalogProcessorResult {\n return { type: 'location', location: newLocation };\n },\n\n entity(atLocation: LocationSpec, newEntity: Entity): CatalogProcessorResult {\n return { type: 'entity', location: atLocation, entity: newEntity };\n },\n\n relation(spec: EntityRelationSpec): CatalogProcessorResult {\n return { type: 'relation', relation: spec };\n },\n\n refresh(key: string): CatalogProcessorResult {\n return { type: 'refresh', key };\n },\n} as const);\n"],"names":["createExtensionPoint","NotFoundError","InputError"],"mappings":";;;;;;;AACY,MAAC,+BAA+B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E,GAAG,EAAE,CAAC;AACpC,GAAG;AACH,CAAC;;;;;"}
|
package/dist/index.d.ts
CHANGED
|
@@ -8,12 +8,12 @@
|
|
|
8
8
|
|
|
9
9
|
import { CompoundEntityRef } from '@backstage/catalog-model';
|
|
10
10
|
import { Entity } from '@backstage/catalog-model';
|
|
11
|
+
import { ExtensionPoint } from '@backstage/backend-plugin-api';
|
|
11
12
|
import { JsonValue } from '@backstage/types';
|
|
12
|
-
import { ServiceRef } from '@backstage/backend-plugin-api';
|
|
13
13
|
|
|
14
14
|
/* Excluded from this release type: CatalogProcessingExtensionPoint */
|
|
15
15
|
|
|
16
|
-
/* Excluded from this release type:
|
|
16
|
+
/* Excluded from this release type: catalogProcessingExtensionPoint */
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* @public
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/plugin-catalog-node",
|
|
3
3
|
"description": "The plugin-catalog-node module for @backstage/plugin-catalog-backend",
|
|
4
|
-
"version": "1.0.0",
|
|
4
|
+
"version": "1.0.2-next.0",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"license": "Apache-2.0",
|
|
@@ -25,18 +25,18 @@
|
|
|
25
25
|
"postpack": "backstage-cli package postpack"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@backstage/backend-plugin-api": "^0.1.0",
|
|
28
|
+
"@backstage/backend-plugin-api": "^0.1.2-next.0",
|
|
29
29
|
"@backstage/catalog-model": "^1.1.0",
|
|
30
30
|
"@backstage/errors": "1.1.0",
|
|
31
31
|
"@backstage/types": "^1.0.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@backstage/backend-common": "^0.
|
|
35
|
-
"@backstage/cli": "^0.18.0"
|
|
34
|
+
"@backstage/backend-common": "^0.15.1-next.0",
|
|
35
|
+
"@backstage/cli": "^0.18.2-next.0"
|
|
36
36
|
},
|
|
37
37
|
"files": [
|
|
38
38
|
"dist",
|
|
39
39
|
"alpha"
|
|
40
40
|
],
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "c6c0b1978a7ab4d29d813996c56beb7e6b48a268"
|
|
42
42
|
}
|