Packages

ssri

14.0.0 · 8 May 2026ISC47.5M / weekRepositoryHomepagenpmAtom feed

Your version

8.0.0

major18 Feb 2020Where it was published

8.0.1 is the newest release of 8.x.

In short

2 breaking1 new3 fixed

  • Breaking

    SRI values with ../ in the algorithm name now throw as invalid (which they always probably should have!)

  • Breaking

    Adds a new error that will be thrown. Empty SRIs are no longer considered valid for checking, only when using integrityStream to calculate the SRI value.

Security

1 advisory affects 8.0.0; 8.0.1 fixes them

Release note

Breaking changes

  • Breaking

    SRI values with ../ in the algorithm name now throw
    as invalid (which they always probably should have!)

  • Breaking

    Adds a new error that will be thrown. Empty SRIs are
    no longer considered valid for checking, only when using integrityStream
    to calculate the SRI value.

PR-URL: #12
Credit: @claudiahdz

Features

  • Remove figgy-pudding

Bug Fixes

  • Harden SRI parsing against ../ funny business

  • IntegrityStream responds to mutating opts object mid-stream

  • Throw null when sri is empty or bad (a6811cb), closes #12

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.