Eslint-plugin-react-hooks offers crucial ESLint rules for React Hooks, ensuring code adheres to best practices and prevents common errors when working with hooks in React applications. Comparing version 4.1.1 and 4.1.0 reveals key updates beneficial for developers. While both versions maintain the same core functionality, description, peer dependencies requiring eslint versions 3.0.0 through 7.0.0, and MIT license, version 4.1.1 introduces significant improvements in TypeScript support and build-related aspects, making it a more robust and reliable choice.
The primary difference lies in the devDependencies. Version 4.1.0 relies solely on @typescript-eslint/parser version ^2.26.0. In contrast, version 4.1.1 expands TypeScript parser support, incorporating @typescript-eslint/parser-v2 aliased to @typescript-eslint/parser@^2.26.0, @typescript-eslint/parser-v3 aliased to @typescript-eslint/parser@^3.10.0, and @typescript-eslint/parser-v4 aliased to @typescript-eslint/parser@^4.1.0. This expanded range ensures compatibility with a wider range of TypeScript projects, preventing potential parsing issues and improving the developer experience when using the plugin in TypeScript codebases, supporting projects using @typescript-eslint/parser from version 2 up to version 4. Furthermore, the file size changed from 118294 to 116112. Version 4.1.1 improves compatibility with different TS versions, and also optimizes build size. Updating to version 4.1.1 is highly recommended for projects using React Hooks and TypeScript.
The are not vulnerabilities for the version 4.1.1 of the package eslint-plugin-react-hooks