@jskit-ai/crud-core 0.2.30 → 0.2.31
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.7 exactly (from 3.1.6): an aggregate over one table, with no filter or row policy joining another, reads only the rows it groups, through the filters' index, instead of the table's rows whose ids its filtered query selects (details in `@jskit-ai/resource-runtime`'s changelog). Results are unchanged.
|
|
5
6
|
- Depends on json-rest-api 3.1.6 exactly (from 3.1.5): within one transaction a link check, or a response's check of a to-one link, of a row already checked in the same scope under a lock at least as strong is answered without reading the row again, until the transaction changes what the check read (the counts are in `@jskit-ai/resource-runtime`'s changelog).
|
|
6
7
|
- Depends on json-rest-api 3.1.5 exactly (from 3.1.4), from the registry with its published integrity: a read-only builder (a `scopedQuery()`, a join source, a row policy's `ownTable()`) that json-rest-api's own query compiles as a subquery keeps its joins, where 3.1.4 dropped them and the subquery matched more rows than it should (a row policy or filter narrowing with `whereExists` over a joined subquery widened), and `lockByIds`/`lockWhere` take `lockMode: 'share'`.
|
|
7
8
|
- A `date`, `dateRange` or `numberRange` list filter with a custom `apply` filters a list whose service passes its query through `toJsonRestQuery` (step 5 of the structured-filters guide), where json-rest-api refused the list with 422 "Field not allowed": its search schema entry (`jsonRestSearchSchema`) takes the filter's own key, but `toJsonRestQuery` sent the internal bound keys of a range filter without one (`__jskit_<key>_from` and `__jskit_<key>_toExclusive`, or `_min` and `_max`). It now sends such a filter under its own key with its parsed value, a day, `{ from, to }` or `{ min, max }`, which json-rest-api hands the `apply` as `applyQuery` does. Each filter's search schema entries and the values `toJsonRestQuery` sends for it now come from one place, so a list sends only keys its search schema declares, for every filter type with or without an `apply`; range filters without one keep their bound keys. Tests list orders over HTTP through such filters and check every type.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jskit-ai/crud-core",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.31",
|
|
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.212",
|
|
24
24
|
"@jskit-ai/resource-crud-core": "0.1.214",
|
|
25
|
-
"json-rest-api": "3.1.
|
|
25
|
+
"json-rest-api": "3.1.7",
|
|
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.21",
|
|
53
53
|
"@jskit-ai/kernel": "0.2.21",
|
|
54
|
-
"@jskit-ai/resource-runtime": "0.2.
|
|
54
|
+
"@jskit-ai/resource-runtime": "0.2.28"
|
|
55
55
|
}
|
|
56
56
|
}
|