This is an automated email from the ASF dual-hosted git repository.
jan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pouchdb.git
The following commit(s) were added to refs/heads/master by this push:
new 7695fac10 Modernize query planner: use Object.values instead of manual
mapping
7695fac10 is described below
commit 7695fac10b1e36d0e59cf7a9d2564d558eb8104e
Author: MOHITKOURAV01 <[email protected]>
AuthorDate: Tue Feb 17 16:42:21 2026 +0530
Modernize query planner: use Object.values instead of manual mapping
---
.../pouchdb-find/src/adapters/local/find/query-planner.js | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git
a/packages/node_modules/pouchdb-find/src/adapters/local/find/query-planner.js
b/packages/node_modules/pouchdb-find/src/adapters/local/find/query-planner.js
index 0537fe9b0..1f3d0d06b 100644
---
a/packages/node_modules/pouchdb-find/src/adapters/local/find/query-planner.js
+++
b/packages/node_modules/pouchdb-find/src/adapters/local/find/query-planner.js
@@ -414,10 +414,7 @@ function shouldShortCircuit(selector) {
// just like the http adapter (couchdb) and mongodb
// see tests for issue #7810
- // @todo Use 'Object.values' when Node.js v6 support is dropped.
- const values = Object.keys(selector).map(function (key) {
- return selector[key];
- });
+ const values = Object.values(selector);
return values.some(function (val) {
return typeof val === 'object' && Object.keys(val).length === 0;
});