From 69a9ff9826b1188eb3864e525649c6e8ee2518ef Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 2 Feb 2024 09:29:36 +0000 Subject: [PATCH 1/2] Bump husky from 8.0.3 to 9.0.10 Bumps [husky](https://github.com/typicode/husky) from 8.0.3 to 9.0.10. - [Release notes](https://github.com/typicode/husky/releases) - [Commits](https://github.com/typicode/husky/compare/v8.0.3...v9.0.10) --- updated-dependencies: - dependency-name: husky dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- package-lock.json | 12 ++++++------ package.json | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/package-lock.json b/package-lock.json index bc23023993..f7b29fa251 100644 --- a/package-lock.json +++ b/package-lock.json @@ -38,7 +38,7 @@ "eslint-plugin-promise": "^6.1.1", "gulp": "^4.0.2", "gulp-cli": "^2.3.0", - "husky": "^8.0.3", + "husky": "^9.0.10", "jest": "^29.7.0", "jest-environment-node-single-context": "^29.4.0", "jest-puppeteer": "^9.0.2", @@ -15526,15 +15526,15 @@ } }, "node_modules/husky": { - "version": "8.0.3", - "resolved": "https://registry.npmjs.org/husky/-/husky-8.0.3.tgz", - "integrity": "sha512-+dQSyqPh4x1hlO1swXBiNb2HzTDN1I2IGLQx1GrBuiqFJfoMrnZWwVmatvSiO+Iz8fBUnf+lekwNo4c2LlXItg==", + "version": "9.0.10", + "resolved": "https://registry.npmjs.org/husky/-/husky-9.0.10.tgz", + "integrity": "sha512-TQGNknoiy6bURzIO77pPRu+XHi6zI7T93rX+QnJsoYFf3xdjKOur+IlfqzJGMHIK/wXrLg+GsvMs8Op7vI2jVA==", "dev": true, "bin": { - "husky": "lib/bin.js" + "husky": "bin.mjs" }, "engines": { - "node": ">=14" + "node": ">=18" }, "funding": { "url": "https://github.com/sponsors/typicode" diff --git a/package.json b/package.json index 411ad6dcd0..3da7a5e15f 100644 --- a/package.json +++ b/package.json @@ -70,7 +70,7 @@ "eslint-plugin-promise": "^6.1.1", "gulp": "^4.0.2", "gulp-cli": "^2.3.0", - "husky": "^8.0.3", + "husky": "^9.0.10", "jest": "^29.7.0", "jest-environment-node-single-context": "^29.4.0", "jest-puppeteer": "^9.0.2", From dd2ea400c752b6c1c6822f6d7f2dc92b99719ad1 Mon Sep 17 00:00:00 2001 From: Colin Rotherham Date: Fri, 2 Feb 2024 09:49:51 +0000 Subject: [PATCH 2/2] Patch `prepare` script for Husky switch to ES modules MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We’ve chosen to patch their previous approach since it nicely suppresses errors when installing for production only --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 3da7a5e15f..9df17b1834 100644 --- a/package.json +++ b/package.json @@ -44,7 +44,7 @@ "lint:scss": "npm run lint:scss:cli -- \"**/*.{md,scss}\"", "lint:scss:cli": "stylelint --cache --cache-location .cache/stylelint --cache-strategy content --color --ignore-path .gitignore --max-warnings 0", "lint:types": "tsc --build tsconfig.json", - "prepare": "node -e \"try { require('husky').install() } catch (e) {if (e.code !== 'MODULE_NOT_FOUND') throw e}\"" + "prepare": "node -e \"try { (await import('husky')).default() } catch (e) { if (e.code !== 'ERR_MODULE_NOT_FOUND') throw e }\" --input-type module" }, "devDependencies": { "@babel/core": "^7.23.9",