Skip to content

Commit

Permalink
Upgrade to core v14.12.1 (#8674)
Browse files Browse the repository at this point in the history
  • Loading branch information
tgoyne authored Sep 5, 2024
1 parent 2ea0f20 commit 9b9992d
Show file tree
Hide file tree
Showing 8 changed files with 34 additions and 22 deletions.
25 changes: 19 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,36 @@
x.y.z Release notes (yyyy-MM-dd)
10.53.1 Release notes (2024-09-05)
=============================================================

### Enhancements
* None.

* Add the file path to the exception thrown by File::rw_lock() when it fails to
open the file. ([Core #7999](https://github.com/realm/realm-core/issues/7999))

### Fixed
* <How to hit and notice issue? what was the impact?> ([#????](https://github.com/realm/realm-swift/issues/????), since v?.?.?)
* None.

<!-- ### Breaking Changes - ONLY INCLUDE FOR NEW MAJOR version -->
* Filtering notifications with a LinkingObjects property as the final element
could sometimes give wrong results
([Core #7530](https://github.com/realm/realm-core/issues/7530), since v10.11.0)
* Fix a potential crash during process termination when Logger log level is set
higher than Info. ([Core #7969](https://github.com/realm/realm-core/issues/7969), since v10.45.0)
* The check for maximum path length was incorrect and lengths between 240 and
250 would fail to use the hashed fallback ([Core #8007](https://github.com/realm/realm-core/issues/8007), since v10.0.0).
* API misuse resulting in an exception being thrown from within a callback
would sometimes terminate due to hitting `REALM_UNREACHABLE()` rather than
the exception being propagated to the caller
([Core #7836](https://github.com/realm/realm-core/issues/7836)).

### Compatibility

* Realm Studio: 15.0.0 or later.
* APIs are backwards compatible with all previous releases in the 10.x.y series.
* Carthage release for Swift is built with Xcode 15.4.0.
* CocoaPods: 1.10 or later.
* Xcode: 15.1.0-16 beta 5.

### Internal
* Upgraded realm-core from ? to ?

* Upgraded realm-core from v14.12.0 to 14.12.1

10.53.0 Release notes (2024-08-20)
=============================================================
Expand Down
4 changes: 2 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
import PackageDescription
import Foundation

let coreVersion = Version("14.12.0")
let cocoaVersion = Version("10.53.0")
let coreVersion = Version("14.12.1")
let cocoaVersion = Version("10.53.1")

let cxxSettings: [CXXSetting] = [
.headerSearchPath("."),
Expand Down
6 changes: 2 additions & 4 deletions Realm/ObjectServerTests/AsyncSyncTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ class AsyncAwaitSyncTests: SwiftSyncTestCase {

func testUserCallFunctionAsyncAwait() async throws {
let user = try await self.app.login(credentials: basicCredentials())
guard case let .int32(sum) = try await user.functions.sum(.array([1, 2, 3, 4, 5])) else {
guard case let .int32(sum) = try await user.functions.sum(1, 2, 3, 4, 5) else {
return XCTFail("Should be int32")
}
XCTAssertEqual(sum, 15)
Expand Down Expand Up @@ -418,9 +418,7 @@ class AsyncAwaitSyncTests: SwiftSyncTestCase {

func testCustomUserDataAsyncAwait() async throws {
let user = try await createUser()
_ = try await user.functions.updateUserData([
["favourite_colour": "green", "apples": 10]
])
_ = try await user.functions.updateUserData(["favourite_colour": "green", "apples": 10])

try await user.refreshCustomData()
XCTAssertEqual(user.customData["favourite_colour"], .string("green"))
Expand Down
4 changes: 2 additions & 2 deletions Realm/ObjectServerTests/SwiftObjectServerTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -893,7 +893,7 @@ class SwiftObjectServerTests: SwiftSyncTestCase {
let credentials = Credentials.emailPassword(email: email, password: password)
let syncUser = app.login(credentials: credentials).await(self)

let bson = syncUser.functions.sum(.array([1, 2, 3, 4, 5])).await(self)
let bson = syncUser.functions.sum(1, 2, 3, 4, 5).await(self)
guard case let .int32(sum) = bson else {
XCTFail("unexpected bson type in sum: \(bson)")
return
Expand Down Expand Up @@ -921,7 +921,7 @@ class SwiftObjectServerTests: SwiftSyncTestCase {
let credentials = Credentials.emailPassword(email: email, password: password)
app.emailPasswordAuth.registerUser(email: email, password: password).await(self)
let user = app.login(credentials: credentials).await(self)
user.functions.updateUserData([["favourite_colour": "green", "apples": 10]]).await(self)
user.functions.updateUserData(["favourite_colour": "green", "apples": 10]).await(self)

let customData = user.refreshCustomData().await(self)
XCTAssertEqual(customData["apples"] as! Int, 10)
Expand Down
4 changes: 2 additions & 2 deletions Realm/Realm-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>10.53.0</string>
<string>10.53.1</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>10.53.0</string>
<string>10.53.1</string>
<key>NSHumanReadableCopyright</key>
<string>Copyright © 2014-2021 Realm. All rights reserved.</string>
<key>NSPrincipalClass</key>
Expand Down
8 changes: 4 additions & 4 deletions RealmSwift/Sync.swift
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,7 @@ public struct FunctionCallable: Sendable {
fileprivate let user: User

/// :nodoc:
@available(*, deprecated, message: "Explicitly specify .array(arg)")
@available(*, deprecated, message: "Specify args separately without wrapping them in an array")
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
public func dynamicallyCall(withArguments args: [[AnyBSON]]) -> Future<AnyBSON, Error> {
return future { promise in
Expand All @@ -685,7 +685,7 @@ public struct FunctionCallable: Sendable {

/// The implementation of @dynamicCallable that allows for `Future<AnyBSON, Error>` callable return.
///
/// let cancellable = user.functions.sum(.array([1, 2, 3, 4, 5]))
/// let cancellable = user.functions.sum(1, 2, 3, 4, 5)
/// .sink(receiveCompletion: { result in
/// }, receiveValue: { value in
/// // Returned value from function
Expand Down Expand Up @@ -1150,7 +1150,7 @@ public extension User {
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
extension FunctionCallable {
/// :nodoc:
@available(*, deprecated, message: "Explicitly specify .array(arg)")
@available(*, deprecated, message: "Specify args separately without wrapping them in an array")
public func dynamicallyCall(withArguments args: [[AnyBSON]]) async throws -> AnyBSON {
let objcArgs = args.first!.map(ObjectiveCSupport.convertBson)
let ret = try await user.__callFunctionNamed(name, arguments: objcArgs)
Expand All @@ -1162,7 +1162,7 @@ extension FunctionCallable {

/// The implementation of @dynamicMemberLookup that allows for `async await` callable return.
///
/// guard case let .int32(sum) = try await user.functions.sum(.array([1, 2, 3, 4, 5])) else {
/// guard case let .int32(sum) = try await user.functions.sum(1, 2, 3, 4, 5) else {
/// return
/// }
///
Expand Down
1 change: 1 addition & 0 deletions RealmSwift/Tests/ObjectTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1263,6 +1263,7 @@ class ObjectTests: TestCase, @unchecked Sendable {

// Expect no notification for "owners" when "owner.name" is changed
let ex = expectation(description: "no change notification")
ex.isInverted = true
let token = dog.observe(keyPaths: ["owners"], { _ in
ex.fulfill()
})
Expand Down
4 changes: 2 additions & 2 deletions dependencies.list
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
VERSION=10.53.0
REALM_CORE_VERSION=v14.12.0
VERSION=10.53.1
REALM_CORE_VERSION=v14.12.1
STITCH_VERSION=2f308db6f65333728a101d1fecbb792f9659a5ce

0 comments on commit 9b9992d

Please sign in to comment.