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

PeculiarVentures / webcrypto / 40493967121
75%

Build:
DEFAULT BRANCH: master
Ran 27 Oct 2026 11:09AM UTC
Jobs 1
Files 59
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 11:09AM UTC coverage: 74.816%. Remained the same
40493967121

push

github

web-flow
build!: ship ESM-only output for Node.js ^20.19.0 || >=22.12.0 (#97)

Replace rollup and @rollup/plugin-typescript with tsdown, using the
pvtsutils/webcrypto-core config with platform "node" (the mechanisms
use node:crypto) and the SPDX banner. Types are generated from the
source, so the hand-written index.d.ts is gone. tsconfig follows
pvtsutils with lib DOM, types ["node"] and experimentalDecorators
(@JsonProp in src). Type-only imports for verbatimModuleSyntax, tslib
dropped, dev dependencies updated (TypeScript stays on 6).

Crypto.subtle is typed with the DOM SubtleCrypto overloads on top of
core's type, so consumer code written against the old index.d.ts
(EcdsaParams/AesGcmParams literals, `as const` usages) still compiles.
src/index.spec.ts covers that. @types/node stays on 25: 26 drops the
crypto.RsaPublicKey/RsaPrivateKey option types the RSA code uses.

BREAKING CHANGE: @peculiar/webcrypto is ESM-only and requires Node.js
^20.19.0 || >=22.12.0 (was >=14.18.0). The bundles
build/webcrypto.js (CommonJS) and build/webcrypto.es.js and the
hand-written index.d.ts are replaced by unbundled ES modules with
build/index.js and build/index.d.ts as the entry point; the
react-native field is removed. Deep imports into build/ are blocked by
exports. CommonJS code can still require("@peculiar/webcrypto") on
supported Node.js versions through require(esm); Node.js 22.0-22.11
can't. TypeScript projects that compile to CommonJS need "module":
"node20" or "nodenext". The exported names (Crypto, CryptoKey) are
unchanged; their declarations are now generated, so Crypto shows its
webcrypto-core base class. See "Breaking Changes In v2" in the README.

189 of 337 branches covered (56.08%)

Branch coverage included in aggregate %.

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

928 of 1156 relevant lines covered (80.28%)

18.78 hits per line

Jobs
ID Job ID Ran Files Coverage
1 40493967121.1 27 Oct 2026 11:09AM UTC 59
74.82
GitHub Action Run
Source Files on build 40493967121
  • Tree
  • List 59
  • Changed 8
  • Source Changed 8
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #40493967121
  • c82e3218 on github
  • Prev Build on master (#40491419782)
  • Next Build on master (#40494415506)
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