Commit Graph

412 Commits

Author SHA1 Message Date
Nikola Irinchev 4e6f95d3d0
Throw a meaningful error when refreshing a token for an invalid Realm path (#2084)
* Throw a meaningful error when refreshing a token for an invalid Realm path

* Changelog

* Fix a typo

* Fix a test
2018-10-24 00:33:34 +02:00
Nikola Irinchev 7cc4e0feee
Use regex instead of simple substring (#2075) 2018-10-16 15:45:59 +02:00
Thomas Goyne bfb06ac0df Restore support for opening query-based sync Realms with a dynamic schema (#2065)
* Restore support for opening query-based sync Realms with a dynamic schema

* Adjust how the schema is extended for query-based Realms

* Register constructors for permissions types even no schema is supplied

* Remove some cruft from tests

* Fix a use-after-free in dynamic schema mode

* Fix a test
2018-10-16 09:49:16 +02:00
Nikola Irinchev 10f72c5444
Don't schedule multiple token refreshes for the same user/realm (#2071)
* Don't schedule multiple token refreshes for the same user/realm

* Avoid setting a const property
2018-10-15 14:20:19 +02:00
Kenneth Geisshirt ffb48ec2ed
Enhancements of subscription api (#2060)
* Adding Realm.subscriptions() and Realm.unsubscribe()
* Update changelog
* RN support
2018-10-10 12:00:04 +02:00
Nikola Irinchev 90c0661715
Auth fixes (#2050)
* Auth fixes
- Typescript definitions for User.login
- Exception thrown from registerWithProvider when a userInfo is not specified

* Ensure we don't use adminUser internally
2018-10-08 15:01:12 +02:00
Nikola Irinchev e9f0113218
Expose customQueryBasedSyncIdentifier in the sync config (#2055)
* Expose customQueryBasedSyncIdentifier in the sync config

* Close the correct Realm
2018-10-08 12:02:44 +02:00
Christian Melchior 434e8ca2bc
Align permission API's with Java/Swift (#2036) 2018-10-04 10:09:31 +02:00
Kenneth Geisshirt be98a77fcf
Logging in using an admin token should be synchronous (#2040)
* Logging in using an admin token should be synchronous
2018-09-24 12:43:44 +02:00
Kenneth Geisshirt 2ea71934d0
Logging in using admin token should also return a promise (#2038)
* Logging in using admin token should also return a promise
* use the node_require trick
2018-09-21 14:24:37 +02:00
Nabil Hachicha 111e9c223f Adding permission schema for query based sync (#2027)
* Adding permission schema when opening the Realm
* Adding permission schema implicitly for query based Realms
* Remove old code
* Remove outdated test
2018-09-19 16:16:44 +02:00
Christian Melchior 79759dce29
Fix typescript definitions for privileges() methods (#2030) 2018-09-19 13:16:26 +02:00
Apperside af46a2d86f Fixed the type definition for Realm.Permissions.User (#2013)
The identity field was wrong, it should have been id instead
2018-09-17 09:28:01 +02:00
Kenneth Geisshirt 81e7cc87ed
Preparing v2.16.0-rc.1 (#2022)
* Preparing v2.16.0-rc.1
* Update CHANGELOG.md
2018-09-14 11:38:40 +02:00
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 c6753efe5a
Added to the support library for React Native debugging (#479) (#2005) 2018-09-04 10:58:03 +02:00
Gabriele Petronella 760ddd578f Add param type to addConnectionNotification/removeConnectionNotification (#2003) 2018-09-03 08:35:21 +02:00
Nikola Irinchev 81cb7c4636
Fix type definitions for authenticate (#2000)
* Fix type definitions for authenticate

* Update CHANGELOG.md
2018-08-30 16:20:29 +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
Christian Melchior 95472a5cd3
Fix wrong schema definition (#1946) 2018-08-06 15:35:26 +02:00
Vincenzo Castiglia 5cd969a03e fixed 'return' outside of function (30:4) (#1923)
* fixed 'return' outside of function (30:4)
2018-07-12 12:34:37 +02:00
Kenneth Geisshirt 805f3d0804
initial work on getting subscriptions to work in RN debugger (#1902)
* Getting subscriptions to work in RN debugger
2018-07-09 19:54:21 +02:00
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