Commit Graph

2731 Commits

Author SHA1 Message Date
Thomas Goyne 604968a987 Ensure node 6.5.0 is installed on CI 2017-09-18 12:20:09 -07:00
Thomas Goyne 70739d632b Build realm from source for each test-runner test
Without this node-pre-gyp will instead download the prebuilt binary and test
that, and I couldn't find a way to persuade node-pre-gyp to "download" the
locally built copy.
2017-09-18 11:58:37 -07:00
Kenneth Geisshirt 183f051bb1 v1 -> v2 upgrade path 2017-09-18 17:44:17 +02:00
Kenneth Geisshirt 616f5d79e6 Fixing merge 2017-09-18 10:05:06 +02:00
Kenneth Geisshirt 1184fc2c0b Merge branch 'tg/update-object-store' of github.com:realm/realm-js into 2.0.x 2017-09-18 09:46:49 +02:00
Kenneth Geisshirt eeb78d8e1b Merge branch 'master' of github.com:realm/realm-js into 2.0.x 2017-09-18 09:46:36 +02:00
Thomas Goyne 0c9d7ca54e Improve error reporting for incorrect argument counts for Realm methods
Report the expected and actual arg counts for too many arguments, and behave
more like normal JS when too few are supplied (i.e. complain about the next
argument being undefined rather than just saying 'Invalid arguments').
2017-09-15 15:00:13 -07:00
Thomas Goyne 742ff99003 Use the same error messages in the RPC code as the regular code 2017-09-15 15:00:13 -07:00
Thomas Goyne e697ae3d5c Silence an unused variable warning when building with sync disabled 2017-09-15 13:12:44 -07:00
Kenneth Geisshirt b3ff7ada62 Documenting sync.config properties (#1312)
* Documenting sync.config properties
* Updating TypeScript definitions
2017-09-15 15:22:44 +02:00
Thomas Goyne 53ca09839e Check the exception message in all Realm tests which assert an exception is thrown 2017-09-14 16:40:58 -07:00
Thomas Goyne 4ad75c9546 Don't discard the actual error message in validated_get_X 2017-09-14 16:25:33 -07:00
Thomas Goyne b8fd4fb861 Add the invalid value to the type error exception message 2017-09-14 16:25:33 -07:00
Thomas Goyne e564ad1de8 Improve the errors thrown for invalid schema definitions 2017-09-14 16:25:33 -07:00
Thomas Goyne aac7d1498a Throw a more appropriate error for some operations on closed Realms 2017-09-14 16:25:33 -07:00
Kenneth Geisshirt e18f54594f [1.12.0] Bump verion 2017-09-14 11:07:47 +02:00
Kenneth Geisshirt 8606d37141 Fixes to issues reported by eslint (#1313) 2017-09-14 10:35:02 +02:00
astigsen 208aa8ee46 Added support for in-memory realms (#1304)
* Added support for in-memory realms
2017-09-13 20:42:23 +02:00
blagoev 03bc224374 Merge pull request #1302 from realm/blagoev/promise3
Blagoev/promise3
2017-09-13 15:07:53 +03:00
blagoev 876a289da1 Merge pull request #1310 from realm/add-typescript-compile-check
add typescript definition compilation checks on every test run
2017-09-13 15:07:21 +03:00
blagoev 064b487c07 Merge branch 'master' into blagoev/promise3 2017-09-13 14:27:04 +03:00
blagoev 6cdbe503b7 fix docs 2017-09-13 13:55:27 +03:00
blagoev e48d3ae638 Fix for index.d.ts 2017-09-13 13:03:28 +03:00
blagoev 8ba71e36c7 add typescript definition compilation checks on every test run 2017-09-13 12:59:13 +03:00
blagoev 591c32f984 Merge pull request #1309 from realm/fix-1306
Fix typescript definitions
2017-09-13 12:54:13 +03:00
blagoev f7db865458 Fix typescript definitions
Fixes #1306
2017-09-13 12:37:44 +03:00
Kenneth Geisshirt 6444f3fa6f Adding missing instructions to TypeScript definitions (#1301) 2017-09-13 09:21:26 +02:00
blagoev 1f5b98bb53 Use promisified methods for login and register to have backward compatibility testing as well 2017-09-12 23:08:54 +03:00
blagoev b58e9094da output the error as it is in download-api-helper 2017-09-12 23:04:46 +03:00
blagoev ba9321834b Fix _authenticate method to use promises only 2017-09-12 23:04:20 +03:00
blagoev eba51066d9 fix AuthError object 2017-09-12 23:02:14 +03:00
blagoev 9366de14ef Revert user-tests to still use callbacks for login/register etc 2017-09-12 23:01:58 +03:00
blagoev 115a2c9902 add deprecated warnings 2017-09-12 20:38:43 +03:00
blagoev 3fbd1291e1 fix _authenticate call to always pass the json object 2017-09-12 20:26:08 +03:00
blagoev a51ea72151 Fix changelog.md 2017-09-12 20:23:49 +03:00
Maximilian Alexander 1e26717d3f Removing duplicate for changelog 2017-09-12 20:18:54 +03:00
Maximilian Alexander 78515e3b48 adding promisified apis 2017-09-12 20:10:52 +03:00
Kenneth Geisshirt eac393571d checkTypes() must only check the shortest array (#1297)
* Allow optional arguments when checking types
2017-09-12 15:17:59 +02:00
Kenneth Geisshirt 12a8cd5398 Adding missing TypeScript declaration of setFeatureToken (#1295)
* Adding missing TypeScript declaration of setFeatureToken
2017-09-12 14:28:16 +02:00
Ashwin Phatak 95ea9bd38a Merge pull request #1290 from realm/ap/delete_model
Add Realm.deleteModel API (#573)
2017-09-12 14:54:20 +05:30
Ashwin Phatak 532f517ded Add Realm.deleteModel API (#573) 2017-09-12 14:45:36 +05:30
blagoev 7d25239fcc Merge pull request #1279 from realm/progress-api
Progress api
2017-09-12 11:33:59 +03:00
blagoev 4d1762025f Fix possible sporadic test failure 2017-09-12 11:21:15 +03:00
blagoev 069bdfd2af change the this argument for the callback 2017-09-12 02:47:07 +03:00
blagoev 2b6dc8fc14 fix API naming 2017-09-11 15:52:39 +03:00
blagoev 15af834824 Update CHANGELOG.MD
Added entries for progress api
2017-09-11 15:52:39 +03:00
blagoev 87c88b746a better naming for private properties 2017-09-11 15:50:44 +03:00
blagoev c843f8e7f9 Validate callback was registered on unregistration 2017-09-11 15:50:44 +03:00
blagoev 9d02165db1 update typescript definitions 2017-09-11 15:50:44 +03:00
blagoev 0e07287396 Update progress api docs 2017-09-11 15:50:44 +03:00