[PUB-1667] Update LiveObjects docs to reflect support for JSON-serializable objects as LiveMap values#2689
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing Touches🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
CodeRabbit Configuration File (
|
mschristensen
left a comment
There was a problem hiding this comment.
Looks good, minor comments. Also should not be merged until the ably-js client support has been released
| #### LiveMap <a id="map"/> | ||
|
|
||
| [LiveMap](/docs/liveobjects/map) is a key/value data structure that synchronizes its state across users in realtime. It enables you to store primitive values, such as numbers, strings, booleans and buffers, as well as other objects, enabling [composable data structures](#composability). | ||
| [LiveMap](/docs/liveobjects/map) is a key/value data structure that synchronizes its state across users in realtime. It enables you to store primitive values, such as numbers, strings, booleans and buffers; JSON-serializable objects or arrays; and other LiveObjects types, enabling [composable data structures](#composability). |
There was a problem hiding this comment.
nit: I would drop the semicolons and stick consistently with commas
| [LiveMap](/docs/liveobjects/map) is a key/value data structure that synchronizes its state across users in realtime. It enables you to store primitive values, such as numbers, strings, booleans and buffers; JSON-serializable objects or arrays; and other LiveObjects types, enabling [composable data structures](#composability). | |
| [LiveMap](/docs/liveobjects/map) is a key/value data structure that synchronizes its state across users in realtime. It enables you to store primitive values, such as numbers, strings, booleans, buffers, JSON-serializable objects or arrays and other LiveObjects types, enabling [composable data structures](#composability). |
Applies to other files too
| { "data": { "objectId": "counter:JbZYiHnw0ORAyzzLSQahVik31iBDL_ehJNpTEF3qwg8@1745828651669" }} | ||
| { "data": { "number": 42 } } | ||
| { "data": { "string": "LiveObjects is awesome" } } | ||
| { "data": { "string": "{\"hello\":\"world\"}", "encoding": "json" } } |
There was a problem hiding this comment.
Shall we include an array example?
There was a problem hiding this comment.
actually I've removed this JSON example from the REST docs from this PR, as I'm opening a separate PR for REST docs changes - it needs a bit more tweaking than just this one change, as we've removed the encoding field altogether and we use a dedicated json field now
e1405fe to
c65e04d
Compare
…cts as LiveMap values ably-js support for this added in [1] [1] ably/ably-js#2052
c65e04d to
7fb7cd6
Compare
|
can merge this PR now as ably-js functionality for this was released in https://github.com/ably/ably-js/releases/tag/2.11.0 |
Description
PUB-1667
ably-js support for this added in ably/ably-js#2052
Checklist