-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
fix(object-hasher): switch to object-hash to fix hashing of large objects #7591
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
3d990f3
to
d4af3df
Compare
@@ -1,13 +1,25 @@ | |||
import { hashObject, hashObjectWithoutSorting } from '@pnpm/crypto.object-hasher' | |||
|
|||
describe('hashObject', () => { | |||
const hash = hashObject |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is just to make copy/pasting tests easier. I made mistakes while writing the tests until I realized I was testing the wrong function.
@@ -18154,5 +18161,7 @@ packages: | |||
dev: false | |||
|
|||
time: | |||
/@types/object-hash@3.0.6: '2023-11-07T12:14:41.852Z' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I... don't know why these are showing up in the lockfile?
🚢 8.15.1 |
Thank you! |
## Proposed Changes - pnpm/pnpm#7583 - pnpm/pnpm#7563 - pnpm/pnpm#7591
Fixes #7563 (comment)
Marked this as a major bump given the hash values are changing.
Adds some more tests too;
object-hash
cannot hashundefined
, so I just made it return0
. Feel free to suggest something better.