997 Commits

Author SHA1 Message Date
blagoev
ef63a8829c Initial download api support 2017-05-07 02:26:14 +03:00
blagoev
5a6baef612 Fix event_loop_dispatcher 2017-05-07 02:02:57 +03:00
blagoev
44432660ea Add MakeCallback method abstraction
Needed for node to kick next tick properly. JSC uses regular call
2017-05-07 02:02:05 +03:00
blagoev
9c700053af Fix EventLoopDispatcher
Fixes callback not called due to dispatcher freed when instance go out of scope. Preserves the EventLoopSignal if there are pending invocations
2017-05-06 15:33:06 +03:00
Radu Tutueanu
6a2b0efe07 Add missing files to the xcode project 2017-05-05 15:15:59 +02:00
Radu Tutueanu
f6564ca68f Add the variables to the syncConfig 2017-05-05 13:50:45 +02:00
Radu Tutueanu
b9f90a956b Update handling of ssl certificates according to changes in OS 2017-05-05 11:48:34 +02:00
Radu Tutueanu
7653c7f10d Use sync 1.8.3 2017-05-04 16:58:00 +02:00
blagoev
0dabf3d87d report null instead of undefined for deleteAll indexes count 2017-05-01 10:51:48 +03:00
blagoev
5effd3a9ac report undefined deletions on deleteAll instead of max int count indexes 2017-04-28 12:54:23 +03:00
Radu Tutueanu
ba0b298244 Merge pull request #971 from realm/al/notifier-fix
Use notifier fix in latest object store, update core & sync
2017-04-19 13:20:42 +03:00
Ari Lazier
8e43eb7441 use notifier fix in latest object store, update core 2017-04-18 10:58:50 -07:00
Yavor Georgiev
aa506935a5 Construct Results with object type name only (#959) 2017-04-18 13:41:44 +03:00
Yavor Georgiev
8b652b4e8a Expose option to force the sync history type when opening a realm (#966) 2017-04-18 13:41:07 +03:00
Radu Tutueanu
274661dde4 Use core 2.5.1 and sync 1.5.0 (#949)
* Use core 2.5.1 and sync 1.5.0

* Add changelog entry
2017-03-29 13:41:17 +02:00
Yavor Georgiev
2881cf5502
[1.2.0] Bump version 2017-03-28 14:49:58 +02:00
Yavor Georgiev
80818779ba Fix opening synced realm with an encryption key (#945) 2017-03-28 14:34:27 +02:00
Yavor Georgiev
f0d70d4061 Fix ambiguous type reference error (#943)
* Fix ambiguous type reference error

* Bump ROS version for testing
2017-03-27 16:58:58 +02:00
Radu Tutueanu
479b21c3f8 Use sync 1.4.0 (#918)
* Use sync 1.4.0

* Use master@OS

* Make normalize_path available for the GN (#932)
2017-03-23 15:43:02 +01:00
Ari Lazier
a9120fe09b fixes for latest object store 2017-03-09 21:17:33 -08:00
Ari Lazier
496ae14181 update to latest object store 2017-03-09 10:04:39 -08:00
Ari Lazier
1e43d5e105 update object store 2017-03-09 09:58:12 -08:00
Yavor Georgiev
cfc330305b
[1.1.1] Bump version 2017-03-09 14:35:30 +01:00
Yavor Georgiev
72329865ec
[1.1.0] Bump version 2017-03-09 11:53:00 +01:00
Yavor Georgiev
db8ebd9333 Node.js Win32 support (#864)
* Remove the windows install check

* Node.js Win32 support

* Bring back the `REALM_HAVE_CONFIG` definition

* Download core for Windows when building

* Implement cross-platform node platform.cpp with libuv

* wip

* Make jasmine run quicker

https://github.com/jasmine/jasmine/issues/1204

* Wait for worker process to close in AsyncTests

* Cross-platform paths in tests

* Normalize path separator for forward slash on Windows

* MSVC exception voodoo

* cross-platform uv_cwd

* fix linux build

* make the prepublish script cross-platform

* Disable encryption tests on windows

* ignore vendor/realm-node

* jenkinsfile work

* Only run the prepublish script for publish and pack

* Jenkinsfile work

* Include gyp files in package

* rewrite default_realm_file_directory()

* fix React Native Android build

* delete all realm artifacts in remove_realm_files_from_directory

* bring back build environment variables

* node-pre-gyp windows

* Update CHANGELOG.md
2017-03-07 23:24:30 +01:00
Ari Lazier
b36775472d fix for core change 2017-03-02 06:24:09 -08:00
Ari Lazier
7f75ef4c26 update to latest os and sync 2017-03-01 15:56:22 -08:00
Ari Lazier
4ea81e8e24 support external realm creation 2017-03-01 15:55:40 -08:00
Ari Lazier
e892315290 latest object store 2017-03-01 15:55:40 -08:00
Radu Tutueanu
10634a17e4 Update core and sync versions (#882) 2017-02-22 13:28:57 +01:00
kristiandupont
0840c136b9 [1.0.2] Bump version 2017-02-07 13:01:16 +01:00
Yavor Georgiev
7c1dab7079 Propagate token refresh errors to the session error handler (#843)
* Get a session’s error handler

* Change the signature of all methods to add the callee

* Deserialize rpc callbacks

* Expose the session error handle on its config property

* When a token refresh error occurs and there is a session error handler

propagate the error to the handler
2017-02-07 11:01:26 +01:00
Yavor Georgiev
bb0dc575c9 Implement proactive access token refresh (#842)
Closes #840
2017-02-03 16:40:13 +01:00
Yavor Georgiev
f22efa7117
[1.0.1] Bump version 2017-02-02 15:50:17 +01:00
Yavor Georgiev
7843e72595 Don’t capture the current JS context in the session bind callback (#839) 2017-02-02 15:41:52 +01:00
Yavor Georgiev
de3c3e6788
[1.0.0] Bump version 2017-02-02 13:51:53 +01:00
Yavor Georgiev
19f00e1b4b Rework #832 (#833) 2017-02-02 02:41:11 +01:00
Yavor Georgiev
36dd43b3b2 Make sure all JavaScriptCore prototypes have a constructor (#832)
`js_class` for v8 sets up the `Class.prototype.constructor === Class` relationship automatically, but we need to do it manually in JavaScriptCore.
2017-02-01 23:52:36 +01:00
Yavor Georgiev
9d1d970b1f Sync Session API (#825)
* Add Session class and expose it to JS

* Add error property on the sync config object for the event handler

* tests

* refactor access token refresh

* chrome debugging
2017-02-01 14:18:59 +01:00
Kristian Dupont
0c9c5ac407 Add missing chrome debugging apis for Sync.User (#801)
* Add user tests

* Add Sync member to Realm

* Add a simple test for addListener

* Introduce browser User class

* Introduce Sync.User proxy

* Fix User.all

* Add User.logout

* Remove some console.log statements

* Update rpc.cpp from tests-folder

* Use user.current from user-methods, not cpp

* remove user.current from two missing places

* Start server in realmjs and react tests

* Add user tests

* Add Sync member to Realm

* Add a simple test for addListener

* Introduce browser User class

* Introduce Sync.User proxy

* Fix User.all

* Add User.logout

* Remove some console.log statements

* Update rpc.cpp from tests-folder

* Use user.current from user-methods, not cpp

* remove user.current from two missing places

* Start server in realmjs and react tests

* Replace needle with node-fetch

* Make AuthError work in the browser

* Allow for persistent callbacks

* Expose _authenticateRealm to native

* Use clear_test_state in roc

* Streamline test inclusion

* Fix login tests

* Promisify testLogin()

* Disable AsyncTests for now

* Mode jasmine timeout to spec/unit_tests.js

* Avoid use of global for fetch module

* Only include user-tests is sync is enabled

* Skip ROS for android tests

* Add some comments about persistent callbacks

* Fix results-test

* Run async-tests in node

* Add a comment about (user object)

* Cache all users in User.current and return promises in fetch

* node_require async-tests so RN doesn't try and package them

* Add missing parenthesis
2017-01-31 14:07:29 +01:00
Yavor Georgiev
5183ff9a8c Always invoke sync callbacks on the JavaScript thread (#809)
* Always invoke sync callbacks on the JavaScript thread

* Address review comments

* Make Callback::m_state be a shared, not a weak pointer

* Use the protected GlobalContext in the session bind handler

* Only dispatch on the event loop if we’re not on its thread
2017-01-23 12:37:13 +01:00
Radu Tutueanu
fa8088348d Update Object Store Submodule (#797)
* Update OS

* Use the latest sync

* Update objectstore

* Use realm-sync 7.2

* Add files to project

* Use OS submodule with fix

* Fix object store includes in xcode project

* add missing object store file to binding.gyp

* Update OS with fix for the GlobalNotifier

* Add OS files to Android jni

* Use master@ObjectStore
2017-01-18 12:39:56 +01:00
Kristian Dupont
35c21c203f [0.15.4] Bump version 2017-01-11 12:53:01 +01:00
Kristian Dupont
f9f61aeb36 [0.15.3] Bump version 2017-01-10 16:21:11 +01:00
Radu Tutueanu
14d82c703f Enable sync by default on macOS (#781) 2017-01-10 15:40:19 +01:00
Kristian Dupont
bd8a27b963 Improve error message for typeerrors (#785)
* Add a test

* Catch TypeErrorException

* Make exception asserts check error type

* Remove commented-out testcase and check for error type

* Test for Error, not TypeError
2017-01-10 13:41:56 +01:00
Mark Rowe
9d858d0329 Update to object store master to pick up the fix for the global notifier. (#778) 2017-01-05 11:56:11 +01:00
Mark Rowe
c4b22a160a Update to sync v1.0.0-BETA-6.3 (#776)
* Update to sync v1.0.0-BETA-6.3.

This requires updating to current object store master to accommodate the
changes to sync error reporting.

* Add some include folder search paths

* Add thread_safe_reference to the RealmJS target
2017-01-04 15:07:25 +01:00
Kristian Dupont
f0fd0d4308 [0.15.2] Bump version 2016-12-29 10:35:07 +01:00
Mark Rowe
d8e13bc7bb Switch to using object store's master branch (#748)
* Switch to using object store's master branch.

* Switch to caching Realm instances per JavaScript execution context.
2016-12-28 17:28:44 +01:00