NOTE: Support for syncing with realm.cloud.io and/or Realm Object Server has been replaced with support for syncing with MongoDB Realm Cloud.
NOTE: This version bumps the Realm file format to version 11. It is not possible to downgrade to earlier versions. 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 Realm Studio 10.0.0 or later will be able to open the new file format.
NOTE: Deprecated methods have been removed.
Breaking changes
Realm.Sync.User
has been replaced byRealm.User
.Realm.Sync.Adapter
,Realm.Sync.addlistener()
,Realm.Sync.localListenerRealms()
,Realm.Sync.removeAllListeners()
andRealm.Sync.removeListener()
have been removed. (#2732)- Query-based Sync has been removed. This includes
Realm.Sync.Subscription
,Realm.Results.subscribe()
,Realm.subscriptions()
,Realm.unsubscribe()
,Realm.privileges()
. These APIs are not initially supported by MongoDB Realm. They will be re-introduced in a future release.partitionValue
has been added to thesync
configuration as a replacement. Please read section "Partition Atlas Data into Realms" in documentation for further information. - Permissions has been removed. You need to configure permissions through MongoDB Realm.
- Deprepated API has been removed:
Realm.openAsync()
,Realm.Sync.setFeatureToken()
,Realm.Sync.User.register()
,Realm.Sync.User.registerWithProvider()
,Realm.Sync.User.authenticate()
,Realm.Sync.setSyncLogger()
,Realm.automaticSyncConfiguration()
. - Renamed configuration option
custom_http_headers
tocustomHttpHeaders
.
Enhancements
- Added support for compiling on a RaspberryPi. (#2798
- Added support for the
Decimal128
data type. (#2674) - Added support for the
ObjectId
data type. (#2675) - Added support for embedded objects. (#2676)
- Added
Realm.App
with the following methods:logIn()
,currentUser()
,allUsers()
,switchUser()
, andremoveUser()
. ARealm.App
instance represents a MongoDB Realm app. (#2750 and #2809) - Added
Realm.Credentials
which represents credentials MongoDB Realm users. It is the following methods:emailPassword()
,facebook
,anonymous()
,apple()
,google()
,custom()
, andfunction()
. You must enable the credentials validation at MongoDB Realm before deploying your app. (#2750 and #2809) - Added auth providers
Realm.Auth.EmailPassword
andRealm.Auth.APIKeys
. (#2750 and #2809) - Added support for
customData
readonly property toRealm.User
objects. (#2809) - Added support for calling server functions from
Realm.User
objects. (#2809)
Fixed
- None.
Compatibility
- MongoDB Realm Cloud.
- Realm Studio v10.0.0 (and related beta versions)
- APIs are backwards compatible with all previous releases of Realm JavaScript in the 10.x.y series.
- File format: generates Realms with format v11 (reads and upgrades file format v5 or later).
Internal
- Updated Realm Core from v6.0.5 to Realm Core v10.0.0-beta.1.
- Updated Realm Sync from v5.0.5 to Realm Sync v10.0.0-beta.1.
- Updated Realm Object Store to commit 6d081a53377514f9b77736cb03051a03d829da92.
- Created a package named "realm-app-importer", to be used by integration tests (ideally by other SDKs too).