SDK Guides
JavaScript
Release Notes: JavaScript & React Native
version 4 5 4 fixed intermittent crash when syncing over bluetooth le gatt with "datatoolarge" error (#9789) version 4 5 3 fixed a crash in android bluetooth subsystem (#11467) version 4 5 2 javascript fixed windows p2p lan only used ipv4 while advertising the service on ipv6 too (#11308) fixed store observers set up through registerobserver no longer stall when errors are thrown in the observation handler callback (#11293) fixed changed ditto disablesyncwithv3() to be async to allow awaiting the completion of the upgrade (#11385) react native removed the boost library from our sdk to resolve namespace conflicts on the user side (#11351) updated the sdk to automatically fetch the aar android binary from maven for improved dependency management (#11351) version 4 5 2 synchronized version bump release — no changes version 4 5 1 added support for light jwts (separating identity data) fixed a potential panic if an f64 nan is compared to a u64 or i64 during collation closing a ditto instance after having set an invalid transport config no longer throws an error configuring unsupported http and tcp transport options in the browser now throws an error version 4 5 0 if you are upgrading from v4 x to v4 5 without adopting any new functionality there will be no changes required and all other v4 x devices will sync with v4 5 devices v4 5 follows semver and is backwards compatible with all previous v4 versions all changes in v4 5 are additive and don’t require any additional work when upgrading if you plan on adopting dql as part of the migration to v4 5 review docid\ e2zbkpkqwymyxw5pn4rjm note all existing apis and queries (eg find , findbyid , observe , ect ) will remain supported for the foreseeable future we will notify customers with advanced warning when we plan to end of life these apis added added support for react native (#10708) class queryresultitem representing a single match in a dql query result (#10375) class queryresult representing the result of executing a dql query (#10375) method execute() on store that executes a dql query and returns a queryresult containing queryresultitems (#10375) class syncsubscription that configures ditto to receive updates from remote peers about documents matching the subscription's query it's a dql counterpart and successor to the existing subscription class (#10437) method registersubscription() on sync that installs and returns a syncsubscription (#10437) class storeobserver that configures ditto to invoke a callback whenever results for its query change (#10550) method registerobserver() on store that registers and returns a storeobserver (#10550) property observers on store providing access to all currently active store observers (#10637) property subscriptions on sync providing access to all currently active sync subscriptions (#10637) property sync on ditto of type sync to serve as an entry point for sync functionality (#10637) class dittoerror used for all errors thrown from dql apis (#10651) ditto smallpeerinfo now allows setting user supplied metadata to be stored along with the collected info (#10735) static property version to ditto class (#10789) deprecated transportconfiglan ismulticastenabled property (#10126) changed store experimental execute() to fail early rather than when requesting the results (#10172) ditto javascript sdk for macos is built and tested with xcode 14 3 1 (#10177) improved performance by implementing bipartite distance aware mesh topology (#10632) memory usage and performance of documents (#10736) reduced metadata accumulation after eviction by clearing remote summaries (#7065) serialization performance (#9112) fixed updated some logging fallbacks to always use the configurable ditto logger instead of console error() (#10322) removed misleading error logs when presence information changes after a presence observer has been stopped (#10322) bluetooth and lan transports fail to stop on windows and linux (#8809) made logging more robust to failed writes in a specific set of circumstances (#10077) addressed a warning from sqlite that sometimes occurs on startup about a schema change (#10501) presence graph may not show all active connections (#10507) when observing peers, isconnectedtodittocloud property may be incorrect (#10534) initial logging events now use the same format as all other logs (#10611) mesh could choose random connections (#10711) a bug with ditto's internal crash handler (#10022) to access release notes for earlier ditto versions, go to https //docs ditto live/v4 4 of the documentation by clicking the version picker located in the upper left corner and selecting 4 4 from the menu