Skip to content

feat(sharedb): add document lifecycle events#10

Merged
edocevol merged 1 commit into
mainfrom
feat/sharedb-document-lifecycle
Apr 28, 2026
Merged

feat(sharedb): add document lifecycle events#10
edocevol merged 1 commit into
mainfrom
feat/sharedb-document-lifecycle

Conversation

@edocevol
Copy link
Copy Markdown
Owner

Summary

  • add EventType values for operation and delete lifecycle events
  • add Backend.DeleteDoc with memory and Redis implementations
  • add Server.DeleteDocument with exact version validation and delete event publication
  • ensure Redis delete removes snapshot and op log together to avoid stale history on recreate
  • document DeleteDocument behavior in sharedb README

Test Plan

  • go test ./...
  • cd sharedb && go test ./...
  • cd sharedb && go vet ./...
  • cd sharedb && go test -race ./...

Review

  • independent reviewer subagent: PASS

@edocevol edocevol merged commit 4fc6afe into main Apr 28, 2026
1 check passed
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.

1 participant