Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependency husky to v9 #18

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Update dependency husky to v9 #18

wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jan 27, 2024

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
husky 8.0.3 -> 9.0.11 age adoption passing confidence

Release Notes

typicode/husky (husky)

v9.0.11

Compare Source

v9.0.10

Compare Source

v9.0.9

Compare Source

v9.0.8

Compare Source

v9.0.7

Compare Source

v9.0.6

Compare Source

v9.0.5

Compare Source

v9.0.4

Compare Source

v9.0.3

Compare Source

v9.0.2

Compare Source

What's Changed

New Contributors

Full Changelog: typicode/husky@v9.0.1...v9.0.2

v9.0.1

Compare Source

Kicking off the year with an exciting update!

TLDR;

Improved user experience and a (even) smaller package size while packing in more features!

👋 By the Way

I'm available for remote work (Front-end/Back-end mainly JS/TS but open to other stacks Rails, Go, Elixir). You can contact me at my mail: typicode at gmail 🙂

Introducing husky init

Adding husky to a project is now easier than ever. Although the installation process was straightforward, it often required consulting the documentation.

v8
npm pkg set scripts.prepare="husky install"
npm run prepare
npx husky add .husky/pre-commit "npm test"
v9
npx husky init

Adding a New Hook

Adding a hook is now as simple as creating a file. This can be accomplished using your favorite editor, a script or a basic echo command.

v8
npx husky add  .husky/pre-commit "npm test"
git add --chmod=+x .husky/pre-commit # On Windows
v9
echo "npm test" > .husky/pre-commit

Further Size Reduction

v8 was already the most compact Git hooks manager at approximately 6kB.

v9 takes this a step further, reducing the size to just 3kB, likely making it the smallest devDependency in your toolkit.

To give you an idea of how small it is, the biggest file in the project is the MIT license 😄

More to Come

Additional features are in the pipeline for v9. Stay tuned 🙌

Other Changes

  • Enhanced security with CI and npm --provenance for safer publishing.
  • Added $XDG_CONFIG_HOME support. Move ~/.huskyrc to ~/.config/husky/init.sh for centralized configuration.
  • Fixed permission issue for Windows-created hooks; they no longer need to be executable.
  • Removed husky install. Use husky or husky some/dir for the same functionality (deprecation notice to be added).
  • Modified behavior when .git is missing; it now triggers a warning instead of failure.
  • Replaced HUSKY_DEBUG=1 with HUSKY=2 for debugging.
  • Updated the Husky API for module usage.
  • Transitioned to ESM for module usage.
  • Dropped support for Node 14 and 16.
  • Revamped docs.

How to Migrate

v9 is backward compatible with v8, allowing you to freely upgrade and migrate your hooks later.

package.json

{
  "scripts": {
-   "prepare": "husky install"
+   "prepare": "husky"
  }
}

.husky/pre-commit

- #!/usr/bin/env sh
- . "$(dirname -- "$0")/_/husky.sh"
npm test

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

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

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

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


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot force-pushed the renovate/husky-9.x branch 4 times, most recently from dd8397f to 603417f Compare February 3, 2024 01:38
@renovate renovate bot force-pushed the renovate/husky-9.x branch 2 times, most recently from ff6f4a6 to e099c51 Compare February 17, 2024 00:57
@renovate renovate bot force-pushed the renovate/husky-9.x branch 2 times, most recently from d526613 to 7381f74 Compare March 9, 2024 16:02
@renovate renovate bot force-pushed the renovate/husky-9.x branch 10 times, most recently from 5d9fd5e to 14fe1ee Compare March 31, 2024 01:29
@renovate renovate bot force-pushed the renovate/husky-9.x branch 11 times, most recently from c4d07a0 to c6d306c Compare April 4, 2024 07:35
@renovate renovate bot force-pushed the renovate/husky-9.x branch 11 times, most recently from 4c6eed1 to 6c5bd79 Compare May 1, 2024 17:41
Copy link
Contributor Author

renovate bot commented May 1, 2024

⚠ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: package-lock.json
npm warn ERESOLVE overriding peer dependency
npm warn While resolving: @strapi/content-releases@4.17.1
npm warn Found: styled-components@6.1.9
npm warn node_modules/styled-components
npm warn   styled-components@"6.1.9" from the root project
npm warn   2 more (babel-plugin-styled-components, strapi-plugin-auto-alt-caption-title-on-images-ai-enhanced)
npm warn
npm warn Could not resolve dependency:
npm warn peer styled-components@"5.3.3" from @strapi/content-releases@4.17.1
npm warn node_modules/@strapi/content-releases
npm warn   @strapi/content-releases@"4.17.1" from @strapi/strapi@4.17.1
npm warn   node_modules/@strapi/strapi
npm warn
npm warn Conflicting peer dependency: styled-components@5.3.3
npm warn node_modules/styled-components
npm warn   peer styled-components@"5.3.3" from @strapi/content-releases@4.17.1
npm warn   node_modules/@strapi/content-releases
npm warn     @strapi/content-releases@"4.17.1" from @strapi/strapi@4.17.1
npm warn     node_modules/@strapi/strapi
npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: @strapi/design-system@1.14.1
npm error Found: styled-components@6.1.9
npm error node_modules/styled-components
npm error   styled-components@"6.1.9" from the root project
npm error   peer styled-components@">= 2" from babel-plugin-styled-components@2.1.4
npm error   node_modules/babel-plugin-styled-components
npm error     babel-plugin-styled-components@">= 1.12.0" from styled-components@5.3.3
npm error     node_modules/@strapi/admin/node_modules/styled-components
npm error       styled-components@"5.3.3" from @strapi/admin@4.17.1
npm error       node_modules/@strapi/admin
npm error         @strapi/admin@"4.17.1" from @strapi/strapi@4.17.1
npm error     babel-plugin-styled-components@">= 1.12.0" from styled-components@5.3.11
npm error     node_modules/strapi-plugin-translate/node_modules/styled-components
npm error       peer styled-components@"^5.2.1" from @strapi/design-system@1.18.0
npm error       node_modules/strapi-plugin-translate/node_modules/@strapi/design-system
npm error         peer @strapi/design-system@"1.18.0" from @strapi/helper-plugin@4.24.0
npm error         node_modules/strapi-plugin-translate/node_modules/@strapi/helper-plugin
npm error       1 more (@strapi/helper-plugin)
npm error   1 more (strapi-plugin-auto-alt-caption-title-on-images-ai-enhanced)
npm error
npm error Could not resolve dependency:
npm error peer styled-components@"^5.2.1" from @strapi/design-system@1.14.1
npm error node_modules/@strapi/design-system
npm error   peer @strapi/design-system@"^1.13.1" from @retikolo/drag-drop-content-types@1.5.2
npm error   node_modules/@retikolo/drag-drop-content-types
npm error     @retikolo/drag-drop-content-types@"^1.5.2" from the root project
npm error   @strapi/design-system@"1.14.1" from @strapi/admin@4.17.1
npm error   node_modules/@strapi/admin
npm error     @strapi/admin@"4.17.1" from @strapi/strapi@4.17.1
npm error   8 more (@strapi/content-releases, @strapi/helper-plugin, ...)
npm error
npm error Conflicting peer dependency: styled-components@5.3.11
npm error node_modules/styled-components
npm error   peer styled-components@"^5.2.1" from @strapi/design-system@1.14.1
npm error   node_modules/@strapi/design-system
npm error     peer @strapi/design-system@"^1.13.1" from @retikolo/drag-drop-content-types@1.5.2
npm error     node_modules/@retikolo/drag-drop-content-types
npm error       @retikolo/drag-drop-content-types@"^1.5.2" from the root project
npm error     @strapi/design-system@"1.14.1" from @strapi/admin@4.17.1
npm error     node_modules/@strapi/admin
npm error       @strapi/admin@"4.17.1" from @strapi/strapi@4.17.1
npm error     8 more (@strapi/content-releases, @strapi/helper-plugin, ...)
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
npm error
npm error
npm error For a full report see:
npm error /tmp/renovate/cache/others/npm/_logs/2024-05-06T07_48_55_119Z-eresolve-report.txt

npm error A complete log of this run can be found in: /tmp/renovate/cache/others/npm/_logs/2024-05-06T07_48_55_119Z-debug-0.log

@renovate renovate bot force-pushed the renovate/husky-9.x branch 2 times, most recently from 4c8dc7a to db4be90 Compare May 1, 2024 19:45
@renovate renovate bot force-pushed the renovate/husky-9.x branch 4 times, most recently from ab7f992 to 5d42067 Compare May 6, 2024 07:49
Copy link
Contributor Author

renovate bot commented May 9, 2024

⚠️ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: package-lock.json
npm warn ERESOLVE overriding peer dependency
npm warn While resolving: api-portefolio-v-6@0.1.0
npm warn Found: styled-components@6.1.9
npm warn node_modules/styled-components
npm warn   styled-components@"6.1.11" from the root project
npm warn   2 more (babel-plugin-styled-components, strapi-plugin-auto-alt-caption-title-on-images-ai-enhanced)
npm warn
npm warn Could not resolve dependency:
npm warn peer styled-components@"^5.2.1" from @strapi/design-system@1.14.1
npm warn node_modules/@strapi/design-system
npm warn   peer @strapi/design-system@"^1.13.1" from @retikolo/drag-drop-content-types@1.5.2
npm warn   node_modules/@retikolo/drag-drop-content-types
npm warn   9 more (@strapi/admin, @strapi/content-releases, ...)
npm warn ERESOLVE overriding peer dependency
npm warn While resolving: api-portefolio-v-6@0.1.0
npm warn Found: styled-components@6.1.9
npm warn node_modules/styled-components
npm warn   styled-components@"6.1.11" from the root project
npm warn   2 more (babel-plugin-styled-components, strapi-plugin-auto-alt-caption-title-on-images-ai-enhanced)
npm warn
npm warn Could not resolve dependency:
npm warn peer styled-components@"^5.2.1" from @strapi/plugin-documentation@4.17.1
npm warn node_modules/@strapi/plugin-documentation
npm warn   @strapi/plugin-documentation@"4.17.1" from the root project
npm warn ERESOLVE overriding peer dependency
npm warn While resolving: api-portefolio-v-6@0.1.0
npm warn Found: styled-components@6.1.9
npm warn node_modules/styled-components
npm warn   styled-components@"6.1.11" from the root project
npm warn   2 more (babel-plugin-styled-components, strapi-plugin-auto-alt-caption-title-on-images-ai-enhanced)
npm warn
npm warn Could not resolve dependency:
npm warn peer styled-components@"^5.2.1" from @strapi/plugin-i18n@4.17.1
npm warn node_modules/@strapi/plugin-i18n
npm warn   @strapi/plugin-i18n@"4.17.1" from the root project
npm warn   1 more (strapi-plugin-translate)
npm warn ERESOLVE overriding peer dependency
npm warn While resolving: api-portefolio-v-6@0.1.0
npm warn Found: styled-components@6.1.9
npm warn node_modules/styled-components
npm warn   styled-components@"6.1.11" from the root project
npm warn   2 more (babel-plugin-styled-components, strapi-plugin-auto-alt-caption-title-on-images-ai-enhanced)
npm warn
npm warn Could not resolve dependency:
npm warn peer styled-components@"^5.2.1" from @strapi/plugin-i18n@4.17.1
npm warn node_modules/@strapi/plugin-i18n
npm warn   @strapi/plugin-i18n@"4.17.1" from the root project
npm warn   1 more (strapi-plugin-translate)
npm warn ERESOLVE overriding peer dependency
npm warn While resolving: api-portefolio-v-6@0.1.0
npm warn Found: styled-components@6.1.9
npm warn node_modules/styled-components
npm warn   styled-components@"6.1.11" from the root project
npm warn   2 more (babel-plugin-styled-components, strapi-plugin-auto-alt-caption-title-on-images-ai-enhanced)
npm warn
npm warn Could not resolve dependency:
npm warn peer styled-components@"^5.2.1" from @strapi/plugin-i18n@4.17.1
npm warn node_modules/@strapi/plugin-i18n
npm warn   @strapi/plugin-i18n@"4.17.1" from the root project
npm warn   1 more (strapi-plugin-translate)
npm warn ERESOLVE overriding peer dependency
npm warn While resolving: api-portefolio-v-6@0.1.0
npm warn Found: styled-components@6.1.9
npm warn node_modules/styled-components
npm warn   styled-components@"6.1.11" from the root project
npm warn   2 more (babel-plugin-styled-components, strapi-plugin-auto-alt-caption-title-on-images-ai-enhanced)
npm warn
npm warn Could not resolve dependency:
npm warn peer styled-components@"^5.2.1" from @strapi/plugin-users-permissions@4.17.1
npm warn node_modules/@strapi/plugin-users-permissions
npm warn   @strapi/plugin-users-permissions@"4.17.1" from the root project
npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: @retikolo/drag-drop-content-types@1.5.2
npm error Found: styled-components@6.1.11
npm error node_modules/styled-components
npm error   styled-components@"6.1.11" from the root project
npm error   peer styled-components@">= 2" from babel-plugin-styled-components@2.1.4
npm error   node_modules/babel-plugin-styled-components
npm error     babel-plugin-styled-components@">= 1.12.0" from styled-components@5.3.3
npm error     node_modules/@strapi/admin/node_modules/styled-components
npm error       styled-components@"5.3.3" from @strapi/admin@4.17.1
npm error       node_modules/@strapi/admin
npm error         @strapi/admin@"4.17.1" from @strapi/strapi@4.17.1
npm error         node_modules/@strapi/strapi
npm error     babel-plugin-styled-components@">= 1.12.0" from styled-components@5.3.11
npm error     node_modules/strapi-plugin-translate/node_modules/styled-components
npm error       peer styled-components@"^5.2.1" from @strapi/design-system@1.18.0
npm error       node_modules/strapi-plugin-translate/node_modules/@strapi/design-system
npm error         peer @strapi/design-system@"1.18.0" from @strapi/helper-plugin@4.24.0
npm error         node_modules/strapi-plugin-translate/node_modules/@strapi/helper-plugin
npm error       1 more (@strapi/helper-plugin)
npm error   1 more (strapi-plugin-auto-alt-caption-title-on-images-ai-enhanced)
npm error
npm error Could not resolve dependency:
npm error peer @strapi/design-system@"^1.13.1" from @retikolo/drag-drop-content-types@1.5.2
npm error node_modules/@retikolo/drag-drop-content-types
npm error   @retikolo/drag-drop-content-types@"^1.5.2" from the root project
npm error
npm error Conflicting peer dependency: styled-components@5.3.11
npm error node_modules/styled-components
npm error   peer styled-components@"^5.2.1" from @strapi/design-system@1.19.0
npm error   node_modules/@strapi/design-system
npm error     peer @strapi/design-system@"^1.13.1" from @retikolo/drag-drop-content-types@1.5.2
npm error     node_modules/@retikolo/drag-drop-content-types
npm error       @retikolo/drag-drop-content-types@"^1.5.2" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
npm error
npm error
npm error For a full report see:
npm error /tmp/renovate/cache/others/npm/_logs/2024-06-07T07_29_43_924Z-eresolve-report.txt
npm error A complete log of this run can be found in: /tmp/renovate/cache/others/npm/_logs/2024-06-07T07_29_43_924Z-debug-0.log

@renovate renovate bot force-pushed the renovate/husky-9.x branch 2 times, most recently from e4aa4e3 to 89f60b8 Compare May 12, 2024 00:12
@renovate renovate bot force-pushed the renovate/husky-9.x branch 2 times, most recently from 859b089 to ed439bb Compare May 30, 2024 22:18
@renovate renovate bot force-pushed the renovate/husky-9.x branch 4 times, most recently from 952e73d to db74e6b Compare June 6, 2024 12:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

0 participants