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

PeculiarVentures / ASN1.js / 39263162094
82%

Build:
DEFAULT BRANCH: master
Ran 19 Oct 2026 01:47PM UTC
Jobs 1
Files 69
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 01:47PM UTC coverage: 81.606% (+2.3%) from 79.27%
39263162094

push

github

web-flow
refactor(deps): replace pvtsutils and pvutils with @peculiar/utils 4 (#213)

* refactor(deps): replace pvtsutils with @peculiar/utils 4 and update pvutils to 2

Convert and BufferSourceConverter come from @peculiar/utils, the BufferSource
type from its root entry (the legacy entry doesn't export it). Its
FromHex/FromUtf8String/FromUtf16String and concat return ArrayBufferLike;
OctetString#getValue() casts the concat result, which is always a new
ArrayBuffer. pvutils 2 has the same API as 1.

Both packages are ESM-only and need Node.js ^20.19.0 || >=22.12.0, so this
must not be released in 3.x; it ships with the ESM-only 4.0.0.

* build(deps): bump @peculiar/utils to ^4.0.1

4.0.1 restores strict UTF-8 handling in the legacy Convert helpers
(PeculiarVentures/pvtsutils#43), which the Utf8String raw-bytes fallback
depends on.

* refactor(deps): replace pvutils with @peculiar/utils 4.1 codecs

Follow the pvutils migration guide in @peculiar/utils: uint/int codecs
for base-128 SIDs and tag numbers, lengths, and two's complement
integers, bytes.equal for isEqual, and String.prototype.padStart for
time strings.

The new codecs throw a RangeError instead of returning an empty buffer
or losing precision. Decoders and encoders map that to the existing
error and hex-only paths, so fromBER and toBER still do not throw:

- SIDs and tag numbers from 2^49 to 2^53 now encode; they produced an
  empty encoding before.
- SIDs and tag numbers above 2^53 decode as hex-only and round-trip
  unchanged instead of decoding to an imprecise number.
- Integer encodes any integral number exactly and throws a RangeError
  for fractional values, which were truncated before.

* fix: reject odd-length BMPString, validate Integer valueDec, fix length minimality check

- BMPString.fromBER returns an error for odd-length content instead of throwing a RangeError
- Integer valueDec setter validates input before mutating state, so a rejected value leaves the block unchanged
- Needlessly l... (continued)

984 of 1341 branches covered (73.38%)

128 of 138 new or added lines in 24 files covered. (92.75%)

4 existing lines in 4 files now uncovered.

1535 of 1881 relevant lines covered (81.61%)

5150.97 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
83.33
0.0% src/BaseBlock.ts
2
79.41
-1.4% src/internals/LocalIdentificationBlock.ts
2
94.67
15.45% src/internals/LocalSidValueBlock.ts
1
79.41
0.0% src/OctetString.ts
1
71.43
0.0% src/RawData.ts
1
92.86
76.19% src/internals/integerUtils.ts
1
0.0
0.0% src/schema.ts

Coverage Regressions

Lines Coverage ∆ File
1
70.37
-0.78% src/internals/LocalIntegerValueBlock.ts
1
88.57
0.34% src/internals/LocalLengthBlock.ts
1
85.71
0.0% src/internals/LocalRelativeSidValueBlock.ts
1
94.67
15.45% src/internals/LocalSidValueBlock.ts
Jobs
ID Job ID Ran Files Coverage
1 39263162094.1 19 Oct 2026 01:47PM UTC 69
81.61
GitHub Action Run
Source Files on build 39263162094
  • Tree
  • List 69
  • Changed 26
  • Source Changed 26
  • Coverage Changed 18
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #39263162094
  • 5205e10e on github
  • Prev Build on master (#39226089984)
  • Next Build on master (#39271427417)
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