π Bug fixes
-
Handle split surrogate pairs when encoding utf8 - by @yosion-p and @ashtuchkin in #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 in #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 in #271
- Remove compatibility check for StringDecoder.end method - by @bjohansebas in #331
Other changes
- chore: update .npmignore to ignore unnecessary files by @vain0x in #292
- ci: use github actions instead travis by @bjohansebas in #324
- ci: add codeql by @bjohansebas in #325
- chore: update performance tests to use bench-node for benchmarking by @bjohansebas in #332
- feat: adopt neostandard as linter by @bjohansebas in #333
- chore: support node.js >=6, remove safe-buffer by @bjohansebas in #335
- Revert "chore: support node.js >=6, remove safe-buffer (#335)" by @bjohansebas in #336
- docs(package.json): update repo name and add funding field by @bjohansebas in #337
- chore: remove object-assign by @bjohansebas and @ljharb in #338
- release: 0.7.0 by @bjohansebas in #334
- ci: bump actions/download-artifact from 4 to 5 by @dependabot[bot] in #326
- ci: bump github/codeql-action from 3.29.2 to 3.29.8 by @dependabot[bot] in #327
New Contributors
- @yosion-p made their first contribution in #282
- @jardicc made their first contribution in #271
- @vain0x made their first contribution in #292
- @bjohansebas made their first contribution in #324
- @dependabot[bot] made their first contribution in #326
Full Changelog: v0.6.3...v0.7.0