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

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,43 @@
1
1
  # @backstage/plugin-search-backend-module-pg
2
2
 
3
+ ## 0.5.12-next.3
4
+
5
+ ### Patch Changes
6
+
7
+ - 71114ac50e02: The export for the new backend system has been moved to be the `default` export.
8
+
9
+ For example, if you are currently importing the plugin using the following pattern:
10
+
11
+ ```ts
12
+ import { examplePlugin } from '@backstage/plugin-example-backend';
13
+
14
+ backend.add(examplePlugin);
15
+ ```
16
+
17
+ It should be migrated to this:
18
+
19
+ ```ts
20
+ backend.add(import('@backstage/plugin-example-backend'));
21
+ ```
22
+
23
+ - Updated dependencies
24
+ - @backstage/config@1.1.0-next.2
25
+ - @backstage/plugin-search-common@1.2.6-next.2
26
+ - @backstage/backend-plugin-api@0.6.3-next.3
27
+ - @backstage/backend-common@0.19.5-next.3
28
+ - @backstage/plugin-search-backend-node@1.2.7-next.3
29
+
30
+ ## 0.5.12-next.2
31
+
32
+ ### Patch Changes
33
+
34
+ - Updated dependencies
35
+ - @backstage/config@1.1.0-next.1
36
+ - @backstage/backend-common@0.19.5-next.2
37
+ - @backstage/backend-plugin-api@0.6.3-next.2
38
+ - @backstage/plugin-search-backend-node@1.2.7-next.2
39
+ - @backstage/plugin-search-common@1.2.6-next.1
40
+
3
41
  ## 0.5.12-next.1
4
42
 
5
43
  ### Patch Changes
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-search-backend-module-pg",
3
- "version": "0.5.12-next.1",
3
+ "version": "0.5.12-next.3",
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.1",
4
+ "version": "0.5.12-next.3",
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.1",
44
- "@backstage/backend-plugin-api": "^0.6.3-next.1",
45
- "@backstage/config": "^1.1.0-next.0",
46
- "@backstage/plugin-search-backend-node": "^1.2.7-next.1",
47
- "@backstage/plugin-search-common": "^1.2.6-next.0",
43
+ "@backstage/backend-common": "^0.19.5-next.3",
44
+ "@backstage/backend-plugin-api": "^0.6.3-next.3",
45
+ "@backstage/config": "^1.1.0-next.2",
46
+ "@backstage/plugin-search-backend-node": "^1.2.7-next.3",
47
+ "@backstage/plugin-search-common": "^1.2.6-next.2",
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.1",
55
- "@backstage/cli": "^0.22.13-next.1"
54
+ "@backstage/backend-test-utils": "^0.2.3-next.3",
55
+ "@backstage/cli": "^0.22.13-next.3"
56
56
  },
57
57
  "files": [
58
58
  "dist",