From 04e093d10b9a3f5e365268adc67b301945e70e3e Mon Sep 17 00:00:00 2001 From: Zoltan Rakottyai Date: Tue, 26 May 2026 11:06:42 +0100 Subject: [PATCH 1/4] docs: separate runtime vs dev Node.js engine requirements Adds .nvmrc (Node 20) and devEngines field to clarify that development requires Node >=20.19 (ESLint v10 constraint) while the published package continues to support Node >=18 for consumers. Co-Authored-By: Claude Sonnet 4.6 --- .nvmrc | 1 + README.md | 2 ++ package.json | 7 +++++++ 3 files changed, 10 insertions(+) create mode 100644 .nvmrc diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 0000000..209e3ef --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +20 diff --git a/README.md b/README.md index feda7e3..22e554d 100644 --- a/README.md +++ b/README.md @@ -214,6 +214,8 @@ accentFoldedHighlight('Fulanilo López', 'lo', 'strong'); // --> "Fulani Contributions are welcome! Please feel free to submit a Pull Request. +**Development requires Node.js ≥20.19** (ESLint v10 constraint). The published package supports Node.js ≥18 for consumers. + ## Credits The initial idea came from the article [Accent Folding for Auto-Complete](https://alistapart.com/article/accent-folding-for-auto-complete/) by Carlos Bueno on A List Apart (February 2010). This library has since grown beyond that original concept, but the credit belongs there. diff --git a/package.json b/package.json index 5272e5f..2f35501 100644 --- a/package.json +++ b/package.json @@ -18,6 +18,13 @@ "engines": { "node": ">=18" }, + "devEngines": { + "runtime": { + "name": "node", + "version": ">=20.19.0", + "onFail": "warn" + } + }, "type": "module", "scripts": { "coverage": "vitest run --coverage", From b38d252d3bc8e862f21bb7267869f67e802ffc36 Mon Sep 17 00:00:00 2001 From: Zoltan Rakottyai Date: Wed, 27 May 2026 00:25:43 +0100 Subject: [PATCH 2/4] chore: align .nvmrc to Node 22 for dev --- .nvmrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.nvmrc b/.nvmrc index 209e3ef..2bd5a0a 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -20 +22 From 137f0ca5bd334d8b679463b729c90dc85b82e36b Mon Sep 17 00:00:00 2001 From: Zoltan Rakottyai Date: Wed, 27 May 2026 00:26:38 +0100 Subject: [PATCH 3/4] chore: align devEngines to Node >=22.0.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 2f35501..06a7839 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "devEngines": { "runtime": { "name": "node", - "version": ">=20.19.0", + "version": ">=22.0.0", "onFail": "warn" } }, From f52bd694730ec8e2aafbc7e538e5414bdd2bd919 Mon Sep 17 00:00:00 2001 From: Zoltan Rakottyai Date: Wed, 27 May 2026 00:34:02 +0100 Subject: [PATCH 4/4] docs: update contributing Node requirement to >=22 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 22e554d..efe37d8 100644 --- a/README.md +++ b/README.md @@ -214,7 +214,7 @@ accentFoldedHighlight('Fulanilo López', 'lo', 'strong'); // --> "Fulani Contributions are welcome! Please feel free to submit a Pull Request. -**Development requires Node.js ≥20.19** (ESLint v10 constraint). The published package supports Node.js ≥18 for consumers. +**Development requires Node.js ≥22** (ESLint v10 constraint). The published package supports Node.js ≥18 for consumers. ## Credits