typicode/husky
### [`v3.1.0`](https://togithub.com/typicode/husky/releases/v3.1.0)
[Compare Source](https://togithub.com/typicode/husky/compare/v3.0.9...v3.1.0)
- Add `pre-merge-commit` hook ([#605](https://togithub.com/typicode/husky/issues/605))
### [`v3.0.9`](https://togithub.com/typicode/husky/releases/v3.0.9)
[Compare Source](https://togithub.com/typicode/husky/compare/v3.0.8...v3.0.9)
- Reduce dependencies: replace `is-ci` with `ci-info` [#579](https://togithub.com/typicode/husky/issues/579)
### [`v3.0.8`](https://togithub.com/typicode/husky/releases/v3.0.8)
[Compare Source](https://togithub.com/typicode/husky/compare/v3.0.7...v3.0.8)
- Fix: git worktree support [#580](https://togithub.com/typicode/husky/issues/580)
- Debug: check `GIT_DIR` environment variable when hooks are run
### [`v3.0.7`](https://togithub.com/typicode/husky/releases/v3.0.7)
[Compare Source](https://togithub.com/typicode/husky/compare/v3.0.6...v3.0.7)
Debug: display husky version and created at
### [`v3.0.6`](https://togithub.com/typicode/husky/releases/v3.0.6)
[Compare Source](https://togithub.com/typicode/husky/compare/v3.0.5...v3.0.6)
Debug: improve messages
### [`v3.0.5`](https://togithub.com/typicode/husky/releases/v3.0.5)
[Compare Source](https://togithub.com/typicode/husky/compare/v3.0.4...v3.0.5)
Fix: prevent `postinstall` from failing on windows [#573](https://togithub.com/typicode/husky/pull/573)
### [`v3.0.4`](https://togithub.com/typicode/husky/releases/v3.0.4)
[Compare Source](https://togithub.com/typicode/husky/compare/v3.0.3...v3.0.4)
Fix: skip install earlier when `HUSKY_SKIP_INSTALL=1` ([#563](https://togithub.com/typicode/husky/issues/563))
### [`v3.0.3`](https://togithub.com/typicode/husky/releases/v3.0.3)
[Compare Source](https://togithub.com/typicode/husky/compare/v3.0.2...v3.0.3)
Fix: prevent old hooks (husky `< 1.0`) to be run if new ones are defined (husky `>= 1.0` ) [#556](https://togithub.com/typicode/husky/issues/556)
### [`v3.0.2`](https://togithub.com/typicode/husky/releases/v3.0.2)
[Compare Source](https://togithub.com/typicode/husky/compare/v3.0.1...v3.0.2)
- Fix: add shebang to run.js ([#528](https://togithub.com/typicode/husky/issues/528))
### [`v3.0.1`](https://togithub.com/typicode/husky/releases/v3.0.1)
[Compare Source](https://togithub.com/typicode/husky/compare/v3.0.0...v3.0.1)
- Improve error message if git command fails
### [`v3.0.0`](https://togithub.com/typicode/husky/blob/master/CHANGELOG.md#300)
[Compare Source](https://togithub.com/typicode/husky/compare/df97af21254ca033a05346df3deb61c046b9ea12...v3.0.0)
- Fix HUSKY_SKIP_INSTALL=1 not skipping install
- **Breaking change** husky requires now Git `>= 2.13.2`. If you're already using husky `v2` and don't use an old version of Git, you can safely upgrade.
### [`v2.7.0`](https://togithub.com/typicode/husky/blob/master/CHANGELOG.md#270)
[Compare Source](https://togithub.com/typicode/husky/compare/v2.6.0...df97af21254ca033a05346df3deb61c046b9ea12)
Due to issues with Git `< 2.13.2`, this version is a rollback and is the same as husky `v2.4.1`. Changes introduced in `v2.5.0` and `v2.6.0` will be published in `v3.0.0`.
### [`v2.6.0`](https://togithub.com/typicode/husky/blob/master/CHANGELOG.md#260)
[Compare Source](https://togithub.com/typicode/husky/compare/v2.5.0...v2.6.0)
- Optional `HUSKY_USE_YARN` setting to use Yarn to run Husky
- Add more debug information
- Show a warning for Node `<= 8.6.0`
**Deprecated**
### [`v2.5.0`](https://togithub.com/typicode/husky/blob/master/CHANGELOG.md#250)
[Compare Source](https://togithub.com/typicode/husky/compare/v2.4.1...v2.5.0)
- Use more accurate git hooks directory resolution
- Add `CWD` in debug messages
**Deprecated**
### [`v2.4.1`](https://togithub.com/typicode/husky/blob/master/CHANGELOG.md#241)
[Compare Source](https://togithub.com/typicode/husky/compare/v2.4.0...v2.4.1)
- Fix husky crash on install/uninstall with very old Node versions
### [`v2.4.0`](https://togithub.com/typicode/husky/blob/master/CHANGELOG.md#240)
[Compare Source](https://togithub.com/typicode/husky/compare/v2.3.0...v2.4.0)
- Add `HUSKY_SKIP_HOOKS` to skip all hooks
### [`v2.3.0`](https://togithub.com/typicode/husky/blob/master/CHANGELOG.md#230)
[Compare Source](https://togithub.com/typicode/husky/compare/v2.2.0...v2.3.0)
- Make `HUSKY_DEBUG=1` effective like `HUSKY_DEBUG=true`
- Refactor script to point to `run-node/run-node` rather than `.bin/run-node`
### [`v2.2.0`](https://togithub.com/typicode/husky/blob/master/CHANGELOG.md#220)
[Compare Source](https://togithub.com/typicode/husky/compare/v2.1.0...v2.2.0)
- Improve Git worktree support
### [`v2.1.0`](https://togithub.com/typicode/husky/blob/master/CHANGELOG.md#210)
[Compare Source](https://togithub.com/typicode/husky/compare/v2.0.0...v2.1.0)
- Improve shell script portability by using `.` rather than `source`
### [`v2.0.0`](https://togithub.com/typicode/husky/blob/master/CHANGELOG.md#200)
[Compare Source](https://togithub.com/typicode/husky/compare/v1.3.1...v2.0.0)
- Update dependencies
- Update messages
- **Breaking change** drop `Node 6` support
### [`v1.3.1`](https://togithub.com/typicode/husky/blob/master/CHANGELOG.md#131)
[Compare Source](https://togithub.com/typicode/husky/compare/v1.3.0...v1.3.1)
- Update docs
- Upgrade `is-ci` and support more CIs
- Disable `1.3.0` change related to `stdin` due to a bug on Windows
### [`v1.3.0`](https://togithub.com/typicode/husky/blob/master/CHANGELOG.md#130)
[Compare Source](https://togithub.com/typicode/husky/compare/v1.2.1...v1.3.0)
- Enable `stdin` if hook is running in a terminal
### [`v1.2.1`](https://togithub.com/typicode/husky/blob/master/CHANGELOG.md#121)
[Compare Source](https://togithub.com/typicode/husky/compare/v1.2.0...v1.2.1)
- Fix don't fail if directory in project contains whitespace
### [`v1.2.0`](https://togithub.com/typicode/husky/blob/master/CHANGELOG.md#120)
[Compare Source](https://togithub.com/typicode/husky/compare/v1.1.4...v1.2.0)
- Add comments to generated hooks to specify which package has installed husky and when
### [`v1.1.4`](https://togithub.com/typicode/husky/blob/master/CHANGELOG.md#114)
[Compare Source](https://togithub.com/typicode/husky/compare/v1.1.3...v1.1.4)
- Upgrade `execa` dependency
### [`v1.1.3`](https://togithub.com/typicode/husky/blob/master/CHANGELOG.md#113)
[Compare Source](https://togithub.com/typicode/husky/compare/v1.1.2...v1.1.3)
- Fix don't fail if `package.json` doesn't exist
### [`v1.1.2`](https://togithub.com/typicode/husky/blob/master/CHANGELOG.md#112)
[Compare Source](https://togithub.com/typicode/husky/compare/v1.1.1...v1.1.2)
- Add debug message
### [`v1.1.1`](https://togithub.com/typicode/husky/blob/master/CHANGELOG.md#111)
[Compare Source](https://togithub.com/typicode/husky/compare/v1.1.0...v1.1.1)
- Check `HUSKY_SKIP_INSTALL` value first before checking if `.git` exists
- Check Node version before running hooks
### [`v1.1.0`](https://togithub.com/typicode/husky/blob/master/CHANGELOG.md#110)
[Compare Source](https://togithub.com/typicode/husky/compare/v1.0.1...v1.1.0)
- Create `.git/hooks` if it doesn't exist
### [`v1.0.1`](https://togithub.com/typicode/husky/blob/master/CHANGELOG.md#101)
[Compare Source](https://togithub.com/typicode/husky/compare/v1.0.0...v1.0.1)
- Various `husky-upgrade` changes ([#362](https://togithub.com/typicode/husky/pull/362), [#360](https://togithub.com/typicode/husky/pull/360), [#359](https://togithub.com/typicode/husky/pull/359))
### [`v1.0.0`](https://togithub.com/typicode/husky/blob/master/CHANGELOG.md#100)
[Compare Source](https://togithub.com/typicode/husky/compare/v0.14.3...v1.0.0)
After a year of pre-releases and a complete rewrite, this marks the first stable release of husky πΆπ.
##### Notable changes
Below you'll find consolidated changes since `0.14.3`. There's no change in code between `1.0.0-rc.15` and `1.0.0`.
- Hooks
- Add `sendemail-validate` hook
- Config
- Move hooks config from `scripts` field to `husky` field
- Prefer raw names for hooks (e.g. `pre-commit` rather than `precommit`)
- Support `.huskyrc` config
- Package managers
- Support environments where [yarn](https://togithub.com/yarnpkg/yarn/) is the only package manager installed
- Support [pnpm](https://togithub.com/pnpm/pnpm) package manager
- Environment variables
- Add `HUSKY_SKIP_INSTALL` environment variable for skipping git hooks installation
- Add `HUSKY_GIT_STDIN` environment variable for `pre-push`, `pre-receive`, `post-receive` and `post-rewrite` to access arguments passed by Git via stdin
- Rename `GIT_PARAMS` to `HUSKY_GIT_PARAMS`
- Messages
- Add many more messages in case of errors
- Add [please-upgrade-node](https://togithub.com/typicode/please-upgrade-node) message if using with unsupported Node version
- Make `--no-verify` message more accurate and only show it for hooks that can be skipped
- Upgrade
- Add `husky-upgrade` command to automatically migrate hooks in `package.json`
- Add deprecation warning for hooks that are still defined in `scripts`
- Other
- Drop `Node 4` support
- Drop integrated `nvm` support (see Node version management in docs)
##### Credits
Huge thanks to all the Contributors and [Patreon Supporters](https://thanks.typicode.com)! π
Renovate configuration
:date: Schedule: "every weekend" in timezone Europe/Paris.
:vertical_traffic_light: Automerge: Disabled by config. Please merge this manually once you are satisfied.
:recycle: Rebasing: Whenever PR is stale, or if you modify the PR title to begin with "rebase!".
:no_bell: 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
Newsflash: Renovate has joined WhiteSource, and is now free for all use. Learn more or view updated terms and privacy policies.
This PR contains the following updates:
0.14.3
->3.1.0
Release Notes
typicode/husky
### [`v3.1.0`](https://togithub.com/typicode/husky/releases/v3.1.0) [Compare Source](https://togithub.com/typicode/husky/compare/v3.0.9...v3.1.0) - Add `pre-merge-commit` hook ([#605](https://togithub.com/typicode/husky/issues/605)) ### [`v3.0.9`](https://togithub.com/typicode/husky/releases/v3.0.9) [Compare Source](https://togithub.com/typicode/husky/compare/v3.0.8...v3.0.9) - Reduce dependencies: replace `is-ci` with `ci-info` [#579](https://togithub.com/typicode/husky/issues/579) ### [`v3.0.8`](https://togithub.com/typicode/husky/releases/v3.0.8) [Compare Source](https://togithub.com/typicode/husky/compare/v3.0.7...v3.0.8) - Fix: git worktree support [#580](https://togithub.com/typicode/husky/issues/580) - Debug: check `GIT_DIR` environment variable when hooks are run ### [`v3.0.7`](https://togithub.com/typicode/husky/releases/v3.0.7) [Compare Source](https://togithub.com/typicode/husky/compare/v3.0.6...v3.0.7) Debug: display husky version and created at ### [`v3.0.6`](https://togithub.com/typicode/husky/releases/v3.0.6) [Compare Source](https://togithub.com/typicode/husky/compare/v3.0.5...v3.0.6) Debug: improve messages ### [`v3.0.5`](https://togithub.com/typicode/husky/releases/v3.0.5) [Compare Source](https://togithub.com/typicode/husky/compare/v3.0.4...v3.0.5) Fix: prevent `postinstall` from failing on windows [#573](https://togithub.com/typicode/husky/pull/573) ### [`v3.0.4`](https://togithub.com/typicode/husky/releases/v3.0.4) [Compare Source](https://togithub.com/typicode/husky/compare/v3.0.3...v3.0.4) Fix: skip install earlier when `HUSKY_SKIP_INSTALL=1` ([#563](https://togithub.com/typicode/husky/issues/563)) ### [`v3.0.3`](https://togithub.com/typicode/husky/releases/v3.0.3) [Compare Source](https://togithub.com/typicode/husky/compare/v3.0.2...v3.0.3) Fix: prevent old hooks (husky `< 1.0`) to be run if new ones are defined (husky `>= 1.0` ) [#556](https://togithub.com/typicode/husky/issues/556) ### [`v3.0.2`](https://togithub.com/typicode/husky/releases/v3.0.2) [Compare Source](https://togithub.com/typicode/husky/compare/v3.0.1...v3.0.2) - Fix: add shebang to run.js ([#528](https://togithub.com/typicode/husky/issues/528)) ### [`v3.0.1`](https://togithub.com/typicode/husky/releases/v3.0.1) [Compare Source](https://togithub.com/typicode/husky/compare/v3.0.0...v3.0.1) - Improve error message if git command fails ### [`v3.0.0`](https://togithub.com/typicode/husky/blob/master/CHANGELOG.md#300) [Compare Source](https://togithub.com/typicode/husky/compare/df97af21254ca033a05346df3deb61c046b9ea12...v3.0.0) - Fix HUSKY_SKIP_INSTALL=1 not skipping install - **Breaking change** husky requires now Git `>= 2.13.2`. If you're already using husky `v2` and don't use an old version of Git, you can safely upgrade. ### [`v2.7.0`](https://togithub.com/typicode/husky/blob/master/CHANGELOG.md#270) [Compare Source](https://togithub.com/typicode/husky/compare/v2.6.0...df97af21254ca033a05346df3deb61c046b9ea12) Due to issues with Git `< 2.13.2`, this version is a rollback and is the same as husky `v2.4.1`. Changes introduced in `v2.5.0` and `v2.6.0` will be published in `v3.0.0`. ### [`v2.6.0`](https://togithub.com/typicode/husky/blob/master/CHANGELOG.md#260) [Compare Source](https://togithub.com/typicode/husky/compare/v2.5.0...v2.6.0) - Optional `HUSKY_USE_YARN` setting to use Yarn to run Husky - Add more debug information - Show a warning for Node `<= 8.6.0` **Deprecated** ### [`v2.5.0`](https://togithub.com/typicode/husky/blob/master/CHANGELOG.md#250) [Compare Source](https://togithub.com/typicode/husky/compare/v2.4.1...v2.5.0) - Use more accurate git hooks directory resolution - Add `CWD` in debug messages **Deprecated** ### [`v2.4.1`](https://togithub.com/typicode/husky/blob/master/CHANGELOG.md#241) [Compare Source](https://togithub.com/typicode/husky/compare/v2.4.0...v2.4.1) - Fix husky crash on install/uninstall with very old Node versions ### [`v2.4.0`](https://togithub.com/typicode/husky/blob/master/CHANGELOG.md#240) [Compare Source](https://togithub.com/typicode/husky/compare/v2.3.0...v2.4.0) - Add `HUSKY_SKIP_HOOKS` to skip all hooks ### [`v2.3.0`](https://togithub.com/typicode/husky/blob/master/CHANGELOG.md#230) [Compare Source](https://togithub.com/typicode/husky/compare/v2.2.0...v2.3.0) - Make `HUSKY_DEBUG=1` effective like `HUSKY_DEBUG=true` - Refactor script to point to `run-node/run-node` rather than `.bin/run-node` ### [`v2.2.0`](https://togithub.com/typicode/husky/blob/master/CHANGELOG.md#220) [Compare Source](https://togithub.com/typicode/husky/compare/v2.1.0...v2.2.0) - Improve Git worktree support ### [`v2.1.0`](https://togithub.com/typicode/husky/blob/master/CHANGELOG.md#210) [Compare Source](https://togithub.com/typicode/husky/compare/v2.0.0...v2.1.0) - Improve shell script portability by using `.` rather than `source` ### [`v2.0.0`](https://togithub.com/typicode/husky/blob/master/CHANGELOG.md#200) [Compare Source](https://togithub.com/typicode/husky/compare/v1.3.1...v2.0.0) - Update dependencies - Update messages - **Breaking change** drop `Node 6` support ### [`v1.3.1`](https://togithub.com/typicode/husky/blob/master/CHANGELOG.md#131) [Compare Source](https://togithub.com/typicode/husky/compare/v1.3.0...v1.3.1) - Update docs - Upgrade `is-ci` and support more CIs - Disable `1.3.0` change related to `stdin` due to a bug on Windows ### [`v1.3.0`](https://togithub.com/typicode/husky/blob/master/CHANGELOG.md#130) [Compare Source](https://togithub.com/typicode/husky/compare/v1.2.1...v1.3.0) - Enable `stdin` if hook is running in a terminal ### [`v1.2.1`](https://togithub.com/typicode/husky/blob/master/CHANGELOG.md#121) [Compare Source](https://togithub.com/typicode/husky/compare/v1.2.0...v1.2.1) - Fix don't fail if directory in project contains whitespace ### [`v1.2.0`](https://togithub.com/typicode/husky/blob/master/CHANGELOG.md#120) [Compare Source](https://togithub.com/typicode/husky/compare/v1.1.4...v1.2.0) - Add comments to generated hooks to specify which package has installed husky and when ### [`v1.1.4`](https://togithub.com/typicode/husky/blob/master/CHANGELOG.md#114) [Compare Source](https://togithub.com/typicode/husky/compare/v1.1.3...v1.1.4) - Upgrade `execa` dependency ### [`v1.1.3`](https://togithub.com/typicode/husky/blob/master/CHANGELOG.md#113) [Compare Source](https://togithub.com/typicode/husky/compare/v1.1.2...v1.1.3) - Fix don't fail if `package.json` doesn't exist ### [`v1.1.2`](https://togithub.com/typicode/husky/blob/master/CHANGELOG.md#112) [Compare Source](https://togithub.com/typicode/husky/compare/v1.1.1...v1.1.2) - Add debug message ### [`v1.1.1`](https://togithub.com/typicode/husky/blob/master/CHANGELOG.md#111) [Compare Source](https://togithub.com/typicode/husky/compare/v1.1.0...v1.1.1) - Check `HUSKY_SKIP_INSTALL` value first before checking if `.git` exists - Check Node version before running hooks ### [`v1.1.0`](https://togithub.com/typicode/husky/blob/master/CHANGELOG.md#110) [Compare Source](https://togithub.com/typicode/husky/compare/v1.0.1...v1.1.0) - Create `.git/hooks` if it doesn't exist ### [`v1.0.1`](https://togithub.com/typicode/husky/blob/master/CHANGELOG.md#101) [Compare Source](https://togithub.com/typicode/husky/compare/v1.0.0...v1.0.1) - Various `husky-upgrade` changes ([#362](https://togithub.com/typicode/husky/pull/362), [#360](https://togithub.com/typicode/husky/pull/360), [#359](https://togithub.com/typicode/husky/pull/359)) ### [`v1.0.0`](https://togithub.com/typicode/husky/blob/master/CHANGELOG.md#100) [Compare Source](https://togithub.com/typicode/husky/compare/v0.14.3...v1.0.0) After a year of pre-releases and a complete rewrite, this marks the first stable release of husky πΆπ. ##### Notable changes Below you'll find consolidated changes since `0.14.3`. There's no change in code between `1.0.0-rc.15` and `1.0.0`. - Hooks - Add `sendemail-validate` hook - Config - Move hooks config from `scripts` field to `husky` field - Prefer raw names for hooks (e.g. `pre-commit` rather than `precommit`) - Support `.huskyrc` config - Package managers - Support environments where [yarn](https://togithub.com/yarnpkg/yarn/) is the only package manager installed - Support [pnpm](https://togithub.com/pnpm/pnpm) package manager - Environment variables - Add `HUSKY_SKIP_INSTALL` environment variable for skipping git hooks installation - Add `HUSKY_GIT_STDIN` environment variable for `pre-push`, `pre-receive`, `post-receive` and `post-rewrite` to access arguments passed by Git via stdin - Rename `GIT_PARAMS` to `HUSKY_GIT_PARAMS` - Messages - Add many more messages in case of errors - Add [please-upgrade-node](https://togithub.com/typicode/please-upgrade-node) message if using with unsupported Node version - Make `--no-verify` message more accurate and only show it for hooks that can be skipped - Upgrade - Add `husky-upgrade` command to automatically migrate hooks in `package.json` - Add deprecation warning for hooks that are still defined in `scripts` - Other - Drop `Node 4` support - Drop integrated `nvm` support (see Node version management in docs) ##### Credits Huge thanks to all the Contributors and [Patreon Supporters](https://thanks.typicode.com)! πRenovate configuration
:date: Schedule: "every weekend" in timezone Europe/Paris.
:vertical_traffic_light: Automerge: Disabled by config. Please merge this manually once you are satisfied.
:recycle: Rebasing: Whenever PR is stale, or if you modify the PR title to begin with "
rebase!
".:no_bell: Ignore: Close this PR and you won't be reminded about this update again.
Newsflash: Renovate has joined WhiteSource, and is now free for all use. Learn more or view updated terms and privacy policies.