@everystack/api 0.2.5 → 0.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everystack/api",
3
- "version": "0.2.5",
3
+ "version": "0.2.6",
4
4
  "description": "PostgREST-compatible HTTP handler + typed fetch client for Drizzle ORM",
5
5
  "license": "AGPL-3.0-only",
6
6
  "publishConfig": {
@@ -340,8 +340,11 @@ function buildUrl(
340
340
  const base = typeof globalThis.location !== 'undefined' ? globalThis.location.origin : undefined;
341
341
  const url = new URL(path, base);
342
342
 
343
+ // append, not set: PostgREST ANDs repeated column params, so multiple
344
+ // conditions on one column (e.g. a range: created_at=gte.X & created_at=lte.Y)
345
+ // must both survive.
343
346
  for (const [key, value] of filters) {
344
- url.searchParams.set(key, value);
347
+ url.searchParams.append(key, value);
345
348
  }
346
349
  if (select) url.searchParams.set('select', select);
347
350
  if (order) url.searchParams.set('order', order);