tanstack-db-pglite 1.2.3 → 1.2.5

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 CHANGED
@@ -95,6 +95,7 @@ export function drizzleCollectionOptions({ startSync = true, ...config }) {
95
95
  };
96
96
  return {
97
97
  startSync: true,
98
+ autoIndex: 'eager',
98
99
  sync: {
99
100
  sync: (params) => {
100
101
  resolveSyncParams(params);
@@ -157,7 +158,7 @@ export function drizzleCollectionOptions({ startSync = true, ...config }) {
157
158
  }
158
159
  const params = await syncParams;
159
160
  await params.collection.stateWhenReady();
160
- sync();
161
+ await sync();
161
162
  },
162
163
  waitForSync,
163
164
  },
package/dist/sql.js CHANGED
@@ -82,6 +82,7 @@ export function sqlCollectionOptions({ startSync = true, ...config }) {
82
82
  };
83
83
  return {
84
84
  startSync,
85
+ autoIndex: 'eager',
85
86
  sync: {
86
87
  sync: (params) => {
87
88
  resolveSyncParams(params);
@@ -140,7 +141,7 @@ export function sqlCollectionOptions({ startSync = true, ...config }) {
140
141
  }
141
142
  const params = await syncParams;
142
143
  await params.collection.stateWhenReady();
143
- sync();
144
+ await sync();
144
145
  },
145
146
  waitForSync,
146
147
  },
package/package.json CHANGED
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "name": "tanstack-db-pglite",
3
- "version": "1.2.3",
4
- "packageManager": "pnpm@10.32.1",
3
+ "version": "1.2.5",
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.0.3",
38
+ "eslint": "^10.2.1",
47
39
  "jiti": "^2.6.1",
48
- "taze": "^19.10.0",
49
- "typescript": "^5.9.3"
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
+ }