MongoDB.live, free & fully virtual. June 9th - 10th. Register Now

Realm-JavaScript V6.0.1 is released

Realm JavaScript V6.0.1 is out and ready for production

NOTE: This version bumps the Realm file format to version 10. It is not possible to downgrade version 9 or earlier. Moreover, older files will automatically be upgraded to the new file format. Files created by Realm JavaScript prior to v1.0.0, might not be upgradeable. Only Studio 3.11 or later will be able to open the new file format.

Breaking changes

  • Support of the old timestamp type has been removed, and older files cannot be upgraded. The new timestamp type was introduced in v1.0.0.
  • Realm.delete(Realm.Collection) will conserve the order i.e., if a Realm.Results is [1, 2, 3] (pseudo-notation), Realm.delete(2) will produce [1, 3].
  • It is only possible to compact a Realm when a single instance is open. Consider to use configuration parameter shouldCompactOnLaunch in the future.
  • Schemas are not cached but will be reread when opening a Realm. This has an impact on default values as they are not persisted in the Realm files.

Enhancements

  • None.

Fixed

Added missing file to Android builds. The bug caused RN Android to crash with error cannot locate symbol "_ZN5realm4util9Scheduler12make_defaultEv" . (#2884)

Compatibility

  • Realm Object Server: 3.23.1 or later.
  • Realm Studio: 3.11 or later.
  • APIs are backwards compatible with all previous release of realm in the 6.x.y series.
  • File format: Generates Realms with format v10 (reads and upgrades previous formats).

You can read more here - https://github.com/realm/realm-js/releases/tag/v6.0.0 and here - https://github.com/realm/realm-js/releases

As ever, please inform us if any issues are found

The MongoDB Realm Team

1 Like