Skip to content

Commit 509d436

Browse files
committed
chore: release 1.10.3
1 parent 83596d9 commit 509d436

File tree

5 files changed

+24
-13
lines changed

5 files changed

+24
-13
lines changed

example/ios/Podfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ PODS:
88
- hermes-engine (0.79.2):
99
- hermes-engine/Pre-built (= 0.79.2)
1010
- hermes-engine/Pre-built (0.79.2)
11-
- loro-react-native (1.10.0):
11+
- loro-react-native (1.10.3):
1212
- DoubleConversion
1313
- glog
1414
- hermes-engine
@@ -1917,7 +1917,7 @@ SPEC CHECKSUMS:
19171917
fmt: a40bb5bd0294ea969aaaba240a927bd33d878cdd
19181918
glog: 5683914934d5b6e4240e497e0f4a3b42d1854183
19191919
hermes-engine: 314be5250afa5692b57b4dd1705959e1973a8ebe
1920-
loro-react-native: 3a2b1dc1c25bf06216bf6ff153c904046ca34bd0
1920+
loro-react-native: ef58f3d1b3bf19efb88e422080ed52552bf5c693
19211921
RCT-Folly: 36fe2295e44b10d831836cc0d1daec5f8abcf809
19221922
RCTDeprecation: 83ffb90c23ee5cea353bd32008a7bca100908f8c
19231923
RCTRequired: eb7c0aba998009f47a540bec9e9d69a54f68136e

loro-rs/Cargo.lock

Lines changed: 8 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

loro-rs/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "loro-rs"
3-
version = "1.10.0"
3+
version = "1.10.3"
44
edition = "2021"
55

66
[lib]
@@ -11,7 +11,7 @@ name = "uniffi-bindgen"
1111
path = "src/uniffi-bindgen.rs"
1212

1313
[dependencies]
14-
loro-ffi = { version = "1.10.0" }
14+
loro-ffi = { version = "1.10.3" }
1515
uniffi = { version = "0.28.3" }
1616

1717
[build-dependencies]

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "loro-react-native",
3-
"version": "1.10.0",
3+
"version": "1.10.3",
44
"description": "React native binding for Loro",
55
"main": "./lib/module/index.js",
66
"types": "./lib/typescript/src/index.d.ts",

src/extension.ts

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
Awareness, EphemeralStore
1010
} from './generated/loro';
1111

12-
import type { ChangeAncestorsTraveler, ChangeMeta } from './generated/loro';
12+
import type { ChangeAncestorsTraveler, ChangeMeta, JsonPathSubscriber } from './generated/loro';
1313

1414
export type Value =
1515
| ContainerId
@@ -38,6 +38,7 @@ declare module "./generated/loro" {
3838
subscribeLocalUpdate(cb: (update: ArrayBuffer) => void): SubscriptionInterface;
3939
subscribeFirstCommitFromPeer(cb: (payload: FirstCommitFromPeerPayload) => void): SubscriptionInterface;
4040
subscribePreCommit(cb: (payload: PreCommitCallbackPayload) => void): SubscriptionInterface;
41+
subscribeJsonpath(path: string, cb: () => void): SubscriptionInterface;
4142
toJSON(): any;
4243
oplogVersion(): VersionVector;
4344
version(): VersionVector;
@@ -168,6 +169,14 @@ LoroDoc.prototype.export = function (mode: ExportMode): ArrayBuffer {
168169
}
169170
}
170171

172+
const _subscribeJsonpathRaw = LoroDoc.prototype.subscribeJsonpath;
173+
LoroDoc.prototype.subscribeJsonpath = function (path: string, cb: () => void): SubscriptionInterface {
174+
const listener: JsonPathSubscriber = {
175+
onJsonpathMaybeChanged: cb,
176+
};
177+
return _subscribeJsonpathRaw.call(this, path, listener);
178+
};
179+
171180
const originalGetText = LoroDoc.prototype.getText;
172181
LoroDoc.prototype.getText = function (id: ContainerId | string): LoroText {
173182
if (typeof id === 'string') {
@@ -681,4 +690,4 @@ EphemeralStore.prototype.subscribeLocalUpdate = function (cb: (update: ArrayBuff
681690
const originalEphemeralStoreSubscribe = EphemeralStore.prototype.subscribe;
682691
EphemeralStore.prototype.subscribe = function (cb: (event: EphemeralStoreEvent) => void): SubscriptionInterface {
683692
return originalEphemeralStoreSubscribe.call(this, { onEphemeralEvent: cb })
684-
}
693+
}

0 commit comments

Comments
 (0)