Commit Graph

2516 Commits

Author SHA1 Message Date
blagoev 97f25cc1ab Add progress notifications
Support download progress notifications for Realm open and openAsync methods
2017-06-28 13:40:35 +03:00
Yavor Georgiev 1adabdd73e
[1.8.3] Bump version 2017-06-27 20:38:39 +02:00
Yavor Georgiev 7ab3aff82f Expose admin users to JS (#1100)
The JS binding used to conflate `SyncUser::is_admin()` with the user being created by calling `Realm.Sync.User.adminToken()`, but now that we expose a user’s role on the server under `is_admin()` this supposition is no longer correct.

#1097 attempted to fix one such case, but fixing it only uncovered another: in `UserClass<T>::all_users()`.  I’ve gone through all the callsites of `SyncUser::is_admin()` to make sure they don’t assume an admin token user.
2017-06-27 20:32:34 +02:00
Yavor Georgiev e6818d693d
[1.8.2] Bump version 2017-06-26 13:49:50 +02:00
astigsen db4e184524 Added method to find index of object in collections (#1094)
* Added method to find index of object in collections

* rework as the indexOf method
2017-06-26 13:43:49 +02:00
Yavor Georgiev beda604425 Fix refreshing the access token of a logged-in admin user (#1097)
Fixes #1091
2017-06-26 12:03:48 +02:00
Yavor Georgiev 39e312f301
add API docs for Realm.Object.objectSchema() 2017-06-26 11:47:23 +02:00
Yavor Georgiev 2f83d8792b
fix caching when downloading the ROS-for-testing bundle 2017-06-26 11:42:55 +02:00
blagoev a6edc69131 Merge pull request #992 from ovr/patch-1
[React-Native] Android - buildToolsVersion to 25.0.2
2017-06-22 12:30:17 +03:00
blagoev d52a70c5a3 Merge pull request #1087 from realm/al/ts-fix
Make ssl SyncConfiguration parameters optional
2017-06-21 22:51:18 +03:00
Ari Lazier 726d02e78f Make ssl SyncConfiguration parameters optional 2017-06-20 10:13:33 -07:00
Yavor Georgiev feba70333b
[1.8.1] Bump version 2017-06-20 16:27:05 +02:00
Yavor Georgiev 7086ed745f Do not throw when the Sync constructor isn’t there (#1086)
* Do not throw when the Sync constructor isn’t there

with unified packaging it’s there all the time now

Closes #1084
Fixes #996

* Fix running the sync tests when Sync is disabled
2017-06-20 15:40:54 +02:00
Mark Rowe 30e58022cf Include property names in type error exceptions thrown by Realm.create (#1069)
* Add and adopt `Value::is_binary` / `Value::to_binary` / `Value::from_binary`.

These methods allow conversions between `BinaryData` and the equivalent
JavaScript types without using `NativeAccessor`. Instead,
`NativeAccessor` now itself delegates to these methods.

* Have `NativeAccessor::value_for_property` and `RealmObjectClass::set_property`
verify that values are valid for the property in question.

If not, we throw an exception that includes the name and type of the
property in question.

`NativeAccessor` is changed to always hold a reference to a `Realm` and
an `ObjectSchema` in order to make this validation possible.

* Fix the Windows build.

* Remove an unused, incorrect forward declaration of a template class
  named `Realm` that caused ambiguity with object store's `Realm` class.
* Disambiguate between `realm::js::PropertyType` and
  `realm::PropertyType`.

* Update CHANGELOG.md
2017-06-20 14:40:01 +02:00
Maximilian Alexander 775bd8e2ff adding ts and package.json typings (#1076)
* adding ts and package.json typings

* remove DefinitelyTyped needed comments, we are hosting this ourselves

* adding licensing comments

* Added initial contribution support

Thanks @akim95

* changing year

* adding parameters

* Expand on collection typings

* update the windows pre-gyp script (#1072)

* Extract admin status from the refresh token (#1078)

* Extract admin status from the refresh token

Fixes #1063

* wire up rpc

* Make sure all callbacks enqueue on the Node.js event loop (#1079)

Fixes #1077

* Use an uncached realm instance for _waitForDownload (#1083)

Fixes #1061

* Add objectSchema method to Realm Object (#1055)

* Add objectSchema property to Realm Object

* fix

* fixes

* move typings under lib/

* changelog
2017-06-20 13:09:01 +02:00
Adam Fish 37dba6bb36 Add objectSchema method to Realm Object (#1055)
* Add objectSchema property to Realm Object

* fix
2017-06-20 11:42:43 +02:00
Yavor Georgiev 28fe678a1b Use an uncached realm instance for _waitForDownload (#1083)
Fixes #1061
2017-06-19 13:58:19 +02:00
Yavor Georgiev acd962d602 Make sure all callbacks enqueue on the Node.js event loop (#1079)
Fixes #1077
2017-06-19 13:19:43 +02:00
Yavor Georgiev 3e80683ad8 Extract admin status from the refresh token (#1078)
* Extract admin status from the refresh token

Fixes #1063

* wire up rpc
2017-06-17 16:59:15 +02:00
Yavor Georgiev 208dc858b5 update the windows pre-gyp script (#1072) 2017-06-16 11:01:22 +02:00
Yavor Georgiev 0f5d6a1df4
[1.8.0] Bump version 2017-06-15 16:27:43 +02:00
Niklas Nisbeth 236f8df1aa update pre-gyp info in package.json (#1030) 2017-06-15 15:52:32 +02:00
Adam Lebsack fdc9414013 Use sync 1.10.0 (#1068) 2017-06-15 15:50:00 +02:00
Yavor Georgiev 237e1ba158 Support the new React Native C++ bridge (#1065)
* Support the new React Native C++ bridge

Fixes #1049

* address code review comments

* handle the case when the websocket executor does not exist
2017-06-14 14:44:28 +02:00
Kristian Dupont af72770094 Replace calls to sync.cleanup with sync.removealllisteners (#1066) 2017-06-14 12:54:47 +02:00
blagoev 523c1ec772 add a note about stale node_modules directory 2017-06-13 12:53:40 +03:00
blagoev 416632c9ad Merge pull request #1062 from realm/blagoev/fix-RN-debug-with-vscode
Return debugger context if running on node in vscode debugger
2017-06-13 12:27:45 +03:00
JP Simard d5255e4d3e update license to match changes in realm-cocoa (#1041) 2017-06-06 11:45:08 +02:00
blagoev 5b17e14378 Fix api reference for callbacks 2017-05-31 14:22:53 +03:00
blagoev 3764d4bf55 Return debugger context if running on node in vscode debugger
Experimental
2017-05-29 09:33:06 +03:00
blagoev 2390f9b084 Merge pull request #869 from realm/kd/fix-execution-context-detection
Update index.js to report missing react-native link
2017-05-29 09:00:16 +03:00
Mark Rowe b78bcefc67 Merge pull request #1023 from realm/tg/object-accessor-updates
Update to work with new object store object accessor API
2017-05-24 12:57:03 -07:00
Radu Tutueanu 8c33481011 Use sync 1.9.2 2017-05-24 12:50:27 +02:00
Mark Rowe 98d57a34ce Update to core v2.8.1 and sync v1.9.x.
FIXME: We'll need to update to sync v1.9.2 once it is available as
v1.9.1 does not include core v2.8.1. This may result in the missing
symbols on Linux problem only being fixed when sync is disabled.
2017-05-23 11:52:43 -07:00
Mark Rowe b108d06231 Use `int64_t` rather than `long long` as the integer type in the accessor
implementation.

This matches what core uses for integers, and avoids ambiguity that
otherwise results when `int64_t` is declared as `long` rather than `long long`.
2017-05-22 20:17:35 -07:00
Mark Rowe 75f8b28831 Fix the Node build.
Tweak the signature on some of the accessor methods to take
`JSEngine::Value`s by value rather than by const reference. Some Node
APIs appear to assume that only non-const objects will be used.
2017-05-22 16:19:15 -07:00
Mark Rowe 66da78af74 Merge remote-tracking branch 'origin/master' into tg/object-accessor-updates 2017-05-22 14:39:55 -07:00
Mark Rowe 43200b1db5 Update the recently-added `RealmClass::wait_for_download_completion` to
use the new object accessor interface.
2017-05-22 14:33:39 -07:00
blagoev f4528ae6f5 fix for open async in RN Debug 2017-05-20 09:41:51 +03:00
blagoev cc2e685594 Fix for react-tests in Debug 2017-05-20 09:17:48 +03:00
blagoev aab7171643 add test for working with local realms with async open api 2017-05-19 09:18:48 +03:00
blagoev ea7b10191a Add test for async open api with no schema usage 2017-05-19 08:59:03 +03:00
Ari Lazier 9258d95550 Adapter Docs (#930)
* adapter docs

* fix undefined bug
2017-05-18 13:40:25 +02:00
kristiandupont 401a6043bf [1.3.1] Bump version 2017-05-18 13:13:28 +02:00
Kristian Dupont 22d4b2e391 Fix doc mistake (#1028)
* Fix doc mistake

* Remove throw doc in Realm.open
2017-05-18 13:11:51 +02:00
kristiandupont 1323a8d110 Fix changelog 2017-05-18 13:03:21 +02:00
Kristian Dupont 57414f641d Update docs for Realm.open and Realm.openAsync (#1027)
* Update docs for Realm.open and Realm.openAsync

* Update realm.js
2017-05-18 12:40:26 +02:00
blagoev 26a0079135 remove obsolete scripts 2017-05-18 07:53:37 +03:00
Thomas Goyne 08052e12f6 Update to work with new API for arrays of primitives 2017-05-17 11:02:45 -07:00
Thomas Goyne 62bfaf2d05 Update to core 2.7.0 2017-05-17 11:01:46 -07:00