Commit Graph

2472 Commits

Author SHA1 Message Date
Yavor Georgiev fb7f11263c Modernize V8 ArrayBuffer usage (#1198)
Instead of manually allocating a chunk of memory and asking V8 to create an ArrayBuffer around it, have V8 create an ArrayBuffer with its own allocator and copy the data in it. (fixes #1197)

Remove an extra copy when reading data from ArrayBufferViews.

Remove TODOs for Node.js versions older than 4.
2017-08-10 11:45:48 +02:00
Kristian Dupont bb3411f7f7 Fix Object.setPrototypeOf issue on Android (#1195)
* Fix Object.setPrototypeOf issue on Android

* Fix prototype chain
2017-08-09 15:08:19 +02:00
Jagdeep Nagpal ee3b855efb Remove override annotation (#1178) 2017-08-09 11:09:31 +02:00
Kristian Dupont b09385f97d Make jsdoc import tutorials (#1181) 2017-08-08 11:35:03 +02:00
toanz 7d903cc96e correct testProgressNotificationsForRealmOpen
ProgressNotifications is not working , this test is incorrect
2017-08-07 10:28:01 +07:00
Yavor Georgiev b71eec6b98
[1.10.1] Bump version 2017-08-02 14:07:16 +02:00
blagoev c090cd9700 Merge pull request #1146 from realm/ni/open-async
Don’t invoke openAsync callback twice
2017-07-27 13:26:57 +03:00
blagoev 68df00154f Merge pull request #1162 from realm/aviwarner-patch-1
Create SUPPORT.md
2017-07-27 12:09:01 +03:00
Avi Warner 8f50bb772a Create SUPPORT.md
Creating a SUPPORT.md file to improve issue submission
2017-07-25 11:27:28 -07:00
David Shore 56d571c204 Update README 2017-07-21 11:35:27 -07:00
Nikola Irinchev bbe62c361b
Don’t execute callback in Realm.open either 2017-07-18 11:28:33 +03:00
Nikola Irinchev 081c3e5224
Add changelog 2017-07-18 00:22:59 +03:00
Nikola Irinchev bd10a6d8e0
Don’t invoke openAsync callback twice 2017-07-18 00:16:25 +03:00
Yavor Georgiev 22a086859f
[1.10.0] Bump version 2017-07-12 16:45:35 +02:00
Yavor Georgiev 479e8eebaa Merge pull request #1138 from realm/yg/realm-is-empty
Add `Realm.empty`
2017-07-12 14:16:29 +02:00
Yavor Georgiev 5dd9264225
Add `Realm.empty` 2017-07-12 13:02:21 +02:00
Yavor Georgiev ced6df9819 Merge pull request #1135 from realm/yg/node-fatal-exceptions
Rethrow callback errors as fatal Node.js errors
2017-07-11 18:09:32 +02:00
Yavor Georgiev b1d23bb782
Realm.open and Realm.openAsync should try/catch opening the realm
and pass the error on to the promise and callback respectively so that it can be handled by the caller
2017-07-11 17:47:10 +02:00
Yavor Georgiev 1e58351ace
Don’t enter node::MakeCallback if we have a calling context
this means we already have JavaScript frames on the execution stack
2017-07-11 17:47:10 +02:00
Yavor Georgiev fe756bdc86
Rethrow callback errors as fatal Node.js errors
Instead of rethrowing the JavaScript error emitted from a callback function, we should instead pass it to `node::FatalException`.

Callbacks are employed when there is no other JavaScript frame on the stack prior so rethrowing the JS error as a C++ exception is not going to propagate the error back to JavaScript. `node::FatalException` will raise the `uncaughtError` event on the `process` object , print the error and stacktrace, and alert the debugger is there is one attached. This would make our async callbacks behave consistently with Node’s own async callbacks such as `setTimeout` when encountering an error.
2017-07-11 17:47:09 +02:00
Yavor Georgiev e0facc77ff Fix jsdoc build (#1133)
Using a path relative to the `docs/conf.json` file seems to fix the `FATAL: Unable to load template: Cannot find module 'docs/jsdoc-template/template/publish'` issue.

See 0830c6e2f9.
2017-07-11 13:33:38 +02:00
blagoev fb3979110d fix docs 2017-07-11 12:41:36 +03:00
Yavor Georgiev 7b9c4eee46
[1.9.0] Bump version 2017-07-10 17:26:44 +02:00
Yavor Georgiev ab29ac4490 Fix linter issues (#1132) 2017-07-10 16:53:00 +02:00
Yavor Georgiev 1ba9b434b4 Add a new optional server parameter to User.adminUser (#1111)
* add a new optional server parameter to User.adminUser

This enables `User.openManagementRealm()` for admin token users.

* changelog

* API docs
2017-07-10 15:04:55 +02:00
Mark Rowe 89149c0a75 Make it possible to assign a List or Results to a List property once more (#1126)
* Make it possible to assign a List or Results to a List property.

The change made in #1069 to improve error messages when values of
incorrect types were assigned to a given property was being too
narrow in the types it accepted for list properties, allowing only
arrays. Lists and Results are now accepted once more.

* Update CHANGELOG.md
2017-07-10 13:45:49 +02:00
blagoev db7284ee97 fix parameter placement 2017-07-10 12:34:50 +03:00
blagoev b6d1d28b02 Merge pull request #1130 from realm/bmunkholm/PR-template
Create pull_request_template.md
2017-07-10 12:32:25 +03:00
Brian Munkholm e588d9badd Create pull_request_template.md 2017-07-09 15:04:36 +02:00
blagoev 516c39deaf Docs for retrieveAccount method (#1127)
* Docs for retrieveAccount method

* fix setTimeout call
2017-07-08 19:30:25 +02:00
blagoev 4b68730cfd Merge pull request #1113 from realm/user-lookup
Add support for getting user id (retrieveAccount)
2017-07-07 17:32:48 +03:00
blagoev 709ebd4dd5 Use objectForPrimaryKey 2017-07-07 16:44:54 +03:00
blagoev 9ea5dd7f8c address review comments 2017-07-07 16:38:13 +03:00
Yavor Georgiev 02c19bacb2 Close uv handles on the loop thread (#1125) 2017-07-07 14:50:34 +02:00
blagoev d5d6638975 fix RN tests 2017-07-07 13:54:58 +03:00
blagoev 6a284c94b1 don’t run retrieveAccount tests on RN 2017-07-07 12:46:57 +03:00
blagoev 4a499464eb Run admin helper on node only 2017-07-07 12:43:02 +03:00
blagoev 9c63858d29 fix admin-user-helper and enable retrieveAccount tests 2017-07-07 12:16:12 +03:00
blagoev ee452963c2 Disable user lookup tests temporary 2017-07-07 10:31:29 +03:00
blagoev 55c7c8f68c add TS definition for retrieveAccount 2017-07-07 10:31:29 +03:00
blagoev e31529397f Add tests for retrieveAccount method
fix admin-user-helper wait for admin to correctly wait
2017-07-07 10:31:29 +03:00
blagoev 5cbfd540f1 add script for creating test admin user 2017-07-07 10:31:29 +03:00
blagoev 73c861dc74 Remove method from list 2017-07-07 10:31:29 +03:00
blagoev 42e03e038d Add support for getting user id
For #1090
2017-07-07 10:31:29 +03:00
Avi Warner 95da5a29f0 Update ISSUE_TEMPLATE.md 2017-07-06 16:14:15 -07:00
Yavor Georgiev b7775ad9ab
Partially revert #1122 2017-07-06 17:36:09 +02:00
Dmitry Patsura 13cd978a87 [iOS] Support RN 0.46+, #1121 (#1122)
* [iOS] Support RN 0.46+, #1121

* [iOS] Use bridge dispatchBlock, thank @javache, refs #1121

* [iOS] Drop unneeded expose of private methods for RCTBridge, refs #1121
2017-07-06 16:13:03 +02:00
Brian Munkholm 80253cdbac Create ISSUE_TEMPLATE.md 2017-07-04 17:48:31 +02:00
Brian Munkholm a66d29eabf Delete .github 2017-07-04 17:47:56 +02:00
Brian Munkholm 500aad1fbc Create .github 2017-07-04 17:46:41 +02:00