Changelog

v0.16.0

v0.16.0
v0.16.0

New APIs

LiveList.set

Set one element at a specified index.

const list = new LiveList(["๐Ÿฆ", "๐ŸฆŠ", "๐Ÿต"]);list.set(0, "๐Ÿบ");list.toArray(); // equals ["๐Ÿบ", "๐ŸฆŠ", "๐Ÿต"]

https://github.com/liveblocks/liveblocks/pull/147 for more information

โš ๏ธ Before using LiveList.set, you need to make sure that all connected clients are using 0.16.0. If a client is connected to a room with version < 0.16, LiveList.set might lead to slightly unexpected behavior.

TypeScript improvements

@nvie improved our typescript definitions! They are more precise and restrictive (for your own good :)). If typescript errors appears after upgrading to 0.16.0 and they are not clear, please create a Github issue and we'll help you.

More information here: https://github.com/liveblocks/liveblocks/pull/150