Zum Inhalt springen

Liveblocks Release Notes

Einträge
35
Quellen
1
Zuletzt aktualisiert

Folge Liveblocks, um die Release Notes in deinen Feed zu holen.

Liveblocks

3.25.2

@liveblocks/client

  • Improve reconnection behavior on unstable networks. Previously, a connection that dropped shortly after opening would be retried almost immediately, over and over. Now, the reconnection delay only resets once a connection has stayed open for a while, so repeatedly dropping connections back off as expected.
  • Add a random delay (up to 20% longer) to reconnection attempts, so that many clients losing their connection at the same time don't all reconnect at the exact same moment.

@liveblocks/node

  • Harden webhook signature verification in WebhookHandler.verifyRequest().

Originalquelle(öffnet in neuem Tab)Problem melden

Liveblocks

3.25.0

@liveblocks/client, @liveblocks/react, and @liveblocks/node

  • Potentially breaking: Plain JSON arrays and tuples in the return types of .toJSON(), useStorage() selectors, and getStorageDocument(roomId, "json") are now readonly, which is consistent with all other values these APIs return.

    type Storage = {
      items: LiveList<string>;
      tags: string[];
    };
    
    const json = root.toJSON();
    
    json.items;
    //   ^^^^^ readonly string[]  (✅ was already correct)
    
    json.tags;
    //   ^^^^ before: string[]           (❌ not consistent)
    //        now:    readonly string[]  (✅ consistent)
    

@liveblocks/node

  • Add markInboxNotificationAsRead() method.
  • Add a hasThreads query filter to getRooms() and iterRooms(). Use true or false to filter rooms with or without threads, or "unresolved" or "resolved" to filter by thread state.

@liveblocks/react

  • Add reload() to useInboxNotifications() to refresh notifications immediately.
  • Fix inbox notifications remaining visible after room access is revoked or a room is deleted.

Originalquelle(öffnet in neuem Tab)Problem melden

Liveblocks

Liveblocks 3.24.3: LiveText-Konvergenz nach Reconnect korrigiert

In @liveblocks/client wurde die Konvergenz von LiveText nach einem Reconnect mit ausstehenden Änderungen (u. a. verlorene Bestätigungen, wiederholte Reconnects, gepufferte Änderungen) korrigiert, sodass Wiederherstellungs-Updates nun die Editor-Integrationen erreichen.

@liveblocks/client

  • Fix LiveText reconnect convergence with pending edits, including lost acknowledgements, repeated reconnects, and queued edits. Recovery updates now reach editor integrations instead of being filtered as local echoes.

Originalquelle(öffnet in neuem Tab)Problem melden

Liveblocks

Liveblocks 3.24.2: Korrekturen bei Rückgabetypen, Chat-SDK-Adapter erweitert

Version 3.24.2 korrigiert Sonderfälle bei den Rückgabetypen von .toJSON(), useStorage()-Selektoren und getStorageDocument(roomId, "json") und erlaubt im @liveblocks/chat-sdk-adapter die Auflösung von apiKey und webhookSecret pro Anfrage sowie einen eigenen webhookVerifier.

@liveblocks/client, @liveblocks/react, and @liveblocks/node

  • Fix edge cases in return types of .toJSON(), useStorage() selectors, and getStorageDocument(roomId, "json"):
    • a LiveObject whose properties are all optional no longer loses its keys when nested inside another Live structure.
    • a value typed as Record<string, T> no longer loses T.
    • an object carrying both a string index signature and named keys no longer loses the named keys.
    • a LiveObject converts to the same type whether you reach it directly or through a parent.

@liveblocks/chat-sdk-adapter

  • Allow apiKey and webhookSecret to be resolved per request, and add custom webhookVerifier support for rotated credentials and webhook-forwarding infrastructure such as Vercel Connect.

Originalquelle(öffnet in neuem Tab)Problem melden

Liveblocks

Liveblocks 3.24.1: neuer Hook useMutableStorage()

@liveblocks/react bietet mit useMutableStorage() einen neuen Hook für direkten Zugriff auf die veränderbare Storage-Wurzel und behebt, dass der Status "gelöst/ungelöst" von Threads unter bestimmten Bedingungen zurückgesetzt wurde.

@liveblocks/react

  • Add new hook useMutableStorage() to get direct access to the mutable Storage root. See docs.
  • Fix thread resolved/unresolved status being reverted under some conditions. (Thanks @VihaanAgarwal for the contribution!)

Originalquelle(öffnet in neuem Tab)Problem melden

Liveblocks

Liveblocks 3.24.0: LiveText (Beta) und neue Editor-Pakete

Version 3.24.0 führt LiveText (Beta) für kollaborative Textbearbeitung mit optionaler Inline-Formatierung ein, ergänzt eine source-Angabe bei Storage-Updates für Deep-Subscriber, bringt neue Pakete für CodeMirror, Lexical und ProseMirror und behebt useIsEditorReady() in @liveblocks/react-tiptap.

This release introduces LiveText (beta), a collaborative rich-text data structure for plain text with optional inline formatting.

@liveblocks/client

  • Storage updates delivered to deep subscribers now carry a source field, saying whether the change was made by this client ({ origin: "local", via: "edit" | "undo" | "redo" }) or by another one ({ origin: "remote" }), see docs.
  • Add LiveText for collaborative text editing with concurrent inserts, deletes, and formatting changes.

@liveblocks/codemirror, @liveblocks/lexical, and @liveblocks/prosemirror

  • Introduce packages for integrating CodeMirror, Lexical, and ProseMirror editors with Liveblocks Storage and LiveText.

@liveblocks/react-tiptap

  • Fix useIsEditorReady() so it correctly reports when the Tiptap editor is ready. Thanks @danilowoz for the fix.

Originalquelle(öffnet in neuem Tab)Problem melden

Liveblocks

Liveblocks 3.23.1: Versionsverlauf mit Versionen ohne Autoren

Die Versionsverlauf-Komponenten in @liveblocks/react-ui kommen besser mit Versionen ohne Autoren zurecht, etwa bei reinen Server-Änderungen, und die Overrides HISTORY_VERSION_SUMMARY_AUTHORS_LIST sowie HISTORY_VERSION_PREVIEW_AUTHORS_LIST wurden entsprechend angepasst.

@liveblocks/react-ui

  • Improve version history components for versions without authors, which can occur with server-only changes. Add HISTORY_VERSION_SUMMARY_AUTHORS_LIST and update HISTORY_VERSION_PREVIEW_AUTHORS_LIST overrides to reflect this.

Originalquelle(öffnet in neuem Tab)Problem melden

Liveblocks

Liveblocks 3.23.0: LiveFile für Dateien im Storage

Version 3.23.0 führt mit LiveFile eine neue Datenstruktur zum Speichern von Dateien wie Bildern und Videos im Storage eines Rooms ein, inklusive Upload- und URL-Funktionen in Client, React, Node und Python SDK sowie Upload von Kommentaranhängen.

This release introduces LiveFile: a new data structure to store files such as images and videos in a room's Storage tree.

@liveblocks/client

  • Add room.uploadFile() to upload a file and return a LiveFile.
  • Add room.getFileUrl() to get access to a LiveFile.

@liveblocks/react

  • Add useUploadFile() to upload a file and return a LiveFile.
  • Add useFileUrl() to get access to a LiveFile.

@liveblocks/node

  • Add uploadFile() to upload a file and return a LiveFile.
  • Add getFileUrl() to get access to a LiveFile.
  • Add uploadAttachment() to upload comment attachments, combined with attachmentIds params in createThread(), createComment(), and editComment().

Python SDK

  • Add methods to upload Storage files for LiveFile, retrieve their download URLs, and handle multipart uploads.
  • Add methods to upload comment attachments, including multipart uploads.

Originalquelle(öffnet in neuem Tab)Problem melden

Liveblocks

Liveblocks 3.22.0: Versionsverlauf für Storage

Version 3.22.0 bringt Versionsverlauf für Storage, sodass eine Version nun Storage und Yjs-Dokumente sichert, mit neuen React-Hooks zum Auflisten, Ansehen, Wiederherstellen und Löschen von Versionen sowie passenden Methoden in @liveblocks/node und im Python SDK.

@liveblocks/react

This release adds version history support for Storage: a version now snapshots both the room's Storage and Yjs documents (previously Yjs only).

  • Creating a version now also snapshots Storage, not just Yjs, see docs.
  • useHistoryVersions() lists the room's versions. Each has a vh_xxx id, see docs.
  • useHistoryVersionStorageData("vh_xxx") returns that version's Storage as a read-only LiveObject so you can visualize or diff it manually, see docs.
  • useRestoreToStorageVersion("vh_xxx") restores the room's Storage to that version, as a single undoable change, see docs.
  • useDeleteHistoryVersion() returns deleteHistoryVersion("vh_xxx") to permanently delete a version, see docs.

@liveblocks/node and Python SDK

  • Add methods for version history to list room versions, create a version snapshot, and delete a version.

Originalquelle(öffnet in neuem Tab)Problem melden

Liveblocks

Liveblocks 3.21.0

Threads unterstützen nun öffentliche und private Sichtbarkeit (visibility) samt skalierten Comments-Berechtigungen wie comments:public:write, zudem gibt es den neuen Hook useHistoryVersionYjsData() und eine Breaking Change bei HistoryVersion (Felder type und kind entfernt).

All packages

  • Add support for public and private threads. Threads now have a visibility property that is "public" by default but can be set to "private" when created. Permissions can be used to decide which threads a user has access to, and threads can also be queried by their visibility to create filtered views.
  • Add scoped comments permissions such as comments:public:write and comments:private:none.

@liveblocks/client

  • Breaking: Remove type and kind fields from HistoryVersion type. The backend no longer returns these.
  • Add visibility to createThread.
  • Support querying by visibility in getThreads.

@liveblocks/react

  • Add visibility to useCreateThread.
  • Support querying by visibility in useThreads.
  • Add useHistoryVersionYjsData() hook to retrieve raw Yjs binary data for a given version. Deprecate useHistoryVersionData() in its favor.

@liveblocks/node

  • Add visibility to createThread.
  • Support querying by visibility in getThreads.

@liveblocks/react-ui

  • Add a visibility prop to Composer.
  • Prevent Composer from collapsing after focusing and blurring unless it was explicitly meant to support a collapsed state.

Originalquelle(öffnet in neuem Tab)Problem melden

Liveblocks

Liveblocks 3.20.1

Behoben wurde ein Fehler, bei dem eine zu große WebSocket-Nachricht den Top-Level-Storage-Key eines Rooms mit initialStorage überschreiben und so Datenverlust verursachen konnte.

@liveblocks/client

  • Fix a bug where sending a too large WebSocket message could sometimes overwrite a room's top-level storage key with initialStorage, causing data loss. (Thanks @watemerald for reporting!)

Originalquelle(öffnet in neuem Tab)Problem melden

Liveblocks

Liveblocks 3.20.0

Neue ressourcenspezifische Berechtigungen erlauben, ausgehend von *:read oder *:write den Zugriff pro Ressource (Storage, Comments, Feeds) zu erteilen oder zu verweigern, während session.FULL_ACCESS, session.READ_ACCESS und room.getStorageSnapshot() veraltet sind.

All packages

  • Add support for new resource-specific permissions. You can now start from a *:read or *:write base, then grant or deny access per resource (storage, comments, feeds) using new permission strings like storage:none or comments:read.

@liveblocks/node

  • Deprecate session.FULL_ACCESS and session.READ_ACCESS in favor of ["*:write"] and ["*:read"] respectively.

@liveblocks/client

  • Deprecate room.getStorageSnapshot() in favor of room.getStorageOrNull().

Originalquelle(öffnet in neuem Tab)Problem melden

Liveblocks

Liveblocks 3.19.5

Behoben wurde eine weitere LiveList-Divergenz nach Reconnects, bei der ein ausstehender push trotz des Fixes aus 3.19.4 unter bestimmten Timing-Bedingungen zu Abweichungen zwischen Clients führen konnte.

@liveblocks/client

  • Fix a LiveList divergence after reconnects: a pending push could under specific timing conditions during a reconnect still cause a divergence between clients, despite the fix from 3.19.4.

Originalquelle(öffnet in neuem Tab)Problem melden

Liveblocks

Liveblocks 3.19.4

Mehrere Fehler in @liveblocks/client wurden behoben, darunter die Reihenfolge gleichzeitiger LiveList.push()-Aufrufe, wieder auftauchende offline gelöschte LiveObject-Keys, zu viele Update-Benachrichtigungen beim Reconnect und ein fehlendes deletedItem in Änderungsbenachrichtigungen.

@liveblocks/client

  • Fix LiveList.push() so concurrent pushes from multiple clients no longer settle out of order.
  • Fix a bug where a LiveObject key deleted while a client was offline would reappear on reconnect, preventing the two clients from reconverging.
  • Fix a bug where reconnecting would emit too many update notifications for LiveObject keys whose values had not actually changed.
  • Fix a bug where deleting a nested live value from a LiveObject omitted the removed value (deletedItem) from the change notification.

Originalquelle(öffnet in neuem Tab)Problem melden

Liveblocks

Liveblocks 3.19.3

Behoben wurden unerwartete Verbindungsabbrüche beim Empfang großer oder lang laufender Streaming-Antworten des Servers, etwa beim Laden eines großen initialen Storage-Zustands.

  • Fix unexpected disconnects that could happen while receiving large or long-running streaming responses from the server (e.g. when loading a large initial storage state).

Originalquelle(öffnet in neuem Tab)Problem melden

Liveblocks

Liveblocks 3.19.2

Clients mit aktiviertem backgroundKeepAliveTimeout trennen die Verbindung nicht mehr, bevor ausstehende Yjs-Updates mit dem Server synchronisiert wurden.

@liveblocks/client

  • Fix: clients that have backgroundKeepAliveTimeout enabled will no longer disconnect before any pending Yjs updates have been synced to the server.

Originalquelle(öffnet in neuem Tab)Problem melden

Liveblocks

Liveblocks 3.19.1

Die Provider in @liveblocks/node und im Python SDK unterstützen nun neuere Modelle bis zu GPT-5.5-Varianten, Sonnet 4.6, Opus 4.7 und Gemini 3/3.1-Varianten.

@liveblocks/node and Python SDK

  • Update providers to support newer models up to GPT-5.5 variants, Sonnet 4.6, Opus 4.7, and Gemini 3/3.1 variants.

Originalquelle(öffnet in neuem Tab)Problem melden