graphile-search 1.20.1 → 1.20.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/esm/plugin.js CHANGED
@@ -20,7 +20,7 @@ import 'graphile-build';
20
20
  import 'graphile-build-pg';
21
21
  import 'graphile-connection-filter';
22
22
  import { TYPES } from '@dataplan/pg';
23
- import { getQueryBuilder } from 'graphile-connection-filter';
23
+ import { getQueryBuilder } from 'graphile-plugin-utils';
24
24
  /**
25
25
  * Read the @searchConfig smart tag from a codec's extensions.
26
26
  * Returns undefined if no searchConfig tag is present.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graphile-search",
3
- "version": "1.20.1",
3
+ "version": "1.20.3",
4
4
  "description": "Unified PostGraphile v5 search plugin — abstracts tsvector, BM25, pg_trgm, and pgvector behind a single adapter-based architecture with composite searchScore",
5
5
  "author": "Constructive <developers@constructive.io>",
6
6
  "homepage": "https://github.com/constructive-io/constructive",
@@ -28,14 +28,17 @@
28
28
  "bugs": {
29
29
  "url": "https://github.com/constructive-io/constructive/issues"
30
30
  },
31
+ "dependencies": {
32
+ "graphile-plugin-utils": "^1.0.2"
33
+ },
31
34
  "devDependencies": {
32
35
  "@types/node": "^22.19.11",
33
36
  "@types/pg": "^8.20.0",
34
- "graphile-connection-filter": "^1.15.1",
35
- "graphile-test": "^4.20.1",
37
+ "graphile-connection-filter": "^1.15.3",
38
+ "graphile-test": "^4.20.2",
36
39
  "makage": "^0.3.0",
37
40
  "pg": "^8.21.0",
38
- "pgsql-test": "^4.19.1"
41
+ "pgsql-test": "^4.19.2"
39
42
  },
40
43
  "peerDependencies": {
41
44
  "@dataplan/pg": "1.0.3",
@@ -62,5 +65,5 @@
62
65
  "hybrid-search",
63
66
  "searchScore"
64
67
  ],
65
- "gitHead": "6235bf0645f56d423fa464404ec1e3283c49e532"
68
+ "gitHead": "fe49621d08cbf93d3b75ee7bb9b0849580980369"
66
69
  }
package/plugin.js CHANGED
@@ -23,7 +23,7 @@ require("graphile-build");
23
23
  require("graphile-build-pg");
24
24
  require("graphile-connection-filter");
25
25
  const pg_1 = require("@dataplan/pg");
26
- const graphile_connection_filter_1 = require("graphile-connection-filter");
26
+ const graphile_plugin_utils_1 = require("graphile-plugin-utils");
27
27
  /**
28
28
  * Read the @searchConfig smart tag from a codec's extensions.
29
29
  * Returns undefined if no searchConfig tag is present.
@@ -657,7 +657,7 @@ function createUnifiedSearchPlugin(options) {
657
657
  if (result.whereClause) {
658
658
  $condition.where(result.whereClause);
659
659
  }
660
- const qb = (0, graphile_connection_filter_1.getQueryBuilder)(build, $condition);
660
+ const qb = (0, graphile_plugin_utils_1.getQueryBuilder)(build, $condition);
661
661
  injectScoreAndRank(qb, adapter, column, result, codec, $condition);
662
662
  },
663
663
  }),
@@ -703,7 +703,7 @@ function createUnifiedSearchPlugin(options) {
703
703
  if (text.trim().length === 0)
704
704
  return;
705
705
  }
706
- const qb = (0, graphile_connection_filter_1.getQueryBuilder)(build, $condition);
706
+ const qb = (0, graphile_plugin_utils_1.getQueryBuilder)(build, $condition);
707
707
  // Collect all WHERE clauses (combined with OR)
708
708
  const whereClauses = [];
709
709
  // Text adapters (tsvector, BM25, trgm)