Skip to content

Commit 1d47139

Browse files
chore: version packages
1 parent d0d03c5 commit 1d47139

161 files changed

Lines changed: 1410 additions & 218 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.changeset/autonumber-authoring-guardrails.md

Lines changed: 0 additions & 15 deletions
This file was deleted.

.changeset/autonumber-format-tokens.md

Lines changed: 0 additions & 61 deletions
This file was deleted.

.changeset/liveness-prove-it-runs.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/master-detail-controlled-by-parent.md

Lines changed: 0 additions & 15 deletions
This file was deleted.

.changeset/rls-current-user-email.md

Lines changed: 0 additions & 30 deletions
This file was deleted.

.changeset/verify-automation-flow-proofs.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/verify-package.md

Lines changed: 0 additions & 8 deletions
This file was deleted.

examples/app-crm/CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# @objectstack/example-crm
22

3+
## 4.0.54
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [36138c7]
8+
- Updated dependencies [a8e4f3b]
9+
- Updated dependencies [4c213c2]
10+
- Updated dependencies [2afb612]
11+
- @objectstack/spec@9.11.0
12+
- @objectstack/runtime@9.11.0
13+
314
## 4.0.53
415

516
### Patch Changes

examples/app-crm/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@objectstack/example-crm",
3-
"version": "4.0.53",
3+
"version": "4.0.54",
44
"description": "Minimal CRM example — a smoke-test workspace that exercises the metadata loading pipeline (objects → views → app → dashboard → hook → flow → seed). For a full-featured enterprise CRM see https://github.com/objectstack-ai/hotcrm.",
55
"license": "Apache-2.0",
66
"private": true,

examples/app-showcase/CHANGELOG.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,42 @@
11
# @objectstack/example-showcase
22

3+
## 0.1.24
4+
5+
### Patch Changes
6+
7+
- 2afb612: feat(security): resolve `current_user.email` in RLS owner policies
8+
9+
RLS `using` predicates can now reference **`current_user.email`** — a unique,
10+
human-readable, _seedable_ owner anchor (`owner = current_user.email`). Previously
11+
the RLS compiler resolved only `current_user.id` / `organization_id` / `roles` /
12+
`org_user_ids`, so any owner-by-name/email predicate silently compiled to the
13+
deny sentinel (fail-closed → the user saw nothing). Email is sourced for free
14+
from the auth session (with a bounded `sys_user` fallback for the API-key path)
15+
and threaded onto the `ExecutionContext` in both identity resolvers — the REST
16+
data path (`rest-server`) and the dispatcher path (`resolve-execution-context`).
17+
18+
Display `name` is deliberately **not** exposed to RLS: names collide, and a
19+
collision on an ownership predicate is an access-control leak. Only unique
20+
identifiers (`id`, `email`) are resolvable.
21+
22+
This makes owner-scoped row-level security work with seed data (no per-user ids
23+
needed) and, combined with `controlled_by_parent` (ADR-0055), lets a master's
24+
owner scoping flow to its detail records. The example-showcase demonstrates it:
25+
`showcase_invoice` carries an `owner` email + an owner RLS policy, its lines are
26+
controlled-by-parent, and invoices/lines are seeded per owner. It also fixes the
27+
showcase's previously inert owner predicates (they used `==` and `current_user.name`,
28+
neither of which the compiler accepts) to `= current_user.email`.
29+
30+
- Updated dependencies [36138c7]
31+
- Updated dependencies [a8e4f3b]
32+
- Updated dependencies [4c213c2]
33+
- Updated dependencies [2afb612]
34+
- @objectstack/spec@9.11.0
35+
- @objectstack/runtime@9.11.0
36+
- @objectstack/cloud-connection@9.11.0
37+
- @objectstack/connector-rest@9.11.0
38+
- @objectstack/connector-slack@9.11.0
39+
340
## 0.1.23
441

542
### Patch Changes

0 commit comments

Comments
 (0)