@typicalday/firegraph 0.15.0 → 0.16.1
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/README.md +39 -17
- package/dist/{backend-CvImIwTY.d.cts → backend-CE3pM9-T.d.ts} +32 -2
- package/dist/{backend-BpYLdwCW.d.cts → backend-DNzv8KSR.d.cts} +33 -19
- package/dist/{backend-BpYLdwCW.d.ts → backend-DNzv8KSR.d.ts} +33 -19
- package/dist/{backend-YH5HtawN.d.ts → backend-EjFfw9yO.d.cts} +32 -2
- package/dist/backend.cjs.map +1 -1
- package/dist/backend.d.cts +2 -2
- package/dist/backend.d.ts +2 -2
- package/dist/backend.js +1 -1
- package/dist/{chunk-FODIMIWY.js → chunk-5JBNLH5W.js} +17 -6
- package/dist/chunk-5JBNLH5W.js.map +1 -0
- package/dist/{chunk-5HIRYV2S.js → chunk-6IO74NKD.js} +12 -10
- package/dist/{chunk-5HIRYV2S.js.map → chunk-6IO74NKD.js.map} +1 -1
- package/dist/{chunk-ULRDQ6HZ.js → chunk-NZVSLWNY.js} +6 -1
- package/dist/chunk-NZVSLWNY.js.map +1 -0
- package/dist/{chunk-N5HFDWQX.js → chunk-PWIO46RT.js} +1 -1
- package/dist/{chunk-N5HFDWQX.js.map → chunk-PWIO46RT.js.map} +1 -1
- package/dist/{client-B5o39X79.d.ts → client-CNAwJayO.d.ts} +1 -1
- package/dist/{client-BGHwxwPg.d.cts → client-CaXH5D5C.d.cts} +1 -1
- package/dist/cloudflare/index.cjs +11 -9
- package/dist/cloudflare/index.cjs.map +1 -1
- package/dist/cloudflare/index.d.cts +3 -3
- package/dist/cloudflare/index.d.ts +3 -3
- package/dist/cloudflare/index.js +3 -3
- package/dist/codegen/index.d.cts +1 -1
- package/dist/codegen/index.d.ts +1 -1
- package/dist/firestore-enterprise/index.cjs +11 -9
- package/dist/firestore-enterprise/index.cjs.map +1 -1
- package/dist/firestore-enterprise/index.d.cts +3 -3
- package/dist/firestore-enterprise/index.d.ts +3 -3
- package/dist/firestore-enterprise/index.js +2 -2
- package/dist/firestore-standard/index.cjs +11 -9
- package/dist/firestore-standard/index.cjs.map +1 -1
- package/dist/firestore-standard/index.d.cts +3 -3
- package/dist/firestore-standard/index.d.ts +3 -3
- package/dist/firestore-standard/index.js +2 -2
- package/dist/index.cjs +11 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +1 -1
- package/dist/{registry-tKTb5Kx1.d.ts → registry-By1i-zge.d.ts} +1 -1
- package/dist/{registry-BGh7Jqpb.d.cts → registry-CNToyEra.d.cts} +1 -1
- package/dist/sqlite/index.cjs +24 -12
- package/dist/sqlite/index.cjs.map +1 -1
- package/dist/sqlite/index.d.cts +4 -4
- package/dist/sqlite/index.d.ts +4 -4
- package/dist/sqlite/index.js +4 -4
- package/dist/sqlite/local.cjs +484 -47
- package/dist/sqlite/local.cjs.map +1 -1
- package/dist/sqlite/local.d.cts +31 -5
- package/dist/sqlite/local.d.ts +31 -5
- package/dist/sqlite/local.js +439 -4
- package/dist/sqlite/local.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-FODIMIWY.js.map +0 -1
- package/dist/chunk-ULRDQ6HZ.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { c as createGraphClient } from '../client-
|
|
2
|
-
export { M as META_EDGE_TYPE, a as META_NODE_TYPE, c as createMergedRegistry, b as createRegistry, g as generateId } from '../registry-
|
|
1
|
+
export { c as createGraphClient } from '../client-CaXH5D5C.cjs';
|
|
2
|
+
export { M as META_EDGE_TYPE, a as META_NODE_TYPE, c as createMergedRegistry, b as createRegistry, g as generateId } from '../registry-CNToyEra.cjs';
|
|
3
3
|
import { Firestore } from '@google-cloud/firestore';
|
|
4
|
-
import { S as StorageBackend } from '../backend-
|
|
4
|
+
import { S as StorageBackend } from '../backend-DNzv8KSR.cjs';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Firestore Standard edition `StorageBackend`.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { c as createGraphClient } from '../client-
|
|
2
|
-
export { M as META_EDGE_TYPE, a as META_NODE_TYPE, c as createMergedRegistry, b as createRegistry, g as generateId } from '../registry-
|
|
1
|
+
export { c as createGraphClient } from '../client-CNAwJayO.js';
|
|
2
|
+
export { M as META_EDGE_TYPE, a as META_NODE_TYPE, c as createMergedRegistry, b as createRegistry, g as generateId } from '../registry-By1i-zge.js';
|
|
3
3
|
import { Firestore } from '@google-cloud/firestore';
|
|
4
|
-
import { S as StorageBackend } from '../backend-
|
|
4
|
+
import { S as StorageBackend } from '../backend-DNzv8KSR.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Firestore Standard edition `StorageBackend`.
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
import "../chunk-C2QMD7RY.js";
|
|
14
14
|
import {
|
|
15
15
|
createCapabilities
|
|
16
|
-
} from "../chunk-
|
|
16
|
+
} from "../chunk-PWIO46RT.js";
|
|
17
17
|
import {
|
|
18
18
|
META_EDGE_TYPE,
|
|
19
19
|
META_NODE_TYPE,
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
createMergedRegistry,
|
|
23
23
|
createRegistry,
|
|
24
24
|
generateId
|
|
25
|
-
} from "../chunk-
|
|
25
|
+
} from "../chunk-6IO74NKD.js";
|
|
26
26
|
import "../chunk-NGAJCALM.js";
|
|
27
27
|
import {
|
|
28
28
|
FiregraphError
|
package/dist/index.cjs
CHANGED
|
@@ -2221,7 +2221,7 @@ var GraphClientImpl = class _GraphClientImpl {
|
|
|
2221
2221
|
async findNearest(params) {
|
|
2222
2222
|
if (!this.backend.findNearest) {
|
|
2223
2223
|
throw new FiregraphError(
|
|
2224
|
-
"findNearest() is not supported by the current storage backend. Vector search requires a backend that declares `search.vector` (currently Firestore Standard and
|
|
2224
|
+
"findNearest() is not supported by the current storage backend. Vector search requires a backend that declares `search.vector` (currently Firestore Standard, Firestore Enterprise, and the local better-sqlite3 backend). There is no client-side fallback because emulating ANN on top of the generic backend surface does not scale beyond toy datasets.",
|
|
2225
2225
|
"UNSUPPORTED_OPERATION"
|
|
2226
2226
|
);
|
|
2227
2227
|
}
|
|
@@ -2237,13 +2237,15 @@ var GraphClientImpl = class _GraphClientImpl {
|
|
|
2237
2237
|
* Native full-text search (capability `search.fullText`).
|
|
2238
2238
|
*
|
|
2239
2239
|
* Returns the top-N records by relevance, ordered by the search
|
|
2240
|
-
* index's score.
|
|
2241
|
-
*
|
|
2242
|
-
*
|
|
2243
|
-
*
|
|
2244
|
-
*
|
|
2245
|
-
*
|
|
2246
|
-
*
|
|
2240
|
+
* index's score. Firestore Enterprise declares this capability (via
|
|
2241
|
+
* the Pipelines `search({ query: documentMatches(...) })` stage over
|
|
2242
|
+
* Enterprise's FTS index), as does the local better-sqlite3 backend
|
|
2243
|
+
* (`firegraph/sqlite-local`, via a trigger-synced FTS5 index ranked
|
|
2244
|
+
* by `bm25()`). Standard does not declare the cap (FTS is an
|
|
2245
|
+
* Enterprise-only product feature, not a typed-API gap); D1 and the
|
|
2246
|
+
* Cloudflare DO edition have no FTS trigger infrastructure. Backends
|
|
2247
|
+
* without `search.fullText` throw `UNSUPPORTED_OPERATION` from this
|
|
2248
|
+
* wrapper.
|
|
2247
2249
|
*
|
|
2248
2250
|
* Scan-protection mirrors `findNearest`: a search with no
|
|
2249
2251
|
* identifying filters (`aType` / `axbType` / `bType`) walks every
|
|
@@ -2259,7 +2261,7 @@ var GraphClientImpl = class _GraphClientImpl {
|
|
|
2259
2261
|
async fullTextSearch(params) {
|
|
2260
2262
|
if (!this.backend.fullTextSearch) {
|
|
2261
2263
|
throw new FiregraphError(
|
|
2262
|
-
"fullTextSearch() is not supported by the current storage backend. Full-text search requires a backend that declares `search.fullText` (currently Firestore Enterprise
|
|
2264
|
+
"fullTextSearch() is not supported by the current storage backend. Full-text search requires a backend that declares `search.fullText` (currently Firestore Enterprise and the local better-sqlite3 backend). There is no client-side fallback because emulating FTS over the generic backend surface would not scale beyond toy datasets.",
|
|
2263
2265
|
"UNSUPPORTED_OPERATION"
|
|
2264
2266
|
);
|
|
2265
2267
|
}
|