1# Change Log 2 3All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. 4 5<a name="6.0.2"></a> 6## [6.0.2](https://github.com/zkat/ssri/compare/v6.0.1...v6.0.2) (2021-04-07) 7 8 9### Bug Fixes 10 11* backport regex change from 8.0.1 ([b30dfdb](https://github.com/zkat/ssri/commit/b30dfdb)), closes [#19](https://github.com/zkat/ssri/issues/19) 12 13 14 15<a name="6.0.1"></a> 16## [6.0.1](https://github.com/zkat/ssri/compare/v6.0.0...v6.0.1) (2018-08-27) 17 18 19### Bug Fixes 20 21* **opts:** use figgy-pudding to specify consumed opts ([cf86553](https://github.com/zkat/ssri/commit/cf86553)) 22 23 24 25<a name="6.0.0"></a> 26# [6.0.0](https://github.com/zkat/ssri/compare/v5.3.0...v6.0.0) (2018-04-09) 27 28 29### Bug Fixes 30 31* **docs:** minor typo ([b71ef17](https://github.com/zkat/ssri/commit/b71ef17)) 32 33 34### meta 35 36* drop support for node@4 ([d9bf359](https://github.com/zkat/ssri/commit/d9bf359)) 37 38 39### BREAKING CHANGES 40 41* node@4 is no longer supported 42 43 44 45<a name="5.3.0"></a> 46# [5.3.0](https://github.com/zkat/ssri/compare/v5.2.4...v5.3.0) (2018-03-13) 47 48 49### Features 50 51* **checkData:** optionally throw when checkData fails ([bf26b84](https://github.com/zkat/ssri/commit/bf26b84)) 52 53 54 55<a name="5.2.4"></a> 56## [5.2.4](https://github.com/zkat/ssri/compare/v5.2.3...v5.2.4) (2018-02-16) 57 58 59 60<a name="5.2.3"></a> 61## [5.2.3](https://github.com/zkat/ssri/compare/v5.2.2...v5.2.3) (2018-02-16) 62 63 64### Bug Fixes 65 66* **hashes:** filter hash priority list by available hashes ([2fa30b8](https://github.com/zkat/ssri/commit/2fa30b8)) 67* **integrityStream:** dedupe algorithms to generate ([d56c654](https://github.com/zkat/ssri/commit/d56c654)) 68 69 70 71<a name="5.2.2"></a> 72## [5.2.2](https://github.com/zkat/ssri/compare/v5.2.1...v5.2.2) (2018-02-14) 73 74 75### Bug Fixes 76 77* **security:** tweak strict SRI regex ([#10](https://github.com/zkat/ssri/issues/10)) ([d0ebcdc](https://github.com/zkat/ssri/commit/d0ebcdc)) 78 79 80 81<a name="5.2.1"></a> 82## [5.2.1](https://github.com/zkat/ssri/compare/v5.2.0...v5.2.1) (2018-02-06) 83 84 85 86<a name="5.2.0"></a> 87# [5.2.0](https://github.com/zkat/ssri/compare/v5.1.0...v5.2.0) (2018-02-06) 88 89 90### Features 91 92* **match:** add integrity.match() ([3c49cc4](https://github.com/zkat/ssri/commit/3c49cc4)) 93 94 95 96<a name="5.1.0"></a> 97# [5.1.0](https://github.com/zkat/ssri/compare/v5.0.0...v5.1.0) (2018-01-18) 98 99 100### Bug Fixes 101 102* **checkStream:** integrityStream now takes opts.integrity algos into account ([d262910](https://github.com/zkat/ssri/commit/d262910)) 103 104 105### Features 106 107* **sha3:** do some guesswork about upcoming sha3 ([7fdd9df](https://github.com/zkat/ssri/commit/7fdd9df)) 108 109 110 111<a name="5.0.0"></a> 112# [5.0.0](https://github.com/zkat/ssri/compare/v4.1.6...v5.0.0) (2017-10-23) 113 114 115### Features 116 117* **license:** relicense to ISC (#9) ([c82983a](https://github.com/zkat/ssri/commit/c82983a)) 118 119 120### BREAKING CHANGES 121 122* **license:** the license has been changed from CC0-1.0 to ISC. 123 124 125 126<a name="4.1.6"></a> 127## [4.1.6](https://github.com/zkat/ssri/compare/v4.1.5...v4.1.6) (2017-06-07) 128 129 130### Bug Fixes 131 132* **checkStream:** make sure to pass all opts through ([0b1bcbe](https://github.com/zkat/ssri/commit/0b1bcbe)) 133 134 135 136<a name="4.1.5"></a> 137## [4.1.5](https://github.com/zkat/ssri/compare/v4.1.4...v4.1.5) (2017-06-05) 138 139 140### Bug Fixes 141 142* **integrityStream:** stop crashing if opts.algorithms and opts.integrity have an algo mismatch ([fb1293e](https://github.com/zkat/ssri/commit/fb1293e)) 143 144 145 146<a name="4.1.4"></a> 147## [4.1.4](https://github.com/zkat/ssri/compare/v4.1.3...v4.1.4) (2017-05-31) 148 149 150### Bug Fixes 151 152* **node:** older versions of node[@4](https://github.com/4) do not support base64buffer string parsing ([513df4e](https://github.com/zkat/ssri/commit/513df4e)) 153 154 155 156<a name="4.1.3"></a> 157## [4.1.3](https://github.com/zkat/ssri/compare/v4.1.2...v4.1.3) (2017-05-24) 158 159 160### Bug Fixes 161 162* **check:** handle various bad hash corner cases better ([c2c262b](https://github.com/zkat/ssri/commit/c2c262b)) 163 164 165 166<a name="4.1.2"></a> 167## [4.1.2](https://github.com/zkat/ssri/compare/v4.1.1...v4.1.2) (2017-04-18) 168 169 170### Bug Fixes 171 172* **stream:** _flush can be called multiple times. use on("end") ([b1c4805](https://github.com/zkat/ssri/commit/b1c4805)) 173 174 175 176<a name="4.1.1"></a> 177## [4.1.1](https://github.com/zkat/ssri/compare/v4.1.0...v4.1.1) (2017-04-12) 178 179 180### Bug Fixes 181 182* **pickAlgorithm:** error if pickAlgorithm() is used in an empty Integrity ([fab470e](https://github.com/zkat/ssri/commit/fab470e)) 183 184 185 186<a name="4.1.0"></a> 187# [4.1.0](https://github.com/zkat/ssri/compare/v4.0.0...v4.1.0) (2017-04-07) 188 189 190### Features 191 192* adding ssri.create for a crypto style interface (#2) ([96f52ad](https://github.com/zkat/ssri/commit/96f52ad)) 193 194 195 196<a name="4.0.0"></a> 197# [4.0.0](https://github.com/zkat/ssri/compare/v3.0.2...v4.0.0) (2017-04-03) 198 199 200### Bug Fixes 201 202* **integrity:** should have changed the error code before. oops ([8381afa](https://github.com/zkat/ssri/commit/8381afa)) 203 204 205### BREAKING CHANGES 206 207* **integrity:** EBADCHECKSUM -> EINTEGRITY for verification errors 208 209 210 211<a name="3.0.2"></a> 212## [3.0.2](https://github.com/zkat/ssri/compare/v3.0.1...v3.0.2) (2017-04-03) 213 214 215 216<a name="3.0.1"></a> 217## [3.0.1](https://github.com/zkat/ssri/compare/v3.0.0...v3.0.1) (2017-04-03) 218 219 220### Bug Fixes 221 222* **package.json:** really should have these in the keywords because search ([a6ac6d0](https://github.com/zkat/ssri/commit/a6ac6d0)) 223 224 225 226<a name="3.0.0"></a> 227# [3.0.0](https://github.com/zkat/ssri/compare/v2.0.0...v3.0.0) (2017-04-03) 228 229 230### Bug Fixes 231 232* **hashes:** IntegrityMetadata -> Hash ([d04aa1f](https://github.com/zkat/ssri/commit/d04aa1f)) 233 234 235### Features 236 237* **check:** return IntegrityMetadata on check success ([2301e74](https://github.com/zkat/ssri/commit/2301e74)) 238* **fromHex:** ssri.fromHex to make it easier to generate them from hex valus ([049b89e](https://github.com/zkat/ssri/commit/049b89e)) 239* **hex:** utility function for getting hex version of digest ([a9f021c](https://github.com/zkat/ssri/commit/a9f021c)) 240* **hexDigest:** added hexDigest method to Integrity objects too ([85208ba](https://github.com/zkat/ssri/commit/85208ba)) 241* **integrity:** add .isIntegrity and .isIntegrityMetadata ([1b29e6f](https://github.com/zkat/ssri/commit/1b29e6f)) 242* **integrityStream:** new stream that can both generate and check streamed data ([fd23e1b](https://github.com/zkat/ssri/commit/fd23e1b)) 243* **parse:** allow parsing straight into a single IntegrityMetadata object ([c8ddf48](https://github.com/zkat/ssri/commit/c8ddf48)) 244* **pickAlgorithm:** Intergrity#pickAlgorithm() added ([b97a796](https://github.com/zkat/ssri/commit/b97a796)) 245* **size:** calculate and update stream sizes ([02ed1ad](https://github.com/zkat/ssri/commit/02ed1ad)) 246 247 248### BREAKING CHANGES 249 250* **hashes:** `.isIntegrityMetadata` is now `.isHash`. Also, any references to `IntegrityMetadata` now refer to `Hash`. 251* **integrityStream:** createCheckerStream has been removed and replaced with a general-purpose integrityStream. 252 253To convert existing createCheckerStream code, move the `sri` argument into `opts.integrity` in integrityStream. All other options should be the same. 254* **check:** `checkData`, `checkStream`, and `createCheckerStream` now yield a whole IntegrityMetadata instance representing the first successful hash match. 255 256 257 258<a name="2.0.0"></a> 259# [2.0.0](https://github.com/zkat/ssri/compare/v1.0.0...v2.0.0) (2017-03-24) 260 261 262### Bug Fixes 263 264* **strict-mode:** make regexes more rigid ([122a32c](https://github.com/zkat/ssri/commit/122a32c)) 265 266 267### Features 268 269* **api:** added serialize alias for unparse ([999b421](https://github.com/zkat/ssri/commit/999b421)) 270* **concat:** add Integrity#concat() ([cae12c7](https://github.com/zkat/ssri/commit/cae12c7)) 271* **pickAlgo:** pick the strongest algorithm provided, by default ([58c18f7](https://github.com/zkat/ssri/commit/58c18f7)) 272* **strict-mode:** strict SRI support ([3f0b64c](https://github.com/zkat/ssri/commit/3f0b64c)) 273* **stringify:** replaced unparse/serialize with stringify ([4acad30](https://github.com/zkat/ssri/commit/4acad30)) 274* **verification:** add opts.pickAlgorithm ([f72e658](https://github.com/zkat/ssri/commit/f72e658)) 275 276 277### BREAKING CHANGES 278 279* **pickAlgo:** ssri will prioritize specific hashes now 280* **stringify:** serialize and unparse have been removed. Use ssri.stringify instead. 281* **strict-mode:** functions that accepted an optional `sep` argument now expect `opts.sep`. 282 283 284 285<a name="1.0.0"></a> 286# 1.0.0 (2017-03-23) 287 288 289### Features 290 291* **api:** implemented initial api ([4fbb16b](https://github.com/zkat/ssri/commit/4fbb16b)) 292 293 294### BREAKING CHANGES 295 296* **api:** Initial API established. 297