diff --git a/CHANGELOG.md b/CHANGELOG.md index 804efa1c..703b315c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,10 +14,11 @@ X.Y.Z Release notes ### Bug fixes * Fixed a bug in how arrays of primitive types are represented. The bug prevented a schema from one Realm to be used when opening another (#1847). +* Added a more readable error message in the query parser when requesting an a bad argument (#1808). ### Internal -* Realm Core v5.6.0. -* Realm Sync v3.5.2. +* Upgraded to Realm Core v5.6.1. +* Upgraded to Realm Sync v3.5.3. 2.8.2 Release notes (2018-6-12) diff --git a/dependencies.list b/dependencies.list index 92d8e740..c8f7b685 100644 --- a/dependencies.list +++ b/dependencies.list @@ -1,6 +1,6 @@ PACKAGE_NAME=realm-js VERSION=2.8.2 -REALM_CORE_VERSION=5.6.0 -REALM_SYNC_VERSION=3.5.2 +REALM_CORE_VERSION=5.6.1 +REALM_SYNC_VERSION=3.5.3 REALM_OBJECT_SERVER_VERSION=3.0.0 diff --git a/tests/js/query-tests.js b/tests/js/query-tests.js index 9ccd43fc..88b55213 100644 --- a/tests/js/query-tests.js +++ b/tests/js/query-tests.js @@ -22,6 +22,7 @@ var Realm = require('realm'); var TestCase = require('./asserts'); var testCases = require('./query-tests.json'); +var schemas = require('./schemas'); var typeConverters = {}; @@ -157,5 +158,11 @@ module.exports = { }, testOrderingQueries: function() { runQuerySuite(testCases.orderingTests); + }, + testMalformedQueries: function() { + var realm = new Realm({ schema: [schemas.StringOnly] }); + TestCase.assertThrows(function() { + realm.objects(schemas.StringOnly.name).filtered('stringCol = $0'); + }, "Request for argument at index 0 but no arguments are provided"); } };