From 92c486d3124ece4379a122d004e157074175b83e Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 13 May 2026 23:57:30 +0200 Subject: [PATCH] chore(deps): update dependency husky to v9 (#2995) Signed-off-by: Ludovic Ortega --- .husky/commit-msg | 3 --- .husky/pre-commit | 3 --- .husky/prepare-commit-msg | 2 -- bin/{prepare.js => prepare.mjs} | 3 ++- package.json | 4 ++-- pnpm-lock.yaml | 38 ++++++++++----------------------- 6 files changed, 15 insertions(+), 38 deletions(-) rename bin/{prepare.js => prepare.mjs} (63%) diff --git a/.husky/commit-msg b/.husky/commit-msg index e2f1f0771..522117da1 100755 --- a/.husky/commit-msg +++ b/.husky/commit-msg @@ -1,4 +1 @@ -#!/bin/sh -. "$(dirname "$0")/_/husky.sh" - [ -n "$HUSKY_BYPASS" ] || npx commitlint --edit $1 diff --git a/.husky/pre-commit b/.husky/pre-commit index 36af21989..2312dc587 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1 @@ -#!/bin/sh -. "$(dirname "$0")/_/husky.sh" - npx lint-staged diff --git a/.husky/prepare-commit-msg b/.husky/prepare-commit-msg index 17e2764cd..2d9f99924 100755 --- a/.husky/prepare-commit-msg +++ b/.husky/prepare-commit-msg @@ -1,4 +1,2 @@ -#!/bin/sh -. "$(dirname "$0")/_/husky.sh" exec < /dev/tty && npx cz --hook || true diff --git a/bin/prepare.js b/bin/prepare.mjs similarity index 63% rename from bin/prepare.js rename to bin/prepare.mjs index 5f19878a1..3d195c4e2 100644 --- a/bin/prepare.js +++ b/bin/prepare.mjs @@ -5,5 +5,6 @@ */ const isCi = process.env.CI !== undefined; if (!isCi) { - require('husky').install(); + const husky = (await import('husky')).default; + console.log(husky()); } diff --git a/package.json b/package.json index 7b999dd92..e4c04cf82 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ "typecheck": "pnpm typecheck:server && pnpm typecheck:client", "typecheck:server": "tsc --project server/tsconfig.json --noEmit", "typecheck:client": "tsc --noEmit", - "prepare": "node bin/prepare.js", + "prepare": "node bin/prepare.mjs", "cypress:open": "cypress open", "cypress:prepare": "ts-node -r tsconfig-paths/register --files --project server/tsconfig.json server/scripts/prepareTestDb.ts", "cypress:build": "pnpm build && pnpm cypress:prepare" @@ -163,7 +163,7 @@ "eslint-plugin-react": "7.37.5", "eslint-plugin-react-hooks": "7.1.1", "globals": "^17.5.0", - "husky": "8.0.3", + "husky": "9.1.7", "jiti": "^2.6.1", "lint-staged": "16.4.0", "nodemon": "3.1.14", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 342380b01..8fab8a6d9 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -397,8 +397,8 @@ importers: specifier: ^17.5.0 version: 17.5.0 husky: - specifier: 8.0.3 - version: 8.0.3 + specifier: 9.1.7 + version: 9.1.7 jiti: specifier: ^2.6.1 version: 2.6.1 @@ -2507,9 +2507,6 @@ packages: '@types/estree@1.0.8': resolution: {integrity: sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==} - '@types/express-serve-static-core@4.19.5': - resolution: {integrity: sha512-y6W03tvrACO72aijJ5uF02FRq5cgDR9lUxddQ8vyF+GvmjJQqbzDcJngEjURc+ZsG31VI3hODNZJ2URj86pzmg==} - '@types/express-serve-static-core@5.1.1': resolution: {integrity: sha512-v4zIMr/cX7/d2BpAEX3KNKL/JrT1s43s96lLvvdTmza1oEvDudCqK9aF/djc/SWgy8Yh0h30TZx5VpzqFCxk5A==} @@ -2616,9 +2613,6 @@ packages: '@types/send@0.17.4': resolution: {integrity: sha512-x2EM6TJOybec7c52BX0ZspPodMsQUd5L6PRwOunVyVUhXiBSKf3AezDL8Dgvgt5o0UfKNfuA0eMLr2wLT4AiBA==} - '@types/serve-static@1.15.7': - resolution: {integrity: sha512-W8Ym+h8nhuRwaKPaDw34QUkwsGi6Rc4yYqvKFo5rm2FUEhCFbzVWrxXUxuKK8TASjWsysJY0nsmNCGhCOIsrOw==} - '@types/serve-static@2.2.0': resolution: {integrity: sha512-8mam4H1NHLtu7nmtalF7eyBH14QyOASmcxHhSfEoRyr0nP/YdoesEtU+uSRvMe96TW/HPTtkoKqQLl53N7UXMQ==} @@ -2737,6 +2731,7 @@ packages: '@ungap/structured-clone@1.3.0': resolution: {integrity: sha512-WmoN8qaIAo7WTYWbAZuG8PYEhn5fkz7dZrqTBZ7dtt//lL2Gwms1IcnQ5yHqjDfX8Ft5j4YzDM23f87zBfDe9g==} + deprecated: Potential CWE-502 - Update to 1.3.1 or higher '@unicode/unicode-17.0.0@1.6.16': resolution: {integrity: sha512-advq5p36zZ+PDRUpDkWcHHR++R19kx0LYB5iG3bj0KB8mYVKg0ywS996e2bXeXxDb8XdOF7KTivcx7VkYie1pg==} @@ -4793,9 +4788,9 @@ packages: humanize-ms@1.2.1: resolution: {integrity: sha512-Fl70vYtsAFb/C06PTS9dZBo7ihau+Tu/DNCk/OyHhea07S+aeMWpFFkUaXRa8fI+ScZbEI8dfSxwY7gxZ9SAVQ==} - husky@8.0.3: - resolution: {integrity: sha512-+dQSyqPh4x1hlO1swXBiNb2HzTDN1I2IGLQx1GrBuiqFJfoMrnZWwVmatvSiO+Iz8fBUnf+lekwNo4c2LlXItg==} - engines: {node: '>=14'} + husky@9.1.7: + resolution: {integrity: sha512-5gs5ytaNjBrh5Ow3zrvdUUY+0VxIuWVL4i9irt6friV+BqdCfmV11CQTWMiBYWHbXhco+J1kHfTOUkePhCDvMA==} + engines: {node: '>=18'} hasBin: true i18n-locales@0.0.5: @@ -7793,10 +7788,12 @@ packages: uuid@8.3.2: resolution: {integrity: sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==} + deprecated: uuid@10 and below is no longer supported. For ESM codebases, update to uuid@latest. For CommonJS codebases, use uuid@11 (but be aware this version will likely be deprecated in 2028). hasBin: true uuid@9.0.1: resolution: {integrity: sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==} + deprecated: uuid@10 and below is no longer supported. For ESM codebases, update to uuid@latest. For CommonJS codebases, use uuid@11 (but be aware this version will likely be deprecated in 2028). hasBin: true v8-compile-cache-lib@3.0.1: @@ -10399,7 +10396,7 @@ snapshots: '@types/csurf@1.11.5': dependencies: - '@types/express-serve-static-core': 4.19.5 + '@types/express-serve-static-core': 5.1.1 '@types/debug@0.0.31': {} @@ -10428,13 +10425,6 @@ snapshots: '@types/estree@1.0.8': {} - '@types/express-serve-static-core@4.19.5': - dependencies: - '@types/node': 22.19.0 - '@types/qs': 6.9.15 - '@types/range-parser': 1.2.7 - '@types/send': 0.17.4 - '@types/express-serve-static-core@5.1.1': dependencies: '@types/node': 22.19.0 @@ -10545,12 +10535,6 @@ snapshots: '@types/mime': 1.3.5 '@types/node': 22.19.0 - '@types/serve-static@1.15.7': - dependencies: - '@types/http-errors': 2.0.4 - '@types/node': 22.19.0 - '@types/send': 0.17.4 - '@types/serve-static@2.2.0': dependencies: '@types/http-errors': 2.0.4 @@ -10578,7 +10562,7 @@ snapshots: '@types/swagger-ui-express@4.1.8': dependencies: '@types/express': 5.0.6 - '@types/serve-static': 1.15.7 + '@types/serve-static': 2.2.0 '@types/tmp@0.2.6': {} @@ -13239,7 +13223,7 @@ snapshots: ms: 2.1.3 optional: true - husky@8.0.3: {} + husky@9.1.7: {} i18n-locales@0.0.5: dependencies: