@tinacms/search 1.0.28 → 1.0.29
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/dist/client/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/indexer/index.d.ts +1 -1
- package/dist/types.d.ts +1 -1
- package/package.json +12 -11
package/dist/client/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { SearchClient } from '../types';
|
|
2
2
|
import { MemoryLevel } from 'memory-level';
|
|
3
|
-
|
|
3
|
+
type TinaSearchIndexerClientOptions = {
|
|
4
4
|
stopwordLanguages?: string[];
|
|
5
5
|
tokenSplitRegex?: string;
|
|
6
6
|
};
|
|
7
|
-
|
|
7
|
+
type TinaCloudSearchIndexerClientOptions = {
|
|
8
8
|
apiUrl: string;
|
|
9
9
|
branch: string;
|
|
10
10
|
indexerToken: string;
|
package/dist/index.js
CHANGED
|
@@ -263,10 +263,10 @@ var SearchIndexer = class {
|
|
|
263
263
|
|
|
264
264
|
// src/client/index.ts
|
|
265
265
|
var import_sqlite_level = require("sqlite-level");
|
|
266
|
-
var zlib = __toESM(require("zlib"));
|
|
267
266
|
var import_search_index = __toESM(require("search-index"));
|
|
268
267
|
var import_memory_level = require("memory-level");
|
|
269
268
|
var import_node_fetch = __toESM(require("node-fetch"));
|
|
269
|
+
var zlib = __toESM(require("zlib"));
|
|
270
270
|
var DEFAULT_TOKEN_SPLIT_REGEX = /[\p{L}\d_]+/gu;
|
|
271
271
|
var LocalSearchIndexClient = class {
|
|
272
272
|
constructor(options) {
|
package/dist/indexer/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TinaSchema } from '@tinacms/schema-tools';
|
|
2
2
|
import { Bridge } from '@tinacms/graphql';
|
|
3
3
|
import { SearchClient } from '../types';
|
|
4
|
-
|
|
4
|
+
type SearchIndexOptions = {
|
|
5
5
|
batchSize?: number;
|
|
6
6
|
bridge: Bridge;
|
|
7
7
|
client: SearchClient;
|
package/dist/types.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tinacms/search",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.29",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "dist/index-client.mjs",
|
|
6
6
|
"typings": "dist/index.d.ts",
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
"memory-level": "^1.0.0",
|
|
33
33
|
"node-fetch": "2",
|
|
34
34
|
"search-index": "4.0.0",
|
|
35
|
-
"sqlite-level": "^1.0
|
|
36
|
-
"stopword": "^
|
|
35
|
+
"sqlite-level": "^1.2.0",
|
|
36
|
+
"stopword": "^3.1.1",
|
|
37
37
|
"@tinacms/graphql": "1.5.2",
|
|
38
38
|
"@tinacms/schema-tools": "1.6.2"
|
|
39
39
|
},
|
|
@@ -45,14 +45,15 @@
|
|
|
45
45
|
"directory": "packages/@tinacms/search"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@types/jest": "^
|
|
49
|
-
"@types/micromatch": "^4.0.
|
|
50
|
-
"@types/
|
|
51
|
-
"
|
|
52
|
-
"jest
|
|
53
|
-
"jest-
|
|
54
|
-
"jest-
|
|
55
|
-
"
|
|
48
|
+
"@types/jest": "^29.5.13",
|
|
49
|
+
"@types/micromatch": "^4.0.9",
|
|
50
|
+
"@types/node": "^22.5.5",
|
|
51
|
+
"@types/search-index": "^3.2.4",
|
|
52
|
+
"jest": "^29.7.0",
|
|
53
|
+
"jest-diff": "^29.7.0",
|
|
54
|
+
"jest-file-snapshot": "^0.7.0",
|
|
55
|
+
"jest-matcher-utils": "^29.7.0",
|
|
56
|
+
"typescript": "^5.6.2",
|
|
56
57
|
"@tinacms/scripts": "1.2.1"
|
|
57
58
|
},
|
|
58
59
|
"scripts": {
|