Commit Graph

365 Commits

Author SHA1 Message Date
Nikola Irinchev 80cde7a5b0 Redesign user auth (#2002)
* Refactor user auth
* Allow to override the jwt provider name
* Add custom provider and changelog
* Remove the callback argument from docs
2018-09-13 08:45:06 +02:00
Emanuele Zattin 9314ee0a7d Add support for sync pause/resume (#2019)
* Add support for sync pause/resume
* Improve the promise chain in the tests
* Update CHANGELOG.md
* Update sync.js
2018-09-12 16:04:22 +02:00
Kenneth Geisshirt f45ba1c9e7
LIMIT support in queries (#2008)
* Updating to Realm Sync 3.9.9 (and Core 5.10.0 + object store).
* Adding LIMIT to tests
* Use bitnami node image
2018-09-12 15:01:44 +02:00
Nikola Irinchev 477b900530
Expose user serialize and deserialize methods (#1996)
* Expose serialize and deserialize methods

* Changelog and docs

* Forgot to save changelog 🤦‍♂️

* Add input validation
2018-08-28 15:01:32 +02:00
Kenneth Geisshirt bdd59419cc
fullSynchronization might not be defined (#1990)
* fullSynchronization might not be defined
* don't use fullSynchronization in a test
2018-08-24 16:21:32 +02:00
Kenneth Geisshirt 1b1b51ded2
BUG FIX: A schema is required when Realm is opened in a query-based sync situation (#1985) 2018-08-24 08:50:27 +02:00
Christian Melchior a58a984f3f
Automatically add schemas for object level permissions. (#1970) 2018-08-17 10:10:20 +02:00
Christian Melchior adf6bb58c9
Change order of Connection notification parameters (#1961) 2018-08-15 15:52:37 +02:00
Christian Melchior 5a8341a5ac
Support for Connection notifications. (#1950) 2018-08-10 10:39:03 +02:00
Thomas Goyne 6b38b1cbb3 Set the link to null if the linked object doesn't exist 2018-07-03 10:45:20 -07:00
Thomas Goyne 98d25e416a Add object._setLink() 2018-07-03 09:57:01 -07:00
Thomas Goyne cd4046eb7a Update a failing test 2018-07-03 08:45:41 -07:00
Kenneth Geisshirt 12b8e9030a Revert "Adding a test of the computeSize method"
This reverts commit f16feec112.
2018-06-28 10:37:25 +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
Kræn Hansen f16feec112 Adding a test of the computeSize method 2018-06-20 16:00:28 +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
Kenneth Geisshirt 682332c7db
Upgrading to Realm Core v5.6.1 (#1859)
* Upgrading to Realm Core v5.6.1
* Upgrading to Realm Sync v3.5.3.
2018-06-13 15:44:16 +02:00
Kenneth Geisshirt 9527b84ba9
Better representation of array of primitive types for (#1847). (#1852)
* Better representation of array of primitive types for  (#1847).
2018-06-12 15:36:02 +02:00
Thomas Goyne 495355f3fe Expose both newModifications and oldModifications on change events 2018-06-06 16:13:47 -07:00
Christian Melchior 4cb9c77f46
Query-based sync as the default sync mode (#1830) 2018-05-30 12:54:51 +02:00
Kenneth Geisshirt b0535cb2c2
Using segfault-handler to help debugging C++ crashes. (#1834)
* Using segfault-handler to help debugging C++ crashes.
* Only use segfault-handler in node environments.
2018-05-29 18:05:36 +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
astigsen f85fe2f91d Fix Realm.open() with no config 2018-05-25 12:00:42 +02:00
Kenneth Geisshirt 223b1fa07e
Merge pull request #1794 from realm/kneth/fix-jsdoc
Using longer names.
2018-05-16 13:30:45 +02:00
Kenneth Geisshirt 1bdff30691 Run only permission tests on node. Disable writeCopyTo test. 2018-05-16 13:11:46 +02:00
astigsen 5186eeb84e Add Object.linkingObjectCount() 2018-05-15 14:31:54 +02:00
Kenneth Geisshirt 010aa031ad Merge branch 'master' of github.com:realm/realm-js into jas/backlink-update 2018-05-07 10:10:33 +02: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
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
James Stone 591aa9fee7 Initial work for unnamed backlink queries and @links.@count tests 2018-04-10 16:37:41 -07: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
James Stone 497de5f3ea Fix named linking object queries across classes (#1734)
* Fix named linking object queries across classes
* Add change log entry, remove debug code
2018-04-03 11:48:33 +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
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 2f20006e47
Kneth/allow partial in urls (#1704)
* Adding _disablePartialSyncUrlChecks.
2018-03-13 08:27:47 +01:00
Kenneth Geisshirt 2e4e0df01c Merge branch '2.3.x' of github.com:realm/realm-js into jas/backlink-queries 2018-03-09 11:18:06 +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
Thomas Goyne 9da59d8f04 Reformat permissions-tests.js to a consistent 4-space indent 2018-03-05 09:46:24 -08:00
Thomas Goyne d1a4e899d8 Fix the Permissions typescript definitions 2018-03-02 15:36:45 -08:00
Thomas Goyne 384f43c637 Make testOfferPermissions more reliable
The order of the permissions is undefined and will vary based on what order
things happen to resolve on the server.
2018-03-02 13:44:56 -08:00
Thomas Goyne 5ff5df97be Fix running nested-list-helper.js with node 8 2018-03-02 12:06:00 -08:00
Thomas Goyne 302db024bf Eliminate some gratuitous promise nesting in tests 2018-03-02 12:05:09 -08:00
Thomas Goyne 61126aef53 Use node.execPath in runOutOfProcess() 2018-03-02 10:47:04 -08:00
Thomas Goyne 0047ffba13 Add object-level permissions tests 2018-03-01 16:16:58 -08:00
Kenneth Geisshirt 8e63737008 Merge branch '2.3.x' of github.com:realm/realm-js into jas/backlink-queries 2018-02-27 11:32:33 +01:00
Kenneth Geisshirt 615d6ff35e Merge branch '2.3.x' of github.com:realm/realm-js into 2.3.x 2018-02-27 10:58:58 +01:00
Kenneth Geisshirt 2e900e85e0 Merge branch 'master' of github.com:realm/realm-js into 2.3.x 2018-02-20 18:03:54 +01:00