@jskit-ai/resource-runtime 0.2.51 → 0.2.53
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 +1 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
- Depends on json-rest-api 3.3.4 exactly (from 3.3.3): a write finds the relationships that reference its resource, for the revision of a versioned resource it reaches, in an index each API builds once per published schema (compileResourceSchemas, an AnyAPI publish or a failed load drop it), where it walked every resource's relationships on each write. A write's statements are unchanged.
|
|
5
6
|
- `@jskit-ai/resource-runtime/server/anyapi` exports json-rest-api's AnyAPI storage, for tables an application defines while it runs, which no table resource describes: `AnyapiRegistry`, `JsonRestApi`, `RestApiAnyapiKnexPlugin`, `RestApiPlugin`, `RowPolicyPlugin` and `ensureAnyApiSchema`, the very objects of the json-rest-api copy the runtime's handles run on. json-rest-api knows the transactions `api.transaction` opened by identity, and AnyAPI its registry with `instanceof`, so an AnyAPI write given a handle's `txOptions.trx` joins that transaction only on this copy; an application imports these from here and declares no json-rest-api of its own, and `npm run jskit:update` moves its one copy with the catalog.
|
|
6
7
|
- Depends on json-rest-api 3.3.3 exactly (from 3.3.2): on a descending sort, rows tied on its last key come in descending id order (the id that breaks ties takes the last key's direction), so MySQL and MariaDB read a descending page from an index leading with that key instead of sorting every row, and leave out the `IS NULL` term where the server already places NULLs last; and capabilities a start could not observe (the server not up yet) are observed again on the next storage call until that succeeds.
|
|
7
8
|
- json-rest-api's log details reach the application's log: `createResourceHost` hands each of json-rest-api's (message, details) calls to the runtime logger as pino's (fields, message), where pino dropped what followed the message. A database version observation that fails at boot now logs its backend and error ("Database version observation failed", `backend`, `phase`, `error`), "Database capabilities detected:" its database, version and window functions, and every json-rest-api warning and error its details. A detail that is not one object is logged as `details`; a message with none stays a message alone; trace and fatal reach a logger that has them.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jskit-ai/resource-runtime",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.53",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=24.0.0"
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@jskit-ai/resource-core": "0.1.226",
|
|
20
20
|
"@jskit-ai/resource-crud-core": "0.1.228",
|
|
21
|
-
"json-rest-api": "3.3.
|
|
21
|
+
"json-rest-api": "3.3.4"
|
|
22
22
|
},
|
|
23
23
|
"description": "The resource runtime: features own their tables through it and read and write them with scoped handles on json-rest-api.",
|
|
24
24
|
"jskit": {
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
}
|
|
70
70
|
},
|
|
71
71
|
"peerDependencies": {
|
|
72
|
-
"@jskit-ai/database-runtime": "0.1.
|
|
72
|
+
"@jskit-ai/database-runtime": "0.1.288",
|
|
73
73
|
"@jskit-ai/kernel": "0.2.35"
|
|
74
74
|
}
|
|
75
75
|
}
|