• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

PeculiarVentures / pvtsutils / 39238330285
93%

Build:
DEFAULT BRANCH: master
Ran 19 Oct 2026 10:34AM UTC
Jobs 1
Files 17
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

19 Oct 2026 10:33AM UTC coverage: 92.369% (+0.02%) from 92.345%
39238330285

push

github

web-flow
fix(legacy): restore strict UTF-8 handling in Convert (#44)

* fix(legacy): restore strict UTF-8 handling in Convert

The legacy Convert UTF-8 helpers delegated to the lenient utf8 codec,
so malformed bytes and lone surrogates were silently replaced with
U+FFFD and a leading BOM was stripped. Match pvtsutils 1.x again:
ToUtf8String/ToString("utf8") decode with fatal: true and keep the BOM,
FromUtf8String/FromString("utf8") reject lone surrogates. Errors are
TypeError (pvtsutils threw URIError). The modern utf8 codec is unchanged.

Closes #43

* fix(legacy): apply strict UTF-8 handling to the utf-8 alias

ToUtf8String and FromUtf8String only checked for "utf8", so "utf-8"
fell through to the lenient codec. Reuse isUtf8Encoding, add "utf-8"
to TextEncoding, and cover the alias in tests. Use \uFEFF escapes
instead of invisible literal BOMs in the spec.

316 of 397 branches covered (79.6%)

15 of 15 new or added lines in 1 file covered. (100.0%)

1 existing line in 1 file now uncovered.

581 of 629 relevant lines covered (92.37%)

19.46 hits per line

Coverage Regressions

Lines Coverage ∆ File
1
92.31
0.64% src/legacy/convert.ts
Jobs
ID Job ID Ran Files Coverage
1 39238330285.1 19 Oct 2026 10:34AM UTC 17
92.37
GitHub Action Run
Source Files on build 39238330285
  • Tree
  • List 17
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #39238330285
  • e958b71f on github
  • Prev Build on master (#38737870871)
  • Next Build on master (#39238624426)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc