@backstage/plugin-search-backend-module-pg 0.4.0-next.2 → 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 +26 -0
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
# @backstage/plugin-search-backend-module-pg
|
|
2
2
|
|
|
3
|
+
## 0.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 8872cc735d: Fixed a bug in search-backend-module-pg where it ignores the skip migration database options when using the database.
|
|
8
|
+
|
|
9
|
+
To use this new implementation you need to create the instance of `DatabaseDocumentStore` using the `PluginDatabaseManager` instead of `Knex`;
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
import { DatabaseManager, getRootLogger, loadBackendConfig } from '@backstage/backend-common';
|
|
13
|
+
import { DatabaseDocumentStore } from '@backstage/plugin-search-backend-module-pg';
|
|
14
|
+
|
|
15
|
+
const config = await loadBackendConfig({ argv: process.argv, logger: getRootLogger() });
|
|
16
|
+
const databaseManager = DatabaseManager.fromConfig(config, { migrations: { skip: true } });
|
|
17
|
+
const databaseDocumentStore = await DatabaseDocumentStore.create(databaseManager);
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- d669d89206: Minor API signatures cleanup
|
|
23
|
+
- Updated dependencies
|
|
24
|
+
- @backstage/backend-common@0.15.1
|
|
25
|
+
- @backstage/plugin-search-backend-node@1.0.2
|
|
26
|
+
- @backstage/config@1.0.2
|
|
27
|
+
- @backstage/plugin-search-common@1.0.1
|
|
28
|
+
|
|
3
29
|
## 0.4.0-next.2
|
|
4
30
|
|
|
5
31
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/plugin-search-backend-module-pg",
|
|
3
3
|
"description": "A module for the search backend that implements search using PostgreSQL",
|
|
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",
|
|
@@ -23,17 +23,17 @@
|
|
|
23
23
|
"clean": "backstage-cli package clean"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@backstage/backend-common": "^0.15.1
|
|
27
|
-
"@backstage/config": "^1.0.2
|
|
28
|
-
"@backstage/plugin-search-backend-node": "^1.0.2
|
|
29
|
-
"@backstage/plugin-search-common": "^1.0.1
|
|
26
|
+
"@backstage/backend-common": "^0.15.1",
|
|
27
|
+
"@backstage/config": "^1.0.2",
|
|
28
|
+
"@backstage/plugin-search-backend-node": "^1.0.2",
|
|
29
|
+
"@backstage/plugin-search-common": "^1.0.1",
|
|
30
30
|
"knex": "^2.0.0",
|
|
31
31
|
"lodash": "^4.17.21",
|
|
32
32
|
"uuid": "^8.3.2"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@backstage/backend-test-utils": "^0.1.28
|
|
36
|
-
"@backstage/cli": "^0.19.0
|
|
35
|
+
"@backstage/backend-test-utils": "^0.1.28",
|
|
36
|
+
"@backstage/cli": "^0.19.0"
|
|
37
37
|
},
|
|
38
38
|
"files": [
|
|
39
39
|
"dist",
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"config.d.ts"
|
|
42
42
|
],
|
|
43
43
|
"configSchema": "config.d.ts",
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "25b94e63455f1fb170506f9e84e3f430f4b79406"
|
|
45
45
|
}
|