Skip to content

Commit

Permalink
chore(deps): update dependency husky to v1 (#1728)
Browse files Browse the repository at this point in the history
This PR contains the following updates:

| Package | Type | Update | Change | References |
|---|---|---|---|---|
| husky | devDependencies | major | `0.14.3` -> `1.1.1` | [source](https://renovatebot.com/gh/typicode/husky) |

---

### Release Notes

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

### [`v1.1.1`](https://renovatebot.com/gh/typicode/husky/blob/master/CHANGELOG.md#&#8203;111)

[Compare Source](https://renovatebot.com/gh/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://renovatebot.com/gh/typicode/husky/blob/master/CHANGELOG.md#&#8203;110)

[Compare Source](https://renovatebot.com/gh/typicode/husky/compare/v1.0.1...v1.1.0)

-   Create `.git/hooks` if it doesn't exist

### [`v1.0.1`](https://renovatebot.com/gh/typicode/husky/blob/master/CHANGELOG.md#&#8203;101)

[Compare Source](https://renovatebot.com/gh/typicode/husky/compare/v1.0.0...v1.0.1)

-   Various `husky-upgrade` changes ([#&#8203;362](https://renovatebot.com/gh/typicode/husky/pull/362), [#&#8203;360](https://renovatebot.com/gh/typicode/husky/pull/360), [#&#8203;359](https://renovatebot.com/gh/typicode/husky/pull/359))

### [`v1.0.0`](https://renovatebot.com/gh/typicode/husky/blob/master/CHANGELOG.md#&#8203;100)

[Compare Source](https://renovatebot.com/gh/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://renovatebot.com/gh/yarnpkg/yarn/) is the only package manager installed
    -   Support [pnpm](https://renovatebot.com/gh/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://renovatebot.com/gh/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)! 🙏

</details>

---

### Renovate configuration

:date: **Schedule**: "after 6pm every weekday,before 8am every weekday" in timezone America/Los_Angeles.

: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.

---

This PR has been generated by [Renovate Bot](https://renovatebot.com/gh/marketplace/renovate). View repository job log [here](https://renovatebot.com/dashboard#apollographql/apollo-server).
  • Loading branch information
renovate[bot] authored and abernix committed Oct 10, 2018
1 parent 17073ed commit 1102887
Show file tree
Hide file tree
Showing 2 changed files with 132 additions and 14 deletions.
138 changes: 126 additions & 12 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"clean": "git clean -dfqX -- ./node_modules **/{dist,node_modules}/",
"compile": "tsc --build",
"release": "npm run clean && npm ci && lerna publish --exact",
"precommit": "lint-staged",
"postinstall": "lerna run prepare && npm run compile",
"lint": "prettier-check '**/*.{js,ts}'",
"lint-fix": "prettier '**/*.{js,ts}' --write",
Expand Down Expand Up @@ -88,7 +87,7 @@
"graphql-tag": "2.10.0",
"graphql-tools": "4.0.0",
"hapi": "17.6.0",
"husky": "0.14.3",
"husky": "1.1.1",
"jest": "23.6.0",
"jest-junit": "5.2.0",
"jest-matcher-utils": "23.6.0",
Expand Down Expand Up @@ -140,5 +139,10 @@
"diagnostics": false
}
}
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
}
}

0 comments on commit 1102887

Please sign in to comment.