@dittolive/ditto 4.5.3 → 4.5.4
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.
- package/DittoReactNative.podspec +6 -4
- package/README.md +2 -2
- package/node/ditto.cjs.js +1 -1
- package/node/ditto.darwin-arm64.node +0 -0
- package/node/ditto.darwin-x64.node +0 -0
- package/node/ditto.linux-arm.node +0 -0
- package/node/ditto.linux-x64.node +0 -0
- package/node/ditto.win32-x64.node +0 -0
- package/node/transports.darwin-arm64.node +0 -0
- package/node/transports.darwin-x64.node +0 -0
- package/package.json +1 -46
- package/react-native/.yarn/install-state.gz +0 -0
- package/react-native/.yarnrc.yml +1 -0
- package/react-native/android/CMakeLists.txt +0 -1
- package/react-native/android/build.gradle +7 -3
- package/react-native/cpp/src/LiveQuery.cpp +2 -0
- package/web/ditto.es6.js +1 -1
- package/web/ditto.umd.js +1 -1
- package/web/ditto.wasm +0 -0
- package/node/ditto.cjs.js.map +0 -1
- package/node/ditto.cjs.pretty.js +0 -9657
- package/node/ditto.cjs.pretty.js.map +0 -1
- package/types/ditto.d.ts.map +0 -1
- package/web/ditto.es6.js.map +0 -1
- package/web/ditto.es6.pretty.js +0 -12600
- package/web/ditto.es6.pretty.js.map +0 -1
- package/web/ditto.umd.js.map +0 -1
- package/web/ditto.umd.pretty.js +0 -12669
- package/web/ditto.umd.pretty.js.map +0 -1
package/DittoReactNative.podspec
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Podspec *must* be located at package root level or it will not be find for React
|
|
2
2
|
# Native's autolinking.
|
|
3
|
+
#
|
|
4
|
+
# It would be great to move this to the RN folder and still have the
|
|
5
|
+
# relative paths work in production somehow. Maybe when RN will stop forcing
|
|
6
|
+
# the podspec to exist at root level or allow us to modify it via some property.
|
|
3
7
|
require "json"
|
|
4
8
|
|
|
5
9
|
package = JSON.parse(File.read(File.join(__dir__, "package.json")))
|
|
@@ -13,13 +17,11 @@ Pod::Spec.new do |s|
|
|
|
13
17
|
s.authors = package["author"]
|
|
14
18
|
|
|
15
19
|
s.platforms = { :ios => "14.0" }
|
|
16
|
-
|
|
17
|
-
s.source = { :http => "https://ditto.live" }
|
|
20
|
+
s.source = { :http => 'https://ditto.live' }
|
|
18
21
|
|
|
19
22
|
s.source_files = "react-native/ios/**/*.{h,m,mm}", "react-native/cpp/**/*.{h,cpp,hpp}",
|
|
20
23
|
s.public_header_files = 'react-native/dittoffi/dittoffi.h', 'react-native/dittoffi/ifaddrs.h'
|
|
21
24
|
|
|
22
25
|
s.dependency "React-Core"
|
|
23
|
-
s.dependency 'DittoReactNativeIOS',
|
|
24
|
-
|
|
26
|
+
s.dependency 'DittoReactNativeIOS', "~> #{package["version"]}"
|
|
25
27
|
end
|
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.
|
|
6
|
+
Version: **4.5.4**
|
|
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.
|
|
9
|
+
[API Reference](https://software.ditto.live/js/Ditto/4.5.4/api-reference/) for this particular version.
|
|
10
10
|
|
|
11
11
|
---
|
|
12
12
|
|
package/node/ditto.cjs.js
CHANGED
|
@@ -1787,7 +1787,7 @@ class AttachmentToken {
|
|
|
1787
1787
|
|
|
1788
1788
|
// NOTE: this is patched up with the actual build version by Jake task
|
|
1789
1789
|
// build:package and has to be a valid semantic version as defined here: https://semver.org.
|
|
1790
|
-
const fullBuildVersionString = '4.5.
|
|
1790
|
+
const fullBuildVersionString = '4.5.4';
|
|
1791
1791
|
|
|
1792
1792
|
//
|
|
1793
1793
|
// Copyright © 2021 DittoLive Incorporated. All rights reserved.
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,46 +1 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@dittolive/ditto",
|
|
3
|
-
"version": "4.5.3",
|
|
4
|
-
"description": "Ditto is a cross-platform embeddable NoSQL database that can sync with or without an internet connection.",
|
|
5
|
-
"homepage": "https://ditto.live",
|
|
6
|
-
"license": "SEE LICENSE IN LICENSE.md",
|
|
7
|
-
"author": {
|
|
8
|
-
"name": "DittoLive Incorporated.",
|
|
9
|
-
"email": "contact@ditto.live",
|
|
10
|
-
"url": "https://ditto.live"
|
|
11
|
-
},
|
|
12
|
-
"keywords": [
|
|
13
|
-
"ditto",
|
|
14
|
-
"dittolive",
|
|
15
|
-
"webassembly",
|
|
16
|
-
"wasm",
|
|
17
|
-
"db",
|
|
18
|
-
"database",
|
|
19
|
-
"sync",
|
|
20
|
-
"p2p"
|
|
21
|
-
],
|
|
22
|
-
"engines": {
|
|
23
|
-
"node": ">=14"
|
|
24
|
-
},
|
|
25
|
-
"browserslist": [
|
|
26
|
-
"defaults"
|
|
27
|
-
],
|
|
28
|
-
"main": "node/ditto.cjs.js",
|
|
29
|
-
"browser": "web/ditto.es6.js",
|
|
30
|
-
"browser/umd": "web/ditto.umd.js",
|
|
31
|
-
"types": "types/ditto.d.ts",
|
|
32
|
-
"react-native": "react-native/src/index.ts",
|
|
33
|
-
"scripts": {
|
|
34
|
-
"play:web": "npx serve --listen 5285",
|
|
35
|
-
"play:node": "node --experimental-repl-await --unhandled-rejections=strict playground.cjs"
|
|
36
|
-
},
|
|
37
|
-
"dependencies": {
|
|
38
|
-
"cbor-redux": "^1.0.0",
|
|
39
|
-
"@ungap/weakrefs": "^0.2.0",
|
|
40
|
-
"cbor-js": "^0.1.0",
|
|
41
|
-
"fastestsmallesttextencoderdecoder": "^1.0.22"
|
|
42
|
-
},
|
|
43
|
-
"devDependencies": {
|
|
44
|
-
"serve": "^14.2.0"
|
|
45
|
-
}
|
|
46
|
-
}
|
|
1
|
+
{"name":"@dittolive/ditto","version":"4.5.4","description":"Ditto is a cross-platform embeddable NoSQL database that can sync with or without an internet connection.","homepage":"https://ditto.live","license":"SEE LICENSE IN LICENSE.md","author":{"name":"DittoLive Incorporated.","email":"contact@ditto.live","url":"https://ditto.live"},"keywords":["ditto","dittolive","webassembly","wasm","db","database","sync","p2p"],"engines":{"node":">=14"},"browserslist":["defaults"],"main":"node/ditto.cjs.js","browser":"web/ditto.es6.js","browser/umd":"web/ditto.umd.js","types":"types/ditto.d.ts","scripts":{"play:web":"npx serve --listen 5285","play:node":"node --experimental-repl-await --unhandled-rejections=strict playground.cjs"},"dependencies":{"@ungap/weakrefs":"^0.2.0","cbor-js":"^0.1.0","cbor-redux":"^1.0.0","fastestsmallesttextencoderdecoder":"^1.0.22"},"devDependencies":{"serve":"^14.2.0"},"react-native":"react-native/src/index.ts"}
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
nodeLinker: node-modules
|
|
@@ -105,7 +105,7 @@ android {
|
|
|
105
105
|
cppFlags "-O2 -frtti -fexceptions -Wall -fstack-protector-all"
|
|
106
106
|
// ESSENTIAL for adding JSI
|
|
107
107
|
arguments "-DANDROID_STL=c++_shared"
|
|
108
|
-
abiFilters "
|
|
108
|
+
abiFilters "armeabi-v7a", "arm64-v8a", "x86", "x86_64"
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
111
|
}
|
|
@@ -148,12 +148,16 @@ repositories {
|
|
|
148
148
|
google()
|
|
149
149
|
}
|
|
150
150
|
|
|
151
|
+
// This can be moved to gradle.properties (minus the quotes) with no code changes
|
|
152
|
+
// here since `version` is a default project property.
|
|
153
|
+
version = "4.5.4"
|
|
154
|
+
|
|
151
155
|
dependencies {
|
|
152
156
|
// For < 0.71, this will be from the local maven repo
|
|
153
157
|
// For > 0.71, this will be replaced by `com.facebook.react:react-android:$version` by react gradle plugin
|
|
154
158
|
//noinspection GradleDynamicVersion
|
|
155
159
|
implementation "com.facebook.react:react-native:+"
|
|
156
|
-
implementation "live.ditto:ditto
|
|
160
|
+
implementation "live.ditto:ditto:${project.version}"
|
|
157
161
|
}
|
|
158
162
|
|
|
159
163
|
if (isNewArchitectureEnabled()) {
|
|
@@ -169,7 +173,7 @@ task downloadBinaries {
|
|
|
169
173
|
def defaultArchitectures = ['arm64-v8a', 'armeabi-v7a', 'x86', 'x86_64']
|
|
170
174
|
|
|
171
175
|
defaultArchitectures.each { arch ->
|
|
172
|
-
def fileUrl = "https://software.ditto.live/react-native/ditto
|
|
176
|
+
def fileUrl = "https://software.ditto.live/react-native/ditto/${project.version}/android/${arch}/libdittoffi.a"
|
|
173
177
|
|
|
174
178
|
new File("${project.projectDir}/../dittoffi/android/${arch}").mkdirs()
|
|
175
179
|
def localFilePath = "${project.projectDir}/../dittoffi/android/${arch}/libdittoffi.a"
|