Skip to content

Commit

Permalink
chore(deps): update dependency husky to v7 (#93)
Browse files Browse the repository at this point in the history
[![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [husky](https://typicode.github.io/husky) ([source](https://togithub.com/typicode/husky)) | [`^4.3.0` -> `^7.0.0`](https://renovatebot.com/diffs/npm/husky/4.3.0/7.0.4) | [![age](https://badges.renovateapi.com/packages/npm/husky/7.0.4/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/husky/7.0.4/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/husky/7.0.4/compatibility-slim/4.3.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/husky/7.0.4/confidence-slim/4.3.0)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>typicode/husky</summary>

### [`v7.0.4`](https://togithub.com/typicode/husky/releases/v7.0.4)

[Compare Source](https://togithub.com/typicode/husky/compare/v7.0.3...v7.0.4)

*No changes. Husky v7.0.3 was reverted, this version is the same as v7.0.2.*

### [`v7.0.3`](https://togithub.com/typicode/husky/compare/v7.0.2...v7.0.3)

[Compare Source](https://togithub.com/typicode/husky/compare/v7.0.2...v7.0.3)

### [`v7.0.2`](https://togithub.com/typicode/husky/releases/v7.0.2)

[Compare Source](https://togithub.com/typicode/husky/compare/v7.0.1...v7.0.2)

Fix pre-commit hook in WebStorm ([#&#8203;1023](https://togithub.com/typicode/husky/issues/1023))

### [`v7.0.1`](https://togithub.com/typicode/husky/releases/v7.0.1)

[Compare Source](https://togithub.com/typicode/husky/compare/v7.0.0...v7.0.1)

-   Fix gracefully fail if Git command is not found [#&#8203;1003](https://togithub.com/typicode/husky/issues/1003) (same as in v6)

### [`v7.0.0`](https://togithub.com/typicode/husky/releases/v7.0.0)

[Compare Source](https://togithub.com/typicode/husky/compare/v6.0.0...v7.0.0)

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

*Please help me develop and release OSS projects ❤️ on [GitHub Sponsors](https://togithub.com/sponsors/typicode) or [Open Collective](https://opencollective.com/husky). Thank you for your support!*

### [`v6.0.0`](https://togithub.com/typicode/husky/releases/v6.0.0)

[Compare Source](https://togithub.com/typicode/husky/compare/v5.2.0...v6.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://togithub.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 husky@6` 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).

### [`v5.2.0`](https://togithub.com/typicode/husky/releases/v5.2.0)

[Compare Source](https://togithub.com/typicode/husky/compare/v5.1.3...v5.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

### [`v5.1.3`](https://togithub.com/typicode/husky/releases/v5.1.3)

[Compare Source](https://togithub.com/typicode/husky/compare/v5.1.2...v5.1.3)

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

### [`v5.1.2`](https://togithub.com/typicode/husky/releases/v5.1.2)

[Compare Source](https://togithub.com/typicode/husky/compare/v5.1.1...v5.1.2)

-   docs: recommend `prepare` script instead of `postinstall` ([#&#8203;890](https://togithub.com/typicode/husky/issues/890))
-   cli: `husky init` use `prepare` script ([#&#8203;890](https://togithub.com/typicode/husky/issues/890))

### [`v5.1.1`](https://togithub.com/typicode/husky/releases/v5.1.1)

[Compare Source](https://togithub.com/typicode/husky/compare/v5.1.0...v5.1.1)

-   style(shell): add trailing newlines ([#&#8203;870](https://togithub.com/typicode/husky/issues/870))
-   fix(init): update package.json postinstall

### [`v5.1.0`](https://togithub.com/typicode/husky/releases/v5.1.0)

[Compare Source](https://togithub.com/typicode/husky/compare/v5.0.9...v5.1.0)

-   Add `husky init`

### [`v5.0.9`](https://togithub.com/typicode/husky/releases/v5.0.9)

[Compare Source](https://togithub.com/typicode/husky/compare/v5.0.8...v5.0.9)

-   fix(install): do not fail if not inside a Git directory (closes [#&#8203;851](https://togithub.com/typicode/husky/issues/851))

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

### [`v5.0.8`](https://togithub.com/typicode/husky/releases/v5.0.8)

[Compare Source](https://togithub.com/typicode/husky/compare/v5.0.7...v5.0.8)

-   fix(install): better handle Git <2.9 ([#&#8203;846](https://togithub.com/typicode/husky/issues/846)) closes [#&#8203;844](https://togithub.com/typicode/husky/issues/844)

### [`v5.0.7`](https://togithub.com/typicode/husky/releases/v5.0.7)

[Compare Source](https://togithub.com/typicode/husky/compare/v5.0.6...v5.0.7)

-   fix(shell): double quote params ([#&#8203;824](https://togithub.com/typicode/husky/issues/824))

### [`v5.0.6`](https://togithub.com/typicode/husky/releases/v5.0.6)

[Compare Source](https://togithub.com/typicode/husky/compare/v5.0.5...v5.0.6)

-   Remove unused files

### [`v5.0.5`](https://togithub.com/typicode/husky/releases/v5.0.5)

[Compare Source](https://togithub.com/typicode/husky/compare/v5.0.4...v5.0.5)

-   Fix custom directory support [#&#8203;827](https://togithub.com/typicode/husky/issues/827)

### [`v5.0.4`](https://togithub.com/typicode/husky/compare/v5.0.3...v5.0.4)

[Compare Source](https://togithub.com/typicode/husky/compare/v5.0.3...v5.0.4)

### [`v5.0.3`](https://togithub.com/typicode/husky/compare/v5.0.2...v5.0.3)

[Compare Source](https://togithub.com/typicode/husky/compare/v5.0.2...v5.0.3)

### [`v5.0.2`](https://togithub.com/typicode/husky/compare/v5.0.1...v5.0.2)

[Compare Source](https://togithub.com/typicode/husky/compare/v5.0.1...v5.0.2)

### [`v5.0.1`](https://togithub.com/typicode/husky/compare/v5.0.0...v5.0.1)

[Compare Source](https://togithub.com/typicode/husky/compare/v5.0.0...v5.0.1)

### [`v5.0.0`](https://togithub.com/typicode/husky/releases/v5.0.0)

[Compare Source](https://togithub.com/typicode/husky/compare/v4.3.8...v5.0.0)

👉 See https://typicode.github.io/husky for breaking changes and new installation instructions.

#### Note about the license

Husky 5 is released under The Parity Public License.

It doesn't affect you if you're using husky in an Open Source project or if you're a sponsor. You're free to use it as usual and I hope you'll enjoy this new release ❤️

If you're using husky in a commercial project, you may want to consider becoming a sponsor to support the project. You can also try it for 30 days.

**This is only for a limited time, husky will be MIT again later.**

#### Migrating

**Important** Husky v5 brings a lot of improvements but is also very different from v4. Git hooks won't work if you only upgrade husky dependency, existing config needs to be migrated too.

The best way to switch to v5 is to follow the new installation instructions and migrate existing hooks command using `husky add`.

### [`v4.3.8`](https://togithub.com/typicode/husky/releases/v4.3.8)

[Compare Source](https://togithub.com/typicode/husky/compare/v4.3.7...v4.3.8)

-   Fix `Cannot read property 'toString' of null`
-   Improve error messages

### [`v4.3.7`](https://togithub.com/typicode/husky/releases/v4.3.7)

[Compare Source](https://togithub.com/typicode/husky/compare/v4.3.6...v4.3.7)

-   Fix: upgrade find-versions to 4.0.0 [typicode/husky#837

### [`v4.3.6`](https://togithub.com/typicode/husky/releases/v4.3.6)

[Compare Source](https://togithub.com/typicode/husky/compare/v4.3.5...v4.3.6)

-   Fix `prepare-commit-msg` on windows [#&#8203;737](https://togithub.com/typicode/husky/issues/737)

### [`v4.3.5`](https://togithub.com/typicode/husky/releases/v4.3.5)

[Compare Source](https://togithub.com/typicode/husky/compare/v4.3.4...v4.3.5)

-   Rollback and do not throw error if husky install fails

### [`v4.3.4`](https://togithub.com/typicode/husky/releases/v4.3.4)

[Compare Source](https://togithub.com/typicode/husky/compare/v4.3.3...v4.3.4)

-   Throw error if husky install fails
-   Add workaround for npm 7 currently missing `INIT_CWD` environment variable

### [`v4.3.3`](https://togithub.com/typicode/husky/compare/v4.3.2...v4.3.3)

[Compare Source](https://togithub.com/typicode/husky/compare/v4.3.2...v4.3.3)

### [`v4.3.2`](https://togithub.com/typicode/husky/compare/v4.3.1...v4.3.2)

[Compare Source](https://togithub.com/typicode/husky/compare/v4.3.1...v4.3.2)

### [`v4.3.1`](https://togithub.com/typicode/husky/compare/v4.3.0...v4.3.1)

[Compare Source](https://togithub.com/typicode/husky/compare/v4.3.0...v4.3.1)

</details>

---

### Configuration

📅 **Schedule**: At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox.

---

This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/carbon-design-system/carbon-for-ibm-dotcom-web-components-test).
  • Loading branch information
renovate[bot] committed Nov 17, 2021
1 parent 552679e commit d7557b8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 44 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -49,7 +49,7 @@
"handlebars-loader": "^1.7.0",
"html-webpack-plugin": "^4.5.1",
"http-server": "^0.12.3",
"husky": "^4.3.0",
"husky": "^7.0.0",
"lint-staged": "^10.4.0",
"mini-css-extract-plugin": "^0.12.0",
"node-sass": "^4.9.4",
Expand Down
48 changes: 5 additions & 43 deletions yarn.lock
Expand Up @@ -3874,11 +3874,6 @@ compare-func@^2.0.0:
array-ify "^1.0.0"
dot-prop "^5.1.0"

compare-versions@^3.6.0:
version "3.6.0"
resolved "https://registry.yarnpkg.com/compare-versions/-/compare-versions-3.6.0.tgz#1a5689913685e5a87637b8d3ffca75514ec41d62"
integrity sha512-W6Af2Iw1z4CB7q4uU4hv646dW9GQuBM+YpC0UvUCWSD8w90SJjp+ujJuXaEMtAXBtSqGfMPuFOVn4/+FlaqfBA==

component-bind@1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/component-bind/-/component-bind-1.0.0.tgz#00c608ab7dcd93897c0009651b1d3a8e1e73bbd1"
Expand Down Expand Up @@ -5773,13 +5768,6 @@ find-up@^5.0.0:
locate-path "^6.0.0"
path-exists "^4.0.0"

find-versions@^3.2.0:
version "3.2.0"
resolved "https://registry.yarnpkg.com/find-versions/-/find-versions-3.2.0.tgz#10297f98030a786829681690545ef659ed1d254e"
integrity sha512-P8WRou2S+oe222TOCHitLy8zj+SIsVJh52VP4lvXkaFVnOFFdoWv1H1Jjvel1aI6NCFOAaeAVm8qrI0odiLcww==
dependencies:
semver-regex "^2.0.0"

findup-sync@^3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/findup-sync/-/findup-sync-3.0.0.tgz#17b108f9ee512dfb7a5c7f3c8b27ea9e1a9c08d1"
Expand Down Expand Up @@ -6662,21 +6650,10 @@ human-signals@^2.1.0:
resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-2.1.0.tgz#dc91fcba42e4d06e4abaed33b3e7a3c02f514ea0"
integrity sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==

husky@^4.3.0:
version "4.3.0"
resolved "https://registry.yarnpkg.com/husky/-/husky-4.3.0.tgz#0b2ec1d66424e9219d359e26a51c58ec5278f0de"
integrity sha512-tTMeLCLqSBqnflBZnlVDhpaIMucSGaYyX6855jM4AguGeWCeSzNdb1mfyWduTZ3pe3SJVvVWGL0jO1iKZVPfTA==
dependencies:
chalk "^4.0.0"
ci-info "^2.0.0"
compare-versions "^3.6.0"
cosmiconfig "^7.0.0"
find-versions "^3.2.0"
opencollective-postinstall "^2.0.2"
pkg-dir "^4.2.0"
please-upgrade-node "^3.2.0"
slash "^3.0.0"
which-pm-runs "^1.0.0"
husky@^7.0.0:
version "7.0.4"
resolved "https://registry.yarnpkg.com/husky/-/husky-7.0.4.tgz#242048245dc49c8fb1bf0cc7cfb98dd722531535"
integrity sha512-vbaCKN2QLtP/vD4yvs6iz6hBEo6wkSzs8HpRah1Z6aGmF2KW5PdYuAd7uX5a+OyBZHBhd+TFLqgjUgytQr4RvQ==

iconv-lite@0.4.24, iconv-lite@^0.4.17:
version "0.4.24"
Expand Down Expand Up @@ -8814,11 +8791,6 @@ onetime@^5.1.0, onetime@^5.1.2:
dependencies:
mimic-fn "^2.1.0"

opencollective-postinstall@^2.0.2:
version "2.0.3"
resolved "https://registry.yarnpkg.com/opencollective-postinstall/-/opencollective-postinstall-2.0.3.tgz#7a0fff978f6dbfa4d006238fbac98ed4198c3259"
integrity sha512-8AV/sCtuzUeTo8gQK5qDZzARrulB3egtLzFgteqB2tcT4Mw7B8Kt7JcDHmltjz6FOAHsvTevk70gZEbhM4ZS9Q==

opener@^1.5.1:
version "1.5.2"
resolved "https://registry.yarnpkg.com/opener/-/opener-1.5.2.tgz#5d37e1f35077b9dcac4301372271afdeb2a13598"
Expand Down Expand Up @@ -9300,7 +9272,7 @@ pkg-dir@^3.0.0:
dependencies:
find-up "^3.0.0"

pkg-dir@^4.1.0, pkg-dir@^4.2.0:
pkg-dir@^4.1.0:
version "4.2.0"
resolved "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-4.2.0.tgz#f099133df7ede422e81d1d8448270eeb3e4261f3"
integrity sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==
Expand Down Expand Up @@ -10636,11 +10608,6 @@ semver-compare@^1.0.0:
resolved "https://registry.yarnpkg.com/semver-compare/-/semver-compare-1.0.0.tgz#0dee216a1c941ab37e9efb1788f6afc5ff5537fc"
integrity sha1-De4hahyUGrN+nvsXiPavxf9VN/w=

semver-regex@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/semver-regex/-/semver-regex-2.0.0.tgz#a93c2c5844539a770233379107b38c7b4ac9d338"
integrity sha512-mUdIBBvdn0PLOeP3TEkMH7HHeUP3GjsXCwKarjv/kGmUFOYg1VqEemKhoQpWMu6X2I8kHeuVdGibLGkVK+/5Qw==

"semver@2 || 3 || 4 || 5", semver@^5.3.0, semver@^5.4.1, semver@^5.5.0, semver@^5.6.0:
version "5.7.1"
resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.1.tgz#a954f931aeba508d307bbf069eff0c01c96116f7"
Expand Down Expand Up @@ -12752,11 +12719,6 @@ which-module@^2.0.0:
resolved "https://registry.yarnpkg.com/which-module/-/which-module-2.0.0.tgz#d9ef07dce77b9902b8a3a8fa4b31c3e3f7e6e87a"
integrity sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=

which-pm-runs@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/which-pm-runs/-/which-pm-runs-1.0.0.tgz#670b3afbc552e0b55df6b7780ca74615f23ad1cb"
integrity sha1-Zws6+8VS4LVd9rd4DKdGFfI60cs=

which@1, which@^1.2.14, which@^1.2.9, which@^1.3.1:
version "1.3.1"
resolved "https://registry.yarnpkg.com/which/-/which-1.3.1.tgz#a45043d54f5805316da8d62f9f50918d3da70b0a"
Expand Down

0 comments on commit d7557b8

Please sign in to comment.