@jskit-ai/crud-core 0.2.24 → 0.2.25

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/CHANGELOG.md CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ - Depends on json-rest-api 3.1.4 exactly (from 3.1.3), from the registry with its published integrity: a patch, put or patchMany that stores the values a row already holds answers the row as stored on MySQL and MariaDB (it answered the values this transaction first read), and AnyAPI storage checks its tables' columns with one statement at start-up.
5
6
  - A CRUD list asked over HTTP for two or more values of a filter that takes several (`recordIdMany`, `enumMany`, and the list's `id`) answers the rows matching any of them, where it answered 400 (`@jskit-ai/resource-crud-core` reads the comma-separated value the route makes of them). The list's `id` passes the undeclared-key check, which a test proves.
6
7
  - **Breaking.** A CRUD list refuses a query key its route does not take with a 400 coded `crud.query.undeclaredKeys`, naming the key and the keys the list takes. Fastify's validation dropped an undeclared key without a word, so `?filter[status]=open` on a list that declares no `status` filter answered every row as if it were unfiltered. Upgrading: declare the filter in the feature's `listFilterQueryValidator` and the resource's searchSchema, or stop sending it.
7
8
  - Every CRUD list takes `id`, one record id or a list of them (`filter[id]` over JSON:API), and answers only those records within the caller's scope, so a client reads the records behind ids it already holds, such as a lookup's selected values past the loaded page, in one request.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jskit-ai/crud-core",
3
- "version": "0.2.24",
3
+ "version": "0.2.25",
4
4
  "type": "module",
5
5
  "engines": {
6
6
  "node": ">=24.0.0"
@@ -22,7 +22,7 @@
22
22
  "dependencies": {
23
23
  "@jskit-ai/resource-core": "0.1.209",
24
24
  "@jskit-ai/resource-crud-core": "0.1.210",
25
- "json-rest-api": "3.1.3",
25
+ "json-rest-api": "3.1.4",
26
26
  "json-rest-schema": "^1.0.20"
27
27
  },
28
28
  "description": "Shared server-side CRUD service, repository, route, and query helpers.",
@@ -51,6 +51,6 @@
51
51
  "peerDependencies": {
52
52
  "@jskit-ai/http-runtime": "0.2.18",
53
53
  "@jskit-ai/kernel": "0.2.18",
54
- "@jskit-ai/resource-runtime": "0.2.21"
54
+ "@jskit-ai/resource-runtime": "0.2.22"
55
55
  }
56
56
  }
@@ -9,7 +9,7 @@
9
9
  "./shared": "./src/shared/index.js"
10
10
  },
11
11
  "dependencies": {
12
- "@jskit-ai/crud-core": "0.2.24",
12
+ "@jskit-ai/crud-core": "0.2.25",
13
13
  "@jskit-ai/resource-core": "0.1.209",
14
14
  "@jskit-ai/resource-crud-core": "0.1.210"
15
15
  },