Skip to content
This repository has been archived by the owner on Nov 15, 2021. It is now read-only.

Bump Realm from 5.1.2 to 10.3.0 #1261

Open
wants to merge 1 commit into
base: dependency
Choose a base branch
from

Conversation

dependabot-preview[bot]
Copy link
Contributor

Bumps Realm from 5.1.2 to 10.3.0.

Release notes

Sourced from Realm's releases.

10.2.1 - New Unity package format

This release changes the way Unity binaries are packaged and obviates the need to have an extra Unity package that contains the dependencies as standalone modules. If you were using the io.realm.unity-bundled package, please remove it and add the newly released io.realm.unity one.

Fixed

  • [Unity] Fixed an issue where failing to weave an assembly due to modeling errors, would only show an error in the logs once and then fail opening a Realm with No RealmObjects. Has linker stripped them?. Now, the weaving errors will show up on every code change/weave attempt and the runtime error will explicitly suggest manually re-running the weaver. (Issue #2310)
  • [Unity] Fixed an issue that would cause the app to hang on exit when using Sync. (PR #2467)
  • [Unity] Fixed an issue that would cause the Unity editor on macOS to hang after assembly reload if the app uses Sync. (Issue #2482)
  • Fixed an issue where a crash could happen on Android x86 due to converting UInt32 into TableKey and Int64 into ObjKey incorrectly. (Issue #2456)

Compatibility

  • Realm Studio: 11.0.0 or later.

10.2.0 - New datatypes and Unity improvements

This release adds SDK support for four new datatatypes - Guid, RealmValue, ISet<TValue>, and IDictionary<string, TValue>.

NOTE: This version upgrades the Realm file format version to add support for the new data types and to adjust how primary keys are handled. Realm files opened will be automatically upgraded and cannot be read by versions older than v10.2.0. This upgrade should be a fairly fast one. Note that we now automatically create a backup of the pre-upgrade Realm.

Enhancements

  • Add support for the Guid data type. It can be used as primary key and is indexable. (PR #2120)

  • Add support for dictionaries. Currently only string keys are supported, while the value type may be any of the supported types (the primitive types, RealmValue, or custom types that inherit from RealmObject/EmbeddedObject). Lists, sets, or other dictionaries may not be used as the value type. To add a dictionary to your model, define a getter-only property of type IDictionary<string, T>:

    public class MyObject : RealmObject
    {
        public IDictionary<string, decimal> Denominations { get; }
    }
    // Realm will automatically manage the underlying dictionary, so there's no need
    // to define a constructor  or assign it to some value.
    var obj = new MyObject();
    obj.Denominations.Add("quarter", 0.25d);

  • Add support for RealmValue data type. This new type can represent any valid Realm data type, including objects. Collections (lists, sets and dictionaries) of RealmValue are also supported, but RealmValue itself cannot contain collections. Please note that a property of type RealmValue cannot be nullable, but can contain null, represented by the value RealmValue.Null. (PR #2252)

    public class MyObject : RealmObject
    {
        public RealmValue MyValue { get; set; }
    public IList&lt;RealmValue&gt; ValuesList { get; }
    public ISet&lt;RealmValue&gt; ValuesSet { get; }
    public IDictionary&lt;string, RealmValue&gt; ValuesDict { get; }
    
    }
    var obj = new MyObject();
    obj.MyValue = RealmValue.Null;
    obj.MyValue = 1;

... (truncated)

Changelog

Sourced from Realm's changelog.

10.3.0 (TBD)

Note: This release uses xcframework and enables bitcode for the iOS native libraries. This significantly increases the package size and may appear to increase the .ipa size when compiling for iOS. However, the bitcode portion, as well as the unnecessary architectures, will be trimmed by the App Store, so the size of the actual download sent to users will be unchanged or smaller than before.

Fixed

  • Fixed an issue that would prevent realm-wrappers.dll from being loaded on Windows 8.1. (Issue #2298)
  • Fixed an assertion failure when listening for changes to a list of primitive Mixed which contains links. (Core upgrade)
  • Fixed an assertion failure when listening for changes to a dictionary or set which contains an invalidated link. (Core upgrade)
  • Fixed an endless recursive loop that could cause a stack overflow when computing changes on a set of objects which contained cycles. (Core upgrade)
  • Add collision handling to Dictionary implementation. (Core upgrade)
  • Fixed a crash after clearing a list or set of Mixed containing links to objects. (Core upgrade)
  • Fixed a recursive loop which would eventually crash trying to refresh a user app token when it had been revoked by an admin. Now this situation logs the user out and reports an error. (Core upgrade)
  • Fixed a race between calling Realm.DeleteRealm and concurrent opening of the realm file. (Core upgrade)
  • [Unity] Added code to preserve the constructors of several base serializers to ensure that most of the basic serialization/deserialization workloads work out of the box. (PR #2489)

Enhancements

  • Changed the native iOS library to use xcframework. This means that running in the simulator on M1 macs is now supported. (Issue #2240)
  • Added bitcode to the native iOS library. This has no effect on Xamarin.iOS, but allows Unity applications to take advantage of optimizations performed by the App Store servers and eventually support new architectures as they are released. (Issue #2240)

Compatibility

  • Realm Studio: 11.0.0 or later.
  • This release uses xcframework for the iOS native libraries, which requires Xamarin.iOS 14.14.2.5 or later.

Internal

  • Using Core 11.0.4.

10.2.1 (2021-06-30)

This release changes the way Unity binaries are packaged and obviates the need to have an extra Unity package that contains the dependencies as standalone modules. If you were using the io.realm.unity-bundled package, please remove it and add the newly released io.realm.unity one.

Fixed

  • [Unity] Fixed an issue where failing to weave an assembly due to modeling errors, would only show an error in the logs once and then fail opening a Realm with No RealmObjects. Has linker stripped them?. Now, the weaving errors will show up on every code change/weave attempt and the runtime error will explicitly suggest manually re-running the weaver. (Issue #2310)
  • [Unity] Fixed an issue that would cause the app to hang on exit when using Sync. (PR #2467)
  • [Unity] Fixed an issue that would cause the Unity editor on macOS to hang after assembly reload if the app uses Sync. (Issue #2482)
  • Fixed an issue where a crash could happen on Android x86 due to converting UInt32 into TableKey and Int64 into ObjKey incorrectly. (Issue #2456)

Enhancements

  • None

Compatibility

  • Realm Studio: 11.0.0 or later.

Internal

  • Using Core 11.0.3.
  • GetHashCode() on objects now uses the table key in addition to the object key. (Issue #2473)

10.2.0 (2021-06-15)

Fixed

  • Fixed a bug where applying multiple OrderBy clauses on a query would result in the clauses being appended to each other as if they

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language
  • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in your Dependabot dashboard:

  • Update frequency (including time of day and day of week)
  • Pull request limits (per update run and/or open at any time)
  • Automerge options (never/patch/minor, and dev/runtime dependencies)
  • Out-of-range updates (receive only lockfile updates, if desired)
  • Security updates (receive only security updates, if desired)

@dependabot-preview dependabot-preview bot added .NET Pull requests that update .net code dependencies Pull requests that update a dependency file labels Jul 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
dependencies Pull requests that update a dependency file .NET Pull requests that update .net code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants