realm-js/CHANGELOG.md

607 lines
18 KiB
Markdown
Raw Normal View History

2017-10-10 10:55:47 +00:00
X.Y.Z Release notes
=============================================================
### Breaking changes
* None
### Enhancements
* Added `update` method to `Realm.Results` to support bulk updates (#808).
* Added support for aggregate functions on `Realm.Results` and `Realm.List` of primitive types.
2017-10-10 10:55:47 +00:00
### Bug fixes
* Avoid closing then reopening a sync session when using `Realm.open` (#1391).
* Respect custom Realm paths when using `Realm.open` (#1392 and #1393).
2017-10-10 10:55:47 +00:00
### Internal
* Upgrading to Realm Sync 2.0.0-rc28.
* Upgrading to Realm Object Server 2.0.0-rc.4.
2017-10-06 21:21:03 +00:00
2.0.0-rc19 Release notes (2017-10-7)
=============================================================
### Breaking changes
* None.
### Enhancements
* None
### Bug fixes
* None
### Internal
* Update object store libs to fix partial sync
2017-10-05 10:29:40 +00:00
1.13.0 Release notes (2017-10-5)
=============================================================
### Breaking changes
* None.
### Enhancements
* Add a callback function used to verify SSL certificates in the sync config.
* Added aggregate functions `min()`, `max()`, `sum()`, and `avg()` to `Realm.Results` and `Realm.List` (#807).
* Added `deleteRealmIfMigrationNeeded` to configuration to delete a Realm if migration needed (#502).
### Bug fixes
* Fixed port conflict between RN >= 0.48 inspector proxy and RPC server used for Chrome debugging (#1294).
* Workaround for RN >= 0.49 metro-bundler check for single string literal argument to `require()` (#1342)
2017-10-04 10:12:31 +00:00
2.0.0-rc18 Release notes (2017-10-4)
2017-10-03 07:02:17 +00:00
=============================================================
### Breaking changes
* Deprecate node 4 and node 5 support
2017-10-03 07:02:17 +00:00
### Enhancements
* None
### Bug fixes
* Fixed bug in `Realm.subscribeToObjects()`.
2017-10-03 07:02:17 +00:00
### Internal
* None
2017-10-02 22:17:48 +00:00
2.0.0-rc17 Release notes (2017-10-3)
2017-09-01 17:32:47 +00:00
=============================================================
### Breaking changes
* Removed `setAccessToken()`; use `setFeatureToken()` instead.
* During iteration (`for ... of`) of `Realm.Results`, the results will be frozen using the `snapshot()` method (#1366).
### Enhancements
* Support migration from Realms sync 1.0 to sync 2.0 versions
2017-10-02 17:44:24 +00:00
* Handling of the situation when the client has to reset the Realm due to diverging histories (#795).
2017-10-02 18:29:36 +00:00
* Added `Realm.subscribeToObjects()` to listen for changes in partially synced Realms.
### Bug fixes
* None.
2017-10-02 22:15:02 +00:00
### Internal
* Upgraded to Realm Sync 2.0.0-rc27.
2.0.0-rc16 Release notes (2017-9-29)
=============================================================
### Breaking changes
* Upgtading to Realm Core 4.0.1 (bug fixes)
* Upgrading to Realm Sync 2.0.0-rc26 (sync protocol 22 + bug fixes)
2017-10-02 18:29:36 +00:00
2.0.0-rc14 Release notes (2017-9-29)
=============================================================
### Breaking changes
2017-09-28 22:33:51 +00:00
* Upgrading to Realm Core 4.0.0 and Realm Sync 2.0.0-rc25.
### Enhancements
2017-09-01 17:32:47 +00:00
* None
### Bug fixes
* Configuration of sync file system is not done on module import but later when actually needed by sync (#1351)
2.0.0-rc12 Release notes (2017-9-28)
2017-09-27 20:58:50 +00:00
=============================================================
### Breaking changes
* None.
### Enhancements
* None.
### Bug fixes
* An issue where access tokens were not refreshed correctly has been addressed.
2.0.0-rc11 Release notes (2017-9-26)
=============================================================
### Breaking changes
* None
### Internal
* Alignment of permission schemas.
2017-09-26 09:49:04 +00:00
* Updating sync (2.0.0-rc24).
2017-09-21 20:56:44 +00:00
2.0.0-rc10 Release notes (2017-9-19)
2017-09-01 17:32:47 +00:00
=============================================================
### Breaking changes
2017-09-21 20:56:44 +00:00
* Updating core (3.2.1), sync (2.0.0-rc23 - packaged under 2.0.0-rc22), object store.
2017-09-01 17:32:47 +00:00
### Enhancements
* Add support for sorting Lists and Results on values from linked objects.
### Bug fixes
2017-09-01 17:32:47 +00:00
* None
1.12.0 Release notes (2017-9-14)
=============================================================
2017-09-01 17:32:47 +00:00
### Enhancements
* Improve performance of the RPC worker for chrome debugging.
2017-09-11 12:49:43 +00:00
* Added Progress API `realm.syncSession.addProgressNotification` and `realm.syncSession.removeProgressNotification`
* Added additional parameter for `Realm.open` and `Realm.openAsync` for download progress notifications
2017-08-30 04:55:30 +00:00
* Added `Realm.deleteFile` for deleting a Realm (#363).
2017-09-11 05:45:08 +00:00
* Added `Realm.deleteModel` for deleting a Realm model in a migration (#573).
* Added support for in-memory Realms.
2017-08-27 16:18:41 +00:00
* `Realm.Sync.User.login`, `Realm.Sync.User.register`, and `Realm.Sync.User.registerWithProvider` return Promises and deprecate the callback style for them. Callbacks will continue to work for backward compatibility.
2017-09-01 17:32:47 +00:00
### Bug fixes
* Adding missing TypeScript definitions; Permissions (#1283), `setFeatureToken()`, and instructions (#1298).
2017-09-12 17:23:49 +00:00
* Removed `loginWithProvider` from TypeScript definition files. This API never existed and was incorrectly added.
2017-09-01 17:32:47 +00:00
2017-09-01 11:07:37 +00:00
1.11.1 Release notes (2017-9-1)
=============================================================
### Breaking changes
* None
### Enhancements
* None
### Bug fixes
* Fix accessToken.
2017-08-31 10:52:36 +00:00
1.11.0 Release notes (2017-8-31)
=============================================================
### Breaking changes
* None
### Enhancements
* Added methods `Realm.beginTransaction()`, `Realm.commitTransaction()`, `Realm.cancelTransaction()` to manually control write transactions.
* Added property `Realm.isInTransaction` which indicates if write transaction is in progress.
* Added `shouldCompactOnLaunch` to configuration (#507).
* Added `Realm.compact()` for manually compacting Realm files.
* Added various methods for permission management (#1204).
### Bug fixes
2017-09-12 17:23:49 +00:00
* None
2017-08-30 04:55:30 +00:00
2017-08-17 09:35:13 +00:00
1.10.3 Release notes (2017-8-16)
=============================================================
### Breaking changes
* setAccessToken renamed to setFeatureToken. setAccessToken still works for now.
### Enhancements
* None
### Bug fixes
* None
2017-08-17 09:35:13 +00:00
1.10.2 Release notes (2017-8-16)
2017-08-15 13:12:18 +00:00
=============================================================
### Breaking changes
* None
### Enhancements
* None
### Bug fixes
* RN 0.47 no longer breaks for Android due to a superfluous @override annotation
2017-07-27 16:20:39 +00:00
2.0.0 Release notes (2017-7-27)
2017-08-15 13:12:18 +00:00
=============================================================
### Breaking changes
2017-07-12 16:59:43 +00:00
* Switch to the next version of the Sync protocol, compatible with Realm Object Server 2.0.0-rc2.
### Enhancements
* None
### Bug fixes
2017-08-15 13:12:18 +00:00
2017-08-02 12:07:16 +00:00
1.10.1 Release notes (2017-8-2)
2017-07-17 21:22:59 +00:00
=============================================================
### Breaking changes
2017-08-02 12:07:16 +00:00
* None
2017-07-17 21:22:59 +00:00
### Enhancements
2017-08-02 12:07:16 +00:00
* None
2017-07-17 21:22:59 +00:00
### Bug fixes
2017-08-02 12:07:16 +00:00
* `Realm.openAsync` will no longer open the realm if a sync error has occured. Previously this resulted in the callback being invoked twice - once with an error and a second time - with the synchronously opened Realm.
* Database adapters will no longer process the sync history of realm files that are not requested by the adapter configuration. Previously this would lead to crashes for realm files that contained schemas that don't define primary keys.
2017-07-17 21:22:59 +00:00
2017-07-12 16:59:43 +00:00
=======
* None
2017-07-12 14:45:35 +00:00
1.10.0 Release notes (2017-7-12)
=============================================================
### Breaking changes
* None
### Enhancements
2017-07-12 11:02:21 +00:00
* Added `Realm.prototype.empty` which is a property that indicates whether or not the realm has any objects in it.
### Bug fixes
* Fix crash on Node.js when a listener callback throws an error.
The error will now be forwarded to Node's fatal error handling facilities. This means better error reporting,
the ability to debug such errors in a Node.js debugger, and proper invocation of the `uncaughtError` event on the `process` object.
2017-07-10 15:26:44 +00:00
1.9.0 Release notes (2017-7-10)
=============================================================
### Breaking changes
* None
### Enhancements
2017-07-10 15:26:44 +00:00
* Add support for iOS React Native 0.46. Thanks [@ovr](https://github.com/ovr)!
* Add support for Linking Objects (AKA Backlinks).
* Add support for retrieving user account information.
* Add optional `server` parameter to `Realm.Sync.User.adminUser`
Specifying the server address the same way as in `Realm.Sync.User.login` allows the admin token user to use the permission realm APIs.
### Bug fixes
* Fix regression where setting a Results or List object to a `list` property would throw.
2017-06-27 18:38:39 +00:00
1.8.3 Release notes (2017-6-27)
=============================================================
### Breaking changes
* None
### Enhancements
* None
### Bug fixes
* Fix admin users not appearing in `Realm.Sync.User.all`, which broke getting an access token for them.
2017-06-26 11:49:50 +00:00
1.8.2 Release notes (2017-6-26)
=============================================================
### Breaking changes
* None
### Enhancements
* Added `indexOf()` method on `Realm.Results` and `Realm.List` that returns the index of the object in the collection.
### Bug fixes
* Fix opening synced realms with a logged-in admin user.
2017-06-20 14:27:05 +00:00
1.8.1 Release notes (2017-6-20)
=============================================================
### Breaking changes
* None
### Enhancements
* Accessing `Realm.Sync` when sync is not enabled will no longer throw, but return `undefined`.
* Better error messages when creating objects.
* Added bundled TypeScript declarations of the Realm API.
2017-06-20 14:27:05 +00:00
* Added `objectSchema()` method on `Realm.Object` that returns the schema for the object.
### Bug fixes
* Fix `Realm.Sync.User.prototype.isAdmin` returning `false` for logged-in admin users.
2017-06-15 14:27:43 +00:00
1.8.0 Release notes (2017-6-15)
=============================================================
### Breaking changes
* None
### Enhancements
2017-06-15 14:27:43 +00:00
* Updated core and sync dependencies
* Unified packaging
### Bug fixes
* Fix crash when used with the React Native C++ bridge
2017-06-15 14:27:43 +00:00
* Fix `Realm.open` and `Realm.asyncOpen` missing when in the React Native debugger
2017-05-18 11:13:28 +00:00
1.3.1 Release notes (2017-5-18)
2017-05-11 12:34:52 +00:00
=============================================================
### Breaking changes
* None
### Enhancements
2017-05-18 11:03:21 +00:00
* Add Realm open async API support.
2017-05-11 12:34:52 +00:00
### Bug fixes
* None
1.3.0 Release notes (2017-5-11)
=============================================================
### Breaking changes
* Files written by Realm this version cannot be read by earlier versions of Realm.
Old files can still be opened and files open in read-only mode will not be modified.
2017-05-05 11:53:20 +00:00
* The `setVerifyServersSslCertificate` method has been deleted
* The SyncConfig now gets two more optional parameters, `validate_ssl` and `ssl_trust_certificate_path`.
### Enhancements
2017-05-18 11:03:21 +00:00
* None
### Bug fixes
* None
2017-03-28 12:49:58 +00:00
1.2.0 Release notes (2017-3-28)
=============================================================
### Breaking changes
* This version is not compatible with versions of the Realm Object Server lower than 1.3.0.
### Enhancements
* None.
### Bug fixes
* Fixed bug where opening synced realms with an encryption key would fail.
2017-03-09 13:35:30 +00:00
1.1.1 Release notes (2017-3-9)
=============================================================
### Breaking changes
* None
### Enhancements
2017-03-09 10:53:00 +00:00
* Add support for Node.js on Windows (#863).
2017-02-15 12:56:21 +00:00
### Bug fixes
* Fixed an error when installing Realm React Native module on Windows (#799).
### Credits
* Thanks to David Howell (@dbhowell) for adding a fix to Windows install (#849).
2017-02-07 12:01:16 +00:00
1.0.2 Release notes (2017-2-7)
=============================================================
### Breaking changes
* None
### Enhancements
* None
### Bug fixes
* Proactively refresh sync user tokens to avoid a reconnect delay (#840)
2017-02-02 14:50:17 +00:00
1.0.1 Release notes (2017-2-2)
=============================================================
### Breaking changes
* None
### Enhancements
* None
### Bug fixes
* Fix crash when the sync user token expires (#839)
2017-02-02 12:51:53 +00:00
1.0.0 Release notes (2017-2-2)
=============================================================
### Breaking changes
* None
### Enhancements
* Add the Management Realm accessor on the User class, and its schema (#779)
### Bug fixes
* None
2017-01-11 11:53:01 +00:00
0.15.4 Release notes (2017-1-11)
=============================================================
### Breaking changes
* None
### Enhancements
* None
### Bug fixes
* Always download Node binaries except on Windows, for unit testing (#789)
2017-01-10 15:21:11 +00:00
0.15.3 Release notes (2017-1-10)
=============================================================
### Breaking changes
* None
### Enhancements
* More specific error message when setting a property to a wrong type (#730)
### Bug fixes
* Fix chrome debugging on React Native 0.39 and up (#766)
2016-12-29 09:35:07 +00:00
0.15.2 Release notes (2016-12-29)
=============================================================
### Breaking changes
* None
### Enhancements
* More explicit handling of missing constructor (#742)
### Bugfixes
* Realm open on another thread (#473)
* symbol() variable not found (#761)
2016-11-23 00:42:07 +00:00
0.15.1 Release notes (2016-11-22)
=============================================================
### Breaking changes
* None
### Enhancements
* None
### Bugfixes
* Fix compile error for collection notification in chrome debug mode
2016-11-15 13:42:25 +00:00
0.15.0 Release notes (2016-11-15)
2016-08-15 18:13:28 +00:00
=============================================================
### Breaking changes
* None
### Enhancements
2016-11-15 19:10:07 +00:00
* Node.js support
* Support for fine grained notifications on `List` and `Results` objects
2016-11-15 13:42:25 +00:00
* Updated test and examples for react-natve v0.37.0
2016-08-15 18:13:28 +00:00
### Bugfixes
* None
2016-08-08 17:32:17 +00:00
0.14.3 Release notes (2016-8-8)
=============================================================
### Breaking changes
* None
### Enhancements
* None
### Bugfixes
2017-02-15 12:56:21 +00:00
* Support for react-native v0.31.0
2016-08-08 17:32:17 +00:00
0.14.2 Release notes (2016-8-3)
2016-08-04 17:11:53 +00:00
=============================================================
### Breaking changes
* Deprecate `Realm.Types`. Please specify the type name as lowercase string instead.
### Enhancements
* None
### Bugfixes
* None
2016-07-11 20:18:40 +00:00
0.14.2 Release notes (2016-7-11)
=============================================================
### Breaking changes
* Please use `rnpm 1.9.0` or later to link your project. Older versions are no longer supported.
2016-07-11 20:18:40 +00:00
* ReactNative versions older than v0.14.0 are no longer supported
### Enhancements
2016-07-11 20:18:40 +00:00
* Support for ReactNative versions v0.28.0+
* Added support for debugging in Visual Studio Code.
### Bugfixes
2016-08-04 00:56:48 +00:00
* None
2016-06-28 19:15:36 +00:00
0.14.1 Release notes (2016-6-28)
=============================================================
### Breaking changes
* None
### Enhancements
* None
### Bugfixes
* Fix linker error when building for minimum target version of iOS 7.
* Fix for failure in `strip` command when building an archive.
2016-06-22 15:42:27 +00:00
0.14.0 Release notes (2016-6-22)
2016-05-19 21:10:20 +00:00
=============================================================
### Breaking changes
* None
### Enhancements
2016-06-17 00:52:57 +00:00
* Added `isValid()` method to `List` and `Results` to check for deleted or invalidated objects
* Added `objectForPrimaryKey(type, key)` method to `Realm`
2016-05-19 21:10:20 +00:00
### Bugfixes
* Fix for crash when setting object properties to objects from other Realms
2016-06-17 00:52:57 +00:00
* Fix for exception sometimes thrown when reloading in Chrome debug mode
2016-05-26 20:31:39 +00:00
0.13.2 Release notes (2016-5-26)
=============================================================
### Breaking changes
* None
### Enhancements
* None
### Bugfixes
* Fix for crash when updating Realms with optional date properties to the new file format
2016-05-24 18:53:10 +00:00
0.13.1 Release notes (2016-5-24)
2016-05-24 15:23:21 +00:00
=============================================================
### Breaking changes
* None
### Enhancements
* None
2016-05-19 21:10:20 +00:00
### Bugfixes
2016-05-24 15:24:18 +00:00
* Fix for crash when inserting dates from before the epoch
* Fix for crash when using collection snapshot after realm.deleteAll()
2016-05-19 21:10:20 +00:00
2016-05-19 20:33:50 +00:00
0.13.0 Release notes (2016-5-19)
2016-05-16 20:56:59 +00:00
=============================================================
### 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+
2016-05-19 19:40:16 +00:00
* Fix for queries that use a keypath starting with "not".
2016-05-16 20:56:59 +00:00
2016-05-04 20:48:19 +00:00
0.12.0 Release notes (2016-5-4)
2016-04-12 15:13:29 +00:00
=============================================================
### Breaking changes
* None
### Enhancements
* Support for queries comparing optional properties to `null`
2016-04-27 00:14:15 +00:00
* `object.isValid()` has been added to enable checking if an object has been deleted
2016-05-03 01:38:43 +00:00
- **Note:** Custom object classes can extend `Realm.Object` to inherit this method
* 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`, and `schemaVersion` properties to `Realm` instances
* Optional and list properties are no longer required when creating objects
2016-04-12 15:13:29 +00:00
### Bugfixes
2016-04-19 23:09:10 +00:00
* When accessing an empty Results `undefined` is returned rather than throwing an exception
2016-04-28 19:52:15 +00:00
* Accessing a deleted object throws a JS exception rather than crashing
* Accessing an invalidated Results snapshot throws a JS exception rather than crashing
2016-05-02 19:46:34 +00:00
* Fix for error message when specifying properties with invalid object types
2016-05-03 01:38:43 +00:00
* Fix memory leak when reloading an app in debug mode
2016-05-03 20:06:41 +00:00
* Setting non-persisted properties now works as expected
2016-04-12 15:13:29 +00:00
2016-03-29 22:30:15 +00:00
0.11.1 Release notes (2016-3-29)
=============================================================
### Bugfixes
* Fix for using Android Studio to build app using Realm
* Fix for sharing Realm between JS and Objective-C/Swift
0.11.0 Release notes (2016-3-24)
2016-03-11 00:15:54 +00:00
=============================================================
### Breaking changes
* Realm for React Native is now packaged as a static library for iOS
- Remove the reference to `RealmJS.xcodeproj` from your Xcode project
(under the `Libraries` group)
- Make sure `rnpm` is installed and up-to-date: `npm install -g rnpm`
- Run `rnpm link realm` from your app's root directory
2016-03-11 00:24:12 +00:00
2016-03-11 00:15:54 +00:00
### Enhancements
* Support for encrypted Realms
* List and Results now inherit from Realm.Collection
* List and Results is now iterable (e.g. supports `for...of` loops)
2016-03-11 00:24:12 +00:00
* Add common Array methods to List and Results
* Accept constructor in create() and objects() methods
* Support relative paths when opening Realms
* Support case insensitive queries by adding `[c]` after operators
* Support for indexed `bool`, `string`, and `int` properties
* Added `Realm.schemaVersion` method, which supports unopened Realms
2016-03-11 00:24:12 +00:00
2016-03-11 00:15:54 +00:00
### Bugfixes
2016-03-15 20:56:51 +00:00
* Fix for crash on Android when initializing the Realm module
2016-03-16 19:54:39 +00:00
* Fix for using Chrome debug mode from a device
* Fix for List splice method not accepting a single argument
2016-03-11 00:24:12 +00:00
* Don't download or unpack core libraries unnecessarily
2016-03-11 00:15:54 +00:00
2016-03-11 00:24:12 +00:00
0.10.0 Release notes (2016-2-22)
=============================================================
### Enhancements
2016-03-16 19:54:39 +00:00
* Initial Release