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

PeculiarVentures / xmldsigjs / 40571742619
86%

Build:
DEFAULT BRANCH: master
Ran 27 Oct 2026 07:44PM UTC
Jobs 1
Files 84
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

27 Oct 2026 07:43PM UTC coverage: 85.632% (-0.1%) from 85.763%
40571742619

push

github

web-flow
fix(core)!: reimplement Convert on @peculiar/utils (#149)

xml-core's Convert built strings with String.fromCharCode.apply and
decoded UTF-8 with the deprecated escape/unescape, so
Convert.ToUtf8String threw "RangeError: Maximum call stack size
exceeded" for inputs from about 125 KB, and Convert.ToString read a
DataView as an empty buffer. Its static methods now delegate to
@peculiar/utils ^4.1.0 (utf8, base64, base64url, hex, binary,
toUint8Array), the same helpers xmldsigjs uses. The public API is
unchanged; Base64 still ignores whitespace and accepts missing padding.

Specs cover large input, invalid UTF-8, DataView offsets, Base64 and
Base64Url padding and garbage, and hex separators.

BREAKING CHANGE: xml-core's Convert decodes more strictly. FromBase64/FromBase64Url throw TypeError (was a DOMException InvalidCharacterError) for text that isn't Base64; FromHex throws TypeError for odd-length text or non-hex characters (was silently wrong bytes) and ignores the separators space, tab, newline, ":", "-" and "."; ToUtf8String/FromUtf8String replace invalid UTF-8 and lone surrogates with U+FFFD instead of throwing URIError. xml-core now depends on @peculiar/utils.

1114 of 1501 branches covered (74.22%)

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

5 existing lines in 1 file now uncovered.

2241 of 2617 relevant lines covered (85.63%)

2062.35 hits per line

Coverage Regressions

Lines Coverage ∆ File
5
79.41
-8.28% packages/core/src/convert.ts
Jobs
ID Job ID Ran Files Coverage
1 40571742619.1 27 Oct 2026 07:44PM UTC 84
85.63
GitHub Action Run
Source Files on build 40571742619
  • Tree
  • List 84
  • 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 #40571742619
  • 6b04c4ec on github
  • Prev Build on master (#40571123039)
  • Next Build on master (#40572074678)
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