Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 26 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,31 @@
# Change Log

## [0.4.0](https://github.com/ably/ably-liveobjects-swift-plugin/tree/0.4.0)

### Operations are now applied on acknowledgement

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.

Concretely, this means that in the following example, `fetchedValue` is now guaranteed to be `myValue`:

```swift
try await map.set(key: "myKey", value: "myValue")
let fetchedValue = try map.get(key: "myKey")
```

### Other changes

These changes do not affect the plugin's public API.

- Buffer operations whilst `SYNCING` per updated RTO8a (https://github.com/ably/ably-liveobjects-swift-plugin/pull/109)
- Fix events emitted upon sync (https://github.com/ably/ably-liveobjects-swift-plugin/pull/111)
- Support the protocol v6 `ObjectMessage` structure (https://github.com/ably/ably-liveobjects-swift-plugin/pull/114)
- Implement new rules for discarding ops buffered during sync (https://github.com/ably/ably-liveobjects-swift-plugin/pull/121)
- Partial object sync (https://github.com/ably/ably-liveobjects-swift-plugin/pull/117)
- Implement `MAP_CLEAR` operation (https://github.com/ably/ably-liveobjects-swift-plugin/pull/122)

**Full Changelog**: https://github.com/ably/ably-liveobjects-swift-plugin/compare/0.3.0...0.4.0

## [0.3.0](https://github.com/ably/ably-liveobjects-swift-plugin/tree/0.3.0)

## What's Changed
Expand Down
5 changes: 3 additions & 2 deletions Package.resolved

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,9 @@ let package = Package(
),
],
dependencies: [
// TODO: Unpin before release
.package(
url: "https://github.com/ably/ably-cocoa.git",
revision: "5e4cca89749ec051a57c5758412c080f049fcf42",
from: "1.2.59",
),
.package(
url: "https://github.com/ably/ably-cocoa-plugin-support",
Expand Down
Loading