@svadmin/elysia 0.14.19 → 0.14.21

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": "@svadmin/elysia",
3
- "version": "0.14.19",
3
+ "version": "0.14.21",
4
4
  "description": "Elysia DataProvider for svadmin — CRUD convention + InferResourceMap type utility",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -20,7 +20,7 @@
20
20
  }
21
21
  },
22
22
  "peerDependencies": {
23
- "@svadmin/core": "^0.69.2",
23
+ "@svadmin/core": "^0.70.0",
24
24
  "elysia": ">=1.4.30",
25
25
  "@elysiajs/eden": ">=1.4.9"
26
26
  },
@@ -1,3 +1,4 @@
1
+ import { assertFiltersExecutable } from '@svadmin/core/provider-filters';
1
2
  import { definedOptions } from '@svadmin/core/options';
2
3
  // Elysia DataProvider — CRUD convention compatible
3
4
  // Expects backend routes following: GET /resource, GET /resource/:id, POST /resource, PATCH /resource/:id, DELETE /resource/:id
@@ -203,6 +204,7 @@ function filterParamValue(filter: FieldFilter): string {
203
204
 
204
205
  function appendFilters(params: URLSearchParams, filters?: Filter[]): void {
205
206
  if (!filters?.length) return;
207
+ assertFiltersExecutable('elysia', filters);
206
208
 
207
209
  let hasLogicalFilter = false;
208
210
  for (const filter of filters) {