renovate #4

Merged
root merged 1 commits from renovate into master 2024-07-17 17:25:19 +00:00
Contributor

npm

husky

  • ^9.0.11 => ^9.1.0 (dvf)

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

  • Remove #!/usr/bin/env sh and . "$(dirname -- "$0")/_/husky.sh" from your hooks
  • Move your code from ~/.huskyrc to .config/husky/init.sh

Support for these will be removed in v10, notices have been added.

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 😉

<h1>npm</h1> <h2>husky</h2> <ul> <li> ^9.0.11 => ^9.1.0 (dvf)</li> </ul> > <p> > <img src="https://github.com/user-attachments/assets/72a03e68-e9c3-4644-94f9-d5ceb343aca5" height="500px" alt="" /> > </p> > <p><em>Super saiyan <del>god</del> dog! It&#39;s over 9.0.0!</em></p> > <h1>What&#39;s new</h1> > <p>You can now run package commands directly, no need for <code>npx</code> or equivalents.<br>It makes writing hooks more intuitive and is also slightly faster 🐺⚡️</p> > <pre><code class="language-diff"># .husky/pre-commit > - npx jest > + jest # ~0.2s faster > </code></pre> > <p>A new recipe has been added to the docs. Lint staged files without external dependencies (inspired by Prettier docs). Feel free to modify it.</p> > <pre><code class="language-shell"># .husky/pre-commit > prettier $(git diff --cached --name-only --diff-filter=ACMR | sed &#39;s| |\\ |g&#39;) --write --ignore-unknown > git update-index --again > </code></pre> > <p>For more advanced use cases, see <a href="https://github.com/lint-staged/lint-staged">lint-staged</a>.</p> > <h1>Fixes</h1> > <ul> > <li><code>bunx husky init</code> command</li> > <li>Workaround for some hooks implementation on Windows 🤷</li> > </ul> > <h1>Deprecations</h1> > <ul> > <li>Remove <code>#!/usr/bin/env sh</code> and <code>. &quot;$(dirname -- &quot;$0&quot;)/_/husky.sh&quot;</code> from your hooks</li> > <li>Move your code from <code>~/.huskyrc</code> to <code>.config/husky/init.sh</code></li> > </ul> > <p>Support for these will be removed in v10, notices have been added.</p> > <h1>Friendly reminder</h1> > <p>If Git hooks don&#39;t fit your workflow, you can disable Husky globally. Just add <code>export HUSKY=0</code> to <code>.config/husky/init.sh</code>.</p> > <p>I&#39;ve seen some confusion about this on X, so just a heads-up!</p> > <h1>Sponsoring</h1> > <p>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: <a href="https://github.com/sponsors/typicode">GitHub Sponsors</a>.</p> > <p><strong>Have a nice summer ☀️ I&#39;m open to new opportunities/consulting so feel free to drop me a message 😉</strong></p>
m.schnitzler added 1 commit 2024-07-17 17:24:14 +00:00
root merged commit 4fdcba1351 into master 2024-07-17 17:25:19 +00:00
root referenced this issue from a commit 2024-07-17 17:25:22 +00:00
root deleted branch renovate 2024-07-17 17:25:23 +00:00
Sign in to join this conversation.
No Reviewers
No Label
No Milestone
No project
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: root/dvf#4
No description provided.