1 | # CHANGELOG
|
2 |
|
3 | ## 2.3.0
|
4 |
|
5 | * Make `HUSKY_DEBUG=1` effective like `HUSKY_DEBUG=true`
|
6 | * Refactor script to point to `run-node/run-node` rather than `.bin/run-node`
|
7 |
|
8 | ## 2.2.0
|
9 |
|
10 | * Improve Git worktree support
|
11 |
|
12 | ## 2.1.0
|
13 |
|
14 | * Improve shell script portability by using `.` rather than `source`
|
15 |
|
16 | ## 2.0.0
|
17 |
|
18 | * Update dependencies
|
19 | * Update messages
|
20 | * __Breaking change__ drop `Node 6` support
|
21 |
|
22 | ## 1.3.1
|
23 |
|
24 | * Update docs
|
25 | * Upgrade `is-ci` and support more CIs
|
26 | * Disable `1.3.0` change related to `stdin` due to a bug on Windows
|
27 |
|
28 | ## 1.3.0
|
29 |
|
30 | * Enable `stdin` if hook is running in a terminal
|
31 |
|
32 | ## 1.2.1
|
33 |
|
34 | * Fix don't fail if directory in project contains whitespace
|
35 |
|
36 | ## 1.2.0
|
37 |
|
38 | * Add comments to generated hooks to specify which package has installed husky and when
|
39 |
|
40 | ## 1.1.4
|
41 |
|
42 | * Upgrade `execa` dependency
|
43 |
|
44 | ## 1.1.3
|
45 |
|
46 | * Fix don't fail if `package.json` doesn't exist
|
47 |
|
48 | ## 1.1.2
|
49 |
|
50 | * Add debug message
|
51 |
|
52 | ## 1.1.1
|
53 |
|
54 | * Check `HUSKY_SKIP_INSTALL` value first before checking if `.git` exists
|
55 | * Check Node version before running hooks
|
56 |
|
57 | ## 1.1.0
|
58 |
|
59 | * Create `.git/hooks` if it doesn't exist
|
60 |
|
61 | ## 1.0.1
|
62 |
|
63 | * Various `husky-upgrade` changes ([#362](https://github.com/typicode/husky/pull/362), [#360](https://github.com/typicode/husky/pull/360), [#359](https://github.com/typicode/husky/pull/359))
|
64 |
|
65 | ## 1.0.0
|
66 |
|
67 | After a year of pre-releases and a complete rewrite, this marks the first stable release of husky πΆπ.
|
68 |
|
69 | ### Notable changes
|
70 |
|
71 | 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`.
|
72 |
|
73 | * Hooks
|
74 | * Add `sendemail-validate` hook
|
75 |
|
76 | * Config
|
77 | * Move hooks config from `scripts` field to `husky` field
|
78 | * Prefer raw names for hooks (e.g. `pre-commit` rather than `precommit`)
|
79 | * Support `.huskyrc` config
|
80 |
|
81 | * Package managers
|
82 | * Support environments where [yarn](https://github.com/yarnpkg/yarn/) is the only package manager installed
|
83 | * Support [pnpm](https://github.com/pnpm/pnpm) package manager
|
84 |
|
85 | * Environment variables
|
86 | * Add `HUSKY_SKIP_INSTALL` environment variable for skipping git hooks installation
|
87 | * Add `HUSKY_GIT_STDIN` environment variable for `pre-push`, `pre-receive`, `post-receive` and `post-rewrite` to access arguments passed by Git via stdin
|
88 | * Rename `GIT_PARAMS` to `HUSKY_GIT_PARAMS`
|
89 |
|
90 | * Messages
|
91 | * Add many more messages in case of errors
|
92 | * Add [please-upgrade-node](https://github.com/typicode/please-upgrade-node) message if using with unsupported Node version
|
93 | * Make `--no-verify` message more accurate and only show it for hooks that can be skipped
|
94 |
|
95 | * Upgrade
|
96 | * Add `husky-upgrade` command to automatically migrate hooks in `package.json`
|
97 | * Add deprecation warning for hooks that are still defined in `scripts`
|
98 |
|
99 | * Other
|
100 | * Drop `Node 4` support
|
101 | * Drop integrated `nvm` support (see Node version management in docs)
|
102 |
|
103 | ### Credits
|
104 |
|
105 | Huge thanks to all the Contributors and [Patreon Supporters](https://thanks.typicode.com)! π
|
106 |
|
107 | ## 1.0.0-rc.15
|
108 |
|
109 | * Update docs
|
110 |
|
111 | ## 1.0.0-rc.14
|
112 |
|
113 | * Make `--no-verify` message more accurate and only show it for hooks that can be skipped
|
114 | * Improve error messages
|
115 |
|
116 | ## 1.0.0-rc.13
|
117 |
|
118 | * Show a message when Node can't be found in PATH
|
119 |
|
120 | ## 1.0.0-rc.12
|
121 |
|
122 | * Fix exit code when used with unsupported Node version
|
123 | * Update dependencies
|
124 |
|
125 | ## 1.0.0-rc.11
|
126 |
|
127 | * Show a message instead of crashing if Node version is unsupported by Husky
|
128 |
|
129 | ## 1.0.0-rc.10
|
130 |
|
131 | * Fix `HUSKY_GIT_PARAMS` containing only the first Git param
|
132 |
|
133 | ## 1.0.0-rc.9
|
134 |
|
135 | * If `node_modules/husky` is missing, show message but do not crash
|
136 | * Remove and upgrade some `dependencies`
|
137 |
|
138 | ## 1.0.0-rc.8
|
139 |
|
140 | * Add `HUSKY_GIT_STDIN` environment variable for `pre-push`, `pre-receive`, `post-receive` and `post-rewrite` to access arguments passed by Git via stdin.
|
141 |
|
142 | ## 1.0.0-rc.7
|
143 |
|
144 | * Update `cosmiconfig` dependency
|
145 | * Fix `package.json` normalization error
|
146 |
|
147 | ## 1.0.0-rc.6
|
148 |
|
149 | * Fix install error with `pnpm`
|
150 |
|
151 | ## 1.0.0-rc.5
|
152 |
|
153 | * Auto migrate `yorkie` hooks
|
154 |
|
155 | ## 1.0.0-rc.4
|
156 |
|
157 | * Re-enable Git submodule and worktree support
|
158 |
|
159 | ## 1.0.0-rc.3
|
160 |
|
161 | * Re-enable subdirectory support
|
162 |
|
163 | ## 1.0.0-rc.2
|
164 |
|
165 | * Upgrade `run-node` dependency
|
166 |
|
167 | ## 1.0.0-rc.1
|
168 |
|
169 | * Namespace environment variable created by husky
|
170 | * `GIT_PARAMS` becomes `HUSKY_GIT_PARAMS`
|
171 | * Starting also with `1.0.0` versioning
|
172 |
|
173 | ## 0.15.0-rc.13
|
174 |
|
175 | * Revert `GIT_STDIN` for the moment. Needs more testing.
|
176 |
|
177 | `rc.10`, `rc.11` and `rc.12` are broken for some GUI clients due to `read` command
|
178 |
|
179 | ## 0.15.0-rc.9
|
180 |
|
181 | * Handle case where `.git/hooks` directory doesn't exit
|
182 |
|
183 | ## 0.15.0-rc.8
|
184 |
|
185 | * Handle case where `v0.14` git hooks wouldn't have been uninstalled
|
186 |
|
187 | ## 0.15.0-rc.7
|
188 |
|
189 | * Move `postinstall` script to `install`
|
190 | * Fix line ending error when running `upgrader` from OS X/Linux
|
191 |
|
192 | ## 0.15.0-rc.6
|
193 |
|
194 | * Fix `[[` error
|
195 |
|
196 | ## 0.15.0-rc.5
|
197 |
|
198 | * Fix error with GitHub Desktop on Windows
|
199 |
|
200 | ## 0.15.0-rc.4
|
201 |
|
202 | * Catch error if `git` command fails
|
203 |
|
204 | ## 0.15.0-rc.3
|
205 |
|
206 | * Fix `husky-upgrade`
|
207 | * Drop `Node 4` support
|
208 |
|
209 | ## 0.15.0-rc.2
|
210 |
|
211 | * Fix install error
|
212 |
|
213 | ## 0.15.0-rc.1
|
214 |
|
215 | * `sendemail-validate` hook [#173](https://github.com/typicode/husky/pull/173)
|
216 | * `HUSKY_SKIP_INSTALL` environment variable for skipping git hooks installation [#178](https://github.com/typicode/husky/pull/178)
|
217 | * `.huskyrc` config [#209](https://github.com/typicode/husky/pull/209)
|
218 | * [`pnpm`](https://github.com/pnpm/pnpm) support
|
219 | * Support environments where `yarn` is the only package manager installed
|
220 | * Move config from `scripts` field to `husky` field
|
221 | * Prefer raw names for Git hooks (`pre-commit` rather than `precommit`)
|
222 | * Drop integrated `nvm` support
|
223 | * To ease upgrade:
|
224 | * Provide `husky-upgrade` command
|
225 | * Add deprecation warning for hooks that are defined in `scripts` (but still run them)
|
226 |
|
227 | ## 0.14.3
|
228 |
|
229 | * Fix handle space in `PATH` [#150](https://github.com/typicode/husky/pull/114)
|
230 |
|
231 | ## 0.14.2
|
232 |
|
233 | * Fix handle space in `HOME`
|
234 |
|
235 | ## 0.14.1
|
236 |
|
237 | * Fix Git hooks install on Windows
|
238 | * Fix hook script when `nvm` was installed with Brew
|
239 |
|
240 | ## 0.14.0
|
241 |
|
242 | * Fix `npm@5` `Error: Cannot find module` warning when uninstalling
|
243 | * Drop `Node 0.12` support
|
244 | * Don't reload `nvm` if it's already in `PATH`
|
245 | * Add Git worktree support [#114](https://github.com/typicode/husky/pull/114)
|
246 | * Hide irrelevant `--no-verify` message for `prepare-commit-msg` [#137](https://github.com/typicode/husky/issues/137)
|
247 |
|
248 | ## 0.13.4
|
249 |
|
250 | * Add Node version to husky output
|
251 |
|
252 | ## 0.13.3
|
253 |
|
254 | * Revert `Fixes issue with OS X + brew where nvm was loaded even when npm was already present` that was introduced in `v0.13.0` as it was preventing Husky to load `nvm` in some cases [#106](https://github.com/typicode/husky/issues/106)
|
255 |
|
256 | ## 0.13.2
|
257 |
|
258 | * Fixes issue [#103](https://github.com/typicode/husky/issues/103)
|
259 |
|
260 | ## 0.13.1
|
261 |
|
262 | * Makes it easier for projects to transition from [ghooks](https://github.com/gtramontina/ghooks) by detecting ghooks installed scripts and automatically migrating them
|
263 |
|
264 | ## 0.13.0
|
265 |
|
266 | * Makes `husky` a little less verbose by default
|
267 | * Fixes issue with `OS X + brew` where `nvm` was loaded even when `npm` was already present
|
268 | * Fixes issue with Git `v1.9` on Windows
|
269 | * Prevents Git hooks being installed when husky is in a sub `node_modules` directory (i.e. `./node_modules/A/node_modules/husky`)
|
270 |
|
271 | ## 0.12.0
|
272 |
|
273 | * Adds Git submodule support
|
274 | * Adds Cygwin support
|
275 | * Improves edge cases support (`.git` not found and `git` not in `PATH`)
|
276 | * If `npm` is already present in path, doesn't load `nvm` default or `.nvmrc` version, which makes things faster in terminal. In GUI apps, the behavior is unchanged.
|