Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@liveblocks/yjs

Package Overview
Dependencies
Maintainers
6
Versions
244
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@liveblocks/yjs - npm Package Versions

23
25

2.16.0

Diff

Changelog

Source

v2.16.0

Our error listener APIs will now receive more errors in general, including errors from using Comments & Notifications. Previously, these would only receive room connection errors from Presence, Storage, or Yjs.

For example, now when creation of a thread fails, deletion of a comment fails, marking a notification as read fails, etc.

@liveblocks/react

Breaking: More errors can appear in useErrorListener()
// ❌ Before: required a RoomProvider and would only notify about errors for that room
// ✅ Now: requires a LiveblocksProvider and will notify about errors for any room
useErrorListener((err: LiveblocksError) => {
  /* show toast, or notify Sentry, Datadog, etc */
});

See the Upgrade Guide for 2.16 to learn how to adapt your code.

Filtering by absence of metadata

We now support filtering threads by absence of metadata as well in useThreads({ query }) (or useUserThreads_experimental({ query })).

For example, you can now filter threads that do not have a color attribute set in their metadata:

useThreads({
  query: {
    // Filter any "pinned" threads that don't have a color set
    metadata: {
      pinned: true,
      color: null, // ✨
    },
  },
});

See the Upgrade Guide for 2.16 to learn how to adapt your code.

Bug fixes
  • Automatically refresh Comments and Notifications when the browser window regains focus.

@liveblocks/client

The error listener APIs will now receive more errors in general, including errors from using Comments & Notifications. Previously, these would only receive room connection errors from Presence, Storage, or Yjs.

// 👌 Same as before, but might now also receive errors related to Comments & Notifications
room.subscribe("error", (err) => { ... });

@liveblocks/react-ui

  • Most of the icons used in the default components are now usable as <Icon.* /> via import { Icon } from "@liveblocks/react-ui".

@liveblocks/react-lexical and @liveblocks/react-tiptap

  • Add <Toolbar /> and <FloatingToolbar /> components to simplify building editor toolbars. They come with default controls out-of-the-box based on what the editor they’re attached to supports, but they’re also heavily extendable and customizable. Use inner components like <Toolbar.Toggle /> and <Toolbar.Separator /> to extend the defaults with your own actions, or start from scratch while customizing some of the defaults via <Toolbar.SectionInline /> or <Toolbar.BlockSelector /> for example.

@liveblocks/react-lexical

  • Add isTextFormatActive and isBlockNodeActive utilities.

@liveblocks/yjs

  • Add new option useV2Encoding_experimental to LiveblocksYjsProvider to enable experimental V2 encoding for Yjs.
liveblocks-bot
published 2.17.0-channels1 •

liveblocks-bot
published 2.16.0-toolbars5 •

liveblocks-bot
published 2.16.0-toolbars4 •

liveblocks-bot
published 2.16.0-rc1 •

liveblocks-bot
published 2.16.0-toolbars3 •

liveblocks-bot
published 2.16.0-toolbars2 •

liveblocks-bot
published 2.16.0-toolbars1 •

liveblocks-bot
published 2.15.2 •

Changelog

Source

2.15.2

All packages

  • Fix useLayoutEffect warnings when using React versions lower than 18.3.0 and SSR.

@liveblocks/react

  • Fix memory leak in some hooks.
  • Fix bug where querying metadata with useThreads() would not always reuse the cache correctly.
liveblocks-bot
published 2.15.1 •

Changelog

Source

2.15.1

All packages

  • Fix rollup config to always ensure "use client" directives are on top of files after build.
23
25
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc