Husky version 2.3.0 introduces subtle but potentially impactful changes compared to its predecessor, version 2.2.0. Both versions aim to prevent bad commits and pushes by leveraging Git hooks, providing developers with a safety net for code quality. A primary difference lies in the updated dependencies. Version 2.3.0 upgrades the slash dependency from version 2.0.0 to 3.0.0, and read-pkg from v5.0 to v5.1.1. These updates enhance cross-platform compatibility by normalizing file paths and potentially improving performance as well as bug fixes for reading package.json files. The devDependencies also sees major upgrades, notably the introduction of ESLint and related packages (eslint, @typescript-eslint/parser, @typescript-eslint/eslint-plugin, eslint-config-prettier, eslint-config-xo-space, eslint-plugin-prettier) suggesting a shift towards standardized code styling and linting practices using ESLint rather than TSLint (present in v2.2.0). This removes the tslint and tslint-config-prettier and tslint-plugin-prettier dependencies. The move to ESLint provides developers with a modern and widely-supported linting solution. Moreover, developer experience is improved because of the upgrade of the @types packages for jest and node enabling access to newer APIs and features. With the introduction of new dependencies and updates to others, husky 2.3.0, shows a commitment to keeping up with current tooling and practices, which could be appealing for developers who want to integrate the latest tools into their workflow.
The are not vulnerabilities for the version 2.3.0 of the package husky