@dittolive/ditto 4.5.4-alpha.1 → 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 (88) hide show
  1. package/DittoReactNative.podspec +5 -3
  2. package/README.md +2 -2
  3. package/node/ditto.cjs.js +1111 -563
  4. package/node/ditto.darwin-arm64.node +0 -0
  5. package/node/ditto.darwin-x64.node +0 -0
  6. package/node/ditto.linux-arm.node +0 -0
  7. package/node/ditto.linux-arm64.node +0 -0
  8. package/node/ditto.linux-x64.node +0 -0
  9. package/node/ditto.win32-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 +3 -11
  13. package/react-native/android/CMakeLists.txt +0 -1
  14. package/react-native/android/build.gradle +7 -3
  15. package/react-native/android/cpp-adapter.cpp +68 -59
  16. package/react-native/android/src/main/java/com/dittolive/rnsdk/DittoRNSDKModule.java +35 -0
  17. package/react-native/cpp/include/Arc.hpp +1 -1
  18. package/react-native/cpp/include/Attachment.h +5 -1
  19. package/react-native/cpp/include/DQL.h +9 -9
  20. package/react-native/cpp/include/FFIUtils.h +14 -0
  21. package/react-native/cpp/include/IO.h +13 -0
  22. package/react-native/cpp/include/Lifecycle.h +0 -1
  23. package/react-native/cpp/include/Misc.h +3 -0
  24. package/react-native/cpp/include/Utils.h +0 -2
  25. package/react-native/cpp/src/Attachment.cpp +200 -13
  26. package/react-native/cpp/src/Authentication.cpp +3 -3
  27. package/react-native/cpp/src/DQL.cpp +23 -23
  28. package/react-native/cpp/src/Document.cpp +10 -10
  29. package/react-native/cpp/src/FFIUtils.cpp +64 -0
  30. package/react-native/cpp/src/IO.cpp +35 -0
  31. package/react-native/cpp/src/Identity.cpp +3 -3
  32. package/react-native/cpp/src/Lifecycle.cpp +2 -19
  33. package/react-native/cpp/src/LiveQuery.cpp +3 -3
  34. package/react-native/cpp/src/Logger.cpp +171 -172
  35. package/react-native/cpp/src/Misc.cpp +52 -4
  36. package/react-native/cpp/src/Presence.cpp +1 -1
  37. package/react-native/cpp/src/SmallPeerInfo.cpp +1 -1
  38. package/react-native/cpp/src/Transports.cpp +10 -5
  39. package/react-native/cpp/src/Utils.cpp +110 -114
  40. package/react-native/cpp/src/main.cpp +28 -15
  41. package/react-native/dittoffi/dittoffi.h +328 -280
  42. package/react-native/ios/DittoRNSDK.mm +123 -71
  43. package/react-native/src/ditto.rn.ts +30 -6
  44. package/react-native/src/index.ts +7 -4
  45. package/react-native/src/sources/@cbor-redux.ts +1 -1
  46. package/react-native/src/sources/attachment-fetch-event.ts +2 -2
  47. package/react-native/src/sources/attachment-fetcher-manager.ts +5 -4
  48. package/react-native/src/sources/attachment-fetcher.ts +152 -21
  49. package/react-native/src/sources/attachment-token.ts +94 -13
  50. package/react-native/src/sources/attachment.ts +66 -19
  51. package/react-native/src/sources/augment.ts +13 -6
  52. package/react-native/src/sources/base-pending-cursor-operation.ts +22 -6
  53. package/react-native/src/sources/base-pending-id-specific-operation.ts +3 -0
  54. package/react-native/src/sources/bridge.ts +2 -2
  55. package/react-native/src/sources/cbor.ts +0 -15
  56. package/react-native/src/sources/collection-interface.ts +12 -6
  57. package/react-native/src/sources/collection.ts +9 -2
  58. package/react-native/src/sources/ditto.ts +26 -18
  59. package/react-native/src/sources/document-id.ts +11 -7
  60. package/react-native/src/sources/document-path.ts +4 -2
  61. package/react-native/src/sources/document.ts +49 -5
  62. package/react-native/src/sources/error-codes.ts +28 -0
  63. package/react-native/src/sources/error.ts +20 -1
  64. package/react-native/src/sources/essentials.ts +25 -3
  65. package/react-native/src/sources/ffi-error.ts +2 -1
  66. package/react-native/src/sources/ffi.ts +180 -102
  67. package/react-native/src/sources/internal.ts +37 -3
  68. package/react-native/src/sources/live-query-manager.ts +10 -1
  69. package/react-native/src/sources/live-query.ts +1 -1
  70. package/react-native/src/sources/observer-manager.ts +7 -0
  71. package/react-native/src/sources/pending-id-specific-operation.ts +2 -2
  72. package/react-native/src/sources/presence-manager.ts +12 -2
  73. package/react-native/src/sources/presence.ts +5 -0
  74. package/react-native/src/sources/query-result-item.ts +15 -0
  75. package/react-native/src/sources/small-peer-info.ts +2 -2
  76. package/react-native/src/sources/static-tcp-client.ts +2 -0
  77. package/react-native/src/sources/store-observer.ts +4 -2
  78. package/react-native/src/sources/store.ts +253 -3
  79. package/react-native/src/sources/sync.ts +6 -3
  80. package/react-native/src/sources/transport-config.ts +2 -2
  81. package/react-native/src/sources/update-results-map.ts +8 -0
  82. package/react-native/src/sources/write-transaction-collection.ts +1 -1
  83. package/react-native/src/sources/write-transaction.ts +1 -1
  84. package/types/ditto.d.ts +2866 -2568
  85. package/web/ditto.es6.js +1 -1
  86. package/web/ditto.umd.js +1 -1
  87. package/web/ditto.wasm +0 -0
  88. package/react-native/android/.project +0 -34
package/web/ditto.wasm CHANGED
Binary file
@@ -1,34 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <projectDescription>
3
- <name>dittolive_ditto</name>
4
- <comment>Project dittolive_ditto created by Buildship.</comment>
5
- <projects>
6
- </projects>
7
- <buildSpec>
8
- <buildCommand>
9
- <name>org.eclipse.jdt.core.javabuilder</name>
10
- <arguments>
11
- </arguments>
12
- </buildCommand>
13
- <buildCommand>
14
- <name>org.eclipse.buildship.core.gradleprojectbuilder</name>
15
- <arguments>
16
- </arguments>
17
- </buildCommand>
18
- </buildSpec>
19
- <natures>
20
- <nature>org.eclipse.jdt.core.javanature</nature>
21
- <nature>org.eclipse.buildship.core.gradleprojectnature</nature>
22
- </natures>
23
- <filteredResources>
24
- <filter>
25
- <id>1708460510678</id>
26
- <name></name>
27
- <type>30</type>
28
- <matcher>
29
- <id>org.eclipse.core.resources.regexFilterMatcher</id>
30
- <arguments>node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__</arguments>
31
- </matcher>
32
- </filter>
33
- </filteredResources>
34
- </projectDescription>