Skip to content

chore: update dependency husky to v9.1.7 #5454

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented May 7, 2025

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
husky 9.0.11 -> 9.1.7 age adoption passing confidence

Release Notes

typicode/husky (husky)

v9.1.7

Compare Source

What's Changed

New Contributors

Full Changelog: typicode/husky@v9.1.6...v9.1.7

v9.1.6

Compare Source

What's Changed

New Contributors

Full Changelog: typicode/husky@v9.1.5...v9.1.6

v9.1.5

Compare Source

What's Changed

New Contributors

Full Changelog: typicode/husky@v9.1.4...v9.1.5

v9.1.4

Compare Source

  • Improve deprecation notice

v9.1.3

Compare Source

  • fix: better handle space in PATH

v9.1.2

Compare Source

Show a message instead of automatically removing deprecated code.

This only concerns projects that still have the following code in their hooks:

- #!/usr/bin/env sh # <- This is deprecated, remove it
- . "$(dirname -- "$0")/_/husky.sh"  # <- This is deprecated, remove it

### Rest of your hook code

Hooks with these lines will fail in v10.0.0

v9.1.1

Compare Source

Super saiyan god dog! It's over 9.0.0!

What's new

You can now run package commands directly, no need for npx or equivalents.
It makes writing hooks more intuitive and is also slightly faster 🐺⚡️

### .husky/pre-commit
- npx jest
+ jest # ~0.2s faster

A new recipe has been added to the docs. Lint staged files without external dependencies (inspired by Prettier docs). Feel free to modify it.

### .husky/pre-commit
prettier $(git diff --cached --name-only --diff-filter=ACMR | sed 's| |\\ |g') --write --ignore-unknown
git update-index --again

For more advanced use cases, see lint-staged.

Fixes

  • bunx husky init command
  • Workaround for some hooks implementation on Windows

Deprecations

  • #!/usr/bin/env sh and . "$(dirname -- "$0")/_/husky.sh" are deprecated. husky command will automatically remove them, no action required.
  • If you're having code in ~/.huskyrc please move it to .config/husky/init.sh

Support for these will be removed in v10.

Friendly reminder

If Git hooks don't fit your workflow, you can disable Husky globally. Just add export HUSKY=0 to .config/husky/init.sh.

I've seen some confusion about this on X, so just a heads-up!

Sponsoring

Husky is downloaded over 45M times per month and used by ~1.5M projects. If your company wants to sponsor, you can do so here: GitHub Sponsors.

Have a nice summer ☀️ I'm open to new opportunities/consulting so feel free to drop me a message 😉

v9.1.0

Compare Source


Configuration

📅 Schedule: Branch creation - "after 12pm on thursday" in timezone America/Los_Angeles, Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot requested a review from a team as a code owner May 7, 2025 14:10
@renovate renovate bot added the dependencies Pull requests that update a dependency file label May 7, 2025
Copy link

changeset-bot bot commented May 7, 2025

⚠️ No Changeset found

Latest commit: f03dd4b

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link

github-actions bot commented May 7, 2025

Branch preview

Review the following VRT differences

When a visual regression test fails (or has previously failed while working on this branch), its results can be found in the following URLs:

If the changes are expected, update the current_golden_images_cache hash in the circleci config to accept the new images. Instructions are included in that file.
If the changes are unexpected, you can investigate the cause of the differences and update the code accordingly.

Copy link

github-actions bot commented May 7, 2025

Tachometer results

Currently, no packages are changed by this PR...

@renovate renovate bot force-pushed the renovate/husky-9.x-lockfile branch from af5e7af to 40d764b Compare May 7, 2025 14:58
@castastrophe castastrophe force-pushed the renovate/husky-9.x-lockfile branch from 40d764b to f7374e2 Compare May 7, 2025 15:09
@renovate renovate bot force-pushed the renovate/husky-9.x-lockfile branch 2 times, most recently from abb18b3 to 6c96c12 Compare May 7, 2025 18:31
Copy link
Collaborator

@castastrophe castastrophe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Validated this locally and didn't identify any regressions.

@castastrophe castastrophe enabled auto-merge (rebase) May 7, 2025 20:46
@renovate renovate bot force-pushed the renovate/husky-9.x-lockfile branch from 6c96c12 to 5ec4e13 Compare May 7, 2025 22:07
@caseyisonit
Copy link
Contributor

Im not seeing changes to the package.json in this one... should there be a change there?

@renovate renovate bot force-pushed the renovate/husky-9.x-lockfile branch 2 times, most recently from 2e7ec31 to e5fef5d Compare May 8, 2025 21:34
@castastrophe
Copy link
Collaborator

Im not seeing changes to the package.json in this one... should there be a change there?

In this case it won't update the package.json because this bump falls within the caret approach that's there. It's just bumping it in the lockfile. That does kind of accomplish the same thing in getting us all on the latest version but maybe renovate has an option where we can force it to bump the package?

@castastrophe castastrophe force-pushed the renovate/husky-9.x-lockfile branch from e5fef5d to 800445a Compare May 9, 2025 15:02
@renovate renovate bot force-pushed the renovate/husky-9.x-lockfile branch 2 times, most recently from 0418369 to 977c662 Compare May 9, 2025 15:15
@renovate renovate bot force-pushed the renovate/husky-9.x-lockfile branch from 977c662 to f03dd4b Compare May 9, 2025 21:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file ready-for-review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants