From 73b4d12b3f0eecb0c7efa63c038e91c21d67bcba Mon Sep 17 00:00:00 2001 From: Sebastian Beltran Date: Sun, 17 Aug 2025 21:16:33 -0500 Subject: [PATCH 1/3] release: 0.7.0 Signed-off-by: Sebastian Beltran --- Changelog.md | 23 +++++++++++++++++++++++ package.json | 2 +- 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/Changelog.md b/Changelog.md index 464549b1..50a66623 100644 --- a/Changelog.md +++ b/Changelog.md @@ -1,3 +1,26 @@ +## 0.7.0 + +### 🐞 Bug fixes + +* Handle split surrogate pairs when encoding utf8 - by [@yosion-p](https://github.com/yosion-p) and [@ashtuchkin](https://github.com/ashtuchkin) in [#282](https://github.com/ashtuchkin/iconv-lite/pull/282): + + Handle a case where streaming utf8 encoder (converting js strings -> buffers) encounters + surrogate pairs split between chunks (last character of one chunk is high surrogate and first + character of the next chunk is a low surrogate). + +* Avoid false positives in encodingExists by using objects without a prototype - by [@bjohansebas](https://github.com/bjohansebas) in [#328](https://github.com/ashtuchkin/iconv-lite/pull/328) + + The encodingExists method could return incorrect results if the lookup matched properties inherited + from the prototype of the object that stores the encodings, such as constructor and others. This change + replaces that object with one that has no prototype, ensuring that only explicitly defined valid encodings + in the library are considered. In addition, the fix is applied to the internal cache system to avoid the same + kind of false positives + +### 🚀 Improvements + +* Make explicit that decode() method supports Uint8Array input - by [@jardicc](https://github.com/jardicc) in [#271](https://github.com/ashtuchkin/iconv-lite/pull/271) +* Remove compatibility check for StringDecoder.end method - by [@bjohansebas](https://github.com/bjohansebas) in [#331](https://github.com/ashtuchkin/iconv-lite/pull/331) + ## 0.6.3 / 2021-05-23 * Fix HKSCS encoding to prefer Big5 codes if both Big5 and HKSCS codes are possible (#264) diff --git a/package.json b/package.json index f4ceee25..57270e1a 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "iconv-lite", "description": "Convert character encodings in pure javascript.", - "version": "0.6.3", + "version": "0.7.0", "license": "MIT", "keywords": [ "iconv", From c4b2cd54b44f5270af61d946a8e2fe807c8bfdcf Mon Sep 17 00:00:00 2001 From: Sebastian Beltran Date: Mon, 18 Aug 2025 21:25:53 -0500 Subject: [PATCH 2/3] docs: add reference for change of suppor node Signed-off-by: Sebastian Beltran --- Changelog.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Changelog.md b/Changelog.md index 50a66623..de96b53c 100644 --- a/Changelog.md +++ b/Changelog.md @@ -1,5 +1,11 @@ ## 0.7.0 +### ⚠️ Breaking changes + +* Remove support for Node.js <6 and safe-buffer dependency - by [@bjohansebas](https://github.com/bjohansebas) in [#335](https://github.com/ashtuchkin/iconv-lite/pull/335) + + Support for Node versions <6 is removed to eliminate the safe-buffer dependency, now using Node.js's native Buffer since it no longer relies on an unsafe version of Node.js's native Buffer. + ### 🐞 Bug fixes * Handle split surrogate pairs when encoding utf8 - by [@yosion-p](https://github.com/yosion-p) and [@ashtuchkin](https://github.com/ashtuchkin) in [#282](https://github.com/ashtuchkin/iconv-lite/pull/282): From be11d6aa22cb626eef8a06870cf41ada573ffdf7 Mon Sep 17 00:00:00 2001 From: Sebastian Beltran Date: Tue, 19 Aug 2025 15:34:37 -0500 Subject: [PATCH 3/3] docs: remove reference about remove old support --- Changelog.md | 5 ----- 1 file changed, 5 deletions(-) diff --git a/Changelog.md b/Changelog.md index de96b53c..fab81312 100644 --- a/Changelog.md +++ b/Changelog.md @@ -1,10 +1,5 @@ ## 0.7.0 -### ⚠️ Breaking changes - -* Remove support for Node.js <6 and safe-buffer dependency - by [@bjohansebas](https://github.com/bjohansebas) in [#335](https://github.com/ashtuchkin/iconv-lite/pull/335) - - Support for Node versions <6 is removed to eliminate the safe-buffer dependency, now using Node.js's native Buffer since it no longer relies on an unsafe version of Node.js's native Buffer. ### 🐞 Bug fixes