npm realm 10.0.0-beta.9
Realm JavaScript v10.0.0-beta.9

latest releases: 10.0.0-beta.11, 6.1.0, 10.0.0-beta.10...
3 years ago

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.

Breaking changes

  • Realm.Auth.EmailPassword.registerEmail() has been renamed to Realm.Auth.EmailPassword.registerUser().
  • Realm.User.identity has been renamed to Realm.User.id.
  • Realm.User.token has been renamed to Realm.User.accessToken.
  • Change instance methods Realm.App.currentUser() and Realm.App.allUsers() to instance properties Realm.App.currentUser and Realm.App.allUsers.
  • Realm.Auth.UserAPIKeyProvider has been replaced by Realm.Auth.ApiKeyProvider.
  • user.auth.apiKeys has been replaced by user.apiKeys.
  • The instance methods on the ApiKeyAuth instance (user.apiKeys) have gotten their APIKey(s) suffix removed: Ex. apiKeys.createAPIKey has been replaced by apiKeys.create.
  • Realm.Auth.EmailPasswordProvider has been replaced by Realm.Auth.EmailPasswordAuth.
  • app.auth.emailPassword has been replaced by user.emailPasswordAuth.
  • Credentials.userAPIKey has been replaced by Credentials.userApiKey.
  • Credentials.serverAPIKey has been replaced by Credentials.serverApiKey.

Enhancements

  • Added RemoteMongoClient functionality to Realm.User
  • Added watch() to RemoteMongoDBCollection to enable streaming notifications of changes events from the database. Only supported in node.js for now.
  • Throwing more descriptive messages when parsing schema properties

Fixed

  • Failed to parse arguments correctly, causing the error callback must be of type 'function', got (undefined) when calling Realm.App.emailPassword.sendResetPasswordEmail() and Realm.App.emailPassword.resendConfirmationEmail(). (#3037, since v10.0.0-beta.1)
  • Fixed user.logOut() to also log out at MongoDB Realm Cloud. The method now returns Promise<void> instead. (#2980, since v10.0.0-beta.1)
  • Fixed TypeError: process.versions is not an Object error being thrown when requiring the package from React Native. (#3045, since v10.0.0-beta.8)
  • Fixed duplicated TypeScript definition of Realm.objectForPrimaryKey(). (#2940, since v10.0.0-beta.1)

Compatibility

  • MongoDB Realm Cloud.
  • 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).

Don't miss a new realm release

NewReleases is sending notifications on new releases.