diff --git a/CHANGELOG b/CHANGELOG index 8dbb888344..9a41f7d2f5 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -30,6 +30,23 @@ v2.2.0 (XXXX-XX-XX) was removed. Collections with many different attribute names should benefit from this change by faster inserts and slightly less memory usage. +v2.1.1 (2014-06-06) +------------------- + +* signature for collection functions was modified + + The basic change was the substitution of the input parameter of the + function by an generic options object which can contain multiple + option parameter of the function. + Following functions were modified + remove + removeBySample + replace + replaceBySample + update + updateBySample + + Old signature is yet supported but it will be removed in future versions v2.1.0 (2014-05-29) ------------------- diff --git a/arangod/V8Server/v8-vocbase.cpp b/arangod/V8Server/v8-vocbase.cpp index a573e21a45..b0be8f19f6 100644 --- a/arangod/V8Server/v8-vocbase.cpp +++ b/arangod/V8Server/v8-vocbase.cpp @@ -2209,9 +2209,7 @@ static v8::Handle ReplaceVocbaseCol (bool useCollection, // check the arguments if (argv.Length() < 2) { - TRI_V8_EXCEPTION_USAGE(scope, "replace(, , , ) or" - "replace(, , {overwrite: booleanValue, waitForSync: booleanValue})" - ); + TRI_V8_EXCEPTION_USAGE(scope, "replace(, , {overwrite: booleanValue, waitForSync: booleanValue})"); } // we're only accepting "real" object documents @@ -2603,8 +2601,7 @@ static v8::Handle UpdateVocbaseCol (bool useCollection, // check the arguments if (argv.Length() < 2 || argv.Length() > 5) { - TRI_V8_EXCEPTION_USAGE(scope, "update(, , , , ) or" - "update(, , {overwrite: booleanValue, waitForSync: booleanValue})"); + TRI_V8_EXCEPTION_USAGE(scope, "update(, , {overwrite: booleanValue, keepNull: booleanValue, waitForSync: booleanValue})"); } if (argv.Length() > 2) { @@ -2886,9 +2883,7 @@ static v8::Handle RemoveVocbaseCol (bool useCollection, // check the arguments if (argv.Length() < 1 || argv.Length() > 3) { - TRI_V8_EXCEPTION_USAGE(scope, "remove(, , ) or" - "remove(, , {overwrite: booleanValue, waitForSync: booleanValue})" - ); + TRI_V8_EXCEPTION_USAGE(scope, "remove(, , {overwrite: booleanValue, waitForSync: booleanValue})"); } if (argv.Length() > 1) {