-
Notifications
You must be signed in to change notification settings - Fork 43
[PUB-1667] Update LiveObjects docs to reflect support for JSON-serializable objects as LiveMap values #2689
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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 (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, minor comments. Also should not be merged until the ably-js client support has been released
src/pages/docs/liveobjects/index.mdx
Outdated
@@ -57,7 +57,7 @@ LiveObjects provides specialized object types to model your application state. T | |||
|
|||
#### 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changed 👍
{ "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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shall we include an array example?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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