Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

husky

Package Overview
Dependencies
Maintainers
1
Versions
215
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

husky - npm Package Compare versions

Comparing version 0.15.0-beta.16 to 0.15.0-rc.1

DOCS.md

7

CHANGELOG.md
# CHANGELOG
## Beta
## 0.15.0-rc.1

@@ -10,5 +10,8 @@ * `sendemail-validate` hook [#173](https://github.com/typicode/husky/pull/173)

* Support environments where `yarn` is the only package manager installed
* Move config from `package.json` `scripts` field to `husky` field
* Move config from `scripts` field to `husky` field
* Prefer raw names for Git hooks (`pre-commit` rather than `precommit`)
* Drop integrated `nvm` support
* To ease upgrade:
* Provide `husky-upgrade` command
* Add deprecation warning for hooks that are defined in `scripts` (but still run them)

@@ -15,0 +18,0 @@ ## 0.14.3

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ "use strict";

{
"name": "husky",
"version": "0.15.0-beta.16",
"version": "0.15.0-rc.1",
"description": "Prevents bad commit or push (git hooks, pre-commit/precommit, pre-push/prepush, post-merge/postmerge and all that stuff...)",
"bin": {
"husky-upgrade": "./lib/upgrader/bin.js"
},
"scripts": {

@@ -43,27 +46,27 @@ "test": "npm run lint && jest",

"dependencies": {
"cosmiconfig": "^3.0.0",
"execa": "^0.8.0",
"is-ci": "^1.0.10",
"cosmiconfig": "^4.0.0",
"execa": "^0.9.0",
"is-ci": "^1.1.0",
"pkg-dir": "^2.0.0",
"pupa": "^1.0.0",
"read-pkg": "^3.0.0",
"run-node": "^0.1.1",
"run-node": "^0.2.0",
"slash": "^1.0.0"
},
"devDependencies": {
"@types/jest": "^21.1.8",
"@types/node": "^8.0.58",
"@types/jest": "^22.0.1",
"@types/node": "^9.3.0",
"crlf": "^1.1.1",
"cross-env": "^5.1.1",
"cross-env": "^5.1.3",
"del": "^3.0.0",
"del-cli": "^1.1.0",
"jest": "^21.2.1",
"jest": "^22.1.4",
"mkdirp": "^0.5.1",
"pkg-ok": "^1.1.0",
"prettier": "^1.9.2",
"prettier": "^1.10.2",
"tempy": "^0.2.1",
"tslint": "^5.8.0",
"tslint": "^5.9.1",
"tslint-config-prettier": "^1.6.0",
"tslint-plugin-prettier": "^1.3.0",
"typescript": "^2.6.1"
"typescript": "^2.6.2"
},

@@ -70,0 +73,0 @@ "jest": {

@@ -5,4 +5,2 @@ # husky [![](http://img.shields.io/npm/dm/husky.svg?style=flat)](https://www.npmjs.org/package/husky) [![npm version](https://badge.fury.io/js/husky.svg)](https://www.npmjs.com/package/husky) [![Mac/Linux Build Status](https://img.shields.io/travis/typicode/husky/dev.svg?label=Mac%20OSX%20%26%20Linux)](https://travis-ci.org/typicode/husky) [![Windows Build status](https://img.shields.io/appveyor/ci/typicode/husky/dev.svg?label=Windows)](https://ci.appveyor.com/project/typicode/husky/dev/master)

_beta branch, see [master](https://github.com/typicode/husky) for stable release documentation_
Husky can prevent bad `git commit`, `git push` and more :dog: _woof!_

@@ -13,3 +11,3 @@

```sh
npm install husky@beta --save-dev
npm install husky@next --save-dev
```

@@ -34,2 +32,6 @@

_By default, husky expects your project's `package.json` and your `.git` directory to be at the same level. It can be configured to support monorepos or sub-directories._
Check [documentation](DOCS.md) for more.
## Uninstall

@@ -41,5 +43,5 @@

## Upgrade
## Upgrading from 0.14
If you're upgrading from `0.14`, simply move your hooks to `"husky"` field.
If you're upgrading from `0.14`, simply move your hooks to `husky.hooks`:

@@ -59,18 +61,16 @@ ```diff

Alternatively, you may use any of the files/formats that are supported by [cosmiconfig](https://github.com/davidtheclark/cosmiconfig). This means that you can place your husky hooks config in a `.huskyrc` file or export them from a `husky.config.js` file as well. Cosmiconfig supports `js`, `json`, and `yaml`.
Or run the following command which will do the same automatically for you ;)
## Configure
```
./node_modules/.bin/husky-upgrade
```
By default, husky expects your project's `package.json` and your `.git` directory to be at the same level. It can be configured to support monorepos or sub-directories.
Alternatively, you can also use any of the files/formats that are supported by [cosmiconfig](https://github.com/davidtheclark/cosmiconfig). This means that you can place your husky hooks config in a `.huskyrc` file or export them from a `husky.config.js` file as well. Cosmiconfig supports `js`, `json`, and `yaml` file formats.
Check [documentation](docs.md) for more.
## Features
* Fast, minimalist and simple
* Keeps existing user hooks
* Supports GUI Git clients
* Supports all Git hooks (`pre-commit`, `pre-push`, ...)
* Supports monorepo/sub-directories layouts
* If you were using `ghooks`, it will automatically migrate your previous Git hooks
* Auto-migrates Git hooks installed by `ghooks`

@@ -77,0 +77,0 @@ ## Used by

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc