Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to Realm Core v12.9.0 #4985

Merged
merged 4 commits into from
Oct 6, 2022
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
7 changes: 5 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
## vNext (TBD)

### Enhancements
* None
* Prioritize integration of local changes over remote changes. This shortens the time users may have to wait when committing local changes. Stop storing downloaded changesets in history. ([realm/realm-core#5844](https://github.com/realm/realm-core/pull/5844))
* Greatly improve the performance of sorting or distincting a Dictionary's keys or values. The most expensive operation is now performed O(log N) rather than O(N log N) times, and large Dictionaries can see upwards of 99% reduction in time to sort. ([realm/realm-core#5166](https://github.com/realm/realm-core/pulls/5166))
* Cut the runtime of aggregate operations on large dictionaries in half. ([realm/realm-core#5864](https://github.com/realm/realm-core/pull/5864))
* Improve performance of aggregate operations on collections of objects by 2x to 10x. ([realm/realm-core#5864](https://github.com/realm/realm-core/pull/5864))

### Fixed
* If a case insensitive query searched for a string including an 4-byte UTF8 character, the program would crash. ([realm/realm-core#5825](https://github.com/realm/realm-core/issues/5825), since v1.0.0)
Expand All @@ -17,7 +20,7 @@
* File format: generates Realms with format v22 (reads and upgrades file format v5 or later for non-synced Realm, upgrades file format v10 or later for synced Realms).

### Internal
* Upgraded Realm Core from v12.6.0 to v12.7.0. ([#4932](https://github.com/realm/realm-js/issues/4932))
* Upgraded Realm Core from v12.6.0 to v12.9.0. ([#4932](https://github.com/realm/realm-js/issues/4932) and [#4983](https://github.com/realm/realm-js/issues/4983)
* Added ARM/Linux build guide.

## 10.21.1 (2022-09-15)
Expand Down
2 changes: 1 addition & 1 deletion dependencies.list
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
PACKAGE_NAME=realm-js
VERSION=10.21.1
REALM_CORE_VERSION=12.7.0
REALM_CORE_VERSION=12.9.0
NAPI_VERSION=5
OPENSSL_VERSION=1.1.1g
MDBREALM_TEST_SERVER_TAG=2022-06-10
2 changes: 1 addition & 1 deletion src/js_network_transport.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ struct JavaScriptNetworkTransport : public app::GenericNetworkTransport {
return request_object;
}

void send_request_to_server(app::Request&& request,
void send_request_to_server(const app::Request& request,
util::UniqueFunction<void(const app::Response&)>&& completion_callback) override
{
m_dispatcher([ctx = m_ctx, request = std::move(request),
Expand Down
2 changes: 1 addition & 1 deletion src/jsc/jsc_rpc_network_transport.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ struct RPCNetworkTransport : public app::GenericNetworkTransport {
{
}

void send_request_to_server(app::Request&& request,
void send_request_to_server(const app::Request& request,
util::UniqueFunction<void(const app::Response&)>&& completion_callback) override
{
// Build up a JS request object
Expand Down
2 changes: 1 addition & 1 deletion tests/js/list-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -1420,7 +1420,7 @@ module.exports = {

if (list.type === "date") {
TestCase.assertThrowsContaining(() => list.sum(), "Cannot sum 'date' array: operation not supported");
TestCase.assertThrowsContaining(() => list.avg(), "Cannot average 'date' array: operation not supported");
TestCase.assertThrowsContaining(() => list.avg(), "Cannot avg 'date' array: operation not supported");
continue;
}

Expand Down
2 changes: 1 addition & 1 deletion vendor/realm-core
Submodule realm-core updated 120 files