Commit Graph

2444 Commits

Author SHA1 Message Date
Ashwin Phatak e6c2bdee6e Merge pull request #1227 from ashwinphatak/master
Use exact Node & NDK versions known to work in prerequisites
2017-08-22 14:40:33 +05:30
Ashwin Phatak a9254a1a23 Use exact Node & NDK versions known to work in prerequisites 2017-08-22 14:33:32 +05:30
Ashwin Phatak 0e23737371 Merge pull request #1228 from realm/ap/env_check_ndk
Check if the supported version (10e) of Android NDK is installed
2017-08-22 12:50:23 +05:30
Ashwin Phatak a3795fdfb0 Check if the supported version (10e) of Android NDK is installed 2017-08-22 12:48:20 +05:30
Kenneth Geisshirt 85fb49b354 Adding methods and property to manually control write transactions (#1216)
* Adding methods and property to manually control write transactions
2017-08-21 17:48:53 +02:00
Kenneth Geisshirt bd28c05936 Add shouldCompactOnLaunch option to configuration (#1209)
* Adding shouldCompactOnLaunch option to configuration
* Adding Realm.compact()
2017-08-18 14:22:29 +02:00
Kenneth Geisshirt 0c557fcfe5 How to contribute a function (#1224)
* Guideline on how to add a function
2017-08-18 14:19:56 +02:00
Brian Munkholm 3c07391997 Merge pull request #1225 from justjenu/patch-1
Update link to community newsletter
2017-08-18 10:14:05 +02:00
Jennifer Hooper 8301d2838c Update link to community newsletter 2017-08-17 13:13:57 -07:00
kristiandupont 0db8fac3e5 [1.10.3] Version bump 2017-08-17 11:35:13 +02:00
Brian Munkholm e5cd112197 Update README.md 2017-08-16 21:03:24 +02:00
Brian Munkholm b528c8dace Update README.md 2017-08-16 21:02:12 +02:00
Brian Munkholm c2d90d6fa7 Update license for Core 2017-08-16 21:00:48 +02:00
Kenneth Geisshirt 1dd85b591a Merge pull request #1190 from ejoy-jsc/master
correct testProgressNotificationsForRealmOpen
2017-08-16 14:56:14 +02:00
blagoev cd187eca43 Merge pull request #1210 from realm/depreciate-setAccessToken
Deprecate setAccessToken
2017-08-16 12:51:27 +03:00
Kristian Dupont c24cc16ebf Fix a few publish issues (#1215)
* Stop trying to kill the server twice after testing

* Fix test targets to run before publishing

* ...

* Remove electron runner from publish for now

* Update changelog
2017-08-16 11:11:28 +02:00
kristiandupont 796ebe2533 [1.10.2] Bump version 2017-08-15 15:12:18 +02:00
blagoev fad3b369dc fix bad term 2017-08-15 12:36:15 +03:00
blagoev 86999412f0 Depreciate setAccessToken
rename setAccessToken to setFeatureToken
expose both functions while setAccessToken is depreciated
Trim token argument string
2017-08-15 12:36:15 +03:00
Kristian Dupont 08acb83e58 Update pull_request_template.md 2017-08-14 12:43:59 +02:00
Kristian Dupont f55fa10b6b Add environment-check script (#1199)
* Add environment-check script

* Check version without using semver module
2017-08-14 10:30:03 +02:00
Kræn Hansen e4e1431c55 Running js tests in Electron renderer process (#1196)
* First take on running the tests inside an Electron render process

* Making progress

* Making it possible to override the location of the admin token

* Ignoreing the realm-object-server files

* Fixing a console.log to return a string instead of a boolean

But it should probably be removed entirely

* Making the downloaded ROS log less

* Adjusting comments in the test.sh

* Checking number of windows to determine an Electron crash

* Added a test that triggers garbage collection of ArrayBuffers

* Enabled the ability to run the tests in Electrons main process

* Run tests first in main process and the render

* Added a README.md that documents how Electron tests can be run

* Added a comment on why the garbage-collection test was added.

* Waiting with reading the admin token, until it is actually used

* Disabling the GarbageCollectionTests for now
2017-08-11 10:30:57 +02:00
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