Nikola Irinchev
d88143711c
Unit test for partial Realm schema updates ( #2064 )
...
* Add a unit test to verify that the schema of partial Realms gets updated after open
* Add another test that demonstrates the problem
* ensure realm is uploaded
* Add a test to ensure the schema change handler is invoked
2018-10-17 08:51:26 +02:00
Thomas Goyne
ba734467d0
Add a test for using a dynamic schema with query-based sync ( #2077 )
...
* Split the partial sync test into several test cases
* Add a test for using a dynamic schema with query-based sync
* Replace some long sleeps in a test with polling with a timeout
* Update objectstore to latest master
* Update changelog
2018-10-17 08:46:39 +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
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
Nikola Irinchev
e5c9016424
Handle sync config in Realm.deleteFile ( #2045 )
...
* Handle sync config in Realm.deleteFile
* Add changelog and address review comment
* Try to fix tests
* Fix rebase conflicts
2018-10-04 11:04:15 +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
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
Igor Mandrigin
67dccf1e47
Fix memory corruption in writeCopyTo. ( #2020 )
2018-09-13 12:34:11 +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
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