DEV Community

Cover image for What's new in husky 5

What's new in husky 5

typicode on February 04, 2021

I'm happy to announce the release of husky 5 🎉 🐺 woof! During the past years, husky has grown in complexity. With this version, I wanted to go bac...
Collapse
 
jounqin profile image
JounQin

Like others, I have to say

now it tries to solve a problem that doesn't exist.

husky@4 works very nice and easy to use, but v5 is much more difficult to understand and config.

I think you should balance between performance and easy-to-use.

I can't wait to use v6 now. 🤪

Collapse
 
mpeyper profile image
Michael Peyper • Edited

I want to be clear that I 100% support the move to the new license and the financial support that hopefully brings to you. husky is a wonderful tool and has saved my bacon many times.

That said, did you consider not releasing it with the latest tag on NPM and having something like oss and/or sponsored tags instead for v5 and keeping latest pointing at v4? I wonder how many folks have run npm i -D husky or had dependabot come through and bumped their version and not realised they are up for sponsorship now.

Collapse
 
alevosia profile image
Ålex

Exactly. Broke plenty of projects. Plenty of open source projects have a commit of just rolling/reverting back husky to v4.

Collapse
 
medikoo profile image
Mariusz Nowak

I totally agree. Having hooks configured in package.json was very straightforward.

Technically it was zero extra files config (as package.json stays in project anyway).

Now it's totally not clear to me where config should live, and polluting repo with extra config files doesn't feel good.

Collapse
 
berkmann18 profile image
Maximilian Berkmann

Yeah, the ease of setting up hooks with husky+lint staged is a nightmare now when they used to be a breeze to set up.

 
kutsan profile image
Kutsan Kaplan • Edited

I'm in the same boat, looking for an alternative for the time being. Actually, I've never had any problems about husky so far, their configuration interface was superb but now it tries to solve a problem that doesn't exist.

Collapse
 
matteogioioso profile image
Matteo Gioioso

I went back to v4 once I have discover that

Collapse
 
ethaan profile image
Ethan

postinstall => prepare v5.1.2

Collapse
 
rxliuli profile image
rxliuli • Edited

Roll back to v4

Collapse
 
joellau profile image
Joel Lau

thanks sharing your work with the world!

Collapse
 
darcyxf profile image
darcy

Withhout writing precommit file to .git/hooks, how new husky now works?