From 8dfc7c47e8f08cb56044676a2ffbc70acb8229b2 Mon Sep 17 00:00:00 2001 From: Roman Date: Tue, 2 Jun 2026 23:29:53 +0100 Subject: [PATCH 1/2] feat: add `string_decoder` to replacements --- manifests/preferred.json | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/manifests/preferred.json b/manifests/preferred.json index a7738be..9089dcd 100644 --- a/manifests/preferred.json +++ b/manifests/preferred.json @@ -2540,6 +2540,12 @@ "replacements": ["fast-string-width", "Bun.stringWidth"], "url": {"type": "e18e", "id": "string-width"} }, + "string_decoder": { + "type": "module", + "moduleName": "string_decoder", + "replacements": ["node:string_decoder"], + "url": {"type": "node", "id": "api/string_decoder.html"} + }, "strip-ansi": { "type": "module", "moduleName": "strip-ansi", @@ -3221,7 +3227,8 @@ "node:fs": { "id": "node:fs", "type": "documented", - "replacementModule": "node:fs" + "replacementModule": "node:fs", + "url": {"type": "node", "id": "api/fs.html"} }, "node:sqlite": { "id": "node:sqlite", @@ -3235,6 +3242,12 @@ "nodeFeatureId": {"moduleName": "node:stream"}, "url": {"type": "node", "id": "api/stream.html"} }, + "node:string_decoder": { + "id": "node:string_decoder", + "type": "native", + "nodeFeatureId": {"moduleName": "node:string_decoder"}, + "url": {"type": "node", "id": "api/string_decoder.html"} + }, "node:test": { "id": "node:test", "type": "native", From f9d1412a038e1fbe93068d8b67731746256e4771 Mon Sep 17 00:00:00 2001 From: Roman Date: Thu, 4 Jun 2026 20:03:27 +0100 Subject: [PATCH 2/2] chore: move string_decoder to native --- manifests/native.json | 11 +++++++++++ manifests/preferred.json | 12 ------------ 2 files changed, 11 insertions(+), 12 deletions(-) diff --git a/manifests/native.json b/manifests/native.json index 44dfde0..7ee3d83 100644 --- a/manifests/native.json +++ b/manifests/native.json @@ -1753,6 +1753,12 @@ "description": "All modern versions of Node have `Buffer.from` for safely creating buffers from arbitrary types.", "url": {"type": "node", "id": "api/buffer.html"} }, + "string_decoder": { + "id": "string_decoder", + "type": "native", + "nodeFeatureId": {"moduleName": "node:string_decoder"}, + "url": {"type": "node", "id": "api/string_decoder.html"} + }, "structuredClone": { "id": "structuredClone", "type": "native", @@ -2865,6 +2871,11 @@ "moduleName": "string.raw", "replacements": ["String.raw"] }, + "string_decoder": { + "type": "module", + "moduleName": "string_decoder", + "replacements": ["string_decoder"] + }, "symbol.prototype.description": { "type": "module", "moduleName": "symbol.prototype.description", diff --git a/manifests/preferred.json b/manifests/preferred.json index 9089dcd..ce08a00 100644 --- a/manifests/preferred.json +++ b/manifests/preferred.json @@ -2540,12 +2540,6 @@ "replacements": ["fast-string-width", "Bun.stringWidth"], "url": {"type": "e18e", "id": "string-width"} }, - "string_decoder": { - "type": "module", - "moduleName": "string_decoder", - "replacements": ["node:string_decoder"], - "url": {"type": "node", "id": "api/string_decoder.html"} - }, "strip-ansi": { "type": "module", "moduleName": "strip-ansi", @@ -3242,12 +3236,6 @@ "nodeFeatureId": {"moduleName": "node:stream"}, "url": {"type": "node", "id": "api/stream.html"} }, - "node:string_decoder": { - "id": "node:string_decoder", - "type": "native", - "nodeFeatureId": {"moduleName": "node:string_decoder"}, - "url": {"type": "node", "id": "api/string_decoder.html"} - }, "node:test": { "id": "node:test", "type": "native",