@dittolive/ditto 4.5.1 → 4.5.2-rc.3

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 (486) hide show
  1. package/DittoReactNative.podspec +2 -5
  2. package/README.md +2 -2
  3. package/node/ditto.cjs.js +2 -9653
  4. package/node/ditto.cjs.js.map +1 -0
  5. package/node/ditto.cjs.pretty.js +9655 -0
  6. package/node/ditto.cjs.pretty.js.map +1 -0
  7. package/node/ditto.darwin-arm64.node +0 -0
  8. package/node/ditto.darwin-x64.node +0 -0
  9. package/node/ditto.linux-x64.node +0 -0
  10. package/node/transports.darwin-arm64.node +0 -0
  11. package/node/transports.darwin-x64.node +0 -0
  12. package/package.json +34 -26
  13. package/react-native/android/build.gradle +2 -19
  14. package/react-native/cpp/include/Arc.hpp +141 -0
  15. package/react-native/cpp/include/Lifecycle.h +2 -1
  16. package/react-native/cpp/include/Misc.h +2 -1
  17. package/react-native/cpp/include/SmallPeerInfo.h +2 -0
  18. package/react-native/cpp/src/Authentication.cpp +17 -14
  19. package/react-native/cpp/src/DQL.cpp +10 -8
  20. package/react-native/cpp/src/Lifecycle.cpp +37 -2
  21. package/react-native/cpp/src/LiveQuery.cpp +2 -3
  22. package/react-native/cpp/src/Misc.cpp +15 -3
  23. package/react-native/cpp/src/Presence.cpp +8 -6
  24. package/react-native/cpp/src/SmallPeerInfo.cpp +34 -0
  25. package/react-native/cpp/src/main.cpp +6 -3
  26. package/react-native/dittoffi/dittoffi.h +186 -184
  27. package/react-native/lib/commonjs/ditto.rn.js +14 -15
  28. package/react-native/lib/commonjs/ditto.rn.js.map +1 -1
  29. package/react-native/lib/commonjs/index.js +61 -14
  30. package/react-native/lib/commonjs/index.js.map +1 -1
  31. package/react-native/lib/module/ditto.rn.js +16 -11
  32. package/react-native/lib/module/ditto.rn.js.map +1 -1
  33. package/react-native/lib/module/index.js +24 -10
  34. package/react-native/lib/module/index.js.map +1 -1
  35. package/react-native/lib/typescript/ditto.rn.d.ts.map +1 -1
  36. package/react-native/src/sources/@environment.ts +0 -1
  37. package/react-native/src/sources/attachment-fetcher-manager.ts +15 -0
  38. package/react-native/src/sources/attachment-fetcher.ts +10 -0
  39. package/react-native/src/sources/attachment.ts +15 -0
  40. package/react-native/src/sources/augment.ts +12 -0
  41. package/react-native/src/sources/base-pending-cursor-operation.ts +2 -0
  42. package/react-native/src/sources/bridge.ts +5 -1
  43. package/react-native/src/sources/build-time-constants.ts +5 -1
  44. package/react-native/src/sources/counter.ts +5 -0
  45. package/react-native/src/sources/ditto.ts +46 -12
  46. package/react-native/src/sources/document-id.ts +1 -1
  47. package/react-native/src/sources/document-path.ts +5 -2
  48. package/react-native/src/sources/document.ts +2 -1
  49. package/react-native/src/sources/epilogue.ts +6 -0
  50. package/react-native/src/sources/error.ts +7 -2
  51. package/react-native/src/sources/ffi-error.ts +6 -1
  52. package/react-native/src/sources/ffi.ts +51 -11
  53. package/react-native/src/sources/init.ts +2 -1
  54. package/react-native/src/sources/internal.ts +3 -7
  55. package/react-native/src/sources/keep-alive.ts +6 -2
  56. package/react-native/src/sources/key-path.ts +4 -1
  57. package/react-native/src/sources/live-query-manager.ts +5 -4
  58. package/react-native/src/sources/live-query.ts +2 -0
  59. package/react-native/src/sources/main.ts +60 -0
  60. package/react-native/src/sources/observer-manager.ts +5 -2
  61. package/react-native/src/sources/observer.ts +3 -1
  62. package/react-native/src/sources/pending-id-specific-operation.ts +4 -2
  63. package/react-native/src/sources/presence-manager.ts +2 -1
  64. package/react-native/src/sources/presence.ts +0 -5
  65. package/react-native/src/sources/register.ts +5 -2
  66. package/react-native/src/sources/small-peer-info.ts +1 -0
  67. package/react-native/src/sources/store-observer.ts +1 -0
  68. package/react-native/src/sources/store.ts +24 -4
  69. package/react-native/src/sources/subscription-manager.ts +2 -1
  70. package/react-native/src/sources/subscription.ts +1 -0
  71. package/react-native/src/sources/sync.ts +110 -46
  72. package/react-native/src/sources/transport-config.ts +2 -0
  73. package/react-native/src/sources/websocket-client.ts +1 -0
  74. package/react-native/src/sources/write-transaction-pending-id-specific-operation.ts +2 -0
  75. package/react-native/src/sources/write-transaction.ts +2 -0
  76. package/types/ditto.d.ts.map +1 -0
  77. package/web/ditto.es6.js +1 -1
  78. package/web/ditto.es6.js.map +1 -0
  79. package/web/ditto.es6.pretty.js +12600 -0
  80. package/web/ditto.es6.pretty.js.map +1 -0
  81. package/web/ditto.umd.js +1 -1
  82. package/web/ditto.umd.js.map +1 -0
  83. package/web/ditto.umd.pretty.js +12669 -0
  84. package/web/ditto.umd.pretty.js.map +1 -0
  85. package/web/ditto.wasm +0 -0
  86. package/node/ditto.linux-arm.node +0 -0
  87. package/node/ditto.win32-x64.node +0 -0
  88. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/.cmake/api/v1/query/client-agp/cache-v2 +0 -0
  89. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/.cmake/api/v1/query/client-agp/cmakeFiles-v1 +0 -0
  90. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/.cmake/api/v1/query/client-agp/codemodel-v2 +0 -0
  91. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/.cmake/api/v1/reply/cache-v2-970081f7c58ab1625a1a.json +0 -1303
  92. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/.cmake/api/v1/reply/cmakeFiles-v1-e1bacde094ce7e389294.json +0 -203
  93. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/.cmake/api/v1/reply/codemodel-v2-54964c7f44134b1cec4d.json +0 -60
  94. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/.cmake/api/v1/reply/directory-.-Debug-f5ebdc15457944623624.json +0 -14
  95. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/.cmake/api/v1/reply/index-2023-12-06T19-58-48-0479.json +0 -92
  96. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/.cmake/api/v1/reply/target-cpp-Debug-a438adda6ad6df71f898.json +0 -314
  97. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/.ninja_deps +0 -0
  98. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/.ninja_log +0 -21
  99. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/CMakeCache.txt +0 -393
  100. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CMakeCCompiler.cmake +0 -79
  101. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CMakeCXXCompiler.cmake +0 -90
  102. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CMakeDetermineCompilerABI_C.bin +0 -0
  103. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CMakeDetermineCompilerABI_CXX.bin +0 -0
  104. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CMakeSystem.cmake +0 -113
  105. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CompilerIdC/CMakeCCompilerId.c +0 -803
  106. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CompilerIdC/CMakeCCompilerId.o +0 -0
  107. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CompilerIdCXX/CMakeCXXCompilerId.cpp +0 -791
  108. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CompilerIdCXX/CMakeCXXCompilerId.o +0 -0
  109. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/CMakeFiles/CMakeOutput.log +0 -320
  110. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/CMakeFiles/TargetDirectories.txt +0 -3
  111. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/CMakeFiles/cmake.check_cache +0 -1
  112. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/Attachment.cpp.o +0 -0
  113. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/Authentication.cpp.o +0 -0
  114. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/Collection.cpp.o +0 -0
  115. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/DQL.cpp.o +0 -0
  116. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/Document.cpp.o +0 -0
  117. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/Identity.cpp.o +0 -0
  118. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/Lifecycle.cpp.o +0 -0
  119. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/LiveQuery.cpp.o +0 -0
  120. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/Logger.cpp.o +0 -0
  121. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/Misc.cpp.o +0 -0
  122. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/Presence.cpp.o +0 -0
  123. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/RetainableState.cpp.o +0 -0
  124. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/SmallPeerInfo.cpp.o +0 -0
  125. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/Transports.cpp.o +0 -0
  126. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/TypedArray.cpp.o +0 -0
  127. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/Utils.cpp.o +0 -0
  128. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/main.cpp.o +0 -0
  129. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/dittoffi/ifaddrs.cpp.o +0 -0
  130. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/CMakeFiles/cpp.dir/cpp-adapter.cpp.o +0 -0
  131. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/CMakeFiles/rules.ninja +0 -64
  132. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/additional_project_files.txt +0 -0
  133. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/android_gradle_build.json +0 -42
  134. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/android_gradle_build_mini.json +0 -31
  135. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/build.ninja +0 -297
  136. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/build_file_index.txt +0 -3
  137. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/cmake_install.cmake +0 -54
  138. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/compile_commands.json +0 -97
  139. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/compile_commands.json.bin +0 -0
  140. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/configure_fingerprint.bin +0 -8755
  141. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/metadata_generation_command.txt +0 -21
  142. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/prefab_config.json +0 -8
  143. package/react-native/android/.cxx/Debug/6p5m3p3q/arm64-v8a/symbol_folder_index.txt +0 -1
  144. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/.cmake/api/v1/query/client-agp/cache-v2 +0 -0
  145. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/.cmake/api/v1/query/client-agp/cmakeFiles-v1 +0 -0
  146. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/.cmake/api/v1/query/client-agp/codemodel-v2 +0 -0
  147. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/.cmake/api/v1/reply/cache-v2-0cc74b41e95a51ba0457.json +0 -1303
  148. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/.cmake/api/v1/reply/cmakeFiles-v1-ee90fea936bce5771631.json +0 -203
  149. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/.cmake/api/v1/reply/codemodel-v2-82fa8946198e6eba430b.json +0 -60
  150. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/.cmake/api/v1/reply/directory-.-Debug-f5ebdc15457944623624.json +0 -14
  151. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/.cmake/api/v1/reply/index-2023-12-06T19-58-48-0893.json +0 -92
  152. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/.cmake/api/v1/reply/target-cpp-Debug-1e9d0b1a457f7fe5c618.json +0 -314
  153. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/.ninja_deps +0 -0
  154. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/.ninja_log +0 -21
  155. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/CMakeCache.txt +0 -393
  156. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/CMakeFiles/3.22.1-g37088a8/CMakeCCompiler.cmake +0 -79
  157. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/CMakeFiles/3.22.1-g37088a8/CMakeCXXCompiler.cmake +0 -90
  158. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/CMakeFiles/3.22.1-g37088a8/CMakeDetermineCompilerABI_C.bin +0 -0
  159. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/CMakeFiles/3.22.1-g37088a8/CMakeDetermineCompilerABI_CXX.bin +0 -0
  160. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/CMakeFiles/3.22.1-g37088a8/CMakeSystem.cmake +0 -115
  161. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/CMakeFiles/3.22.1-g37088a8/CompilerIdC/CMakeCCompilerId.c +0 -803
  162. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/CMakeFiles/3.22.1-g37088a8/CompilerIdC/CMakeCCompilerId.o +0 -0
  163. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/CMakeFiles/3.22.1-g37088a8/CompilerIdCXX/CMakeCXXCompilerId.cpp +0 -791
  164. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/CMakeFiles/3.22.1-g37088a8/CompilerIdCXX/CMakeCXXCompilerId.o +0 -0
  165. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/CMakeFiles/CMakeOutput.log +0 -304
  166. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/CMakeFiles/TargetDirectories.txt +0 -3
  167. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/CMakeFiles/cmake.check_cache +0 -1
  168. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/Attachment.cpp.o +0 -0
  169. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/Authentication.cpp.o +0 -0
  170. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/Collection.cpp.o +0 -0
  171. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/DQL.cpp.o +0 -0
  172. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/Document.cpp.o +0 -0
  173. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/Identity.cpp.o +0 -0
  174. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/Lifecycle.cpp.o +0 -0
  175. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/LiveQuery.cpp.o +0 -0
  176. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/Logger.cpp.o +0 -0
  177. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/Misc.cpp.o +0 -0
  178. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/Presence.cpp.o +0 -0
  179. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/RetainableState.cpp.o +0 -0
  180. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/SmallPeerInfo.cpp.o +0 -0
  181. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/Transports.cpp.o +0 -0
  182. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/TypedArray.cpp.o +0 -0
  183. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/Utils.cpp.o +0 -0
  184. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/main.cpp.o +0 -0
  185. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/dittoffi/ifaddrs.cpp.o +0 -0
  186. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/CMakeFiles/cpp.dir/cpp-adapter.cpp.o +0 -0
  187. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/CMakeFiles/rules.ninja +0 -64
  188. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/additional_project_files.txt +0 -0
  189. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/android_gradle_build.json +0 -42
  190. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/android_gradle_build_mini.json +0 -31
  191. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/build.ninja +0 -297
  192. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/build_file_index.txt +0 -3
  193. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/cmake_install.cmake +0 -54
  194. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/compile_commands.json +0 -97
  195. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/compile_commands.json.bin +0 -0
  196. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/configure_fingerprint.bin +0 -8755
  197. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/metadata_generation_command.txt +0 -21
  198. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/prefab_config.json +0 -8
  199. package/react-native/android/.cxx/Debug/6p5m3p3q/armeabi-v7a/symbol_folder_index.txt +0 -1
  200. package/react-native/android/.cxx/Debug/6p5m3p3q/hash_key.txt +0 -28
  201. package/react-native/android/.cxx/Debug/6p5m3p3q/prefab/arm64-v8a/prefab/lib/aarch64-linux-android/cmake/ReactAndroid/ReactAndroidConfig.cmake +0 -261
  202. package/react-native/android/.cxx/Debug/6p5m3p3q/prefab/arm64-v8a/prefab/lib/aarch64-linux-android/cmake/ReactAndroid/ReactAndroidConfigVersion.cmake +0 -9
  203. package/react-native/android/.cxx/Debug/6p5m3p3q/prefab/arm64-v8a/prefab/lib/aarch64-linux-android/cmake/fbjni/fbjniConfig.cmake +0 -9
  204. package/react-native/android/.cxx/Debug/6p5m3p3q/prefab/arm64-v8a/prefab/lib/aarch64-linux-android/cmake/fbjni/fbjniConfigVersion.cmake +0 -9
  205. package/react-native/android/.cxx/Debug/6p5m3p3q/prefab/armeabi-v7a/prefab/lib/arm-linux-androideabi/cmake/ReactAndroid/ReactAndroidConfig.cmake +0 -261
  206. package/react-native/android/.cxx/Debug/6p5m3p3q/prefab/armeabi-v7a/prefab/lib/arm-linux-androideabi/cmake/ReactAndroid/ReactAndroidConfigVersion.cmake +0 -9
  207. package/react-native/android/.cxx/Debug/6p5m3p3q/prefab/armeabi-v7a/prefab/lib/arm-linux-androideabi/cmake/fbjni/fbjniConfig.cmake +0 -9
  208. package/react-native/android/.cxx/Debug/6p5m3p3q/prefab/armeabi-v7a/prefab/lib/arm-linux-androideabi/cmake/fbjni/fbjniConfigVersion.cmake +0 -9
  209. package/react-native/android/.cxx/Debug/6p5m3p3q/prefab/x86/prefab/lib/i686-linux-android/cmake/ReactAndroid/ReactAndroidConfig.cmake +0 -261
  210. package/react-native/android/.cxx/Debug/6p5m3p3q/prefab/x86/prefab/lib/i686-linux-android/cmake/ReactAndroid/ReactAndroidConfigVersion.cmake +0 -9
  211. package/react-native/android/.cxx/Debug/6p5m3p3q/prefab/x86/prefab/lib/i686-linux-android/cmake/fbjni/fbjniConfig.cmake +0 -9
  212. package/react-native/android/.cxx/Debug/6p5m3p3q/prefab/x86/prefab/lib/i686-linux-android/cmake/fbjni/fbjniConfigVersion.cmake +0 -9
  213. package/react-native/android/.cxx/Debug/6p5m3p3q/prefab/x86_64/prefab/lib/x86_64-linux-android/cmake/ReactAndroid/ReactAndroidConfig.cmake +0 -261
  214. package/react-native/android/.cxx/Debug/6p5m3p3q/prefab/x86_64/prefab/lib/x86_64-linux-android/cmake/ReactAndroid/ReactAndroidConfigVersion.cmake +0 -9
  215. package/react-native/android/.cxx/Debug/6p5m3p3q/prefab/x86_64/prefab/lib/x86_64-linux-android/cmake/fbjni/fbjniConfig.cmake +0 -9
  216. package/react-native/android/.cxx/Debug/6p5m3p3q/prefab/x86_64/prefab/lib/x86_64-linux-android/cmake/fbjni/fbjniConfigVersion.cmake +0 -9
  217. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/.cmake/api/v1/query/client-agp/cache-v2 +0 -0
  218. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/.cmake/api/v1/query/client-agp/cmakeFiles-v1 +0 -0
  219. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/.cmake/api/v1/query/client-agp/codemodel-v2 +0 -0
  220. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/.cmake/api/v1/reply/cache-v2-6c4a25b4c6713ffdc5da.json +0 -1303
  221. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/.cmake/api/v1/reply/cmakeFiles-v1-f4200ba0f2ce507c91da.json +0 -203
  222. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/.cmake/api/v1/reply/codemodel-v2-9ea6ff99336eeb9a9ce9.json +0 -60
  223. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/.cmake/api/v1/reply/directory-.-Debug-f5ebdc15457944623624.json +0 -14
  224. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/.cmake/api/v1/reply/index-2023-12-06T19-58-49-0301.json +0 -92
  225. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/.cmake/api/v1/reply/target-cpp-Debug-a88e6d0219517e1d531b.json +0 -314
  226. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/.ninja_deps +0 -0
  227. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/.ninja_log +0 -21
  228. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/CMakeCache.txt +0 -393
  229. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/CMakeFiles/3.22.1-g37088a8/CMakeCCompiler.cmake +0 -79
  230. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/CMakeFiles/3.22.1-g37088a8/CMakeCXXCompiler.cmake +0 -90
  231. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/CMakeFiles/3.22.1-g37088a8/CMakeDetermineCompilerABI_C.bin +0 -0
  232. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/CMakeFiles/3.22.1-g37088a8/CMakeDetermineCompilerABI_CXX.bin +0 -0
  233. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/CMakeFiles/3.22.1-g37088a8/CMakeSystem.cmake +0 -113
  234. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/CMakeFiles/3.22.1-g37088a8/CompilerIdC/CMakeCCompilerId.c +0 -803
  235. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/CMakeFiles/3.22.1-g37088a8/CompilerIdC/CMakeCCompilerId.o +0 -0
  236. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/CMakeFiles/3.22.1-g37088a8/CompilerIdCXX/CMakeCXXCompilerId.cpp +0 -791
  237. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/CMakeFiles/3.22.1-g37088a8/CompilerIdCXX/CMakeCXXCompilerId.o +0 -0
  238. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/CMakeFiles/CMakeOutput.log +0 -322
  239. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/CMakeFiles/TargetDirectories.txt +0 -3
  240. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/CMakeFiles/cmake.check_cache +0 -1
  241. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/Attachment.cpp.o +0 -0
  242. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/Authentication.cpp.o +0 -0
  243. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/Collection.cpp.o +0 -0
  244. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/DQL.cpp.o +0 -0
  245. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/Document.cpp.o +0 -0
  246. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/Identity.cpp.o +0 -0
  247. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/Lifecycle.cpp.o +0 -0
  248. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/LiveQuery.cpp.o +0 -0
  249. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/Logger.cpp.o +0 -0
  250. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/Misc.cpp.o +0 -0
  251. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/Presence.cpp.o +0 -0
  252. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/RetainableState.cpp.o +0 -0
  253. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/SmallPeerInfo.cpp.o +0 -0
  254. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/Transports.cpp.o +0 -0
  255. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/TypedArray.cpp.o +0 -0
  256. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/Utils.cpp.o +0 -0
  257. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/main.cpp.o +0 -0
  258. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/dittoffi/ifaddrs.cpp.o +0 -0
  259. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/CMakeFiles/cpp.dir/cpp-adapter.cpp.o +0 -0
  260. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/CMakeFiles/rules.ninja +0 -64
  261. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/additional_project_files.txt +0 -0
  262. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/android_gradle_build.json +0 -42
  263. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/android_gradle_build_mini.json +0 -31
  264. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/build.ninja +0 -297
  265. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/build_file_index.txt +0 -3
  266. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/cmake_install.cmake +0 -54
  267. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/compile_commands.json +0 -97
  268. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/compile_commands.json.bin +0 -0
  269. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/metadata_generation_command.txt +0 -21
  270. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/prefab_config.json +0 -8
  271. package/react-native/android/.cxx/Debug/6p5m3p3q/x86/symbol_folder_index.txt +0 -1
  272. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/.cmake/api/v1/query/client-agp/cache-v2 +0 -0
  273. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/.cmake/api/v1/query/client-agp/cmakeFiles-v1 +0 -0
  274. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/.cmake/api/v1/query/client-agp/codemodel-v2 +0 -0
  275. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/.cmake/api/v1/reply/cache-v2-dae9c0e6f8d6c826f86e.json +0 -1303
  276. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/.cmake/api/v1/reply/cmakeFiles-v1-77b66408bf04fa403cf4.json +0 -203
  277. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/.cmake/api/v1/reply/codemodel-v2-00d5bd5dc4a882f89004.json +0 -60
  278. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/.cmake/api/v1/reply/directory-.-Debug-f5ebdc15457944623624.json +0 -14
  279. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/.cmake/api/v1/reply/index-2023-12-06T19-58-49-0701.json +0 -92
  280. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/.cmake/api/v1/reply/target-cpp-Debug-ed2a7b63dedc1886a528.json +0 -314
  281. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/.ninja_deps +0 -0
  282. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/.ninja_log +0 -21
  283. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/CMakeCache.txt +0 -393
  284. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/CMakeFiles/3.22.1-g37088a8/CMakeCCompiler.cmake +0 -79
  285. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/CMakeFiles/3.22.1-g37088a8/CMakeCXXCompiler.cmake +0 -90
  286. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/CMakeFiles/3.22.1-g37088a8/CMakeDetermineCompilerABI_C.bin +0 -0
  287. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/CMakeFiles/3.22.1-g37088a8/CMakeDetermineCompilerABI_CXX.bin +0 -0
  288. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/CMakeFiles/3.22.1-g37088a8/CMakeSystem.cmake +0 -113
  289. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/CMakeFiles/3.22.1-g37088a8/CompilerIdC/CMakeCCompilerId.c +0 -803
  290. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/CMakeFiles/3.22.1-g37088a8/CompilerIdC/CMakeCCompilerId.o +0 -0
  291. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/CMakeFiles/3.22.1-g37088a8/CompilerIdCXX/CMakeCXXCompilerId.cpp +0 -791
  292. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/CMakeFiles/3.22.1-g37088a8/CompilerIdCXX/CMakeCXXCompilerId.o +0 -0
  293. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/CMakeFiles/CMakeOutput.log +0 -322
  294. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/CMakeFiles/TargetDirectories.txt +0 -3
  295. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/CMakeFiles/cmake.check_cache +0 -1
  296. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/Attachment.cpp.o +0 -0
  297. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/Authentication.cpp.o +0 -0
  298. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/Collection.cpp.o +0 -0
  299. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/DQL.cpp.o +0 -0
  300. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/Document.cpp.o +0 -0
  301. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/Identity.cpp.o +0 -0
  302. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/Lifecycle.cpp.o +0 -0
  303. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/LiveQuery.cpp.o +0 -0
  304. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/Logger.cpp.o +0 -0
  305. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/Misc.cpp.o +0 -0
  306. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/Presence.cpp.o +0 -0
  307. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/RetainableState.cpp.o +0 -0
  308. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/SmallPeerInfo.cpp.o +0 -0
  309. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/Transports.cpp.o +0 -0
  310. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/TypedArray.cpp.o +0 -0
  311. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/Utils.cpp.o +0 -0
  312. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/cpp/src/main.cpp.o +0 -0
  313. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/CMakeFiles/cpp.dir/Users/teodorc/Projects/IntegrationTest/node_modules/@dittolive/ditto/react-native/dittoffi/ifaddrs.cpp.o +0 -0
  314. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/CMakeFiles/cpp.dir/cpp-adapter.cpp.o +0 -0
  315. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/CMakeFiles/rules.ninja +0 -64
  316. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/additional_project_files.txt +0 -0
  317. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/android_gradle_build.json +0 -42
  318. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/android_gradle_build_mini.json +0 -31
  319. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/build.ninja +0 -297
  320. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/build_file_index.txt +0 -3
  321. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/cmake_install.cmake +0 -54
  322. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/compile_commands.json +0 -97
  323. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/compile_commands.json.bin +0 -0
  324. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/configure_fingerprint.bin +0 -8755
  325. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/metadata_generation_command.txt +0 -21
  326. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/prefab_config.json +0 -8
  327. package/react-native/android/.cxx/Debug/6p5m3p3q/x86_64/symbol_folder_index.txt +0 -1
  328. package/react-native/android/.cxx/tools/debug/arm64-v8a/compile_commands.json +0 -97
  329. package/react-native/android/.cxx/tools/debug/armeabi-v7a/compile_commands.json +0 -97
  330. package/react-native/android/.cxx/tools/debug/x86/compile_commands.json +0 -97
  331. package/react-native/android/.cxx/tools/debug/x86_64/compile_commands.json +0 -97
  332. package/react-native/android/.gradle/8.5/checksums/checksums.lock +0 -0
  333. package/react-native/android/.gradle/8.5/dependencies-accessors/dependencies-accessors.lock +0 -0
  334. package/react-native/android/.gradle/8.5/dependencies-accessors/gc.properties +0 -0
  335. package/react-native/android/.gradle/8.5/fileChanges/last-build.bin +0 -0
  336. package/react-native/android/.gradle/8.5/fileHashes/fileHashes.lock +0 -0
  337. package/react-native/android/.gradle/8.5/gc.properties +0 -0
  338. package/react-native/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  339. package/react-native/android/.gradle/buildOutputCleanup/cache.properties +0 -2
  340. package/react-native/android/.gradle/vcs-1/gc.properties +0 -0
  341. package/react-native/boost/boost/assert.hpp +0 -85
  342. package/react-native/boost/boost/config/abi/borland_prefix.hpp +0 -27
  343. package/react-native/boost/boost/config/abi/borland_suffix.hpp +0 -12
  344. package/react-native/boost/boost/config/abi/msvc_prefix.hpp +0 -22
  345. package/react-native/boost/boost/config/abi/msvc_suffix.hpp +0 -8
  346. package/react-native/boost/boost/config/abi_prefix.hpp +0 -25
  347. package/react-native/boost/boost/config/abi_suffix.hpp +0 -25
  348. package/react-native/boost/boost/config/assert_cxx03.hpp +0 -211
  349. package/react-native/boost/boost/config/assert_cxx11.hpp +0 -209
  350. package/react-native/boost/boost/config/assert_cxx14.hpp +0 -47
  351. package/react-native/boost/boost/config/assert_cxx17.hpp +0 -62
  352. package/react-native/boost/boost/config/assert_cxx20.hpp +0 -59
  353. package/react-native/boost/boost/config/assert_cxx98.hpp +0 -23
  354. package/react-native/boost/boost/config/auto_link.hpp +0 -525
  355. package/react-native/boost/boost/config/compiler/borland.hpp +0 -339
  356. package/react-native/boost/boost/config/compiler/clang.hpp +0 -366
  357. package/react-native/boost/boost/config/compiler/clang_version.hpp +0 -83
  358. package/react-native/boost/boost/config/compiler/codegear.hpp +0 -385
  359. package/react-native/boost/boost/config/compiler/comeau.hpp +0 -59
  360. package/react-native/boost/boost/config/compiler/common_edg.hpp +0 -183
  361. package/react-native/boost/boost/config/compiler/compaq_cxx.hpp +0 -19
  362. package/react-native/boost/boost/config/compiler/cray.hpp +0 -446
  363. package/react-native/boost/boost/config/compiler/diab.hpp +0 -26
  364. package/react-native/boost/boost/config/compiler/digitalmars.hpp +0 -143
  365. package/react-native/boost/boost/config/compiler/gcc.hpp +0 -383
  366. package/react-native/boost/boost/config/compiler/gcc_xml.hpp +0 -114
  367. package/react-native/boost/boost/config/compiler/greenhills.hpp +0 -28
  368. package/react-native/boost/boost/config/compiler/hp_acc.hpp +0 -149
  369. package/react-native/boost/boost/config/compiler/intel.hpp +0 -577
  370. package/react-native/boost/boost/config/compiler/kai.hpp +0 -33
  371. package/react-native/boost/boost/config/compiler/metrowerks.hpp +0 -198
  372. package/react-native/boost/boost/config/compiler/mpw.hpp +0 -140
  373. package/react-native/boost/boost/config/compiler/nvcc.hpp +0 -61
  374. package/react-native/boost/boost/config/compiler/pathscale.hpp +0 -138
  375. package/react-native/boost/boost/config/compiler/pgi.hpp +0 -23
  376. package/react-native/boost/boost/config/compiler/sgi_mipspro.hpp +0 -29
  377. package/react-native/boost/boost/config/compiler/sunpro_cc.hpp +0 -222
  378. package/react-native/boost/boost/config/compiler/vacpp.hpp +0 -186
  379. package/react-native/boost/boost/config/compiler/visualc.hpp +0 -391
  380. package/react-native/boost/boost/config/compiler/xlcpp.hpp +0 -299
  381. package/react-native/boost/boost/config/compiler/xlcpp_zos.hpp +0 -173
  382. package/react-native/boost/boost/config/detail/cxx_composite.hpp +0 -203
  383. package/react-native/boost/boost/config/detail/posix_features.hpp +0 -95
  384. package/react-native/boost/boost/config/detail/select_compiler_config.hpp +0 -157
  385. package/react-native/boost/boost/config/detail/select_platform_config.hpp +0 -147
  386. package/react-native/boost/boost/config/detail/select_stdlib_config.hpp +0 -121
  387. package/react-native/boost/boost/config/detail/suffix.hpp +0 -1294
  388. package/react-native/boost/boost/config/header_deprecated.hpp +0 -26
  389. package/react-native/boost/boost/config/helper_macros.hpp +0 -37
  390. package/react-native/boost/boost/config/no_tr1/cmath.hpp +0 -28
  391. package/react-native/boost/boost/config/no_tr1/complex.hpp +0 -28
  392. package/react-native/boost/boost/config/no_tr1/functional.hpp +0 -28
  393. package/react-native/boost/boost/config/no_tr1/memory.hpp +0 -28
  394. package/react-native/boost/boost/config/no_tr1/utility.hpp +0 -28
  395. package/react-native/boost/boost/config/platform/aix.hpp +0 -33
  396. package/react-native/boost/boost/config/platform/amigaos.hpp +0 -15
  397. package/react-native/boost/boost/config/platform/beos.hpp +0 -26
  398. package/react-native/boost/boost/config/platform/bsd.hpp +0 -83
  399. package/react-native/boost/boost/config/platform/cloudabi.hpp +0 -18
  400. package/react-native/boost/boost/config/platform/cray.hpp +0 -18
  401. package/react-native/boost/boost/config/platform/cygwin.hpp +0 -71
  402. package/react-native/boost/boost/config/platform/haiku.hpp +0 -31
  403. package/react-native/boost/boost/config/platform/hpux.hpp +0 -87
  404. package/react-native/boost/boost/config/platform/irix.hpp +0 -31
  405. package/react-native/boost/boost/config/platform/linux.hpp +0 -106
  406. package/react-native/boost/boost/config/platform/macos.hpp +0 -87
  407. package/react-native/boost/boost/config/platform/qnxnto.hpp +0 -31
  408. package/react-native/boost/boost/config/platform/solaris.hpp +0 -31
  409. package/react-native/boost/boost/config/platform/symbian.hpp +0 -97
  410. package/react-native/boost/boost/config/platform/vms.hpp +0 -25
  411. package/react-native/boost/boost/config/platform/vxworks.hpp +0 -422
  412. package/react-native/boost/boost/config/platform/wasm.hpp +0 -23
  413. package/react-native/boost/boost/config/platform/win32.hpp +0 -90
  414. package/react-native/boost/boost/config/platform/zos.hpp +0 -32
  415. package/react-native/boost/boost/config/pragma_message.hpp +0 -31
  416. package/react-native/boost/boost/config/requires_threads.hpp +0 -92
  417. package/react-native/boost/boost/config/stdlib/dinkumware.hpp +0 -324
  418. package/react-native/boost/boost/config/stdlib/libcomo.hpp +0 -93
  419. package/react-native/boost/boost/config/stdlib/libcpp.hpp +0 -180
  420. package/react-native/boost/boost/config/stdlib/libstdcpp3.hpp +0 -482
  421. package/react-native/boost/boost/config/stdlib/modena.hpp +0 -79
  422. package/react-native/boost/boost/config/stdlib/msl.hpp +0 -98
  423. package/react-native/boost/boost/config/stdlib/roguewave.hpp +0 -208
  424. package/react-native/boost/boost/config/stdlib/sgi.hpp +0 -168
  425. package/react-native/boost/boost/config/stdlib/stlport.hpp +0 -258
  426. package/react-native/boost/boost/config/stdlib/vacpp.hpp +0 -74
  427. package/react-native/boost/boost/config/stdlib/xlcpp_zos.hpp +0 -61
  428. package/react-native/boost/boost/config/user.hpp +0 -133
  429. package/react-native/boost/boost/config/warning_disable.hpp +0 -47
  430. package/react-native/boost/boost/config/workaround.hpp +0 -305
  431. package/react-native/boost/boost/config.hpp +0 -67
  432. package/react-native/boost/boost/cstdint.hpp +0 -556
  433. package/react-native/boost/boost/intrusive_ptr.hpp +0 -18
  434. package/react-native/boost/boost/smart_ptr/detail/atomic_count.hpp +0 -103
  435. package/react-native/boost/boost/smart_ptr/detail/atomic_count_gcc.hpp +0 -79
  436. package/react-native/boost/boost/smart_ptr/detail/atomic_count_gcc_atomic.hpp +0 -63
  437. package/react-native/boost/boost/smart_ptr/detail/atomic_count_gcc_x86.hpp +0 -88
  438. package/react-native/boost/boost/smart_ptr/detail/atomic_count_nt.hpp +0 -66
  439. package/react-native/boost/boost/smart_ptr/detail/atomic_count_pt.hpp +0 -104
  440. package/react-native/boost/boost/smart_ptr/detail/atomic_count_spin.hpp +0 -69
  441. package/react-native/boost/boost/smart_ptr/detail/atomic_count_std_atomic.hpp +0 -67
  442. package/react-native/boost/boost/smart_ptr/detail/atomic_count_sync.hpp +0 -72
  443. package/react-native/boost/boost/smart_ptr/detail/atomic_count_win32.hpp +0 -70
  444. package/react-native/boost/boost/smart_ptr/detail/local_counted_base.hpp +0 -148
  445. package/react-native/boost/boost/smart_ptr/detail/local_sp_deleter.hpp +0 -91
  446. package/react-native/boost/boost/smart_ptr/detail/operator_bool.hpp +0 -64
  447. package/react-native/boost/boost/smart_ptr/detail/requires_cxx11.hpp +0 -23
  448. package/react-native/boost/boost/smart_ptr/detail/shared_count.hpp +0 -707
  449. package/react-native/boost/boost/smart_ptr/detail/sp_convertible.hpp +0 -92
  450. package/react-native/boost/boost/smart_ptr/detail/sp_counted_base.hpp +0 -92
  451. package/react-native/boost/boost/smart_ptr/detail/sp_counted_base_acc_ia64.hpp +0 -163
  452. package/react-native/boost/boost/smart_ptr/detail/sp_counted_base_aix.hpp +0 -152
  453. package/react-native/boost/boost/smart_ptr/detail/sp_counted_base_cw_ppc.hpp +0 -185
  454. package/react-native/boost/boost/smart_ptr/detail/sp_counted_base_gcc_atomic.hpp +0 -148
  455. package/react-native/boost/boost/smart_ptr/detail/sp_counted_base_gcc_ia64.hpp +0 -170
  456. package/react-native/boost/boost/smart_ptr/detail/sp_counted_base_gcc_mips.hpp +0 -200
  457. package/react-native/boost/boost/smart_ptr/detail/sp_counted_base_gcc_ppc.hpp +0 -194
  458. package/react-native/boost/boost/smart_ptr/detail/sp_counted_base_gcc_sparc.hpp +0 -179
  459. package/react-native/boost/boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp +0 -186
  460. package/react-native/boost/boost/smart_ptr/detail/sp_counted_base_nt.hpp +0 -119
  461. package/react-native/boost/boost/smart_ptr/detail/sp_counted_base_pt.hpp +0 -147
  462. package/react-native/boost/boost/smart_ptr/detail/sp_counted_base_snc_ps3.hpp +0 -174
  463. package/react-native/boost/boost/smart_ptr/detail/sp_counted_base_spin.hpp +0 -141
  464. package/react-native/boost/boost/smart_ptr/detail/sp_counted_base_std_atomic.hpp +0 -147
  465. package/react-native/boost/boost/smart_ptr/detail/sp_counted_base_sync.hpp +0 -165
  466. package/react-native/boost/boost/smart_ptr/detail/sp_counted_base_vacpp_ppc.hpp +0 -163
  467. package/react-native/boost/boost/smart_ptr/detail/sp_counted_base_w32.hpp +0 -140
  468. package/react-native/boost/boost/smart_ptr/detail/sp_counted_impl.hpp +0 -309
  469. package/react-native/boost/boost/smart_ptr/detail/sp_disable_deprecated.hpp +0 -40
  470. package/react-native/boost/boost/smart_ptr/detail/sp_forward.hpp +0 -52
  471. package/react-native/boost/boost/smart_ptr/detail/sp_has_gcc_intrinsics.hpp +0 -27
  472. package/react-native/boost/boost/smart_ptr/detail/sp_has_sync_intrinsics.hpp +0 -69
  473. package/react-native/boost/boost/smart_ptr/detail/sp_interlocked.hpp +0 -173
  474. package/react-native/boost/boost/smart_ptr/detail/sp_noexcept.hpp +0 -48
  475. package/react-native/boost/boost/smart_ptr/detail/sp_nullptr_t.hpp +0 -45
  476. package/react-native/boost/boost/smart_ptr/detail/sp_obsolete.hpp +0 -32
  477. package/react-native/boost/boost/smart_ptr/detail/sp_thread_pause.hpp +0 -51
  478. package/react-native/boost/boost/smart_ptr/detail/sp_thread_sleep.hpp +0 -104
  479. package/react-native/boost/boost/smart_ptr/detail/sp_thread_yield.hpp +0 -100
  480. package/react-native/boost/boost/smart_ptr/detail/sp_typeinfo_.hpp +0 -58
  481. package/react-native/boost/boost/smart_ptr/detail/sp_win32_sleep.hpp +0 -49
  482. package/react-native/boost/boost/smart_ptr/intrusive_ptr.hpp +0 -409
  483. package/react-native/boost/boost/smart_ptr/intrusive_ref_counter.hpp +0 -188
  484. package/react-native/cpp/include/RetainableState.h +0 -24
  485. package/react-native/cpp/src/RetainableState.cpp +0 -15
  486. package/react-native/scripts/ruby/include_local_boost.rb +0 -78
@@ -69,7 +69,8 @@ export class SubscriptionManager {
69
69
  for (const subscriptionID in this.subscriptions) {
70
70
  const subscription = this.subscriptions[subscriptionID].deref()
71
71
  if (subscription != null) {
72
-
72
+ // This doesn't call `Subscription.cancel()` because that is not
73
+ // async and we want to wait for all subscriptions to be removed.
73
74
  this.remove(subscription)
74
75
  }
75
76
  }
@@ -51,6 +51,7 @@ export class Subscription {
51
51
 
52
52
  /** @internal */
53
53
  constructor(collection: Collection, query: string, queryArgsCBOR: Uint8Array | null, orderBys: FFI.OrderBy[], limit: number, offset: number) {
54
+ // Query should be validated at this point.
54
55
  this.query = query
55
56
  this.queryArgsCBOR = queryArgsCBOR
56
57
  this.collection = collection
@@ -28,6 +28,11 @@ export type SyncParameters = {
28
28
 
29
29
  /** @internal */
30
30
  export type SyncState = {
31
+ // NOTE: we can get away with just an effective transport config for now,
32
+ // but this is meant to carry more state if need be. Whenever possible,
33
+ // prefer putting logic into the `stateFrom()` function together with some
34
+ // flags here and keep the `updateXXX()` to just diffing and updating the
35
+ // low-level transports machinery.
31
36
  readonly underlyingSyncParameters: SyncParameters
32
37
  readonly effectiveTransportConfig: TransportConfig
33
38
  }
@@ -106,7 +111,7 @@ export class Sync {
106
111
 
107
112
  /** @internal */
108
113
  get parameters(): SyncParameters {
109
- return this._parameters
114
+ return this.state.underlyingSyncParameters
110
115
  }
111
116
 
112
117
  /** @internal */
@@ -116,7 +121,6 @@ export class Sync {
116
121
  const parameters = { identity, transportConfig, ditto, isWebValid: false, isX509Valid: false, isSyncActive: false }
117
122
 
118
123
  this.ditto = ditto
119
- this._parameters = parameters
120
124
  this.state = stateFrom(parameters)
121
125
 
122
126
  FFI.transportsInit()
@@ -154,11 +158,12 @@ export class Sync {
154
158
 
155
159
  const newSyncSubscriptions = [...this.subscriptions]
156
160
  newSyncSubscriptions.splice(indexToDelete, 1)
161
+ // @ts-expect-error modifying readonly property
157
162
  this.subscriptions = Object.freeze(newSyncSubscriptions)
158
163
 
159
164
  const dittoHandle = Bridge.ditto.handleFor(this.ditto)
160
165
  this.ditto.deferClose(() => {
161
- // prettier-ignor
166
+ // prettier-ignore
162
167
  mapFFIErrors(
163
168
  () => FFI.tryExperimentalRemoveDQLSubscription(dittoHandle.deref(), syncSubscription.queryString, syncSubscription.queryArgumentsCBOR)
164
169
  )
@@ -168,10 +173,16 @@ export class Sync {
168
173
 
169
174
  /** @internal */
170
175
  update(parameters: SyncParameters) {
171
- this._parameters = { ...parameters }
176
+ // NOTE: updating is a two-step process. Given all parameters, we
177
+ // first compute the final "state" we want the transports stuff to
178
+ // be in via the `stateFrom()` function. We then take that "desired" state
179
+ // and feed it into the various update methods, which essentially perform
180
+ // a diff on the state before and after, and update the low-level transports
181
+ // machinery accordingly.
172
182
 
173
183
  const stateOld = this.state
174
- const stateNew = stateFrom(this.parameters)
184
+ const stateNew = stateFrom(parameters)
185
+
175
186
  this.updatePeerToPeerBluetoothLE(stateOld, stateNew)
176
187
  this.updatePeerToPeerAWDL(stateOld, stateNew)
177
188
  this.updatePeerToPeerLAN(stateOld, stateNew)
@@ -181,6 +192,7 @@ export class Sync {
181
192
  this.updateConnectWebsocketURLs(stateOld, stateNew)
182
193
  this.updateGlobal(stateOld, stateNew)
183
194
  this.updateConnectRetryInterval(stateOld, stateNew)
195
+
184
196
  this.state = stateNew
185
197
  }
186
198
 
@@ -194,15 +206,14 @@ export class Sync {
194
206
  subscription.cancel()
195
207
  }
196
208
 
197
-
209
+ // Nothing to do, when sync is stopped, this object should be
210
+ // already be cleaned up properly.
198
211
  }
199
212
 
200
213
  // ------------------------------------------------------------ Private ------
201
214
 
202
215
  private state: SyncState
203
216
 
204
- private _parameters: SyncParameters
205
-
206
217
  private bluetoothLETransportPointer: FFI.Pointer<'DittoTransportsBLE_t'> | null = null
207
218
  private awdlTransportPointer: FFI.Pointer<'DittoTransportsAWDL_t'> | null = null
208
219
  private lanTransportPointer: FFI.Pointer<'DittoTransportsLAN_t'> | null = null
@@ -210,6 +221,7 @@ export class Sync {
210
221
  private mdnsServerAdvertiserPointer: FFI.Pointer<'DittoTransportsMdnsServer_t'> | null = null
211
222
 
212
223
  private updatePeerToPeerBluetoothLE(stateOld: SyncState, stateNew: SyncState) {
224
+ // Updating BLE transport is a no-op outside of Node.js & React Native.
213
225
  if (!Environment.isNodeBuild && !Environment.isReactNativeBuild) return
214
226
 
215
227
  const ditto = this.ditto
@@ -224,7 +236,6 @@ export class Sync {
224
236
  if (shouldStart && this.bluetoothLETransportPointer) throw new Error(`Internal inconsistency, when starting BLE transport, no BLE transport pointer should exist.`)
225
237
  if (shouldStop && !this.bluetoothLETransportPointer) throw new Error(`Internal inconsistency, when stopping BLE transport, a BLE transport pointer should exist.`)
226
238
 
227
-
228
239
  if (process.platform === 'linux' || process.platform === 'win32') {
229
240
  if (shouldStart) {
230
241
  const clientTransport = FFI.dittoAddInternalBLEClientTransport(dittoHandle.deref())
@@ -249,6 +260,7 @@ export class Sync {
249
260
  }
250
261
 
251
262
  if (shouldStop) {
263
+ // null check is performed above
252
264
  FFI.transportsBLEDestroy(this.bluetoothLETransportPointer as FFI.Pointer<FFI.TransportBluetooth>)
253
265
  this.bluetoothLETransportPointer = null
254
266
  }
@@ -256,6 +268,7 @@ export class Sync {
256
268
  }
257
269
 
258
270
  private updatePeerToPeerAWDL(stateOld: SyncState, stateNew: SyncState) {
271
+ // Updating AWDL transport is a no-op outside of Node.js & React Native.
259
272
  if (!Environment.isNodeBuild && !Environment.isReactNativeBuild) return
260
273
 
261
274
  const ditto = this.ditto
@@ -275,6 +288,7 @@ export class Sync {
275
288
  }
276
289
 
277
290
  if (shouldStop) {
291
+ // null check is performed above
278
292
  FFI.transportsAWDLDestroy(this.awdlTransportPointer as FFI.Pointer<FFI.TransportAWDL>)
279
293
  this.awdlTransportPointer = null
280
294
  }
@@ -282,6 +296,7 @@ export class Sync {
282
296
  }
283
297
 
284
298
  private updatePeerToPeerLAN(stateOld: SyncState, stateNew: SyncState) {
299
+ // Updating LAN transport currently only works with Node.js & React Native.
285
300
  if (!Environment.isNodeBuild && !Environment.isReactNativeBuild) return
286
301
 
287
302
  const ditto = this.ditto
@@ -289,8 +304,7 @@ export class Sync {
289
304
  ditto.deferClose(() => {
290
305
  const lanOld = stateOld.effectiveTransportConfig.peerToPeer.lan
291
306
  const lanNew = stateNew.effectiveTransportConfig.peerToPeer.lan
292
-
293
-
307
+
294
308
  if (process.platform === 'win32' || process.platform === 'linux') {
295
309
  if (lanOld.isEnabled) {
296
310
  if (lanOld.isMdnsEnabled) {
@@ -322,6 +336,8 @@ export class Sync {
322
336
  return
323
337
  }
324
338
 
339
+ // IDEA: move the logic for this dance into stateFrom() signal
340
+ // via some additional state signaling the actions here.
325
341
 
326
342
  if (lanOld.isEnabled) {
327
343
  if (lanOld.isMdnsEnabled) {
@@ -419,30 +435,89 @@ export class Sync {
419
435
  }
420
436
 
421
437
  /**
438
+ * Computes the effective transport config given a desired transport config and
439
+ * some additional state.
440
+ *
441
+ * Disables all transports that are unavailable due to the runtime environment
442
+ * or authentication requirements. Adds websocket URL for Ditto Cloud if
443
+ * enabled.
444
+ *
445
+ * Throws if the target transport config enables sync but contains transports
446
+ * that are not available in the current environment. Does not throw when
447
+ * transports are enabled but not available due to authentication requirements.
448
+ *
422
449
  * @private
423
450
  */
424
451
  function stateFrom(parameters: SyncParameters): SyncState {
425
- const ditto = parameters.ditto
426
- const dittoHandle = Bridge.ditto.handleFor(ditto)
427
- return ditto.deferClose(() => {
452
+ // IMPORTANT: this function maps a set of sync parameters to an effective
453
+ // transport config plus some extra state where need be. Make sure
454
+ // to keep this function free of side-effects.
428
455
 
456
+ const identity = parameters.identity
429
457
 
430
- const transportConfig = parameters.transportConfig.copy()
431
- const identity = parameters.identity
458
+ const isSyncActive = parameters.isSyncActive
459
+ const isX509Valid = parameters.isX509Valid
460
+ const isWebValid = parameters.isWebValid
432
461
 
433
- const isSyncActive = parameters.isSyncActive
434
- const isX509Valid = parameters.isX509Valid
435
- const isWebValid = parameters.isWebValid
462
+ let appID
463
+ let customDittoCloudURL
464
+ let isDittoCloudSyncEnabled = false
436
465
 
437
- let appID
438
- let customDittoCloudURL
439
- let isDittoCloudSyncEnabled = false
466
+ if (identity.type === 'onlinePlayground' || identity.type === 'onlineWithAuthentication') {
467
+ // NOTE: enableDittoCloudSync is true by default for any online identity.
468
+ appID = identity.appID
469
+ customDittoCloudURL = identity.customDittoCloudURL ?? null
470
+ isDittoCloudSyncEnabled = identity.enableDittoCloudSync ?? true
471
+ }
440
472
 
441
- if (identity.type === 'onlinePlayground' || identity.type === 'onlineWithAuthentication') {
442
- appID = identity.appID
443
- customDittoCloudURL = identity.customDittoCloudURL ?? null
444
- isDittoCloudSyncEnabled = identity.enableDittoCloudSync ?? true
445
- }
473
+ validateEnabledTransportsAvailable(parameters.ditto, parameters.transportConfig)
474
+
475
+ const transportConfig = parameters.transportConfig.copy()
476
+
477
+ if (!isSyncActive || !isX509Valid) {
478
+ transportConfig.peerToPeer.bluetoothLE.isEnabled = false
479
+ transportConfig.peerToPeer.awdl.isEnabled = false
480
+ transportConfig.peerToPeer.lan.isEnabled = false
481
+ transportConfig.listen.tcp.isEnabled = false
482
+ transportConfig.connect.tcpServers = []
483
+ }
484
+
485
+ if (!isSyncActive || !isWebValid) {
486
+ transportConfig.connect.websocketURLs = []
487
+ }
488
+
489
+ if (!isSyncActive) {
490
+ transportConfig.listen.http.isEnabled = false
491
+ }
492
+
493
+ // NOTE: we have to smuggle in an additional Ditto Cloud websocket URL to
494
+ // connect to if cloud sync is enabled.
495
+ if (isSyncActive && isWebValid && isDittoCloudSyncEnabled) {
496
+ // @ts-ignore To fix this type error, refactor using a switch
497
+ // statement, c.f.
498
+ // https://github.com/getditto/ditto/blob/d35b6c1cb280cdd6368d14137c97609b9b9b9296/js/sources/sync.ts#L488
499
+ const dittoCloudURL = customDittoCloudURL ?? defaultDittoCloudURL(appID)
500
+ transportConfig.connect.websocketURLs.push(dittoCloudURL)
501
+ }
502
+
503
+ return {
504
+ underlyingSyncParameters: parameters,
505
+ effectiveTransportConfig: transportConfig.freeze(),
506
+ }
507
+ }
508
+
509
+ /**
510
+ * Validate that all enabled transports are available in the current environment
511
+ * and throw an error if not.
512
+ *
513
+ * @private
514
+ */
515
+ function validateEnabledTransportsAvailable(ditto: Ditto, transportConfig: TransportConfig) {
516
+ const dittoHandle = Bridge.ditto.handleFor(ditto)
517
+ return ditto.deferClose(() => {
518
+ // - BLE
519
+ // - AWDL
520
+ // - LAN / mDNS
446
521
 
447
522
  const unavailableButEnabledP2PTransports = []
448
523
 
@@ -466,30 +541,19 @@ function stateFrom(parameters: SyncParameters): SyncState {
466
541
  throw new Error(`The following P2P transports are enabled in the transport config but are not supported in the current environment: ${unavailableButEnabledP2PTransports.join(', ')}`)
467
542
  }
468
543
 
469
- if (!isSyncActive || !isX509Valid) {
470
- transportConfig.peerToPeer.bluetoothLE.isEnabled = false
471
- transportConfig.peerToPeer.awdl.isEnabled = false
472
- transportConfig.peerToPeer.lan.isEnabled = false
473
- transportConfig.listen.tcp.isEnabled = false
474
- transportConfig.connect.tcpServers = []
475
- }
476
-
477
- if (!isSyncActive || !isWebValid) {
478
- transportConfig.connect.websocketURLs = []
479
- }
544
+ // - Websocket / HTTP
545
+ // - TCP
480
546
 
481
- if (!isSyncActive) {
482
- transportConfig.listen.http.isEnabled = false
547
+ if (transportConfig.connect.tcpServers.length > 0 && Environment.isWebBuild) {
548
+ throw new Error(`The transport config contains TCP servers, but this transport is not supported in web environments`)
483
549
  }
484
550
 
485
- if (isSyncActive && isWebValid && isDittoCloudSyncEnabled) {
486
- const dittoCloudURL = customDittoCloudURL ?? defaultDittoCloudURL(appID)
487
- transportConfig.connect.websocketURLs.push(dittoCloudURL)
551
+ if (transportConfig.listen.http.isEnabled && Environment.isWebBuild) {
552
+ throw new Error(`The transport config contains an HTTP listener, which is not supported in web environments`)
488
553
  }
489
554
 
490
- return {
491
- underlyingSyncParameters: parameters,
492
- effectiveTransportConfig: transportConfig.freeze(),
555
+ if (transportConfig.listen.tcp.isEnabled && Environment.isWebBuild) {
556
+ throw new Error(`The transport config contains a TCP listener, which is not supported in web environments`)
493
557
  }
494
558
  })
495
559
  }
@@ -122,6 +122,7 @@ export function transportConfigToSerializable(config: TransportConfig): any {
122
122
  },
123
123
  }
124
124
 
125
+ // Only set the optional properties if they are not undefined
125
126
  if (listen.http.staticContentPath) {
126
127
  serialized.listen.http['static_content_path'] = listen.http.staticContentPath
127
128
  }
@@ -396,6 +397,7 @@ export class TransportConfig {
396
397
  */
397
398
  static areListenTCPsEqual(left: TransportConfigListenTCP, right: TransportConfigListenTCP): boolean {
398
399
  /* eslint-disable */
400
+ // prettier-ignore
399
401
  return (
400
402
  left.isEnabled === right.isEnabled &&
401
403
  left.interfaceIP === right.interfaceIP &&
@@ -2,5 +2,6 @@
2
2
  // Copyright © 2021 DittoLive Incorporated. All rights reserved.
3
3
  //
4
4
 
5
+
5
6
  /** @internal */
6
7
  export class WebsocketClient {}
@@ -53,6 +53,8 @@ export class WriteTransactionPendingIDSpecificOperation extends BasePendingIDSpe
53
53
  const mutableDocument = Bridge.mutableDocument.bridge(documentX, () => new MutableDocument())
54
54
  closure(mutableDocument)
55
55
 
56
+ // Ownership is transferred back to the FFI layer via collectionUpdate(),
57
+ // we therefore need to explicitly unregister the instance.
56
58
  Bridge.mutableDocument.unregister(mutableDocument)
57
59
 
58
60
  await FFI.collectionUpdate(dittoHandle.deref(), this.collection.name, transaction.writeTransactionPointer, documentX)
@@ -37,12 +37,14 @@ export interface WriteTransactionResult {
37
37
  * Create a write transaction using {@link Store.write | ditto.store.write}.
38
38
  */
39
39
  export class WriteTransaction {
40
+ // Pointer to internal C transaction through FFI.
40
41
  /** @internal */
41
42
  readonly writeTransactionPointer: FFI.Pointer<FFI.FFIWriteTransaction>
42
43
 
43
44
  /** @internal */
44
45
  readonly ditto: Ditto
45
46
 
47
+ // All documents affected by writes in this transaction are collected here.
46
48
  readonly results: WriteTransactionResult[]
47
49
 
48
50
  /**
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ditto.d.ts","sources":[],"sourcesContent":[],"names":[],"mappings":""}