changelogs.md


zkat/ssri

Repository  -  API  -  Source

6.0.1

August 27, 2018

Bug Fixes

  • opts: use figgy-pudding to specify consumed opts (cf86553)

6.0.0

April 9, 2018

Bug Fixes

meta

  • drop support for node@4 (d9bf359)

BREAKING CHANGES

  • node@4 is no longer supported

5.3.0

March 13, 2018

Features

  • checkData: optionally throw when checkData fails (bf26b84)

5.2.4

February 16, 2018

5.2.3

February 16, 2018

Bug Fixes

  • hashes: filter hash priority list by available hashes (2fa30b8)
  • integrityStream: dedupe algorithms to generate (d56c654)

5.2.2

February 14, 2018

Bug Fixes

  • security: tweak strict SRI regex (#10) (d0ebcdc)

5.2.1

February 6, 2018

5.2.0

February 6, 2018

Features

  • match: add integrity.match() (3c49cc4)

5.1.0

January 18, 2018

Bug Fixes

  • checkStream: integrityStream now takes opts.integrity algos into account (d262910)

Features

  • sha3: do some guesswork about upcoming sha3 (7fdd9df)

5.0.0

October 23, 2017

Features

  • license: relicense to ISC (#9) (c82983a)

BREAKING CHANGES

  • license: the license has been changed from CC0-1.0 to ISC.

4.1.6

June 7, 2017

Bug Fixes

  • checkStream: make sure to pass all opts through (0b1bcbe)

4.1.5

June 5, 2017

Bug Fixes

  • integrityStream: stop crashing if opts.algorithms and opts.integrity have an algo mismatch (fb1293e)

4.1.4

May 31, 2017

Bug Fixes

  • node: older versions of node@4 do not support base64buffer string parsing (513df4e)

4.1.3

May 24, 2017

Bug Fixes

  • check: handle various bad hash corner cases better (c2c262b)

4.1.2

April 18, 2017

Bug Fixes

  • stream: _flush can be called multiple times. use on("end") (b1c4805)

4.1.1

April 12, 2017

Bug Fixes

  • pickAlgorithm: error if pickAlgorithm() is used in an empty Integrity (fab470e)

4.1.0

April 7, 2017

Features

  • adding ssri.create for a crypto style interface (#2) (96f52ad)

4.0.0

April 3, 2017

Bug Fixes

  • integrity: should have changed the error code before. oops (8381afa)

BREAKING CHANGES

  • integrity: EBADCHECKSUM -> EINTEGRITY for verification errors

3.0.2

April 3, 2017

3.0.1

April 3, 2017

Bug Fixes

  • package.json: really should have these in the keywords because search (a6ac6d0)

3.0.0

April 3, 2017

Bug Fixes

  • hashes: IntegrityMetadata -> Hash (d04aa1f)

Features

  • check: return IntegrityMetadata on check success (2301e74)
  • fromHex: ssri.fromHex to make it easier to generate them from hex valus (049b89e)
  • hex: utility function for getting hex version of digest (a9f021c)
  • hexDigest: added hexDigest method to Integrity objects too (85208ba)
  • integrity: add .isIntegrity and .isIntegrityMetadata (1b29e6f)
  • integrityStream: new stream that can both generate and check streamed data (fd23e1b)
  • parse: allow parsing straight into a single IntegrityMetadata object (c8ddf48)
  • pickAlgorithm: Intergrity#pickAlgorithm() added (b97a796)
  • size: calculate and update stream sizes (02ed1ad)

BREAKING CHANGES

  • hashes: .isIntegrityMetadata is now .isHash. Also, any references to IntegrityMetadata now refer to Hash.
  • integrityStream: createCheckerStream has been removed and replaced with a general-purpose integrityStream.

To convert existing createCheckerStream code, move the sri argument into opts.integrity in integrityStream. All other options should be the same.

  • check: checkData, checkStream, and createCheckerStream now yield a whole IntegrityMetadata instance representing the first successful hash match.

2.0.0

March 24, 2017

Bug Fixes

  • strict-mode: make regexes more rigid (122a32c)

Features

  • api: added serialize alias for unparse (999b421)
  • concat: add Integrity#concat() (cae12c7)
  • pickAlgo: pick the strongest algorithm provided, by default (58c18f7)
  • strict-mode: strict SRI support (3f0b64c)
  • stringify: replaced unparse/serialize with stringify (4acad30)
  • verification: add opts.pickAlgorithm (f72e658)

BREAKING CHANGES

  • pickAlgo: ssri will prioritize specific hashes now
  • stringify: serialize and unparse have been removed. Use ssri.stringify instead.
  • strict-mode: functions that accepted an optional sep argument now expect opts.sep.

1.0.0

March 23, 2017

Features

  • api: implemented initial api (4fbb16b)

BREAKING CHANGES

  • api: Initial API established.