Repository navigation
0.3.0-beta
Pre-release
Pre-release
0.3.0-beta (2022-06-02)
This project is in the Beta stage. The API should be quite stable, but occasional breaking changes may be made.
Breaking Changes
- Made all
Configurationfields final so they can only be initialized in the constructor. This better conveys the immutability of the configuration class. (#455) - Removed
inMemoryfield fromConfiguration. UseConfiguration.inMemoryfactory instead. - Due to the introduction of different types of configurations the
Configurationconstructor has been removed. Use theConfiguration.localfactory instead. (#496)
Enhancements
- Added a property
Configuration.disableFormatUpgrade. When set totrue, opening a Realm with an older file format will throw an exception to avoid automatically upgrading it. (#310) - Support result value from write transaction callbacks. (#294)
- Added a property
Realm.isInTransactionthat indicates whether the Realm instance has an open write transaction associated with it. - Support anonymous application credentials. (#443)
- Added a property
Configuration.initialDataCallback. This is a callback executed when a Realm file is first created and allows you to populate some initial data necessary for your application. (#298) - Support app configuration. (#306)
- Support app class. (#446)
- Support should realm compact on open callback
Configuration.shouldCompactCallbackas option when configuring a Realm to determine if it should be compacted before being returned. (#466) - Support ObjectId type. (#468)
- Support Uuid type. (#470)
- Support application login. (#469)
- Support app configuration log level and request timeout.(#566)
- Support EmailPassword register user. (#452)
- Support EmailPassword confirm user. (#478)
- Support EmailPassword resend user confirmation email. (#479)
- Support EmailPassword complete reset password. (#480)
- Support EmailPassword reset password. (#481)
- Support EmailPassword calling custom reset password functions. (#482)
- Support EmailPassword retry custom user confirmation functions. (#484)
- Expose currentUser property on App. (473)
- Support remove user. (#492)
- Support switch current user. (#493)
- Support user custom data and refresh. (#525)
- Support linking user credentials. (#525)
- Support user state. (#525)
- Support getting user id and identities. (#525)
- Support user logout. (#525)
- Support user deviceId. (#570)
- Support user authentication provider type. (#570)
- Support user profile data. (#570)
- Support flexible synchronization. (#496)
- Added support for DateTime properties. (#569)
- Support setting logger on AppConfiguration. (#583)
- Support setting logger on Realm class. Default is to print info message or worse to the console. (#583)
- Support getting the
SyncSessionfor a synchronized Realm via therealm.syncSessionproperty. - Support the following
SyncSessionAPI:realmPathreturning the path of the Realm for the session.statereturning the current state of the session.connectionStatereturning the current state of the connection.connectionStateChangesreturns a Stream that emits connection state updates.userreturning the user that owns the session.pause()pauses synchronization.resume()resumes synchronization.waitForUpload/waitForDownloadreturns a Future that completes when the session uploaded/downloaded all changes.getProgressStreamreturns a Stream that emits progress updates.
- Support SyncErrorHandler in FlexibleSyncConfiguration. (#577)
- Support SyncClientResetHandler in FlexibleSyncConfiguration. (#608)
- [Dart] Added
Realm.Shutdownmethod to allow normal process exit in Dart applications. (#617)
Fixed
- Fixed an issue that would result in the wrong transaction being rolled back if you start a write transaction inside a write transaction. (#442)
- Fixed boolean value persistence (#474)
Internal
- Added a command to deploy an Atlas App Services application to
realm_dart. Usage:dart run realm_dart deploy-apps. By default it will deploy apps tohttp://localhost:9090which is the endpoint of the local docker image. If--atlas-clusteris provided, it will authenticate, create an application and link the provided cluster to it. (PR #309) - Unit tests will now attempt to lookup and create if necessary Atlas App Services applications (similarly to the above mentioned command). See
test.dart/setupBaas()for the environment variables that control the Url and Atlas Cluster that will be used. If theBAAS_URLenvironment variable is not set, no apps will be imported and sync tests will not run. (PR #309) - Using Core 12.1.0.
Compatibility
- Dart ^2.17 on Windows, MacOS and Linux
- Flutter ^3.0 on Android, iOS, Linux, MacOS and Windows