Skip to content

Commit 9b9992d

Browse files
authored
Upgrade to core v14.12.1 (#8674)
1 parent 2ea0f20 commit 9b9992d

File tree

8 files changed

+34
-22
lines changed

8 files changed

+34
-22
lines changed

CHANGELOG.md

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,36 @@
1-
x.y.z Release notes (yyyy-MM-dd)
1+
10.53.1 Release notes (2024-09-05)
22
=============================================================
3+
34
### Enhancements
4-
* None.
5+
6+
* Add the file path to the exception thrown by File::rw_lock() when it fails to
7+
open the file. ([Core #7999](https://github.com/realm/realm-core/issues/7999))
58

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

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

1223
### Compatibility
24+
1325
* Realm Studio: 15.0.0 or later.
1426
* APIs are backwards compatible with all previous releases in the 10.x.y series.
1527
* Carthage release for Swift is built with Xcode 15.4.0.
1628
* CocoaPods: 1.10 or later.
1729
* Xcode: 15.1.0-16 beta 5.
1830

1931
### Internal
20-
* Upgraded realm-core from ? to ?
32+
33+
* Upgraded realm-core from v14.12.0 to 14.12.1
2134

2235
10.53.0 Release notes (2024-08-20)
2336
=============================================================

Package.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
import PackageDescription
44
import Foundation
55

6-
let coreVersion = Version("14.12.0")
7-
let cocoaVersion = Version("10.53.0")
6+
let coreVersion = Version("14.12.1")
7+
let cocoaVersion = Version("10.53.1")
88

99
let cxxSettings: [CXXSetting] = [
1010
.headerSearchPath("."),

Realm/ObjectServerTests/AsyncSyncTests.swift

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ class AsyncAwaitSyncTests: SwiftSyncTestCase {
350350

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

419419
func testCustomUserDataAsyncAwait() async throws {
420420
let user = try await createUser()
421-
_ = try await user.functions.updateUserData([
422-
["favourite_colour": "green", "apples": 10]
423-
])
421+
_ = try await user.functions.updateUserData(["favourite_colour": "green", "apples": 10])
424422

425423
try await user.refreshCustomData()
426424
XCTAssertEqual(user.customData["favourite_colour"], .string("green"))

Realm/ObjectServerTests/SwiftObjectServerTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -893,7 +893,7 @@ class SwiftObjectServerTests: SwiftSyncTestCase {
893893
let credentials = Credentials.emailPassword(email: email, password: password)
894894
let syncUser = app.login(credentials: credentials).await(self)
895895

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

926926
let customData = user.refreshCustomData().await(self)
927927
XCTAssertEqual(customData["apples"] as! Int, 10)

Realm/Realm-Info.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717
<key>CFBundlePackageType</key>
1818
<string>FMWK</string>
1919
<key>CFBundleShortVersionString</key>
20-
<string>10.53.0</string>
20+
<string>10.53.1</string>
2121
<key>CFBundleSignature</key>
2222
<string>????</string>
2323
<key>CFBundleVersion</key>
24-
<string>10.53.0</string>
24+
<string>10.53.1</string>
2525
<key>NSHumanReadableCopyright</key>
2626
<string>Copyright © 2014-2021 Realm. All rights reserved.</string>
2727
<key>NSPrincipalClass</key>

RealmSwift/Sync.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,7 @@ public struct FunctionCallable: Sendable {
668668
fileprivate let user: User
669669

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

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

11631163
/// The implementation of @dynamicMemberLookup that allows for `async await` callable return.
11641164
///
1165-
/// guard case let .int32(sum) = try await user.functions.sum(.array([1, 2, 3, 4, 5])) else {
1165+
/// guard case let .int32(sum) = try await user.functions.sum(1, 2, 3, 4, 5) else {
11661166
/// return
11671167
/// }
11681168
///

RealmSwift/Tests/ObjectTests.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1263,6 +1263,7 @@ class ObjectTests: TestCase, @unchecked Sendable {
12631263

12641264
// Expect no notification for "owners" when "owner.name" is changed
12651265
let ex = expectation(description: "no change notification")
1266+
ex.isInverted = true
12661267
let token = dog.observe(keyPaths: ["owners"], { _ in
12671268
ex.fulfill()
12681269
})

dependencies.list

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
VERSION=10.53.0
2-
REALM_CORE_VERSION=v14.12.0
1+
VERSION=10.53.1
2+
REALM_CORE_VERSION=v14.12.1
33
STITCH_VERSION=2f308db6f65333728a101d1fecbb792f9659a5ce

0 commit comments

Comments
 (0)