Skip to content

Cleanup PR#160

Merged
wraithgar merged 2 commits intomainfrom
gar/cleanup
Dec 16, 2025
Merged

Cleanup PR#160
wraithgar merged 2 commits intomainfrom
gar/cleanup

Conversation

@wraithgar
Copy link
Member

@wraithgar wraithgar commented Dec 15, 2025

This is two changes in one PR.

It cleans up comments and removes some unreachable code. These were safeguards with no way to test. If somehow there comes a way to test them we can add them again but for now they're impossible.

Also, it adds a filter to hashes for real algorithms. Strict mode still limits based on the spec, but this limits on reality. These hashes are impossible to validate and thus shouldn't be made. We can discuss if this is actually a breaking change but in my view "prevent impossible hashes from being created" is not a breaking change.

@wraithgar wraithgar requested a review from a team as a code owner December 15, 2025 18:00
@wraithgar
Copy link
Member Author

wraithgar commented Dec 15, 2025

@H4ad just wanted to give you a heads up that these benchmark files are being added. I linked to the PRs where you first introduced these at the top of each of them but if you want to add them yourself for the full git blame credit I'm happy to let you do that.

@H4ad H4ad mentioned this pull request Dec 15, 2025
@H4ad
Copy link
Contributor

H4ad commented Dec 15, 2025

Thanks for reaching out, I cherry pick and joined both changes in one commit, #161

wraithgar pushed a commit that referenced this pull request Dec 16, 2025
Reference:
- #71
- #72
- #75
- #76

Started by #160
Mostly in-lining comments.  There were a few cases where impossible cases were being guarded against.  Those were removed.
@wraithgar wraithgar merged commit eb83316 into main Dec 16, 2025
19 of 20 checks passed
@wraithgar wraithgar deleted the gar/cleanup branch December 16, 2025 18:46
@github-actions github-actions bot mentioned this pull request Dec 16, 2025
wraithgar pushed a commit that referenced this pull request Feb 9, 2026
🤖 I have created a release *beep* *boop*
---


## [13.0.1](v13.0.0...v13.0.1)
(2025-12-16)
### Bug Fixes
*
[`eb83316`](eb83316)
[#160](#160) hash: filter on known
hashes (@wraithgar)
*
[`5b98568`](5b98568)
[#160](#160) code cleanup (@wraithgar)
### Chores
*
[`940288e`](940288e)
[#163](#163) remove tap (@owlstronaut)
*
[`26e09b8`](26e09b8)
[#163](#163) move to node:test
(@owlstronaut)
*
[`5ca3f4a`](5ca3f4a)
[#161](#161) add benchmarks (#161)
(@H4ad)
*
[`cf69694`](cf69694)
[#156](#156) bump @npmcli/eslint-config
from 5.1.0 to 6.0.0 (#156) (@dependabot[bot])
*
[`05ce2c5`](05ce2c5)
[#158](#158) bump @npmcli/template-oss
from 4.28.0 to 4.28.1 (#158) (@dependabot[bot], @npm-cli-bot)

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
wraithgar added a commit to npm/pacote that referenced this pull request Feb 10, 2026
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.

3 participants