Skip to content

Commit 28787f9

Browse files
committed
Merge branch 'master' of github.com:realm/realm-core into next-major
2 parents c77f07e + b7e545a commit 28787f9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+2921
-463
lines changed

.clang-format

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
2-
Language: Cpp
2+
# Don't try to format any languages not described by this file
3+
DisableFormat: true
34
AccessModifierOffset: -4
45
AlignAfterOpenBracket: Align
56
AlignArrayOfStructures: None
@@ -65,7 +66,6 @@ ContinuationIndentWidth: 4
6566
Cpp11BracedListStyle: true
6667
DeriveLineEnding: true
6768
DerivePointerAlignment: false
68-
DisableFormat: false
6969
EmptyLineAfterAccessModifier: Never
7070
EmptyLineBeforeAccessModifier: LogicalBlock
7171
ExperimentalAutoDetectBinPacking: false
@@ -191,5 +191,11 @@ WhitespaceSensitiveMacros:
191191
- BOOST_PP_STRINGIZE
192192
- NS_SWIFT_NAME
193193
- CF_SWIFT_NAME
194+
---
195+
Language: Cpp
196+
DisableFormat: false
197+
---
198+
Language: ObjC
199+
DisableFormat: false
194200
...
195201

CHANGELOG.md

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
# NEXT MAJOR RELEASE
32

43
### Enhancements
@@ -21,6 +20,45 @@
2120

2221
----------------------------------------------
2322

23+
# 14.6.2 Release notes
24+
25+
### Enhancements
26+
* None.
27+
28+
### Fixed
29+
* Fixed a bug when running a IN query on a String/Int/UUID/ObjectId property that was indexed. ([7642](https://github.com/realm/realm-core/issues/7642) since v14.6.0)
30+
* Fixed a bug when running a IN query on a integer property where double/float parameters were ignored. ([7642](https://github.com/realm/realm-core/issues/7642) since v14.6.0)
31+
* Having links in a nested collections would leave the file inconsistent if the top object is removed. ([#7657](https://github.com/realm/realm-core/issues/7657), since 14.0.0)
32+
33+
### Breaking changes
34+
* None.
35+
36+
### Compatibility
37+
* Fileformat: Generates files with format v24. Reads and automatically upgrade from fileformat v10. If you want to upgrade from an earlier file format version you will have to use RealmCore v13.x.y or earlier.
38+
39+
----------------------------------------------
40+
41+
# 14.6.1 Release notes
42+
43+
### Enhancements
44+
* None.
45+
46+
### Fixed
47+
48+
### Breaking changes
49+
* None.
50+
51+
### Compatibility
52+
* Fileformat: Generates files with format v24. Reads and automatically upgrade from fileformat v10. If you want to upgrade from an earlier file format version you will have to use RealmCore v13.x.y or earlier.
53+
54+
-----------
55+
56+
### Internals
57+
* None.
58+
* Build with -Werror on CI to ensure that new warnings don't slip in. ([PR #7646](https://github.com/realm/realm-core/pull/7646))
59+
60+
----------------------------------------------
61+
2462
# 14.6.0 Release notes
2563

2664
### Enhancements

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import PackageDescription
44
import Foundation
55

6-
let versionStr = "14.6.0"
6+
let versionStr = "14.6.2"
77
let versionPieces = versionStr.split(separator: "-")
88
let versionCompontents = versionPieces[0].split(separator: ".")
99
let versionExtra = versionPieces.count > 1 ? versionPieces[1] : ""

bindgen/spec.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -740,6 +740,7 @@ classes:
740740
make_ssl_verify_callback: '(callback: (server_address: const std::string&, server_port: int, pem_data: std::string_view, preverify_ok: int, depth: int) off_thread -> bool) -> SSLVerifyCallback'
741741
needs_file_format_upgrade: '(config: const RealmConfig&) -> bool'
742742
sync_user_as_app_user: '(sync_user: Nullable<std::shared_ptr<SyncUser>>) -> Nullable<std::shared_ptr<User>>'
743+
app_user_as_sync_user: '(sync_user: Nullable<std::shared_ptr<User>>) -> Nullable<std::shared_ptr<SyncUser>>'
743744

744745
LogCategoryRef:
745746
cppName: util::LogCategoryRef
@@ -1208,13 +1209,13 @@ classes:
12081209
SyncUser:
12091210
cppName: SyncUser
12101211
sharedPtrWrapped: SharedSyncUser
1212+
properties:
1213+
is_logged_in: bool
12111214

12121215
User:
1213-
base: SyncUser
12141216
cppName: app::User
12151217
sharedPtrWrapped: SharedUser
12161218
properties:
1217-
is_logged_in: bool
12181219
user_id: std::string
12191220
app_id: std::string
12201221
legacy_identities: std::vector<std::string>
@@ -1295,7 +1296,7 @@ classes:
12951296
unsubscribe: '(token: AppSubscriptionToken)'
12961297
call_function: '(user: const SharedUser&, name: std::string, args: EJsonArray, service_name: std::optional<std::string>, cb: AsyncCallback<(result: Nullable<const EJson*>, err: std::optional<AppError>)>)'
12971298
make_streaming_request: '(user: SharedUser, name: std::string, args: bson::BsonArray, service_name: std::optional<std::string>) -> Request'
1298-
update_base_url: '(base_url: std::optional<std::string>, cb: AsyncCallback<(err: std::optional<AppError>)>&&)'
1299+
update_base_url: '(base_url: std::string_view, cb: AsyncCallback<(err: std::optional<AppError>)>&&)'
12991300
get_base_url: '() const -> std::string'
13001301
immediately_run_file_actions: '(realm_path: std::string) -> bool'
13011302

bindgen/src/realm_helpers.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,11 @@ struct Helpers {
290290
{
291291
return std::dynamic_pointer_cast<app::User>(sync_user);
292292
}
293+
294+
static std::shared_ptr<SyncUser> app_user_as_sync_user(std::shared_ptr<app::User> app_user)
295+
{
296+
return std::dynamic_pointer_cast<SyncUser>(app_user);
297+
}
293298
};
294299

295300
struct ObjectChangeSet {

dependencies.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PACKAGE_NAME: realm-core
2-
VERSION: 14.6.0
2+
VERSION: 14.6.2
33
OPENSSL_VERSION: 3.2.0
44
ZLIB_VERSION: 1.2.13
55
# https://github.com/10gen/baas/commits
6-
# 5138f5c is 2024 Apr 19
7-
BAAS_VERSION: 5138f5c924f9f376d31cbc2b1819e1d934600277
6+
# 9d1b4d6 is 2024 May 8
7+
BAAS_VERSION: 9d1b4d628babadfb606ebcadb93b1e5cae3c9565

evergreen/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ functions:
172172
fi
173173
174174
set_cmake_var realm_vars REALM_NO_TESTS BOOL ${no_tests|Off}
175+
set_cmake_var realm_vars CMAKE_COMPILE_WARNING_AS_ERROR BOOL On
175176
176177
echo "Running cmake with these vars:"
177178
cat cmake_vars/*.txt | tee cmake_vars.txt

src/external/IntelRDFPMathLib20U2/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,6 @@ if(HAVE-Wunused-but-set-variable)
3232
target_compile_options(Bid PRIVATE -Wno-unused-but-set-variable)
3333
endif()
3434

35-
set_target_properties(Bid PROPERTIES CXX_VISIBILITY_PRESET hidden)
35+
set_target_properties(Bid PROPERTIES
36+
CXX_VISIBILITY_PRESET hidden
37+
COMPILE_WARNING_AS_ERROR Off)

src/external/bson/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,7 @@ if (CMAKE_SYSTEM_NAME MATCHES "Darwin")
5353
endif()
5454
target_include_directories(Bson PUBLIC .. ${PROJECT_BINARY_DIR}/src/external)
5555
target_compile_definitions(Bson INTERFACE BSON_STATIC)
56+
57+
set_target_properties(Bson PROPERTIES
58+
CXX_VISIBILITY_PRESET hidden
59+
COMPILE_WARNING_AS_ERROR Off)

src/external/bson/bson-macros.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,8 @@
173173
#endif
174174
#else
175175
#if defined(_MSC_VER)
176-
#define BSON_ALIGNED_BEGIN(_N) __declspec (align (BSON_ALIGN_OF_PTR))
177-
#define BSON_ALIGNED_END(_N)
176+
#define BSON_ALIGNED_BEGIN(_N) _Pragma("warning(push)") _Pragma("warning(disable: 4359)") __declspec (align (BSON_ALIGN_OF_PTR))
177+
#define BSON_ALIGNED_END(_N) _Pragma("warning(pop)")
178178
#else
179179
#define BSON_ALIGNED_BEGIN(_N)
180180
#define BSON_ALIGNED_END(_N) \

0 commit comments

Comments
 (0)