realm-js/lib
Mark Rowe 0249722a02 Remove configuration handling from `Realm._waitForDownload`
There's no reason for `_waitForDownload` to be responsible for
constructing a new Realm instance when we can instead use the
constructor for that. This eliminates the potential for different
handling of the Realm configuration between `_waitForDownload` and `new
Realm`, which was responsible for various issues (#1391, #1392, #1393).
In turn, this requires that `_waitForDownload` become an instance method.

In addition, we update `Realm.openAsync` and `getSpecialPurposeRealm` to
delegate to `Realm.open` rather than reimplementing equivalent logic
themselves.

Finally, the private mechanism for registering a download progress
handler as part of the sync configuration (`_onDownloadProgress`) is
removed in favor of the public API (`progress()` on the promise returned
by `Realm.open`).
2017-10-10 21:16:23 -07:00
..
browser Add support for bulk updates (#808) 2017-10-10 16:25:47 +05:30
.eslintrc.json Bumped version of ESLint, added eslinting of specs, make all linting pass 2016-11-14 10:48:50 -08:00
.npmignore Ignore more things when publishing with NPM 2016-01-22 16:43:53 -08:00
collection-methods.js Frozen results during iteration. (#1368) 2017-10-02 23:15:19 +02:00
errors.js Fix IncompatibleSyncedRealm support 2017-09-29 21:43:04 +03:00
extensions.js Remove configuration handling from `Realm._waitForDownload` 2017-10-10 21:16:23 -07:00
index.d.ts Add support for bulk updates (#808) 2017-10-10 16:25:47 +05:30
index.js Workaround for RN >= 0.49 metro-bundler check for single string literal argument to require() (#1342) 2017-09-26 10:00:31 +05:30
management-schema.js Alignment of permission schemas with ROS 2 (#1344) 2017-09-26 11:23:36 +02:00
permission-api.js Remove configuration handling from `Realm._waitForDownload` 2017-10-10 21:16:23 -07:00
submit-analytics.js Fix analytics buffer creation (#913) 2017-03-15 11:23:14 +01:00
user-methods.js Merge branch 'master' of github.com:realm/realm-js into kneth/master-to-2.0.x 2017-09-30 09:55:14 +02:00