Skip to content

Commit 8aaaab3

Browse files
Release version 0.4.0
1 parent 79a35cf commit 8aaaab3

4 files changed

Lines changed: 33 additions & 6 deletions

File tree

AblyLiveObjects.xcworkspace/xcshareddata/swiftpm/Package.resolved

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

CHANGELOG.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,31 @@
11
# Change Log
22

3+
## [0.4.0](https://github.com/ably/ably-liveobjects-swift-plugin/tree/0.4.0)
4+
5+
### Operations are now applied on acknowledgement
6+
7+
When you call a mutation method (e.g. `map.set()`), the SDK now applies the effects of this operation to the local LiveObjects data as soon as it receives the server's acknowledgement of the operation. This is an improvement over earlier versions, in which the SDK did not apply such an operation until receiving the operation's echo.
8+
9+
Concretely, this means that in the following example, `fetchedValue` is now guaranteed to be `myValue`:
10+
11+
```swift
12+
try await map.set(key: "myKey", value: "myValue")
13+
let fetchedValue = try map.get(key: "myKey")
14+
```
15+
16+
### Other changes
17+
18+
These changes do not affect the plugin's public API.
19+
20+
- Buffer operations whilst `SYNCING` per updated RTO8a (https://github.com/ably/ably-liveobjects-swift-plugin/pull/109)
21+
- Fix events emitted upon sync (https://github.com/ably/ably-liveobjects-swift-plugin/pull/111)
22+
- Support the protocol v6 `ObjectMessage` structure (https://github.com/ably/ably-liveobjects-swift-plugin/pull/114)
23+
- Implement new rules for discarding ops buffered during sync (https://github.com/ably/ably-liveobjects-swift-plugin/pull/121)
24+
- Partial object sync (https://github.com/ably/ably-liveobjects-swift-plugin/pull/117)
25+
- Implement `MAP_CLEAR` operation (https://github.com/ably/ably-liveobjects-swift-plugin/pull/122)
26+
27+
**Full Changelog**: https://github.com/ably/ably-liveobjects-swift-plugin/compare/0.3.0...0.4.0
28+
329
## [0.3.0](https://github.com/ably/ably-liveobjects-swift-plugin/tree/0.3.0)
430

531
## What's Changed

Package.resolved

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

Package.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,9 @@ let package = Package(
1818
),
1919
],
2020
dependencies: [
21-
// TODO: Unpin before release
2221
.package(
2322
url: "https://github.com/ably/ably-cocoa.git",
24-
revision: "5e4cca89749ec051a57c5758412c080f049fcf42",
23+
from: "1.2.59",
2524
),
2625
.package(
2726
url: "https://github.com/ably/ably-cocoa-plugin-support",

0 commit comments

Comments
 (0)