@cosmicdrift/kumiko-server-runtime 0.331.0 → 0.333.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/dist/compose-features.js +7 -2
- package/package.json +5 -5
package/dist/compose-features.js
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
import { createAuthEmailPasswordFeature, createAuthSelfRegistrationToggleFeature, } from "@cosmicdrift/kumiko-bundled-features/auth-email-password";
|
|
16
16
|
import { AUTH_MFA_FEATURE, mfaStatusCheckerFromFeature, } from "@cosmicdrift/kumiko-bundled-features/auth-mfa";
|
|
17
17
|
import { createConfigFeature } from "@cosmicdrift/kumiko-bundled-features/config";
|
|
18
|
-
import { createTenantFeature } from "@cosmicdrift/kumiko-bundled-features/tenant";
|
|
18
|
+
import { collectAssignableAppRoles, createTenantFeature, } from "@cosmicdrift/kumiko-bundled-features/tenant";
|
|
19
19
|
import { createUserFeature } from "@cosmicdrift/kumiko-bundled-features/user";
|
|
20
20
|
import { dedupeFeatures } from "@cosmicdrift/kumiko-framework/engine";
|
|
21
21
|
export function composeFeatures(appFeatures, options) {
|
|
@@ -50,7 +50,12 @@ export function composeFeatures(appFeatures, options) {
|
|
|
50
50
|
// makes auth-email-password register the invite-create write-handler
|
|
51
51
|
// the /members invite drawer is bound to — without this, includeBundled
|
|
52
52
|
// apps that DO configure invite still get /members with no invite button.
|
|
53
|
-
|
|
53
|
+
// tenant is built here, so the app features are the only source of
|
|
54
|
+
// EXT_ASSIGNABLE_ROLE declarations the members/invite screens can list.
|
|
55
|
+
createTenantFeature({
|
|
56
|
+
inviteScreen: Boolean(authOptions?.invite),
|
|
57
|
+
assignableAppRoles: collectAssignableAppRoles(dedupedAppFeatures),
|
|
58
|
+
}),
|
|
54
59
|
createAuthEmailPasswordFeature(authOptions ?? {}),
|
|
55
60
|
// signup-request/signup-confirm are registered whenever authOptions.signup
|
|
56
61
|
// is set (see above), but the handler itself no-ops unless the companion
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cosmicdrift/kumiko-server-runtime",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.333.0",
|
|
4
4
|
"description": "Production server-boot runtime for Kumiko apps: connections, schema-drift-gate, seeds, lifecycle, graceful shutdown. Symmetric to kumiko-dev-server's runDevApp, without dev/scaffold/codegen tooling.",
|
|
5
5
|
"license": "BUSL-1.1",
|
|
6
6
|
"author": "Marc Frost <marc@cosmicdriftgamestudio.com>",
|
|
@@ -80,10 +80,10 @@
|
|
|
80
80
|
}
|
|
81
81
|
},
|
|
82
82
|
"dependencies": {
|
|
83
|
-
"@cosmicdrift/kumiko-bundled-features": "0.
|
|
84
|
-
"@cosmicdrift/kumiko-framework": "0.
|
|
85
|
-
"@cosmicdrift/kumiko-headless": "0.
|
|
86
|
-
"@cosmicdrift/kumiko-renderer-web": "0.
|
|
83
|
+
"@cosmicdrift/kumiko-bundled-features": "0.333.0",
|
|
84
|
+
"@cosmicdrift/kumiko-framework": "0.333.0",
|
|
85
|
+
"@cosmicdrift/kumiko-headless": "0.333.0",
|
|
86
|
+
"@cosmicdrift/kumiko-renderer-web": "0.333.0",
|
|
87
87
|
"bun-types": "^1.3.13",
|
|
88
88
|
"ioredis": "^5.10.1",
|
|
89
89
|
"temporal-polyfill": "^0.3.2"
|