@dittolive/ditto 4.5.4 → 4.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. package/README.md +2 -2
  2. package/node/ditto.cjs.js +1111 -563
  3. package/node/ditto.darwin-arm64.node +0 -0
  4. package/node/ditto.darwin-x64.node +0 -0
  5. package/node/ditto.linux-arm.node +0 -0
  6. package/node/ditto.linux-arm64.node +0 -0
  7. package/node/ditto.linux-x64.node +0 -0
  8. package/node/ditto.win32-x64.node +0 -0
  9. package/node/transports.darwin-arm64.node +0 -0
  10. package/node/transports.darwin-x64.node +0 -0
  11. package/package.json +45 -1
  12. package/react-native/android/build.gradle +1 -1
  13. package/react-native/android/cpp-adapter.cpp +68 -59
  14. package/react-native/android/src/main/java/com/dittolive/rnsdk/DittoRNSDKModule.java +35 -0
  15. package/react-native/cpp/include/Arc.hpp +1 -1
  16. package/react-native/cpp/include/Attachment.h +5 -1
  17. package/react-native/cpp/include/DQL.h +9 -9
  18. package/react-native/cpp/include/FFIUtils.h +14 -0
  19. package/react-native/cpp/include/IO.h +13 -0
  20. package/react-native/cpp/include/Lifecycle.h +0 -1
  21. package/react-native/cpp/include/Misc.h +3 -0
  22. package/react-native/cpp/include/Utils.h +0 -2
  23. package/react-native/cpp/src/Attachment.cpp +200 -13
  24. package/react-native/cpp/src/Authentication.cpp +3 -3
  25. package/react-native/cpp/src/DQL.cpp +23 -23
  26. package/react-native/cpp/src/Document.cpp +10 -10
  27. package/react-native/cpp/src/FFIUtils.cpp +64 -0
  28. package/react-native/cpp/src/IO.cpp +35 -0
  29. package/react-native/cpp/src/Identity.cpp +3 -3
  30. package/react-native/cpp/src/Lifecycle.cpp +2 -19
  31. package/react-native/cpp/src/LiveQuery.cpp +3 -5
  32. package/react-native/cpp/src/Logger.cpp +171 -172
  33. package/react-native/cpp/src/Misc.cpp +52 -4
  34. package/react-native/cpp/src/Presence.cpp +1 -1
  35. package/react-native/cpp/src/SmallPeerInfo.cpp +1 -1
  36. package/react-native/cpp/src/Transports.cpp +10 -5
  37. package/react-native/cpp/src/Utils.cpp +110 -114
  38. package/react-native/cpp/src/main.cpp +28 -15
  39. package/react-native/dittoffi/dittoffi.h +328 -280
  40. package/react-native/ios/DittoRNSDK.mm +123 -71
  41. package/react-native/src/ditto.rn.ts +30 -6
  42. package/react-native/src/index.ts +7 -4
  43. package/react-native/src/sources/@cbor-redux.ts +1 -1
  44. package/react-native/src/sources/attachment-fetch-event.ts +2 -2
  45. package/react-native/src/sources/attachment-fetcher-manager.ts +5 -4
  46. package/react-native/src/sources/attachment-fetcher.ts +152 -21
  47. package/react-native/src/sources/attachment-token.ts +94 -13
  48. package/react-native/src/sources/attachment.ts +66 -19
  49. package/react-native/src/sources/augment.ts +13 -6
  50. package/react-native/src/sources/base-pending-cursor-operation.ts +22 -6
  51. package/react-native/src/sources/base-pending-id-specific-operation.ts +3 -0
  52. package/react-native/src/sources/bridge.ts +2 -2
  53. package/react-native/src/sources/cbor.ts +0 -15
  54. package/react-native/src/sources/collection-interface.ts +12 -6
  55. package/react-native/src/sources/collection.ts +9 -2
  56. package/react-native/src/sources/ditto.ts +26 -18
  57. package/react-native/src/sources/document-id.ts +11 -7
  58. package/react-native/src/sources/document-path.ts +4 -2
  59. package/react-native/src/sources/document.ts +49 -5
  60. package/react-native/src/sources/error-codes.ts +28 -0
  61. package/react-native/src/sources/error.ts +20 -1
  62. package/react-native/src/sources/essentials.ts +25 -3
  63. package/react-native/src/sources/ffi-error.ts +2 -1
  64. package/react-native/src/sources/ffi.ts +180 -102
  65. package/react-native/src/sources/internal.ts +37 -3
  66. package/react-native/src/sources/live-query-manager.ts +10 -1
  67. package/react-native/src/sources/live-query.ts +1 -1
  68. package/react-native/src/sources/observer-manager.ts +7 -0
  69. package/react-native/src/sources/pending-id-specific-operation.ts +2 -2
  70. package/react-native/src/sources/presence-manager.ts +12 -2
  71. package/react-native/src/sources/presence.ts +5 -0
  72. package/react-native/src/sources/query-result-item.ts +15 -0
  73. package/react-native/src/sources/small-peer-info.ts +2 -2
  74. package/react-native/src/sources/static-tcp-client.ts +2 -0
  75. package/react-native/src/sources/store-observer.ts +4 -2
  76. package/react-native/src/sources/store.ts +253 -3
  77. package/react-native/src/sources/sync.ts +6 -3
  78. package/react-native/src/sources/transport-config.ts +2 -2
  79. package/react-native/src/sources/update-results-map.ts +8 -0
  80. package/react-native/src/sources/write-transaction-collection.ts +1 -1
  81. package/react-native/src/sources/write-transaction.ts +1 -1
  82. package/types/ditto.d.ts +2866 -2568
  83. package/web/ditto.es6.js +1 -1
  84. package/web/ditto.umd.js +1 -1
  85. package/web/ditto.wasm +0 -0
  86. package/react-native/.yarn/install-state.gz +0 -0
  87. package/react-native/.yarnrc.yml +0 -1
package/README.md CHANGED
@@ -3,10 +3,10 @@
3
3
  _Ditto is a cross-platform SDK that allows mobile, web, and IoT apps to sync
4
4
  with and even without connectivity._
5
5
 
6
- Version: **4.5.4**
6
+ Version: **4.6.0**
7
7
 
8
8
  For more information please visit [ditto.live](https://ditto.live), as well as the
9
- [API Reference](https://software.ditto.live/js/Ditto/4.5.4/api-reference/) for this particular version.
9
+ [API Reference](https://software.ditto.live/js/Ditto/4.6.0/api-reference/) for this particular version.
10
10
 
11
11
  ---
12
12