f1d0e2880f1a7dda0812f8eeddb52ef971ab1219a7616613b4c006e75c6f35edcefecb9d0b088168fe173caef5c8d058fc310ab15ffc83cdb2127df82dabfd 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296
  1. # Change Log
  2. All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
  3. <a name="6.0.2"></a>
  4. ## [6.0.2](https://github.com/zkat/ssri/compare/v6.0.1...v6.0.2) (2021-04-07)
  5. ### Bug Fixes
  6. * backport regex change from 8.0.1 ([b30dfdb](https://github.com/zkat/ssri/commit/b30dfdb)), closes [#19](https://github.com/zkat/ssri/issues/19)
  7. <a name="6.0.1"></a>
  8. ## [6.0.1](https://github.com/zkat/ssri/compare/v6.0.0...v6.0.1) (2018-08-27)
  9. ### Bug Fixes
  10. * **opts:** use figgy-pudding to specify consumed opts ([cf86553](https://github.com/zkat/ssri/commit/cf86553))
  11. <a name="6.0.0"></a>
  12. # [6.0.0](https://github.com/zkat/ssri/compare/v5.3.0...v6.0.0) (2018-04-09)
  13. ### Bug Fixes
  14. * **docs:** minor typo ([b71ef17](https://github.com/zkat/ssri/commit/b71ef17))
  15. ### meta
  16. * drop support for node@4 ([d9bf359](https://github.com/zkat/ssri/commit/d9bf359))
  17. ### BREAKING CHANGES
  18. * node@4 is no longer supported
  19. <a name="5.3.0"></a>
  20. # [5.3.0](https://github.com/zkat/ssri/compare/v5.2.4...v5.3.0) (2018-03-13)
  21. ### Features
  22. * **checkData:** optionally throw when checkData fails ([bf26b84](https://github.com/zkat/ssri/commit/bf26b84))
  23. <a name="5.2.4"></a>
  24. ## [5.2.4](https://github.com/zkat/ssri/compare/v5.2.3...v5.2.4) (2018-02-16)
  25. <a name="5.2.3"></a>
  26. ## [5.2.3](https://github.com/zkat/ssri/compare/v5.2.2...v5.2.3) (2018-02-16)
  27. ### Bug Fixes
  28. * **hashes:** filter hash priority list by available hashes ([2fa30b8](https://github.com/zkat/ssri/commit/2fa30b8))
  29. * **integrityStream:** dedupe algorithms to generate ([d56c654](https://github.com/zkat/ssri/commit/d56c654))
  30. <a name="5.2.2"></a>
  31. ## [5.2.2](https://github.com/zkat/ssri/compare/v5.2.1...v5.2.2) (2018-02-14)
  32. ### Bug Fixes
  33. * **security:** tweak strict SRI regex ([#10](https://github.com/zkat/ssri/issues/10)) ([d0ebcdc](https://github.com/zkat/ssri/commit/d0ebcdc))
  34. <a name="5.2.1"></a>
  35. ## [5.2.1](https://github.com/zkat/ssri/compare/v5.2.0...v5.2.1) (2018-02-06)
  36. <a name="5.2.0"></a>
  37. # [5.2.0](https://github.com/zkat/ssri/compare/v5.1.0...v5.2.0) (2018-02-06)
  38. ### Features
  39. * **match:** add integrity.match() ([3c49cc4](https://github.com/zkat/ssri/commit/3c49cc4))
  40. <a name="5.1.0"></a>
  41. # [5.1.0](https://github.com/zkat/ssri/compare/v5.0.0...v5.1.0) (2018-01-18)
  42. ### Bug Fixes
  43. * **checkStream:** integrityStream now takes opts.integrity algos into account ([d262910](https://github.com/zkat/ssri/commit/d262910))
  44. ### Features
  45. * **sha3:** do some guesswork about upcoming sha3 ([7fdd9df](https://github.com/zkat/ssri/commit/7fdd9df))
  46. <a name="5.0.0"></a>
  47. # [5.0.0](https://github.com/zkat/ssri/compare/v4.1.6...v5.0.0) (2017-10-23)
  48. ### Features
  49. * **license:** relicense to ISC (#9) ([c82983a](https://github.com/zkat/ssri/commit/c82983a))
  50. ### BREAKING CHANGES
  51. * **license:** the license has been changed from CC0-1.0 to ISC.
  52. <a name="4.1.6"></a>
  53. ## [4.1.6](https://github.com/zkat/ssri/compare/v4.1.5...v4.1.6) (2017-06-07)
  54. ### Bug Fixes
  55. * **checkStream:** make sure to pass all opts through ([0b1bcbe](https://github.com/zkat/ssri/commit/0b1bcbe))
  56. <a name="4.1.5"></a>
  57. ## [4.1.5](https://github.com/zkat/ssri/compare/v4.1.4...v4.1.5) (2017-06-05)
  58. ### Bug Fixes
  59. * **integrityStream:** stop crashing if opts.algorithms and opts.integrity have an algo mismatch ([fb1293e](https://github.com/zkat/ssri/commit/fb1293e))
  60. <a name="4.1.4"></a>
  61. ## [4.1.4](https://github.com/zkat/ssri/compare/v4.1.3...v4.1.4) (2017-05-31)
  62. ### Bug Fixes
  63. * **node:** older versions of node[@4](https://github.com/4) do not support base64buffer string parsing ([513df4e](https://github.com/zkat/ssri/commit/513df4e))
  64. <a name="4.1.3"></a>
  65. ## [4.1.3](https://github.com/zkat/ssri/compare/v4.1.2...v4.1.3) (2017-05-24)
  66. ### Bug Fixes
  67. * **check:** handle various bad hash corner cases better ([c2c262b](https://github.com/zkat/ssri/commit/c2c262b))
  68. <a name="4.1.2"></a>
  69. ## [4.1.2](https://github.com/zkat/ssri/compare/v4.1.1...v4.1.2) (2017-04-18)
  70. ### Bug Fixes
  71. * **stream:** _flush can be called multiple times. use on("end") ([b1c4805](https://github.com/zkat/ssri/commit/b1c4805))
  72. <a name="4.1.1"></a>
  73. ## [4.1.1](https://github.com/zkat/ssri/compare/v4.1.0...v4.1.1) (2017-04-12)
  74. ### Bug Fixes
  75. * **pickAlgorithm:** error if pickAlgorithm() is used in an empty Integrity ([fab470e](https://github.com/zkat/ssri/commit/fab470e))
  76. <a name="4.1.0"></a>
  77. # [4.1.0](https://github.com/zkat/ssri/compare/v4.0.0...v4.1.0) (2017-04-07)
  78. ### Features
  79. * adding ssri.create for a crypto style interface (#2) ([96f52ad](https://github.com/zkat/ssri/commit/96f52ad))
  80. <a name="4.0.0"></a>
  81. # [4.0.0](https://github.com/zkat/ssri/compare/v3.0.2...v4.0.0) (2017-04-03)
  82. ### Bug Fixes
  83. * **integrity:** should have changed the error code before. oops ([8381afa](https://github.com/zkat/ssri/commit/8381afa))
  84. ### BREAKING CHANGES
  85. * **integrity:** EBADCHECKSUM -> EINTEGRITY for verification errors
  86. <a name="3.0.2"></a>
  87. ## [3.0.2](https://github.com/zkat/ssri/compare/v3.0.1...v3.0.2) (2017-04-03)
  88. <a name="3.0.1"></a>
  89. ## [3.0.1](https://github.com/zkat/ssri/compare/v3.0.0...v3.0.1) (2017-04-03)
  90. ### Bug Fixes
  91. * **package.json:** really should have these in the keywords because search ([a6ac6d0](https://github.com/zkat/ssri/commit/a6ac6d0))
  92. <a name="3.0.0"></a>
  93. # [3.0.0](https://github.com/zkat/ssri/compare/v2.0.0...v3.0.0) (2017-04-03)
  94. ### Bug Fixes
  95. * **hashes:** IntegrityMetadata -> Hash ([d04aa1f](https://github.com/zkat/ssri/commit/d04aa1f))
  96. ### Features
  97. * **check:** return IntegrityMetadata on check success ([2301e74](https://github.com/zkat/ssri/commit/2301e74))
  98. * **fromHex:** ssri.fromHex to make it easier to generate them from hex valus ([049b89e](https://github.com/zkat/ssri/commit/049b89e))
  99. * **hex:** utility function for getting hex version of digest ([a9f021c](https://github.com/zkat/ssri/commit/a9f021c))
  100. * **hexDigest:** added hexDigest method to Integrity objects too ([85208ba](https://github.com/zkat/ssri/commit/85208ba))
  101. * **integrity:** add .isIntegrity and .isIntegrityMetadata ([1b29e6f](https://github.com/zkat/ssri/commit/1b29e6f))
  102. * **integrityStream:** new stream that can both generate and check streamed data ([fd23e1b](https://github.com/zkat/ssri/commit/fd23e1b))
  103. * **parse:** allow parsing straight into a single IntegrityMetadata object ([c8ddf48](https://github.com/zkat/ssri/commit/c8ddf48))
  104. * **pickAlgorithm:** Intergrity#pickAlgorithm() added ([b97a796](https://github.com/zkat/ssri/commit/b97a796))
  105. * **size:** calculate and update stream sizes ([02ed1ad](https://github.com/zkat/ssri/commit/02ed1ad))
  106. ### BREAKING CHANGES
  107. * **hashes:** `.isIntegrityMetadata` is now `.isHash`. Also, any references to `IntegrityMetadata` now refer to `Hash`.
  108. * **integrityStream:** createCheckerStream has been removed and replaced with a general-purpose integrityStream.
  109. To convert existing createCheckerStream code, move the `sri` argument into `opts.integrity` in integrityStream. All other options should be the same.
  110. * **check:** `checkData`, `checkStream`, and `createCheckerStream` now yield a whole IntegrityMetadata instance representing the first successful hash match.
  111. <a name="2.0.0"></a>
  112. # [2.0.0](https://github.com/zkat/ssri/compare/v1.0.0...v2.0.0) (2017-03-24)
  113. ### Bug Fixes
  114. * **strict-mode:** make regexes more rigid ([122a32c](https://github.com/zkat/ssri/commit/122a32c))
  115. ### Features
  116. * **api:** added serialize alias for unparse ([999b421](https://github.com/zkat/ssri/commit/999b421))
  117. * **concat:** add Integrity#concat() ([cae12c7](https://github.com/zkat/ssri/commit/cae12c7))
  118. * **pickAlgo:** pick the strongest algorithm provided, by default ([58c18f7](https://github.com/zkat/ssri/commit/58c18f7))
  119. * **strict-mode:** strict SRI support ([3f0b64c](https://github.com/zkat/ssri/commit/3f0b64c))
  120. * **stringify:** replaced unparse/serialize with stringify ([4acad30](https://github.com/zkat/ssri/commit/4acad30))
  121. * **verification:** add opts.pickAlgorithm ([f72e658](https://github.com/zkat/ssri/commit/f72e658))
  122. ### BREAKING CHANGES
  123. * **pickAlgo:** ssri will prioritize specific hashes now
  124. * **stringify:** serialize and unparse have been removed. Use ssri.stringify instead.
  125. * **strict-mode:** functions that accepted an optional `sep` argument now expect `opts.sep`.
  126. <a name="1.0.0"></a>
  127. # 1.0.0 (2017-03-23)
  128. ### Features
  129. * **api:** implemented initial api ([4fbb16b](https://github.com/zkat/ssri/commit/4fbb16b))
  130. ### BREAKING CHANGES
  131. * **api:** Initial API established.