tanstack-db-pglite 1.3.1 → 1.3.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/dist/drizzle.js CHANGED
@@ -73,7 +73,9 @@ export function drizzleCollectionOptions({ startSync = true, ...config }) {
73
73
  const sync = async (force = false) => {
74
74
  const params = await syncParams;
75
75
  if (force) {
76
+ params.begin();
76
77
  params.truncate();
78
+ params.commit();
77
79
  }
78
80
  if (!config.sync) {
79
81
  params.markReady();
@@ -101,7 +103,7 @@ export function drizzleCollectionOptions({ startSync = true, ...config }) {
101
103
  });
102
104
  };
103
105
  return {
104
- startSync,
106
+ startSync: true,
105
107
  autoIndex: 'eager',
106
108
  defaultIndexType: BasicIndex,
107
109
  sync: {
package/dist/sql.js CHANGED
@@ -60,7 +60,9 @@ export function sqlCollectionOptions({ startSync = true, ...config }) {
60
60
  const sync = async (force = false) => {
61
61
  const params = await syncParams;
62
62
  if (force) {
63
+ params.begin();
63
64
  params.truncate();
65
+ params.commit();
64
66
  }
65
67
  if (!config.sync) {
66
68
  params.markReady();
@@ -88,7 +90,7 @@ export function sqlCollectionOptions({ startSync = true, ...config }) {
88
90
  });
89
91
  };
90
92
  return {
91
- startSync,
93
+ startSync: true,
92
94
  autoIndex: 'eager',
93
95
  defaultIndexType: BasicIndex,
94
96
  sync: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tanstack-db-pglite",
3
- "version": "1.3.1",
3
+ "version": "1.3.3",
4
4
  "author": "Valerii Strilets",
5
5
  "license": "MIT",
6
6
  "repository": {