@liveblocks/node
Advanced tools
Changelog
v0.17.0
For information, please read our Upgrade Guide.
This release contains major TypeScript improvements. The recommended setup now is that you define your own Presence and Storage types at the highest level (i.e. where you set up the room). After that initial one-time setup, you will no longer need to provide any extra type annotations anywhere for your Liveblocks code! 🙌
To learn how to set that up, follow the instructions in our Upgrade Guide.
any
types used (in @liveblocks/client
and @liveblocks/react
)LiveMap<K, V>
(like Map<K, V>
)LiveObject<{ a: number, b: string }>
(like, for example,
{ a: number, b: string }
)LiveList<T>
(like Array<T>
)We now support React Native! To learn how to use Liveblocks in your React Native projects, see our API reference. It's surprisingly simple!
In @liveblocks/react:
createRoomContext()
is now the preferred way to initialize hooks.In the API:
In @liveblocks/client:
Room.unsubscribe()
APIIn @liveblocks/client:
defaultPresence
option to client.enter()
will get renamed to
initialPresence
defaultStorageRoot
option to client.enter()
will get renamed to
initialStorage
new LiveMap(null)
will stop working. Please use new LiveMap()
,
or new LiveMap([])
In @liveblocks/react:
createRoomContext()
helper. For help, read the
Recommended Upgrade Steps section
within our
Upgrade GuideuseList()
, useObject()
, and useMap()
is
deprecateddefaultPresence
is renamed to initialPresence
defaultStorageRoot
is renamed to initialStorage