@jskit-ai/workspaces-core 0.2.64 → 0.2.65

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.
Files changed (2) hide show
  1. package/CHANGELOG.md +1 -0
  2. package/package.json +12 -9
package/CHANGELOG.md CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ - The manifest marks `runtime.database`, which its migrations need and no server provider of the package requires, as install-time only (`jskit.capabilities.installRequires`), so an app's start-up no longer logs "Package manifest requires a capability its providers do not." for it.
5
6
  - `config.workspaceInvitations.anyAccount` (default `false`, which keeps today's rule): with it on, any signed-in account holding an invitation's link may accept it. The invited address, in any letter case, accepts as before. Another address must confirm: the redeem request's new `acceptAs` attribute names the signed-in account's email; without it, or with another value, redeeming answers 409 `workspaces.invite.differentEmailUnconfirmed` ("This invitation was sent to {maskedEmail}. Confirm that you want to join as {email}.", `params.email` the account's address, `params.maskedEmail` the invited one) and changes nothing. A workspace whose new `invitesRequireSameEmail` setting is on still refuses another address with 403 `workspaces.invite.emailMismatchUser`, and refusing stays the invited address's alone. `GET /api/workspace/invitations/resolve` answers `requiresSameEmail`, and the invitation context resolver gives a registration or a provider sign-in from the link the invitation whatever the account's address unless its workspace requires the invited one, carrying the invitation's own email.
6
7
  - The workspace setting `invitesRequireSameEmail` (the new migration `workspaces_core_settings_invites_require_same_email`, a `workspace_settings.invites_require_same_email` boolean, NOT NULL, default false; run `npm run db:migrate`), new workspaces' default from `config.workspaceSettings.defaults.invitesRequireSameEmail` (false when unset), written through `PATCH /api/w/:workspaceSlug/settings` under `workspace.settings.update` and optional in every settings write. Reads answer the effective value, true whenever `anyAccount` is off, and `invitesAnyAccountAvailable`.
7
8
  - Members show the address they were invited at: every member summary (`listActiveByWorkspaceId`, `findActiveByWorkspaceIdAndUserId`, `listMembers`, `listMembersPage`, `getMember`, `GET .../members`) answers `invitedEmail`, the address of the invitation the member last joined through when it is not their account's email, else `""`. The membership keeps a reference to that invitation (the new migration `workspaces_core_memberships_accepted_invite`, a nullable `workspace_memberships.accepted_invite_id` foreign key to `workspace_invites`, set null when the invitation is deleted; run `npm run db:migrate`), written at each acceptance, so a later acceptance with the account's own address clears it. The members page reads it in its one statement; a summary through the memberships handle reads the invitations in one more batched read.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jskit-ai/workspaces-core",
3
- "version": "0.2.64",
3
+ "version": "0.2.65",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "test": "jskit test"
@@ -24,9 +24,9 @@
24
24
  "./locales/en.json": "./locales/en.json"
25
25
  },
26
26
  "dependencies": {
27
- "@jskit-ai/resource-core": "0.1.225",
28
- "@jskit-ai/resource-crud-core": "0.1.227",
29
- "@jskit-ai/users-core": "0.2.64",
27
+ "@jskit-ai/resource-core": "0.1.226",
28
+ "@jskit-ai/resource-crud-core": "0.1.228",
29
+ "@jskit-ai/users-core": "0.2.65",
30
30
  "json-rest-schema": "^1.0.20"
31
31
  },
32
32
  "description": "Workspace tenancy runtime plus HTTP routes, role catalog, and workspace config scaffolding.",
@@ -52,6 +52,9 @@
52
52
  "users.extensions",
53
53
  "users.profiles",
54
54
  "users.settings"
55
+ ],
56
+ "installRequires": [
57
+ "runtime.database"
55
58
  ]
56
59
  },
57
60
  "runtime": {
@@ -216,10 +219,10 @@
216
219
  }
217
220
  },
218
221
  "peerDependencies": {
219
- "@jskit-ai/auth-core": "0.2.39",
220
- "@jskit-ai/database-runtime": "0.1.285",
221
- "@jskit-ai/http-runtime": "0.2.35",
222
- "@jskit-ai/kernel": "0.2.34",
223
- "@jskit-ai/resource-runtime": "0.2.49"
222
+ "@jskit-ai/auth-core": "0.2.40",
223
+ "@jskit-ai/database-runtime": "0.1.286",
224
+ "@jskit-ai/http-runtime": "0.2.36",
225
+ "@jskit-ai/kernel": "0.2.35",
226
+ "@jskit-ai/resource-runtime": "0.2.50"
224
227
  }
225
228
  }