Commit Graph

384 Commits

Author SHA1 Message Date
Kenneth Geisshirt f907ebc367 Revert "Exposed the computeSize method to the debugger"
This reverts commit 3ee3d3e39c.
2018-06-28 10:36:55 +02:00
Kenneth Geisshirt 8435068cbf Revert "Added a TypeScript definition for computeSize"
This reverts commit 367133c53e.
2018-06-28 10:35:38 +02:00
Kenneth Geisshirt 1d6e213682
Expose custom HTTP headers in sync configuration (#1898)
* Expose custom HTTP headers in sync configuration
2018-06-28 10:34:02 +02:00
Kenneth Geisshirt 9a37726012
Adding getters to debugging support of Realm.Sync.User (#1892) 2018-06-27 09:15:06 +02:00
Kræn Hansen 367133c53e Added a TypeScript definition for computeSize 2018-06-20 16:20:41 +02:00
Kræn Hansen 3ee3d3e39c Exposed the computeSize method to the debugger 2018-06-20 16:16:13 +02:00
Christian Melchior fdcedf86f7 Docs 2018-06-19 09:08:14 +02:00
Christian Melchior fa96eeec9e Fix tests 2018-06-19 00:19:49 +02:00
Christian Melchior d75150aa93 Add support for creating template objects 2018-06-18 22:55:01 +02:00
Thomas Goyne 495355f3fe Expose both newModifications and oldModifications on change events 2018-06-06 16:13:47 -07:00
Kenneth Geisshirt 106dc271ac
Merge branch 'master' into kneth/fix-ts-objects 2018-05-30 13:36:54 +02:00
Christian Melchior 4cb9c77f46
Query-based sync as the default sync mode (#1830) 2018-05-30 12:54:51 +02:00
Kenneth Geisshirt 88d88c57e3
Merge branch 'master' into kneth/fix-ts-objects 2018-05-30 10:47:12 +02:00
Nabil Hachicha 9b9d7e6471
Nh/is empty (#1820)
* adding isEmpty method to Result and List
2018-05-29 12:24:54 +01:00
Kenneth Geisshirt 58671dd59e
React to schema changes (#1831)
* Adding schema change listener (#1825).
2018-05-29 12:22:34 +02:00
Kenneth Geisshirt d84e2f1645 Fixing TypeScript definition of `Realm.objects()` and `Realm.objectForPrimaryKety()`. 2018-05-25 15:55:46 +02:00
astigsen f85fe2f91d Fix Realm.open() with no config 2018-05-25 12:00:42 +02:00
Kenneth Geisshirt fa2885c8bf
Merge branch 'master' into yg/new-ssl-config-api 2018-05-16 10:59:43 +02:00
astigsen fbf4db56c5 Fix Chrome debug API 2018-05-15 14:37:04 +02:00
astigsen 5186eeb84e Add Object.linkingObjectCount() 2018-05-15 14:31:54 +02:00
Yavor Georgiev ac3d749ece
Group SSL configuration options in a new config object 2018-05-14 15:16:52 +03:00
Thomas Goyne 67d61ff745 Add support for the 'delete' event 2018-05-11 14:38:35 -07:00
Kenneth Geisshirt b01dcb44cc
Merge pull request #1713 from realm/kneth/fix-ts-for-open_ssl_verify_callback
Fixing TS definition for open_ssl_verify_callback.
2018-05-07 14:29:25 +02:00
Kenneth Geisshirt dad5b3f521 Merge branch 'master' of github.com:realm/realm-js into kneth/fix-ts-for-open_ssl_verify_callback 2018-05-07 11:17:21 +02:00
Thomas Goyne 29ad083f25 Track Realms seen in the notifier by id rather than path
If a Realm is deleted and then a new one is created at the same path it needs
to be treated as a new Realm.
2018-05-04 14:12:34 -07:00
Kenneth Geisshirt 2eccaac431
Kneth/rn logout (#1766)
* `logout()` is implemented in JS and RN debugging must know of `_logout()` instead.
2018-04-26 11:38:24 +02:00
Nabil Hachicha b321808f4b
Add password reset wrappers (#1699). (#1757)
* Add password reset wrappers (#1699).
2018-04-25 10:23:47 +01:00
Thomas Goyne 72d10eb572 Don't hang forever when the React tests fail to start (#1764)
* Exclude unavailable simulator runtimes
* Fix some warnings
* Don't hang forever when the React tests fail to start
`simctl launch --console` goes into an infinite loop if the app fails to launch
successfully, so don't use --console and manually wait for it to exit.
2018-04-25 08:11:54 +02:00
Kenneth Geisshirt 5cfc3c12ee Use a single object instead of multiple arguments. 2018-04-18 14:07:19 +02:00
Kenneth Geisshirt 20c16196c9 Merge branch 'master' of github.com:realm/realm-js into kneth/fix-ts-for-open_ssl_verify_callback 2018-04-18 14:02:03 +02:00
Artur Miranda 5c86e9e92d Add Subscription import to browser/index.js and register type converter (#1744) 2018-04-18 10:42:02 +02:00
Brian Nicholson 424ff81965 Stringify fetch body in logout (#1731)
* Stringify fetch body in logout
* Update changelog
2018-04-17 15:01:02 +02:00
Thomas Goyne c349d5f185 Retry on network errors when refreshing admin tokens (#1747)
* Retry on network errors when refreshing admin tokens

This is the same logic used for non-admin token user fetches, which seems to
already work fine in practice.
2018-04-12 18:20:25 +02:00
Valerii Hiora c3a83f1866 Added `writeCopyTo` functionality (#1715)
* Added `writeCopyTo` functionality
* Fixes #1678
* Added optional `encryptionKey` to `writeCopyTo`
2018-04-03 11:50:03 +02:00
Kenneth Geisshirt 6b3b34ae54
Merge pull request #1723 from Gerharddc/patch-1
Stop Permissions being redefined and breaking Jest
2018-04-03 11:42:26 +02:00
Thomas Goyne f663e4846c Avoid leaking realms when an error occurs within an event handler 2018-03-22 16:43:39 -07:00
Gerhard de Clercq 7152afddd9
Stop Permissions being redefined and breaking Jest
Fixes a related problem in exactly the same way as https://github.com/realm/realm-js/pull/1695 .
2018-03-21 19:44:57 +02:00
Kenneth Geisshirt c370ef4d86
Testing against ROS 3.0.0. (#1712)
* Testing against ROS 3.0.0.
* Adding Realm.Sync.Subscription.removeAllListeners. Refactor partial sync tests.
* Refactoring partial sync tests.
2018-03-21 18:18:37 +01:00
Thomas Goyne 635d49e09a Throttle HTTP requests made to the auth server
Making thousands of HTTP requests simultaneously inevitably results in some
failing or the server being overwhelmed, so limit how many can be made at once
(currently to the arbitrary cap of 5) and enqueue any further requests.
2018-03-15 17:02:51 -07:00
Kenneth Geisshirt 90cacdd6c7 Fixing TS definition for open_ssl_verify_callback. 2018-03-14 15:09:45 +01:00
Kenneth Geisshirt 10480c1afe
Adding optional user as argument to Realm.automaticSyncConfiguration. (#1709) 2018-03-14 08:26:41 +01:00
Kenneth Geisshirt 9435490ea3
Upgrading to Realm Sync 3.0.0-rc.2 (#1706)
* Adding role to __User.
* Update to Realm Sync 3.0.0
* Renamed defaultSyncConfiguration to automaticSyncConfiguration
2018-03-13 14:27:31 +01:00
Kenneth Geisshirt edfdd933b0
Updating API docs and TS definitions (closes #1770). (#1707) 2018-03-13 12:45:23 +01:00
Kenneth Geisshirt 2f20006e47
Kneth/allow partial in urls (#1704)
* Adding _disablePartialSyncUrlChecks.
2018-03-13 08:27:47 +01:00
Kenneth Geisshirt 5cc7bb6aa6
Merge branch 'master' into 2.3.x 2018-03-10 22:36:31 +01:00
Kenneth Geisshirt 9d8a677ecf
Revoke refresh token upon logout. (#1696)
* Revoke refresh token upon logout.
* Always log out
2018-03-09 15:51:45 +01:00
Kenneth Geisshirt abb04e399b
Default sync realm (#1693)
* Configuration for default Realm.
* Use url-parse to make RN happy.
2018-03-09 10:40:45 +01:00
Alex Bass 032757a6e5 Stop worker being redefined and breaking Jest #1635 (#1695) 2018-03-08 13:26:00 -08:00
Kenneth Geisshirt dfc6aea6a6
Deprecated setFeatureToken(). (#1694) 2018-03-08 17:27:13 +01:00
Kenneth Geisshirt 1066722a09 Revert "Deprecated setFeatureToken()."
This reverts commit d846794cd5.
2018-03-08 15:47:50 +01:00