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

[Snyk] Upgrade realm from 10.11.0 to 10.12.0 #12

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

Conversation

snyk-bot
Copy link

Snyk has created this PR to upgrade realm from 10.11.0 to 10.12.0.

ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.


  • The recommended version is 4 versions ahead of your current version.
  • The recommended version was released a month ago, on 2022-01-24.
Release notes
Package name: realm
  • 10.12.0 - 2022-01-24

    Notes

    This release adds beta support for flexible sync. See the backend and SDK documentation for more information. Please report any issues with the beta through Github.

    Please note the following API changes from the 10.12.0-beta.1 release of Flexible Sync:

    • Realm.getSubscriptions() is now Realm.subscriptions
    • Subscriptions has been renamed to SubscriptionSet, and MutableSubscriptions to MutableSubscriptionSet
    • SubscriptionSet.snaphot() has been removed, in favour of allowing a SubscriptionSet to be accessed as an array
    • SubscriptionSet.find() has been renamed to SubscriptionSet.findByQuery() to avoid a naming confict with the Array.find method
    • SubscriptionSet.empty has been renamed to SubscriptionSet.isEmpty
    • The result of Realm.subscriptions.update can be awaited to avoid a separate call to waitForSynchronization
    • The spelling of SubscriptionState.Superceded was corrected to SubscriptionState.Superseded

    Enhancements

    • Support arithmetic operations (+, -, *, /) in queries. Operands can be properties and/or constants of numeric types (int, float, double or Decimal128). You can now say something like (age + 5) * 2 > child.age.
    • Realm.writeCopyTo() now supports creating snapshots of synced Realms, thus allowing apps to be shipped with partially-populated synced databases. (#3782
    • Added beta support for flexible sync (#4220).

    Fixed

    • Opening a Realm with a schema that has an orphaned embedded object type performed an extra empty write transaction. (realm/realm-core#5115, since v10.5.0)
    • Schema validation was missing for embedded objects in sets, resulting in an unhelpful error being thrown if the user attempted to define one. (realm/realm-core#5115)
    • Fixed a crash when closing an Electron app with a custom sync error handler (#4150

    Compatibility

    • Removed deprecated-react-native-listview from root package.json
    • MongoDB Realm Cloud.
    • Realm Studio v11.0.0.
    • APIs are backwards compatible with all previous releases of Realm JavaScript in the 10.5.x series.
    • 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

  • 10.12.0-beta.1 - 2022-01-14

    [10.12.0-beta.1] Bump version

  • 10.12.0-beta.0 - 2022-01-13

    Enhancements

    • Support arithmetic operations (+, -, *, /) in queries. Operands can be properties and/or constants of numeric types (int, float, double or Decimal128). You can now say something like (age + 5) * 2 > child.age.
    • Added beta support for flexible sync. See the backend and SDK documentation for more information. Please report any issues with the beta through Github.

    Fixed

    • Opening a Realm with a schema that has an orphaned embedded object type performed an extra empty write transaction. (realm/realm-core#5115, since v10.5.0)
    • Schema validation was missing for embedded objects in sets, resulting in an unhelpful error being thrown if the user attempted to define one. (realm/realm-core#5115)

    Compatibility

    • Removed deprecated-react-native-listview from root package.json
    • MongoDB Realm Cloud.
    • Realm Studio v11.0.0.
    • APIs are backwards compatible with all previous releases of Realm JavaScript in the 10.5.x series.
    • 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

  • 10.12.0-beta - 2022-01-13

    [10.12.0-beta] bump version

  • 10.11.0 - 2021-12-21

    Enhancements

    const config = {
      // ...
      sync: {
        // ...
        clientReset: {
          mode: "discardLocal",
          clientResyncBefore: (realm) => { /* ... */ },
          clientResyncAfter: (beforeRealm, afterRealm) => { /* ... */ },
        },
      },
    };

    Fixed

    • If the option user in a sync configuration was not a Realm.User object could lead to a crash. (#1348, since v10.0.0)
    • @ sum and @ avg queries on Dictionaries of floats or doubles used too much precision for intermediates, resulting in incorrect rounding. (since v10.3.0-rc.1)
    • Queries of the form link.collection.@ sum = 0 where link is null matched when collection was a List or Set, but not a Dictionary (realm/realm-core#5080, since v10.5.0)
    • Fix Realm for versions of Node greater than 14. (#4149)
    • Type methods defined in collection-methods.js no longer throw Realm not defined errors in some environments (#4029, #3991, since v10.5.0)
    • Fixed a bug in Realm.App.emailPasswordAuth.callResetPasswordFunction() which could lead to the error Error: Error: resetDetails must be of type 'object', got ([email protected]). (#4143, since v10.10.0)
    • Using a custom logger on Sync sessions could trigger a segmentation fault. (#4121, since v10.5.0)
    • Fixed MongoDBCollection#watch on React Native (#3494, since v10.0.0). To use this, you must install:
      1. Polyfills for fetch, ReadableStream and TextDecoder: https://www.npmjs.com/package/react-native-polyfill-globals
      2. Babel plugin enabling async generator syntax: https://npmjs.com/package/@ babel/plugin-proposal-async-generator-functions

    Compatibility

    • MongoDB Realm Cloud.
    • Realm Studio v11.0.0.
    • APIs are backwards compatible with all previous releases of Realm JavaScript in the 10.5.x series.
    • 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

    • Add .clang-format file for formatting C++ code, formatted all existing code and added a lint check for C++.
    • Updated Docker URL to new canonical URL of ghcr.io
    • Excluding the react-native/android/build directory from the NPM package.
    • Removed the examples/ReactExample app. See FindOurDevices for a modern example app.
    • Removed undocumented, outdated and unused ListView component exported via realm/react-native. See @ realm.io/react for a modern integration with React.
    • Sending the correct version when submitting analytics requests on Android, as a side-effect of #4114.
    • Removed TypeScript dependency from individual sub-packages so all packages share the root version, and updated the root TypeScript version to 4.5.2.
    • Consuming TypeScript directly from the integration test environments, instead of transpiling first.
    • Adding a new private @ realm/metro-config package to share this across any React Native app in our repo that reference other packages via symbolic links.
    • Added a performance test suite to the integration test.
    • Upgraded Realm Core from v11.6.1 to v11.7.0.
from realm GitHub release notes
Commit messages
Package name: realm

Compare


Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.

For more information:

🧐 View latest project report

🛠 Adjust upgrade PR settings

🔕 Ignore this dependency or unsubscribe from future upgrade PRs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant