chore(deps): update dependency husky to v4
This PR contains the following updates:
| Package | Type | Update | New value | References | Sourcegraph |
|---|---|---|---|---|---|
| husky | devDependencies | major | ^4.2.5 | source |
Release Notes
typicode/husky
v4.2.5
v4.2.4
- When Node version is unsupported, log actual version in addition to the error message #701
- Fix: support
cnpmpackage manager #687 - Fix: always use
shto run scripts and avoid inconsistencies #707 - Fix: don't throw error if files are already removed during uninstall #708
v4.2.3
- Fix: check for
husky.config.jsnot.huskyrc.config.js#669
v4.2.2
- Fix #662 disable fast-skip heuristic for
.husky.jsand.husky.config.js - Fix do not install
update,pre/post-receivehooks
v4.2.1
- Fix: support spaces in path to husky.local.sh #658
v4.2.0
- Check Git version during install and log an error if it's
<2.13.0
v4.1.0
- Improve speed and refactor hooks
v4.0.10
v4.0.9
- Fix: read stdin from hook script (#645)
v4.0.8
v4.0.7
- Fix: Yarn when running inside
winpty(#634)
v4.0.6
- Revert change in v4.0.5
v4.0.5
- Fix: use process.exit if install fails #633
v4.0.4
- Fix: npm ignore
.eslintrc.js(#627)
v4.0.3
- Fix: error message if trying to install in a non-git repo (#627)
v4.0.2
- Fix: show error message when hook fails
v4.0.1
- Fix: make Yarn silent. When Husky was installed with Yarn 1.21.1, hooks output was too verbose (#626).
v4.0.0
- Support
Yarn v2new Plug'n'Play feature (thanks to @arcanis) - Improve path handling on Windows (in particular with
CygwinandCmdr) - Remove
dependenciesand simplify code -
Breaking requires
Node 10+
Thanks to all contributors and everyone who is supporting Husky on Open Collective, GitHub sponsors and Patreon!
v3.1.0
- Add
pre-merge-commithook (#605)
v3.0.9
- Reduce dependencies: replace
is-ciwithci-info#579
v3.0.8
- Fix: git worktree support #580
- Debug: check
GIT_DIRenvironment variable when hooks are run
v3.0.7
Debug: display husky version and created at
v3.0.6
Debug: improve messages
v3.0.5
Fix: prevent postinstall from failing on windows #573
v3.0.4
Fix: skip install earlier when HUSKY_SKIP_INSTALL=1 (#563)
v3.0.3
Fix: prevent old hooks (husky < 1.0) to be run if new ones are defined (husky >= 1.0 ) #556
v3.0.2
- Fix: add shebang to run.js (#528)
v3.0.1
- Improve error message if git command fails
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 huskyv2and don't use an old version of Git, you can safely upgrade.
v2.7.0
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
- Optional
HUSKY_USE_YARNsetting to use Yarn to run Husky - Add more debug information
- Show a warning for Node
<= 8.6.0
Deprecated
v2.5.0
- Use more accurate git hooks directory resolution
- Add
CWDin debug messages
Deprecated
v2.4.1
- Fix husky crash on install/uninstall with very old Node versions
v2.4.0
- Add
HUSKY_SKIP_HOOKSto skip all hooks
v2.3.0
- Make
HUSKY_DEBUG=1effective likeHUSKY_DEBUG=true - Refactor script to point to
run-node/run-noderather than.bin/run-node
v2.2.0
- Improve Git worktree support
v2.1.0
- Improve shell script portability by using
.rather thansource
v2.0.0
- Update dependencies
- Update messages
-
Breaking change drop
Node 6support
v1.3.1
- Update docs
- Upgrade
is-ciand support more CIs - Disable
1.3.0change related tostdindue to a bug on Windows
v1.3.0
- Enable
stdinif hook is running in a terminal
v1.2.1
- Fix don't fail if directory in project contains whitespace
v1.2.0
- Add comments to generated hooks to specify which package has installed husky and when
v1.1.4
- Upgrade
execadependency
v1.1.3
- Fix don't fail if
package.jsondoesn't exist
v1.1.2
- Add debug message
v1.1.1
- Check
HUSKY_SKIP_INSTALLvalue first before checking if.gitexists - Check Node version before running hooks
v1.1.0
- Create
.git/hooksif it doesn't exist
v1.0.1
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-validatehook
- Add
-
Config
- Move hooks config from
scriptsfield tohuskyfield - Prefer raw names for hooks (e.g.
pre-commitrather thanprecommit) - Support
.huskyrcconfig
- Move hooks config from
-
Package managers
-
Environment variables
- Add
HUSKY_SKIP_INSTALLenvironment variable for skipping git hooks installation - Add
HUSKY_GIT_STDINenvironment variable forpre-push,pre-receive,post-receiveandpost-rewriteto access arguments passed by Git via stdin - Rename
GIT_PARAMStoHUSKY_GIT_PARAMS
- Add
-
Messages
- Add many more messages in case of errors
- Add please-upgrade-node message if using with unsupported Node version
- Make
--no-verifymessage more accurate and only show it for hooks that can be skipped
-
Upgrade
- Add
husky-upgradecommand to automatically migrate hooks inpackage.json - Add deprecation warning for hooks that are still defined in
scripts
- Add
-
Other
- Drop
Node 4support - Drop integrated
nvmsupport (see Node version management in docs)
- Drop
Credits
Huge thanks to all the Contributors and Patreon Supporters! 🙏
v0.14.3
- Fix handle space in
PATH#150
v0.14.2
- Fix handle space in
HOME
v0.14.1
- Fix Git hooks install on Windows
- Fix hook script when
nvmwas installed with Brew
Renovate configuration
:date: Schedule: "on the 1st through 7th day of the month" in timezone America/Los_Angeles.
:vertical_traffic_light: Automerge: Disabled by config. Please merge this manually once you are satisfied.
:recycle: Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
: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
This PR has been generated by WhiteSource Renovate. View repository job log here.
Codecov Report
Merging #659 into master will not change coverage. The diff coverage is
n/a.
@@ Coverage Diff @@
## master #659 +/- ##
======================================
Coverage 82.4% 82.4%
======================================
Files 15 15
Lines 2126 2126
Branches 509 448 -61
======================================
Hits 1752 1752
Misses 364 364
Partials 10 10
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact),ø = not affected,? = missing dataPowered by Codecov. Last update fd893d2...5807f97. Read the comment docs.