Skip to content

Releases: typicode/husky

v6.0.0

29 Mar 07:56
Compare
Choose a tag to compare

After being in early access for Open Source projects and Sponsors for a limited time, I'm happy to announce that husky 6 is MIT again and can be freely used in commercial projects! 🎉

Many thanks to the Open Source projects and Companies which have switched to/sponsored the new husky during this period!

OSS is my full-time job, please consider sponsoring the development of husky on GitHub sponsors or Open Collective. Thank you!

Breaking change

  • husky init has been moved to its own package (npx husky-init)

Added

  • Programmatically use husky: require('husky')
  • TypeScript definitions

Migrating from husky 4

Husky 6 contains breaking changes. If you're coming from v4, npm install husky@6 won't be enough.

Recommended: see husky-4-to-6 CLI to automatically migrate your config. There's also a dedicated section in the docs.

If you're curious why config has changed, you may be interested in reading:
https://blog.typicode.com/husky-git-hooks-javascript-config/

Also Husky 6 follows official npm and Yarn best practices regarding autoinstall. It's recommended to use prepare script instead (see usage in docs).

v5.2.0

21 Mar 19:15
Compare
Choose a tag to compare
  • Add set command to replace hooks (husky set .husky/pre-commit cmd)
  • Update add command to append command (husky add .husky/pre-commit cmd)
  • Improve error messages

v5.1.3

02 Mar 03:12
Compare
Choose a tag to compare
  • docs: add specific Yarn v2 install/uninstall instructions
  • cli: husky init will detect Yarn v2 and initialize accordingly

v5.1.2

01 Mar 01:48
Compare
Choose a tag to compare
  • docs: recommend prepare script instead of postinstall (#890)
  • cli: husky init use prepare script (#890)

v5.1.1

22 Feb 16:16
Compare
Choose a tag to compare
  • style(shell): add trailing newlines (#870)
  • fix(init): update package.json postinstall

v5.1.0

21 Feb 21:53
Compare
Choose a tag to compare
  • Add husky init

v5.0.9

08 Feb 17:42
Compare
Choose a tag to compare
  • fix(install): do not fail if not inside a Git directory (closes #851)

See https://github.com/typicode/husky/releases/tag/v5.0.0 for v5 release notes

v5.0.8

28 Jan 00:34
Compare
Choose a tag to compare
  • fix(install): better handle Git <2.9 (#846) closes #844

v5.0.7

27 Jan 04:10
Compare
Choose a tag to compare
  • fix(shell): double quote params (#824)

v4.3.8

15 Jan 23:17
Compare
Choose a tag to compare
  • Fix Cannot read property 'toString' of null
  • Improve error messages