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

RJS-2792: Upgrade to Realm Core v14.5.0 #6598

Merged
merged 10 commits into from
Apr 10, 2024
Merged

Conversation

kraenhansen
Copy link
Member

@kraenhansen kraenhansen commented Apr 6, 2024

What, How & Why?

This upgrades to Realm Core v14.5.0.

In alignment with realm/realm-core#7554 this removes the root package's dependency on clang-format.

Fixes #6544

☑️ ToDos

  • 📝 Changelog entry
  • 📝 Compatibility label is updated or copied from previous entry
  • 📝 Update COMPATIBILITY.md
  • 🚦 Tests
  • 📦 Updated internal package version in consuming package.jsons (if updating internal packages)
  • 📱 Check the React Native/other sample apps work if necessary
  • 💥 Breaking label has been applied or is not necessary

@kraenhansen kraenhansen added the no-jira-ticket Skip checking the PR title for Jira reference label Apr 6, 2024
@kraenhansen kraenhansen self-assigned this Apr 6, 2024
@cla-bot cla-bot bot added the cla: yes label Apr 6, 2024
@nirinchev nirinchev changed the title Upgrade to Realm Core v14.5.0 RJS-2755: Upgrade to Realm Core v14.5.0 Apr 7, 2024
@nirinchev nirinchev removed the no-jira-ticket Skip checking the PR title for Jira reference label Apr 7, 2024
@kraenhansen kraenhansen changed the title RJS-2755: Upgrade to Realm Core v14.5.0 RJS-2792: Upgrade to Realm Core v14.5.0 Apr 8, 2024
@kraenhansen kraenhansen linked an issue Apr 8, 2024 that may be closed by this pull request
CHANGELOG.md Outdated Show resolved Hide resolved
@kraenhansen kraenhansen requested review from kneth and elle-j April 9, 2024 11:20
CHANGELOG.md Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
CHANGELOG.md Outdated
@@ -32,13 +32,17 @@
* Fixed sorting order of strings to use standard unicode codepoint order instead of grouping similar English letters together. A noticeable change will be from "aAbBzZ" to "ABZabz". ([realm/realm-core#2573](https://github.com/realm/realm-core/issues/2573))
* `data` and `string` are now strongly typed for comparisons and queries. This change is especially relevant when querying for a string constant on a Mixed property, as now only strings will be returned. If searching for `data` is desired, then that type must be specified by the constant. In RQL the new way to specify a binary constant is to use `mixed = bin('xyz')` or `mixed = binary('xyz')`. ([realm/realm-core#6407](https://github.com/realm/realm-core/issues/6407))

* Fixed diverging history due to a bug in the replication code when setting default null values (embedded objects included) ([realm/realm-core#7536](https://github.com/realm/realm-core/issues/7536)).
* Null pointer exception may be triggered when logging out and async commits callbacks not executed ([realm/realm-core#7434](https://github.com/realm/realm-core/issues/7434), since v12.6.0)

### Compatibility
* React Native >= v0.71.4
* Realm Studio v15.0.0.
* File format: generates Realms with format v24 (reads and upgrades file format v10 or later).

### Internal
* Upgraded Realm Core from v13.26.0 to v14.4.1. ([#6499](https://github.com/realm/realm-js/issues/6499), [#6541](https://github.com/realm/realm-js/issues/6541), [#6568](https://github.com/realm/realm-js/issues/6568), and [#6572](https://github.com/realm/realm-js/issues/6572))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* Upgraded Realm Core from v13.26.0 to v14.4.1. ([#6499](https://github.com/realm/realm-js/issues/6499), [#6541](https://github.com/realm/realm-js/issues/6541), [#6568](https://github.com/realm/realm-js/issues/6568), and [#6572](https://github.com/realm/realm-js/issues/6572))
* Upgraded Realm Core from v13.26.0 to v14.5.0. ([#6499](https://github.com/realm/realm-js/issues/6499), [#6541](https://github.com/realm/realm-js/issues/6541), [#6568](https://github.com/realm/realm-js/issues/6568), [#6572](https://github.com/realm/realm-js/issues/6572), and [#6599](https://github.com/realm/realm-js/issues/6599))

package.json Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
Copy link
Contributor

@elle-j elle-j left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, will be interesting to get a feel for trunk. Left some questions and suggestions.

.trunk/trunk.yaml Outdated Show resolved Hide resolved
CHANGELOG.md Outdated
### Compatibility
* React Native >= v0.71.4
* Realm Studio v15.0.0.
* File format: generates Realms with format v24 (reads and upgrades file format v10 or later).

### Internal
* Upgraded Realm Core from v13.26.0 to v14.4.1. ([#6499](https://github.com/realm/realm-js/issues/6499), [#6541](https://github.com/realm/realm-js/issues/6541), [#6568](https://github.com/realm/realm-js/issues/6568), and [#6572](https://github.com/realm/realm-js/issues/6572))
* The base URL used to communicate with the Atlas App Services was updated changed from "https://realm.mongodb.com" to "https://services.cloud.mongodb.com". ([realm/realm-core#7534](https://github.com/realm/realm-core/pull/7534)).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* The base URL used to communicate with the Atlas App Services was updated changed from "https://realm.mongodb.com" to "https://services.cloud.mongodb.com". ([realm/realm-core#7534](https://github.com/realm/realm-core/pull/7534)).
* The base URL used to communicate with the Atlas App Services was changed from "https://realm.mongodb.com" to "https://services.cloud.mongodb.com". ([realm/realm-core#7534](https://github.com/realm/realm-core/pull/7534)).

package.json Outdated Show resolved Hide resolved
packages/realm/bindgen/src/templates/jsi.ts Show resolved Hide resolved
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you think about making the file name less coupled to the tool used? So just formatter.ts. Possibly the exported variable as well?

Copy link
Member Author

@kraenhansen kraenhansen Apr 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could merge the trunk-formatter.ts with the eslint-formatter.ts? 🤔 Into a formatters.ts.

It feels relevant to me that the code requesting the formatting (the binding template) is explicit in which tool it expects to handle the formatting, so simply naming it "cpp-formatter" or something similar feels a bit wrong to me 🤔 What do you think would be the pros / cons here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I ended up turning this into a return assert.fail(...) instead 👍

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was thinking that we only had one formatter now but yeah we have the eslint as well. Sounds reasonable to merge the files though so that they're grouped under "formatters".

@kraenhansen
Copy link
Member Author

Coverage test is still crashing (#6589) but that's not new - I'll go ahead and merge with it.

@kraenhansen kraenhansen merged commit e51a793 into main Apr 10, 2024
30 of 31 checks passed
@kraenhansen kraenhansen deleted the kh/realm-core-14.5.0 branch April 10, 2024 09:15
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upgrade to Realm Core 14.5.0 Update default base URL to new domain
4 participants