Skip to content
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

chore(deps): update dependency husky to v9.1.2 #105

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

Conversation

rb-org-bot[bot]
Copy link
Contributor

@rb-org-bot rb-org-bot bot commented Jul 17, 2024

This PR contains the following updates:

Package Type Update Change
husky devDependencies minor 9.0.11 -> 9.1.2

Release Notes

typicode/husky (husky)

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 - At any time (no schedule defined), Automerge - At any time (no schedule defined).

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

Rebasing: Whenever PR becomes conflicted, 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 has been generated by Renovate Bot.

@rb-org-bot rb-org-bot bot requested a review from RBusarow as a code owner July 17, 2024 16:07
Copy link

@mergify mergify bot left a comment

Choose a reason for hiding this comment

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

Automatically approving bot pull request

@rb-org-bot rb-org-bot bot changed the title chore(deps): update dependency husky to v9.1.0 chore(deps): update dependency husky to v9.1.0 - autoclosed Jul 18, 2024
@rb-org-bot rb-org-bot bot closed this Jul 18, 2024
@rb-org-bot rb-org-bot bot deleted the github-renovate/husky-9.x branch July 18, 2024 12:10
@rb-org-bot rb-org-bot bot restored the github-renovate/husky-9.x branch July 18, 2024 16:06
@rb-org-bot rb-org-bot bot changed the title chore(deps): update dependency husky to v9.1.0 - autoclosed chore(deps): update dependency husky to v9.1.0 Jul 18, 2024
@rb-org-bot rb-org-bot bot reopened this Jul 18, 2024
@rb-org-bot rb-org-bot bot force-pushed the github-renovate/husky-9.x branch from 03ff030 to f74e210 Compare July 18, 2024 20:06
@rb-org-bot rb-org-bot bot changed the title chore(deps): update dependency husky to v9.1.0 chore(deps): update dependency husky to v9.1.1 Jul 18, 2024
@rb-org-bot rb-org-bot bot force-pushed the github-renovate/husky-9.x branch 2 times, most recently from 764a174 to f91eaf0 Compare July 22, 2024 12:17
@rb-org-bot rb-org-bot bot force-pushed the github-renovate/husky-9.x branch from f91eaf0 to 971e157 Compare July 25, 2024 16:07
@rb-org-bot rb-org-bot bot changed the title chore(deps): update dependency husky to v9.1.1 chore(deps): update dependency husky to v9.1.2 Jul 25, 2024
@rb-org-bot
Copy link
Contributor Author

rb-org-bot bot commented Jul 25, 2024

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.

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.

0 participants