tanstack-db-pglite 1.3.3 → 1.3.4

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
@@ -70,13 +70,8 @@ export function drizzleCollectionOptions({ startSync = true, ...config }) {
70
70
  .from(config.table)
71
71
  .where(eq(config.primaryColumn, m.key))));
72
72
  }
73
- const sync = async (force = false) => {
73
+ const sync = async () => {
74
74
  const params = await syncParams;
75
- if (force) {
76
- params.begin();
77
- params.truncate();
78
- params.commit();
79
- }
80
75
  if (!config.sync) {
81
76
  params.markReady();
82
77
  return;
@@ -174,7 +169,7 @@ export function drizzleCollectionOptions({ startSync = true, ...config }) {
174
169
  }
175
170
  const params = await syncParams;
176
171
  await params.collection.stateWhenReady();
177
- await sync(true);
172
+ await sync();
178
173
  },
179
174
  },
180
175
  };
package/dist/sql.js CHANGED
@@ -57,13 +57,8 @@ export function sqlCollectionOptions({ startSync = true, ...config }) {
57
57
  });
58
58
  commit();
59
59
  }
60
- const sync = async (force = false) => {
60
+ const sync = async () => {
61
61
  const params = await syncParams;
62
- if (force) {
63
- params.begin();
64
- params.truncate();
65
- params.commit();
66
- }
67
62
  if (!config.sync) {
68
63
  params.markReady();
69
64
  return;
@@ -157,7 +152,7 @@ export function sqlCollectionOptions({ startSync = true, ...config }) {
157
152
  }
158
153
  const params = await syncParams;
159
154
  await params.collection.stateWhenReady();
160
- await sync(true);
155
+ await sync();
161
156
  },
162
157
  },
163
158
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tanstack-db-pglite",
3
- "version": "1.3.3",
3
+ "version": "1.3.4",
4
4
  "author": "Valerii Strilets",
5
5
  "license": "MIT",
6
6
  "repository": {