From 6cf36629a7ff47735cab60ae26b62bdcd871c721 Mon Sep 17 00:00:00 2001 From: Justin Stayton Date: Wed, 19 Aug 2026 10:46:14 -0400 Subject: [PATCH 1/2] BREAKING: Drop support for Node.js v20 (EOL) --- .github/workflows/ci.yml | 2 +- package-lock.json | 2 +- package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ac28410..c5d41ae 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node-version: ['20.x', '22.x', '24.x'] + node-version: ['22.x', '24.x', '26.x'] steps: - name: Check out repository uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 diff --git a/package-lock.json b/package-lock.json index 7786b3e..e9eaee7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -26,7 +26,7 @@ "release-it": "^21.0.2" }, "engines": { - "node": ">=20" + "node": ">=22" } }, "node_modules/@babel/code-frame": { diff --git a/package.json b/package.json index eb48d3b..e4e73da 100644 --- a/package.json +++ b/package.json @@ -57,7 +57,7 @@ "release-it": "^21.0.2" }, "engines": { - "node": ">=20" + "node": ">=22" }, "publishConfig": { "access": "public" From 6182b5a4d5618fa1de8d29659280c426ca6e7c6e Mon Sep 17 00:00:00 2001 From: Justin Stayton Date: Wed, 19 Aug 2026 12:17:24 -0400 Subject: [PATCH 2/2] Replace Array.from() with newer JS syntax --- src/schema.js | 4 +--- src/services/flatten_map.js | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/schema.js b/src/schema.js index a59201c..4f08cb0 100644 --- a/src/schema.js +++ b/src/schema.js @@ -49,9 +49,7 @@ class Schema { } mapFilterNamesToOperators() { - const filters = Array.from(this.filters.values()) - - return filters.reduce((accumulator, filter) => { + return this.filters.values().reduce((accumulator, filter) => { if (!accumulator[filter.name]) { accumulator[filter.name] = [] } diff --git a/src/services/flatten_map.js b/src/services/flatten_map.js index bd5ab38..30b12f7 100644 --- a/src/services/flatten_map.js +++ b/src/services/flatten_map.js @@ -1,7 +1,5 @@ module.exports = ({ map, key = null, value = null }) => { - const entries = Array.from(map.entries()) - - return entries.reduce((accumulator, [entryKey, entryValue]) => { + return map.entries().reduce((accumulator, [entryKey, entryValue]) => { const newKey = key ? key(entryKey, entryValue) : entryKey const newValue = value ? value(entryValue, entryKey) : entryValue