mirror of
https://github.com/outline/outline.git
synced 2026-11-22 22:02:35 +03:00
* chore: Vendorize y-indexeddb persistence Replaces the y-indexeddb dependency with a small typed module in app/utils/IndexeddbPersistence.ts so we have full control over the underlying database rows. The IndexedDB schema is unchanged and remains compatible with databases created by y-indexeddb, so existing local caches continue to work. Differences from upstream: - Promise-based API (whenSynced) instead of the lib0 Observable events, which simplifies MultiplayerEditor and lets it handle environments where IndexedDB exists but cannot be opened (e.g. Firefox private browsing) by falling back to no local persistence. - Skips writing an empty state row every time a document is opened. - Exposes a public compact() to merge all rows into one on demand. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XYncL4PQ5jaEeMBNgjRzf9 * chore: Remove persistence tests and fake-indexeddb dependency Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XYncL4PQ5jaEeMBNgjRzf9 * chore: Make trim size a private class member, drop unused custom store Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XYncL4PQ5jaEeMBNgjRzf9 * fix: Guard async persistence callbacks against post-cleanup state updates Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XYncL4PQ5jaEeMBNgjRzf9 * Added onversionchange handler --------- Co-authored-by: Claude <noreply@anthropic.com>