Commit Graph

937 Commits

Author SHA1 Message Date
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
Kristian Dupont c1e7ddcda1 Throw when deleting detached object (#694)
* Throw when deleting detached object

* Update error message

* Add user file

* Throw when deleting detached object

* Update error message

* Revert "Add user file"

This reverts commit 2948f4cfc2dfd2d5d75594307b1e89806b817eb7.
2016-12-20 16:28:02 +01:00
Ari Lazier 43cb7bc463 only use custom dir for the notifier 2016-12-09 17:16:07 +01:00
Ari Lazier 64730e7e97 allow use of a custom sync dir 2016-12-09 12:49:59 +01:00
Ari Lazier bfa9402a06 submodule udpate 2016-12-07 16:39:39 +01:00
Kristian Dupont 62f5157565 Update object store 2016-12-07 16:33:11 +01:00
Kristian Dupont 43d94d1b8b Add checks for removeListener 2016-12-07 16:31:52 +01:00
Kristian Dupont 1d4bb7c2ad Add more tests and fix add_notification 2016-12-07 16:31:52 +01:00
Radu Tutueanu 19d82caec4 Update ObjectStore (#723) 2016-12-07 11:21:32 +01:00
Ari Lazier 216d97ed5d update object store 2016-12-06 10:24:30 +01:00
Ari Lazier 4f3bf08704 use proper object store merge 2016-12-05 16:25:52 +01:00