tanstack-db-pglite 1.2.4 → 1.2.6
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/drizzle.js +3 -0
- package/dist/sql.js +3 -0
- package/package.json +11 -13
package/dist/drizzle.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { BasicIndex } from '@tanstack/db';
|
|
1
2
|
import { eq, inArray } from 'drizzle-orm';
|
|
2
3
|
import { createSelectSchema } from 'drizzle-zod';
|
|
3
4
|
export function drizzleCollectionOptions({ startSync = true, ...config }) {
|
|
@@ -95,6 +96,8 @@ export function drizzleCollectionOptions({ startSync = true, ...config }) {
|
|
|
95
96
|
};
|
|
96
97
|
return {
|
|
97
98
|
startSync: true,
|
|
99
|
+
autoIndex: 'eager',
|
|
100
|
+
defaultIndexType: BasicIndex,
|
|
98
101
|
sync: {
|
|
99
102
|
sync: (params) => {
|
|
100
103
|
resolveSyncParams(params);
|
package/dist/sql.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { BasicIndex, } from '@tanstack/db';
|
|
1
2
|
function quoteId(name) {
|
|
2
3
|
// eslint-disable-next-line e18e/prefer-static-regex
|
|
3
4
|
return `"${String(name).replace(/"/g, '""')}"`;
|
|
@@ -82,6 +83,8 @@ export function sqlCollectionOptions({ startSync = true, ...config }) {
|
|
|
82
83
|
};
|
|
83
84
|
return {
|
|
84
85
|
startSync,
|
|
86
|
+
autoIndex: 'eager',
|
|
87
|
+
defaultIndexType: BasicIndex,
|
|
85
88
|
sync: {
|
|
86
89
|
sync: (params) => {
|
|
87
90
|
resolveSyncParams(params);
|
package/package.json
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tanstack-db-pglite",
|
|
3
|
-
"version": "1.2.
|
|
4
|
-
"packageManager": "pnpm@10.32.1",
|
|
3
|
+
"version": "1.2.6",
|
|
5
4
|
"description": "",
|
|
6
5
|
"author": "Valerii Strilets",
|
|
7
6
|
"license": "MIT",
|
|
@@ -20,13 +19,6 @@
|
|
|
20
19
|
"files": [
|
|
21
20
|
"dist"
|
|
22
21
|
],
|
|
23
|
-
"scripts": {
|
|
24
|
-
"prepublishOnly": "pnpm build",
|
|
25
|
-
"build": "tsc",
|
|
26
|
-
"lint": "eslint .",
|
|
27
|
-
"lint:fix": "eslint . --fix",
|
|
28
|
-
"update": "taze -r -I major"
|
|
29
|
-
},
|
|
30
22
|
"peerDependencies": {
|
|
31
23
|
"@electric-sql/pglite": ">=0.3.0",
|
|
32
24
|
"@tanstack/db": ">=0.5.0",
|
|
@@ -43,9 +35,15 @@
|
|
|
43
35
|
"devDependencies": {
|
|
44
36
|
"@antfu/eslint-config": "^7.7.2",
|
|
45
37
|
"@standard-schema/spec": "^1.1.0",
|
|
46
|
-
"eslint": "^10.
|
|
38
|
+
"eslint": "^10.2.1",
|
|
47
39
|
"jiti": "^2.6.1",
|
|
48
|
-
"taze": "^19.
|
|
49
|
-
"typescript": "^
|
|
40
|
+
"taze": "^19.11.0",
|
|
41
|
+
"typescript": "^6.0.3"
|
|
42
|
+
},
|
|
43
|
+
"scripts": {
|
|
44
|
+
"build": "tsc",
|
|
45
|
+
"lint": "eslint .",
|
|
46
|
+
"lint:fix": "eslint . --fix",
|
|
47
|
+
"update": "taze -r -I major"
|
|
50
48
|
}
|
|
51
|
-
}
|
|
49
|
+
}
|