@backstage/plugin-catalog-backend 2.0.0 → 2.0.1-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
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @backstage/plugin-catalog-backend
|
|
2
2
|
|
|
3
|
+
## 2.0.1-next.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 4654a78: Update `refresh_state_references.id` to be a big int
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
- @backstage/backend-plugin-api@1.4.0-next.0
|
|
10
|
+
- @backstage/plugin-catalog-node@1.17.1-next.0
|
|
11
|
+
- @backstage/plugin-events-node@0.4.12-next.0
|
|
12
|
+
- @backstage/plugin-permission-node@0.10.1-next.0
|
|
13
|
+
- @backstage/backend-openapi-utils@0.5.4-next.0
|
|
14
|
+
|
|
3
15
|
## 2.0.0
|
|
4
16
|
|
|
5
17
|
### Major Changes
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2024 The Backstage Authors
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* @param {import('knex').Knex} knex
|
|
19
|
+
* @returns {Promise<void>}
|
|
20
|
+
*/
|
|
21
|
+
exports.up = async function up(knex) {
|
|
22
|
+
if (knex.client.config.client.includes('pg')) {
|
|
23
|
+
await knex.schema.raw(
|
|
24
|
+
`ALTER TABLE refresh_state_references ALTER COLUMN id TYPE bigint;`,
|
|
25
|
+
);
|
|
26
|
+
await knex.schema.raw(
|
|
27
|
+
`ALTER SEQUENCE refresh_state_references_id_seq AS bigint MAXVALUE 9223372036854775807;`,
|
|
28
|
+
);
|
|
29
|
+
} else if (knex.client.config.client.includes('mysql')) {
|
|
30
|
+
await knex.schema.raw(
|
|
31
|
+
`ALTER TABLE refresh_state_references MODIFY id bigint AUTO_INCREMENT;`,
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* @param {import('knex').Knex} knex
|
|
38
|
+
* @returns {Promise<void>}
|
|
39
|
+
*/
|
|
40
|
+
exports.down = async function down(knex) {
|
|
41
|
+
if (knex.client.config.client.includes('pg')) {
|
|
42
|
+
await knex.schema.raw(
|
|
43
|
+
`ALTER SEQUENCE refresh_state_references_id_seq AS integer MAXVALUE 2147483647;`,
|
|
44
|
+
);
|
|
45
|
+
await knex.schema.raw(
|
|
46
|
+
`ALTER TABLE refresh_state_references ALTER COLUMN id TYPE integer;`,
|
|
47
|
+
);
|
|
48
|
+
} else if (knex.client.config.client.includes('mysql')) {
|
|
49
|
+
await knex.schema.raw(
|
|
50
|
+
`ALTER TABLE refresh_state_references MODIFY id integer AUTO_INCREMENT;`,
|
|
51
|
+
);
|
|
52
|
+
}
|
|
53
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/plugin-catalog-backend",
|
|
3
|
-
"version": "2.0.0",
|
|
3
|
+
"version": "2.0.1-next.0",
|
|
4
4
|
"description": "The Backstage backend plugin that provides the Backstage catalog",
|
|
5
5
|
"backstage": {
|
|
6
6
|
"role": "backend-plugin",
|
|
@@ -73,19 +73,19 @@
|
|
|
73
73
|
"test": "backstage-cli package test"
|
|
74
74
|
},
|
|
75
75
|
"dependencies": {
|
|
76
|
-
"@backstage/backend-openapi-utils": "
|
|
77
|
-
"@backstage/backend-plugin-api": "
|
|
78
|
-
"@backstage/catalog-client": "
|
|
79
|
-
"@backstage/catalog-model": "
|
|
80
|
-
"@backstage/config": "
|
|
81
|
-
"@backstage/errors": "
|
|
82
|
-
"@backstage/integration": "
|
|
83
|
-
"@backstage/plugin-catalog-common": "
|
|
84
|
-
"@backstage/plugin-catalog-node": "
|
|
85
|
-
"@backstage/plugin-events-node": "
|
|
86
|
-
"@backstage/plugin-permission-common": "
|
|
87
|
-
"@backstage/plugin-permission-node": "
|
|
88
|
-
"@backstage/types": "
|
|
76
|
+
"@backstage/backend-openapi-utils": "0.5.4-next.0",
|
|
77
|
+
"@backstage/backend-plugin-api": "1.4.0-next.0",
|
|
78
|
+
"@backstage/catalog-client": "1.10.0",
|
|
79
|
+
"@backstage/catalog-model": "1.7.4",
|
|
80
|
+
"@backstage/config": "1.3.2",
|
|
81
|
+
"@backstage/errors": "1.2.7",
|
|
82
|
+
"@backstage/integration": "1.17.0",
|
|
83
|
+
"@backstage/plugin-catalog-common": "1.1.4",
|
|
84
|
+
"@backstage/plugin-catalog-node": "1.17.1-next.0",
|
|
85
|
+
"@backstage/plugin-events-node": "0.4.12-next.0",
|
|
86
|
+
"@backstage/plugin-permission-common": "0.9.0",
|
|
87
|
+
"@backstage/plugin-permission-node": "0.10.1-next.0",
|
|
88
|
+
"@backstage/types": "1.2.1",
|
|
89
89
|
"@opentelemetry/api": "^1.9.0",
|
|
90
90
|
"codeowners-utils": "^1.0.2",
|
|
91
91
|
"core-js": "^3.6.5",
|
|
@@ -106,12 +106,12 @@
|
|
|
106
106
|
"zod": "^3.22.4"
|
|
107
107
|
},
|
|
108
108
|
"devDependencies": {
|
|
109
|
-
"@backstage/backend-defaults": "
|
|
110
|
-
"@backstage/backend-test-utils": "
|
|
111
|
-
"@backstage/cli": "
|
|
112
|
-
"@backstage/plugin-permission-common": "
|
|
113
|
-
"@backstage/repo-tools": "
|
|
114
|
-
"@backstage/test-utils": "
|
|
109
|
+
"@backstage/backend-defaults": "0.10.1-next.0",
|
|
110
|
+
"@backstage/backend-test-utils": "1.6.0-next.0",
|
|
111
|
+
"@backstage/cli": "0.32.1",
|
|
112
|
+
"@backstage/plugin-permission-common": "0.9.0",
|
|
113
|
+
"@backstage/repo-tools": "0.14.0-next.0",
|
|
114
|
+
"@backstage/test-utils": "1.7.8",
|
|
115
115
|
"@types/core-js": "^2.5.4",
|
|
116
116
|
"@types/express": "^4.17.6",
|
|
117
117
|
"@types/git-url-parse": "^9.0.0",
|