@koolbase/js 12.44.0 → 12.46.0
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 +9 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,15 @@ is based on [Keep a Changelog][kac], and this project adheres to
|
|
|
7
7
|
[kac]: https://keepachangelog.com/en/1.1.0/
|
|
8
8
|
[semver]: https://semver.org/
|
|
9
9
|
|
|
10
|
+
## 12.45.0
|
|
11
|
+
|
|
12
|
+
In-app admin: an app's own admins manage its people from inside the app. Same contract as koolbase_flutter 12.57.0. Needs the API with in-app admin.
|
|
13
|
+
|
|
14
|
+
- **`Koolbase.auth.admin`** lets a signed-in app admin (the `app_admin` claim, given by the project owner in the dashboard) call `members()`, `roles()`, `invite()`, `disable()`, `enable()` and `setRoles()`. Only roles the project marked "App admins can give it" can be given, and admins never change themselves or another admin.
|
|
15
|
+
- **`setRoles(userId, roles, { expectedVersion })`** takes the member's `version`; `null` removes a role. When someone changed them in between it throws `ClaimsVersionConflictError` with `currentVersion`, and nothing changes.
|
|
16
|
+
- With two-step sign-in on, disabling, enabling and changing roles need `stepUpMfa` first (`RecentMfaRequiredError`).
|
|
17
|
+
- New errors: `NotAppAdminError`, `AppAdminSelfError`, `AppAdminTargetIsAdminError`, `RoleNotAssignableError`, `RoleValueNotAllowedError`, `MemberExistsError`, `ClaimsVersionConflictError`.
|
|
18
|
+
|
|
10
19
|
## 12.44.0
|
|
11
20
|
|
|
12
21
|
Remember me: a sign-in says whether it outlasts the browser.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@koolbase/js",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.46.0",
|
|
4
4
|
"description": "Koolbase SDK for the browser \u2014 auth, database, storage, realtime, functions, flags and offline sync in one package.",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"types": "./dist/esm/index.d.ts",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"url": "https://github.com/koolbase/koolbase-react-native"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@koolbase/core": "^12.
|
|
29
|
+
"@koolbase/core": "^12.46.0"
|
|
30
30
|
},
|
|
31
31
|
"publishConfig": {
|
|
32
32
|
"access": "public"
|