Skip to content

Commit

Permalink
Upgrade to Realm Core v13.26.0 (#6405)
Browse files Browse the repository at this point in the history
* Upgrade to Realm Core v13.26.0
* Use a well-formed URL in test
* Update CHANGELOG.md

---------

Co-authored-by: Kræn Hansen <kraen.hansen@mongodb.com>
  • Loading branch information
kneth and kraenhansen committed Jan 29, 2024
1 parent 8968776 commit 7954133
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 11 deletions.
10 changes: 5 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,18 @@
* Added an optional `fetch` parameter to the `AppConfiguration`. Use this to specify a custom implementation of the `fetch` function used by the app to perform network requests.

### Fixed
* <How to hit and notice issue? what was the impact?> ([#????](https://github.com/realm/realm-js/issues/????), since v?.?.?)
* None
* Handle `EOPNOTSUPP` when using `posix_fallocate()` and fallback to manually consume space. This should enable android users to open a Realm on restrictive file systems. ([#6349](https://github.com/realm/realm-js/issues/6349), since v12.2.0)
* Application may crash with `incoming_changesets.size() != 0` when a download message is mistaken for a bootstrap message. This can happen if the synchronization session is paused and resumed at a specific time. ([realm/realm-core#7238](https://github.com/realm/realm-core/pull/7238), since v10.12.0)
* Fixed errors complaining about missing symbols such as `__atomic_is_lock_free` on ARMv7 Linux. ([realm/realm-core#7257](https://github.com/realm/realm-core/pull/7257))

### Compatibility
* React Native >= v0.71.4
* Realm Studio v14.0.0.
* File format: generates Realms with format v23 (reads and upgrades file format v5 or later for non-synced Realm, upgrades file format v10 or later for synced Realms).

### Internal
<!-- * Either mention core version or upgrade -->
<!-- * Using Realm Core vX.Y.Z -->
<!-- * Upgraded Realm Core from vX.Y.Z to vA.B.C -->
* Upgraded Realm Core from v13.25.1 to v13.26.0. ([#6403](https://github.com/realm/realm-js/issues/6403))
* Bumping the required MacOS version to 10.13.

## 12.5.1 (2024-01-03)

Expand Down
4 changes: 3 additions & 1 deletion integration-tests/tests/src/tests/sync/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import {
randomVerifiableEmail,
} from "../../utils/generators";
import { buildAppConfig } from "../../utils/build-app-config";
import { baseUrl } from "../../utils/import-app";

type AnyApp = Realm.App<any, any>;
type AnyUser = Realm.User<any, any, any>;
Expand Down Expand Up @@ -677,9 +678,10 @@ describe.skipIf(environment.missingServer, "User", () => {
const credentials = Realm.Credentials.anonymous();
const user = await this.app.logIn(credentials);
const appId = this.app.id;

//@ts-expect-error Wanting to prove that a completely new app instance will still return the current logged in user
delete this.app;
this.app = new Realm.App(appId);
this.app = new Realm.App({ id: appId, baseUrl });

{
const currentUser = this.app.currentUser;
Expand Down
2 changes: 1 addition & 1 deletion packages/realm-react/src/__tests__/AppProvider.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jest.mock("react-native/Libraries/Animated/NativeAnimatedHelper");
describe("AppProvider", () => {
it("returns the configured app with useApp", async () => {
const wrapper = ({ children }: { children: React.ReactNode }) => (
<AppProvider id="someId" app={{ name: "someName", version: "42" }} baseUrl="someurl">
<AppProvider id="someId" app={{ name: "someName", version: "42" }} baseUrl="http://someurl">
{children}
</AppProvider>
);
Expand Down
2 changes: 1 addition & 1 deletion packages/realm/bindgen/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ if(DEFINED CMAKE_JS_VERSION)
message(FATAL_ERROR "Unable to deduce vcpkg target triplet (from '${NODE_ARCH}')")
endif()
elseif(APPLE)
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.9")
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.13")
if(NODE_ARCH STREQUAL "arm64")
set(CMAKE_OSX_ARCHITECTURES "arm64" CACHE STRING "")
else()
Expand Down
2 changes: 1 addition & 1 deletion packages/realm/bindgen/js_opt_in_spec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ classes:
- current_user
- all_users
- sync_manager
- get_uncached_app
- get_app
- clear_cached_apps
- log_in_with_credentials
- log_out_user
Expand Down
2 changes: 1 addition & 1 deletion packages/realm/bindgen/vendor/realm-core
Submodule realm-core updated 79 files
+52 −0 CHANGELOG.md
+17 −33 Jenkinsfile
+2 −1 Package.swift
+9 −3 bindgen/spec.yml
+4 −2 dependencies.list
+17 −8 evergreen/config.yml
+48 −2 evergreen/install_baas.sh
+2 −0 evergreen/setup_baas_host_local.sh
+8 −14 how-to-build.md
+30 −0 src/realm.h
+4 −0 src/realm/CMakeLists.txt
+6 −16 src/realm/db.cpp
+2 −3 src/realm/db.hpp
+1 −0 src/realm/error_codes.cpp
+3 −0 src/realm/error_codes.h
+1 −0 src/realm/error_codes.hpp
+1 −0 src/realm/exceptions.cpp
+22 −0 src/realm/exceptions.hpp
+9 −5 src/realm/object-store/audit.mm
+22 −2 src/realm/object-store/c_api/app.cpp
+4 −3 src/realm/object-store/impl/realm_coordinator.cpp
+5 −2 src/realm/object-store/impl/realm_coordinator.hpp
+5 −4 src/realm/object-store/object_store.cpp
+2 −1 src/realm/object-store/object_store.hpp
+24 −8 src/realm/object-store/shared_realm.cpp
+7 −10 src/realm/object-store/shared_realm.hpp
+345 −244 src/realm/object-store/sync/app.cpp
+140 −71 src/realm/object-store/sync/app.hpp
+107 −8 src/realm/object-store/sync/app_utils.cpp
+19 −2 src/realm/object-store/sync/app_utils.hpp
+119 −19 src/realm/object-store/sync/async_open_task.cpp
+14 −4 src/realm/object-store/sync/async_open_task.hpp
+3 −1 src/realm/object-store/sync/generic_network_transport.cpp
+6 −0 src/realm/object-store/sync/impl/sync_client.hpp
+5 −4 src/realm/object-store/sync/sync_manager.cpp
+13 −3 src/realm/object-store/sync/sync_manager.hpp
+101 −14 src/realm/object-store/sync/sync_session.cpp
+22 −11 src/realm/object-store/sync/sync_session.hpp
+2 −2 src/realm/object-store/sync/sync_user.cpp
+6 −4 src/realm/object-store/sync/sync_user.hpp
+2 −0 src/realm/sync/CMakeLists.txt
+39 −4 src/realm/sync/client.cpp
+8 −18 src/realm/sync/client.hpp
+9 −0 src/realm/sync/network/http.cpp
+40 −3 src/realm/sync/network/http.hpp
+19 −4 src/realm/sync/noinst/client_impl_base.cpp
+5 −0 src/realm/sync/noinst/client_impl_base.hpp
+2 −10 src/realm/sync/noinst/migration_store.cpp
+3 −2 src/realm/sync/noinst/migration_store.hpp
+11 −0 src/realm/sync/noinst/protocol_codec.hpp
+109 −0 src/realm/sync/noinst/sync_schema_migration.cpp
+33 −0 src/realm/sync/noinst/sync_schema_migration.hpp
+9 −0 src/realm/sync/protocol.cpp
+16 −4 src/realm/sync/protocol.hpp
+2 −12 src/realm/sync/subscriptions.cpp
+3 −3 src/realm/sync/subscriptions.hpp
+1 −1 src/realm/util/file.cpp
+1 −0 test/object-store/CMakeLists.txt
+69 −9 test/object-store/c_api/c_api.cpp
+0 −6 test/object-store/realm.cpp
+953 −209 test/object-store/sync/app.cpp
+58 −26 test/object-store/sync/flx_migration.cpp
+990 −0 test/object-store/sync/flx_schema_migration.cpp
+40 −3 test/object-store/sync/flx_sync.cpp
+23 −0 test/object-store/sync/session/session.cpp
+95 −40 test/object-store/util/sync/baas_admin_api.cpp
+2 −0 test/object-store/util/sync/baas_admin_api.hpp
+9 −3 test/object-store/util/sync/flx_sync_harness.hpp
+11 −2 test/object-store/util/sync/sync_test_utils.cpp
+2 −0 test/object-store/util/sync/sync_test_utils.hpp
+5 −5 test/object-store/util/test_file.cpp
+1 −1 test/object-store/util/test_file.hpp
+13 −0 test/object-store/util/test_utils.hpp
+10 −4 test/object-store/util/unit_test_transport.cpp
+13 −0 test/object-store/util/unit_test_transport.hpp
+28 −13 test/test_lang_bind_helper.cpp
+135 −0 test/test_util_http.cpp
+10 −4 tools/cmake/GetVersion.cmake
+0 −5 tools/run_baas_docker_image.sh
3 changes: 2 additions & 1 deletion packages/realm/src/app-services/App.ts
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,8 @@ export class App<

fs.ensureDirectoryForFile(fs.joinPaths(baseFilePath || fs.getDefaultDirectoryPath(), "mongodb-realm"));
// TODO: This used getSharedApp in the legacy SDK, but it's failing AppTests
this.internal = binding.App.getUncachedApp(
this.internal = binding.App.getApp(
binding.AppCacheMode.Disabled,
{
appId: id,
deviceInfo: App.deviceInfo,
Expand Down

0 comments on commit 7954133

Please sign in to comment.