@backstage/plugin-search-backend-module-pg 0.5.12-next.2 → 0.5.12

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,60 @@
1
1
  # @backstage/plugin-search-backend-module-pg
2
2
 
3
+ ## 0.5.12
4
+
5
+ ### Patch Changes
6
+
7
+ - 4ccf9204bc95: Added `indexerBatchSize` option to be able to control the size of the batches being indexed. Also added a debug log entry to list out all the entities in the batch
8
+ - 71114ac50e02: The export for the new backend system has been moved to be the `default` export.
9
+
10
+ For example, if you are currently importing the plugin using the following pattern:
11
+
12
+ ```ts
13
+ import { examplePlugin } from '@backstage/plugin-example-backend';
14
+
15
+ backend.add(examplePlugin);
16
+ ```
17
+
18
+ It should be migrated to this:
19
+
20
+ ```ts
21
+ backend.add(import('@backstage/plugin-example-backend'));
22
+ ```
23
+
24
+ - Updated dependencies
25
+ - @backstage/backend-common@0.19.5
26
+ - @backstage/config@1.1.0
27
+ - @backstage/plugin-search-common@1.2.6
28
+ - @backstage/backend-plugin-api@0.6.3
29
+ - @backstage/plugin-search-backend-node@1.2.7
30
+
31
+ ## 0.5.12-next.3
32
+
33
+ ### Patch Changes
34
+
35
+ - 71114ac50e02: The export for the new backend system has been moved to be the `default` export.
36
+
37
+ For example, if you are currently importing the plugin using the following pattern:
38
+
39
+ ```ts
40
+ import { examplePlugin } from '@backstage/plugin-example-backend';
41
+
42
+ backend.add(examplePlugin);
43
+ ```
44
+
45
+ It should be migrated to this:
46
+
47
+ ```ts
48
+ backend.add(import('@backstage/plugin-example-backend'));
49
+ ```
50
+
51
+ - Updated dependencies
52
+ - @backstage/config@1.1.0-next.2
53
+ - @backstage/plugin-search-common@1.2.6-next.2
54
+ - @backstage/backend-plugin-api@0.6.3-next.3
55
+ - @backstage/backend-common@0.19.5-next.3
56
+ - @backstage/plugin-search-backend-node@1.2.7-next.3
57
+
3
58
  ## 0.5.12-next.2
4
59
 
5
60
  ### Patch Changes
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-search-backend-module-pg",
3
- "version": "0.5.12-next.2",
3
+ "version": "0.5.12",
4
4
  "main": "../dist/alpha.cjs.js",
5
5
  "types": "../dist/alpha.d.ts"
6
6
  }
package/dist/alpha.cjs.js CHANGED
@@ -1,21 +1,19 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  var backendPluginApi = require('@backstage/backend-plugin-api');
6
- var alpha = require('@backstage/plugin-search-backend-node/alpha');
4
+ var alpha$1 = require('@backstage/plugin-search-backend-node/alpha');
7
5
  var PgSearchEngine = require('./cjs/PgSearchEngine-6782a8f8.cjs.js');
8
6
  require('@backstage/backend-common');
9
7
  require('@backstage/plugin-search-backend-node');
10
8
  require('uuid');
11
9
 
12
- const searchModulePostgresEngine = backendPluginApi.createBackendModule({
10
+ var alpha = backendPluginApi.createBackendModule({
13
11
  moduleId: "postgresEngine",
14
12
  pluginId: "search",
15
13
  register(env) {
16
14
  env.registerInit({
17
15
  deps: {
18
- searchEngineRegistry: alpha.searchEngineRegistryExtensionPoint,
16
+ searchEngineRegistry: alpha$1.searchEngineRegistryExtensionPoint,
19
17
  database: backendPluginApi.coreServices.database,
20
18
  config: backendPluginApi.coreServices.rootConfig
21
19
  },
@@ -30,5 +28,5 @@ const searchModulePostgresEngine = backendPluginApi.createBackendModule({
30
28
  }
31
29
  });
32
30
 
33
- exports.searchModulePostgresEngine = searchModulePostgresEngine;
31
+ module.exports = alpha;
34
32
  //# sourceMappingURL=alpha.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"alpha.cjs.js","sources":["../src/alpha.ts"],"sourcesContent":["/*\n * Copyright 2023 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 {\n coreServices,\n createBackendModule,\n} from '@backstage/backend-plugin-api';\nimport { searchEngineRegistryExtensionPoint } from '@backstage/plugin-search-backend-node/alpha';\nimport { PgSearchEngine } from './PgSearchEngine';\n\n/**\n * @alpha\n * Search backend module for the Postgres engine.\n */\nexport const searchModulePostgresEngine = createBackendModule({\n moduleId: 'postgresEngine',\n pluginId: 'search',\n register(env) {\n env.registerInit({\n deps: {\n searchEngineRegistry: searchEngineRegistryExtensionPoint,\n database: coreServices.database,\n config: coreServices.rootConfig,\n },\n async init({ searchEngineRegistry, database, config }) {\n searchEngineRegistry.setSearchEngine(\n await PgSearchEngine.fromConfig(config, {\n database: database,\n }),\n );\n },\n });\n },\n});\n"],"names":["createBackendModule","searchEngineRegistryExtensionPoint","coreServices","PgSearchEngine"],"mappings":";;;;;;;;;;;AA0BO,MAAM,6BAA6BA,oCAAoB,CAAA;AAAA,EAC5D,QAAU,EAAA,gBAAA;AAAA,EACV,QAAU,EAAA,QAAA;AAAA,EACV,SAAS,GAAK,EAAA;AACZ,IAAA,GAAA,CAAI,YAAa,CAAA;AAAA,MACf,IAAM,EAAA;AAAA,QACJ,oBAAsB,EAAAC,wCAAA;AAAA,QACtB,UAAUC,6BAAa,CAAA,QAAA;AAAA,QACvB,QAAQA,6BAAa,CAAA,UAAA;AAAA,OACvB;AAAA,MACA,MAAM,IAAK,CAAA,EAAE,oBAAsB,EAAA,QAAA,EAAU,QAAU,EAAA;AACrD,QAAqB,oBAAA,CAAA,eAAA;AAAA,UACnB,MAAMC,6BAAe,CAAA,UAAA,CAAW,MAAQ,EAAA;AAAA,YACtC,QAAA;AAAA,WACD,CAAA;AAAA,SACH,CAAA;AAAA,OACF;AAAA,KACD,CAAA,CAAA;AAAA,GACH;AACF,CAAC;;;;"}
1
+ {"version":3,"file":"alpha.cjs.js","sources":["../src/alpha.ts"],"sourcesContent":["/*\n * Copyright 2023 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 {\n coreServices,\n createBackendModule,\n} from '@backstage/backend-plugin-api';\nimport { searchEngineRegistryExtensionPoint } from '@backstage/plugin-search-backend-node/alpha';\nimport { PgSearchEngine } from './PgSearchEngine';\n\n/**\n * @alpha\n * Search backend module for the Postgres engine.\n */\nexport default createBackendModule({\n moduleId: 'postgresEngine',\n pluginId: 'search',\n register(env) {\n env.registerInit({\n deps: {\n searchEngineRegistry: searchEngineRegistryExtensionPoint,\n database: coreServices.database,\n config: coreServices.rootConfig,\n },\n async init({ searchEngineRegistry, database, config }) {\n searchEngineRegistry.setSearchEngine(\n await PgSearchEngine.fromConfig(config, {\n database: database,\n }),\n );\n },\n });\n },\n});\n"],"names":["createBackendModule","searchEngineRegistryExtensionPoint","coreServices","PgSearchEngine"],"mappings":";;;;;;;;;AA0BA,YAAeA,oCAAoB,CAAA;AAAA,EACjC,QAAU,EAAA,gBAAA;AAAA,EACV,QAAU,EAAA,QAAA;AAAA,EACV,SAAS,GAAK,EAAA;AACZ,IAAA,GAAA,CAAI,YAAa,CAAA;AAAA,MACf,IAAM,EAAA;AAAA,QACJ,oBAAsB,EAAAC,0CAAA;AAAA,QACtB,UAAUC,6BAAa,CAAA,QAAA;AAAA,QACvB,QAAQA,6BAAa,CAAA,UAAA;AAAA,OACvB;AAAA,MACA,MAAM,IAAK,CAAA,EAAE,oBAAsB,EAAA,QAAA,EAAU,QAAU,EAAA;AACrD,QAAqB,oBAAA,CAAA,eAAA;AAAA,UACnB,MAAMC,6BAAe,CAAA,UAAA,CAAW,MAAQ,EAAA;AAAA,YACtC,QAAA;AAAA,WACD,CAAA;AAAA,SACH,CAAA;AAAA,OACF;AAAA,KACD,CAAA,CAAA;AAAA,GACH;AACF,CAAC,CAAA;;;;"}
package/dist/alpha.d.ts CHANGED
@@ -4,6 +4,6 @@ import * as _backstage_backend_plugin_api from '@backstage/backend-plugin-api';
4
4
  * @alpha
5
5
  * Search backend module for the Postgres engine.
6
6
  */
7
- declare const searchModulePostgresEngine: () => _backstage_backend_plugin_api.BackendFeature;
7
+ declare const _default: () => _backstage_backend_plugin_api.BackendFeature;
8
8
 
9
- export { searchModulePostgresEngine };
9
+ export { _default as default };
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.5.12-next.2",
4
+ "version": "0.5.12",
5
5
  "main": "./dist/index.cjs.js",
6
6
  "types": "./dist/index.d.ts",
7
7
  "license": "Apache-2.0",
@@ -40,19 +40,19 @@
40
40
  "clean": "backstage-cli package clean"
41
41
  },
42
42
  "dependencies": {
43
- "@backstage/backend-common": "^0.19.5-next.2",
44
- "@backstage/backend-plugin-api": "^0.6.3-next.2",
45
- "@backstage/config": "^1.1.0-next.1",
46
- "@backstage/plugin-search-backend-node": "^1.2.7-next.2",
47
- "@backstage/plugin-search-common": "^1.2.6-next.1",
43
+ "@backstage/backend-common": "^0.19.5",
44
+ "@backstage/backend-plugin-api": "^0.6.3",
45
+ "@backstage/config": "^1.1.0",
46
+ "@backstage/plugin-search-backend-node": "^1.2.7",
47
+ "@backstage/plugin-search-common": "^1.2.6",
48
48
  "knex": "^2.0.0",
49
49
  "lodash": "^4.17.21",
50
50
  "uuid": "^8.3.2",
51
51
  "winston": "^3.2.1"
52
52
  },
53
53
  "devDependencies": {
54
- "@backstage/backend-test-utils": "^0.2.3-next.2",
55
- "@backstage/cli": "^0.22.13-next.2"
54
+ "@backstage/backend-test-utils": "^0.2.3",
55
+ "@backstage/cli": "^0.22.13"
56
56
  },
57
57
  "files": [
58
58
  "dist",