@jskit-ai/console-core 0.2.71 → 0.2.73
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
|
+
- The console settings routes name the action they run (`actionId`), so the action's checks come before the route validates its body (#497).
|
|
5
6
|
- `console_core_generic_initial-collation`, a migration Knex runs just before `console_core_generic_initial` (run `npm run db:migrate`): on MySQL and MariaDB it creates `console_settings`, where it does not exist yet, in the collation of the existing tables (`console_settings`, then `users`, then `auth_local_users`) rather than the database's default, and converts it when recorded in another collation and no character can be lost. It changes nothing where it matches.
|
|
6
7
|
- console_settings declares its foreign key, owner_user_id to users (`foreignKeys`), so json-rest-api 3.1.0 can skip the visibility query a system-context read makes for a record such a key guarantees exists. `jskit test --databases` checks each against an app's test database. `usersForeignKeyMigration.test.js` proves it matches the migrations.
|
|
7
8
|
- `console.settings` reads and writes its record with only the caller's context and transaction (`passedOn(options)`) and its own settings: a caller's `format`, `lockVersion` or `returning` no longer reaches its `get` and `patch`.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jskit-ai/console-core",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.73",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "jskit test"
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
"./locales/en.json": "./locales/en.json"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@jskit-ai/resource-core": "0.1.
|
|
16
|
-
"@jskit-ai/users-core": "0.2.
|
|
15
|
+
"@jskit-ai/resource-core": "0.1.227",
|
|
16
|
+
"@jskit-ai/users-core": "0.2.73",
|
|
17
17
|
"json-rest-schema": "^1.0.20"
|
|
18
18
|
},
|
|
19
19
|
"description": "Console runtime: console settings schema, bootstrap flags, actions, and HTTP routes.",
|
|
@@ -97,10 +97,10 @@
|
|
|
97
97
|
}
|
|
98
98
|
},
|
|
99
99
|
"peerDependencies": {
|
|
100
|
-
"@jskit-ai/auth-core": "0.2.
|
|
101
|
-
"@jskit-ai/database-runtime": "0.1.
|
|
102
|
-
"@jskit-ai/http-runtime": "0.2.
|
|
103
|
-
"@jskit-ai/kernel": "0.2.
|
|
104
|
-
"@jskit-ai/resource-runtime": "0.2.
|
|
100
|
+
"@jskit-ai/auth-core": "0.2.41",
|
|
101
|
+
"@jskit-ai/database-runtime": "0.1.293",
|
|
102
|
+
"@jskit-ai/http-runtime": "0.2.37",
|
|
103
|
+
"@jskit-ai/kernel": "0.2.36",
|
|
104
|
+
"@jskit-ai/resource-runtime": "0.2.58"
|
|
105
105
|
}
|
|
106
106
|
}
|
|
@@ -12,6 +12,7 @@ function registerConsoleSettingsRoutes(router) {
|
|
|
12
12
|
"/api/console/settings",
|
|
13
13
|
{
|
|
14
14
|
auth: "required",
|
|
15
|
+
actionId: "console.settings.read",
|
|
15
16
|
surface: "console",
|
|
16
17
|
meta: {
|
|
17
18
|
tags: ["console", "settings"],
|
|
@@ -38,6 +39,7 @@ function registerConsoleSettingsRoutes(router) {
|
|
|
38
39
|
"/api/console/settings",
|
|
39
40
|
{
|
|
40
41
|
auth: "required",
|
|
42
|
+
actionId: "console.settings.update",
|
|
41
43
|
surface: "console",
|
|
42
44
|
meta: {
|
|
43
45
|
tags: ["console", "settings"],
|