This is an automated email from the ASF dual-hosted git repository. rnewson pushed a commit to branch nouveau-dreyfus-compat in repository https://gitbox.apache.org/repos/asf/couchdb.git
commit bea90ce2b4d3632e1c4b23e74a6bc338ddb0c77f Author: Robert Newson <[email protected]> AuthorDate: Tue Mar 31 10:22:36 2026 +0100 convert dreyfus-style arguments to index() in nouveau.js --- share/server/nouveau.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/share/server/nouveau.js b/share/server/nouveau.js index 8c75d4a25..1f6f38c4a 100644 --- a/share/server/nouveau.js +++ b/share/server/nouveau.js @@ -39,6 +39,11 @@ var Nouveau = (function () { return { index: function (doc) { + // convert dreyfus syntax to nouveau syntax + if (arguments.length == 2 || (arguments.length == 3 && typeof arguments[2] == 'object')) { + arguments.unshift(typeof arguments[1] == 'number' ? 'double' : 'text'); + } + var type = arguments[0]; var name = arguments[1];
