Closed kachkaev closed 9 months ago
Does v3 break compatibility with hashes?
Yes, v3.x generates different hashes but is otherwise compatible.
Feel free to open a PR.
@addaleax can you please explain what do you mean by "different hashes"?
// V2
hash({foo: 'bar'}) // => '67b69634f9880a282c14a0f0cb7ba20cf5d677e9'
// V3
hash({foo: 'bar'}) // => 'diferent hash' ????????????
So, sha1 in v2 is not same in v3?
@JaLe29 check https://github.com/puleos/object-hash/pull/114 — previous version wasn't distinguishing between typed arrays
It's better not to release a breaking change than to release it with zero (changelog) documentation.
👋 This issue is a new instance of https://github.com/puleos/object-hash/issues/87. v3.0.0 was released recently but README → Changelog only mentions 2.0.0:
Although it is possible to look at git log and find https://github.com/puleos/object-hash/pull/114, it is probably too much of a detour for such a popular library 🙂