Skip to content

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

Merged
merged 3 commits into from
Jan 29, 2024

Conversation

jakebailey
Copy link
Member

Fixes #7563 (comment)

Marked this as a major bump given the hash values are changing.

Adds some more tests too; object-hash cannot hash undefined, so I just made it return 0. Feel free to suggest something better.

@jakebailey jakebailey requested a review from zkochan as a code owner January 29, 2024 18:42
@@ -1,13 +1,25 @@
import { hashObject, hashObjectWithoutSorting } from '@pnpm/crypto.object-hasher'

describe('hashObject', () => {
const hash = hashObject
Copy link
Member Author

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'
Copy link
Member Author

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?

@zkochan zkochan merged commit d636eed into pnpm:main Jan 29, 2024
@jakebailey jakebailey deleted the object-hash-redo branch January 29, 2024 19:42
@zkochan
Copy link
Member

zkochan commented Jan 29, 2024

🚢 8.15.1

@jakebailey
Copy link
Member Author

Thank you!

zkochan added a commit to teambit/bit that referenced this pull request Jan 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy