supastash 0.2.13 → 0.2.14

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.
@@ -143,6 +143,27 @@ export type SupastashConfig<T extends SupastashSQLiteClientTypes> = {
143
143
  push?: string[];
144
144
  };
145
145
 
146
+ /**
147
+ * Per-table column blocklists for upsert operations.
148
+ *
149
+ * Columns listed here are stripped from records **before** they are written,
150
+ * allowing you to prevent specific fields from being synced in either direction
151
+ * without altering your remote or local schema.
152
+ *
153
+ * - `push`: columns removed from each row before it is upserted to Supabase.
154
+ * - `pull`: columns removed from each row before it is written to the local SQLite DB.
155
+ *
156
+ * @example
157
+ * filterColumns: {
158
+ * push: { orders: ["internal_notes", "cost_price"] },
159
+ * pull: { users: ["password_hash", "secret_token"] },
160
+ * }
161
+ */
162
+ filterColumns?: {
163
+ push?: Record<string, string[]>;
164
+ pull?: Record<string, string[]>;
165
+ };
166
+
146
167
  // --------------------------------------------------
147
168
  // Sync Polling Intervals
148
169
  // --------------------------------------------------
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "supastash",
3
- "version": "0.2.13",
3
+ "version": "0.2.14",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "type": "module",