P

Latest version: v1.5.0

Safety actively analyzes 714792 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 5 of 14

7.0.2

Fix pre-commit hook in WebStorm (1023)

7.0.1

- Fix gracefully fail if Git command is not found 1003 (same as in v6)

7.0.0

- Improve `.husky/` directory structure. __`.husky/.gitignore` is now unnecessary and can be removed__.
- Improve error output (shorter)
- Update [`husky-init`](https://github.com/typicode/husky-init) CLI
- Update [`husky-4-to-7`](https://github.com/typicode/husky-4-to-7) CLI
- Drop Node 10 support

_Please help me develop and release OSS projects :heart: on [GitHub Sponsors](https://github.com/sponsors/typicode) or [Open Collective](https://opencollective.com/husky). Thank you for your support!_

6.0.0

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](https://typicode.github.io/husky/#/?id=used-by) 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](https://github.com/sponsors/typicode) or [Open Collective](https://opencollective.com/husky). 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 husky6` won't be enough.

__Recommended:__ see [husky-4-to-6](https://typicode.github.io/husky/#/?id=husky-4-to-6-cli) CLI to automatically migrate your config. There's also a dedicated section in the [docs](https://typicode.github.io/husky/#/?id=migrate-from-v4-to-v6).

__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](https://docs.npmjs.com/cli/v7/using-npm/scripts#best-practices) and [Yarn](https://yarnpkg.com/advanced/lifecycle-scripts#a-note-about-postinstall) best practices regarding autoinstall.__ It's recommended to use `prepare` script instead (see [usage](https://typicode.github.io/husky/#/?id=usage) in docs).

5.2.0

- 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

5.1.3

- docs: add specific Yarn v2 install/uninstall instructions
- cli: `husky init` will detect Yarn v2 and initialize accordingly

Page 5 of 14

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.