DocumentMovedProcessor destroys every sourced membership on the moved
document and its descendants, then rebuilds them only from the new
parent's memberships. Memberships granted directly on the moved document
(or on any of its descendants) survive the move, but the sourced
memberships they had created further down the tree were never recreated,
so children silently lost access granted on their ancestor.
Recreate sourced memberships from every direct membership in the moved
subtree after the destroy step, in the same transaction.
* feat: Add get_document_changes MCP tool to diff document history
* fix: Bound document changes to the loaded snapshot and diff raw markdown
* perf: Replace structuredPatch with an integer ID line diff (#14246)
* fix: Update get_document_changes for MCP SDK v2
The tool and resource lists never change during a request, so do not
advertise listChanged. This stops 2026-07-28 clients from holding open
SSE streams that the router interrupts.
Load the views of all comment notification recipients in one query
instead of one query for each recipient, and check each element for diff
classes with one combined selector, once.
* chore: Vendorize throng as ClusterManager
* fix: Force kill workers after grace period, skip fork if shutting down
* fix: Give workers their full shutdown timeout before the primary exits
* chore: Use a named export for ShutdownHelper
* feat: Support one-click unsubscribe (RFC 8058)
- Emails with an unsubscribe URL now send List-Unsubscribe-Post: List-Unsubscribe=One-Click.
- notifications.unsubscribe and shares.unsubscribe accept a form POST from mail providers and return 200.
* fix: Use default rate limiter for shares.unsubscribe
Mail providers send one-click unsubscribe callbacks in bulk from a small set of IPs. Remove mailer.test.tsx.
* fix: Allow every mention notification to be turned off and unsubscribed
- The Mentioned and Group mentions settings now control both the document and comment event types.
- Mention, share, collection invite, and access request emails now have an unsubscribe link and List-Unsubscribe header.
* fix: Translate access request emails and set email language and direction
- The access request email now uses the language of the recipient.
- Emails now set lang and dir on the HTML document, and RTL emails align content to the right.
* fix: Allow every mention notification to be turned off and unsubscribed
- The Mentioned and Group mentions settings now control both the document and comment event types.
- Mention, share, collection invite, and access request emails now have an unsubscribe link and List-Unsubscribe header.
* Remove test
A heading whose text ends in a number could get the same slug as a
numbered duplicate. Heading slugs now come from one HeadingSlugger that
skips taken IDs, and the server section lookup counts nested headings
like the editor does.
* fix: Tighten checks when publishing drafts
Detaching a document on unpublish now also clears its parent.
* fix: Publish at the root when the parent is in another collection
* test: Load detached drafts without the default scope
* fix: Share state handling for unpublished documents
* fix: Update cached shares when a document is unpublished
* Revert "fix: Update cached shares when a document is unpublished"
This reverts commit 15abf962b8.