Skip to content

chore: version packages - #385

Open
github-actions[bot] wants to merge 1 commit into
trunkfrom
changeset-release/trunk
Open

github-actions[bot] wants to merge 1 commit into
trunkfrom
changeset-release/trunk

Conversation

@github-actions

@github-actions github-actions Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to trunk, this PR will be updated.

Releases

@thomasfosterau/pulpit@0.3.0

Minor Changes

  • #384 fbfc292 Thanks @thomasfosterau! - The kernel's read predicates now delegate to @thomasfosterau/effect-auth (#5, option (c)), and the effect-auth peer floor rises from >=0.2.0 to >=0.3.0. That is the first release with ReferenceAccess, OwnedAccess.IsMember and the extended OwnedRow / serveableAxes.

    What delegates where. Every signature is unchanged; an internal bridge does the delegation.

    • canViewOwned, and the owned reading in defineSubtype's get / getMany and in ./edges' canViewEndpoint, are now OwnedAccess.canView.
    • The reference reading in the same places is now ReferenceAccess.canView.
    • The kind of scope readScopeFor returns (all, public or member) is decided as effect-auth's OwnedAccess.readScope decides it. A member scope's following and groups sets still come from the kernel's follower seam.
    • The owned arm of isPubliclyServeable ({ owned: true }) is now Cacheability.publiclyServeable(OwnedAccess.serveableAxes).
    • The list filters (ownedListFilter, referencePrivacyFilter, endpointFilter, searchScopeFilter) are still the kernel's, because effect-auth's drizzle filter renders no group or moderation arm (effect-auth#638).

    Behaviour changes. Each one only refuses more; nothing that was refused before is now admitted.

    • A viewer whose id is "" reads as anonymous (effect-auth#661). This holds on every read path in ./subtype and ./edges: the row predicates, readScopeFor, referencePrivacyFilter, searchScopeFilter, searchHeadFor, softDeleteFilter, head selection on a publish-gated leaf, and the view-deleted rung at an edge's end.
      • Before: { id: "", role: "user" } got a member scope and read rows whose owner was ""; { id: "", role: "moderator" } got all.
      • After: both get public and read only public, published rows.
    • An owner or followers-of value of "" names nobody, as a NULL already did.
      • Before: a row whose owner was "" was readable by the viewer whose id was "", and by that id's followers through the follower seam.
      • After: no viewer owns it, the seam is never asked about it, and it reads like a row with no owner.
    • An unapproved attribute of true or null is no longer publicly serveable on an owned family (CACHE-AUTH-005). Before, isPubliclyServeable ignored that attribute; now, when present, it must be exactly false.
    • An explicit deletedAt: undefined is refused on an owned family. Before, it was admitted, the same as an absent key; now any deletedAt key refuses.

    The publish-stamp arm (publishGated), and families that aren't owned, keep the kernel's rule unchanged.

  • #407 58df48d Thanks @thomasfosterau! - An account whose id is "" is now anonymous kernel-wide, not only on the read paths. Every module reads its viewer seam through the same rule, so a hand-built { id: "", … } viewer gets Unauthorized from the write gates in ./subtype, ./edges, ./comments, ./moderation, ./proposals, ./social, ./reactions, ./audience, ./notifications and ./working-copy. accessPolicyFromGuards also answers false on every axis for an empty id, so { id: "", role: "moderator" } no longer passes canModerate.

    Migration: a viewer built with viewerFromGuards is unaffected, because effect-auth's Guard.make already reads an empty id as none. If you build a Viewer by hand, give every signed-in account a non-empty id.

  • #411 e7d888d Thanks @thomasfosterau! - Every subpath is now the module's PascalCase name, matching its namespace on the root barrel (@thomasfosterau/pulpit/version-chain is now @thomasfosterau/pulpit/VersionChain, ./publication is ./Publication, and so on). The lowercase subpaths are gone: rename each import's specifier to the namespace's name. ./testing is unchanged.

  • #431 d5f4bb5 Thanks @thomasfosterau! - ./testing: makeInMemoryPurgeStore's dependents are now Effects, (id) => Effect.Effect<void>, run in order after the chains' rows are read, instead of synchronous callbacks. Wrap an existing callback in Effect.sync.

  • #394 2541c79 Thanks @thomasfosterau! - Member reports now integrate with content moderation (#360), and the report lifecycle has an explicit state machine.

    • isReportTransition(from, to) (./moderation) is the report state machine: a report is filed open and closes once, as resolved (upheld) or dismissed. defineReports' resolve checks it.
    • defineReports takes an optional moderation: the leaf's defineModeration ops. When it is given, resolve(id, "resolved", note) is a content decision. It moderates the target rejected, then closes every open report against the target resolved with the same note. resolve can now also fail as moderate does (StaleVersion, VersionConflict, WriteRejected). A target that is already deleted still closes its reports. Dismissing a report still closes only that report.
    • withReports({ moderation, reports, viewer }) wraps a leaf's ModerationOps. Its moderate(id, decision) runs the decision, then settles the target's open reports as reportOutcomeOf(decision) says: rejected resolves them, approved dismisses them, and pending leaves them open.

    Breaking for ReportStore implementations: the seam gains closeOpen(targetId, resolution), which closes every open report against a target and returns how many it closed (docs/seams.md → ReportStore). makeInMemoryReportStore in ./testing implements it.

Patch Changes

  • #396 bd7204c Thanks @thomasfosterau! - Doc comments no longer cite issues or narrate history.

  • #410 61d98ec Thanks @thomasfosterau! - Doc comments only: SubtypeDeclarationError and EdgeDeclarationError now list every declaration they refuse, isPubliclyServeable cites CACHE-AUTH-005, and a typo in Forbidden's comment is fixed.

@github-actions
github-actions Bot force-pushed the changeset-release/trunk branch 8 times, most recently from ffec0a4 to d4e2ee1 Compare November 19, 2026 23:49
@github-actions
github-actions Bot force-pushed the changeset-release/trunk branch 19 times, most recently from 7da8e14 to b305dc1 Compare November 24, 2026 08:19
@github-actions
github-actions Bot force-pushed the changeset-release/trunk branch from b305dc1 to f4a3baa Compare November 24, 2026 23:51

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants