Releases: realm/realm-js
Releases · realm/realm-js
v1.8.1
Enhancements
- Accessing
Realm.Sync
when sync is not enabled will no longer throw, but returnundefined
. - Better error messages when creating objects.
- Added bundled TypeScript declarations of the Realm API.
- Added
objectSchema()
method onRealm.Object
that returns the schema for the object.
Bug fixes
- Fix
Realm.Sync.User.prototype.isAdmin
returningfalse
for logged-in admin users.
v1.3.1
Add Realm open async API support.
0.15.5-rmp-beta.1
This is a preview of Realm React Native with sync enabled. It's a beta release, do not use in production!
0.14.1
0.14.0
Breaking changes
- None
Enhancements
- Added
isValid()
method toList
andResults
to check for deleted or invalidated objects - Added
objectForPrimaryKey(type, key)
method toRealm
Bugfixes
- Fix for crash when setting object properties to objects from other Realms
- Fix for exception sometimes thrown when reloading in Chrome debug mode
0.13.2
0.13.1
0.13.0
Breaking changes
- With this release we have switched over to a new cross platform compatible date format.
This change will only require action from users who are using both the JS and Cocoa or Android
bindings simultaneously and accessing Realm files from both bindings. In these cases you need to
open the Realm file with the latest version of the iOS or Android bindings before accessing the
Realm from JS to prevent an unnecessary conversion.
Enhancements
- None
Bugfixes
- Date properties are now stored in a format compatible with the Realm Browser and other bindings.
- Fix for using
class MyObject extends Realm.Object
in a React Native project. - Fix a memory leak caused by constructing a Realm instance of an already opened Realm.
- Fix for better supporting hot module reloading.
- Fix for some warnings when using
ListView
with React Native 0.25+ - Fix for queries that use a keypath starting with "not".
0.12.0
Breaking changes
- None
Enhancements
- Support for queries comparing optional properties to
null
object.isValid()
has been added to enable checking if an object has been deleted- Note: Custom object classes can extend
Realm.Object
to inherit this method
- Note: Custom object classes can extend
- Support opening a Realm as read-only with the
readOnly
configuration option - Support for providing a custom migration function (please see the docs for details)
- Added
path
,readOnly
,schema
, andschemaVersion
properties toRealm
instances - Optional and list properties are no longer required when creating objects
Bugfixes
- When accessing an empty Results
undefined
is returned rather than throwing an exception - Accessing a deleted object throws a JS exception rather than crashing
- Accessing an invalidated Results snapshot throws a JS exception rather than crashing
- Fix for error message when specifying properties with invalid object types
- Fix memory leak when reloading an app in debug mode
- Setting non-persisted properties now works as expected