Releases: balena-io-modules/ui-shared-components
v9.7.6
v9.7.5
v9.7.4
v9.7.3
Update dependency husky to v9
Notable changes
- Fix issue where example pre-commit file is generated incorrectly by @dexmlee in https://github.com/typicode/husky/pull/1519
- @OlegKipchatov made their first contribution in https://github.com/typicode/husky/pull/1495
- @Byron2016 made their first contribution in https://github.com/typicode/husky/pull/1499
- @dexmlee made their first contribution in https://github.com/typicode/husky/pull/1519
- fixes #1494, support
pre-merge-commit
hook by @RainMeoCat in https://github.com/typicode/husky/pull/1497 - @RainMeoCat made their first contribution in https://github.com/typicode/husky/pull/1497
- Improve deprecation notice
- fix: better handle space in
PATH
- #!/usr/bin/env sh # <- This is deprecated, remove it
- . "$(dirname -- "$0")/_/husky.sh" # <- This is deprecated, remove it
- npx jest
bunx husky init
command- Workaround for some hooks implementation on Windows
#!/usr/bin/env sh
and. "$(dirname -- "$0")/_/husky.sh"
are deprecated.husky
command will automatically remove them, no action required.- If you're having code in
~/.huskyrc
please move it to.config/husky/init.sh
- chore: update
package-lock.json
by @btea in https://github.com/typicode/husky/pull/1383 - fix:
export HUSKY=0
in init (fixes #1393) by @typicode in https://github.com/typicode/husky/pull/1395 - fix: rename index.d.ts to index.d.mts by @mrkjdy in https://github.com/typicode/husky/pull/1379
- refactor: rename files by @typicode in https://github.com/typicode/husky/pull/1378
- docs: update index.md by @khaledYS in https://github.com/typicode/husky/pull/1369
- Fix tab detection on install command by @glensc in https://github.com/typicode/husky/pull/1376
- refactor: reduce file size by @typicode in https://github.com/typicode/husky/pull/1377
- fix: typo and source
~/.huskyrc
correctly (compatibility with v8) - docs: fix example by @typicode in https://github.com/typicode/husky/pull/1363
- docs: add favicon by @rakleed in https://github.com/typicode/husky/pull/1354
- chore: apply editorconfig to code only by @typicode in https://github.com/typicode/husky/pull/1355
- docs: update install script to mjs and fix CI checks by @starnayuta in https://github.com/typicode/husky/pull/1357
- Fix unbound variable by @typicode in https://github.com/typicode/husky/pull/1359
- docs: update path to startup files by @ManuelRauber in https://github.com/typicode/husky/pull/1350
- fix: init error by @typicode in https://github.com/typicode/husky/pull/1353
- fix: init create dir before by @typicode in https://github.com/typicode/husky/pull/1348
- refactor: simplify by @typicode in https://github.com/typicode/husky/pull/1349
- fix: init not working on pnpm #1334 by @rozbo in https://github.com/typicode/husky/pull/1347
- docs: fix link by @typicode in https://github.com/typicode/husky/pull/1340
- chore: fix links in issue template by @julien-f in https://github.com/typicode/husky/pull/1341
- fix: add scripts field if not present by @chalkygames123 in https://github.com/typicode/husky/pull/1338
- docs: changelog link by @typicode in https://github.com/typicode/husky/pull/1343
- fix: insert final newline by @chalkygames123 in https://github.com/typicode/husky/pull/1339
- fix: fix git hooks path on windows by @rozbo in https://github.com/typicode/husky/pull/1346
- fix: exit code by @gergelypap in https://github.com/typicode/husky/pull/1336
- docs: typo by @chalkygames123 in https://github.com/typicode/husky/pull/1337
- 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
. Usehusky
orhusky 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
withHUSKY=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.
- "prepare": "husky install"
- #!/usr/bin/env sh
- . "$(dirname -- "$0")/_/husky.sh"
- const husky = require('husky')
- // ...
typicode/husky (husky)
v9.1.6
What's Changed
- Fix issue where example pre-commit file is generated incorrectly by @dexmlee in https://github.com/typicode/husky/pull/1519
New Contributors
- @OlegKipchatov made their first contribution in https://github.com/typicode/husky/pull/1495
- @Byron2016 made their first contribution in https://github.com/typicode/husky/pull/1499
- @dexmlee made their first contribution in https://github.com/typicode/husky/pull/1519
Full Changelog: typicode/husky@v9.1.5...v9.1.6
v9.1.5
What's Changed
- fixes #1494, support
pre-merge-commit
hook by @RainMeoCat in https://github.com/typicode/husky/pull/1497
New Contributors
- @RainMeoCat made their first contribution in https://github.com/typicode/husky/pull/1497
Full Changelog: typicode/husky@v9.1.4...v9.1.5
v9.1.4
- Improve deprecation notice
v9.1.3
- fix: better handle space in
PATH
v9.1.2
Show a message instead of automatically removing deprecated code.
This only concerns projects that still have the following code in their hooks:
- #!/usr/bin/env sh # <- This is deprecated, remove it
- . "$(dirname -- "$0")/_/husky.sh" # <- This is deprecated...
v9.7.2
v9.7.1
v9.7.0
v9.6.6
v9.6.5
v9.6.4
Update dependency lint-staged to v15
Notable changes
- #1471
e3f283b
Thanks @iiroj! - Update minor dependencies, includingmicromatch@~4.0.8
. - #1463
b69ce2d
Thanks @iiroj! - Set the maximum number of event listeners to the number of tasks. This should silence the console warningMaxListenersExceededWarning: Possible EventEmitter memory leak detected
. f0480f0
Thanks @iiroj! - In the previous version the nativegit rev-parse --show-toplevel
command was taken into use for resolving the current git repo root. This version switched the--show-toplevel
flag with--show-cdup
, because on Git installed via MSYS2 the former was returning absolute paths that do not work with Node.jschild_process
. The new flag returns a path relative to the working directory, avoiding the issue.- #1440
a51be80
Thanks @iiroj! - In the previous version the nativegit rev-parse --show-toplevel
command was taken into use for resolving the current git repo root. This version drops the--path-format=absolute
option to support earlier git versions since it's also the default behavior. If you are still having trouble, please try upgradinggit
to the latest version. - #1433
119adb2
Thanks @iiroj! - Use native "git rev-parse" commands to determine git repo root directory and the .git config directory, instead of using custom logic. This hopefully makes path resolution more robust on non-POSIX systems. - #1424
31a1f95
Thanks @iiroj! - Allow approximately equivalent versions of direct dependencies by using the "~" character in the version ranges. This means a more recent patch version of a dependency is allowed if available. - #1423
91abea0
Thanks @iiroj! - Improve error logging when failing to read or parse a configuration file - #1424
ee43f15
Thanks @iiroj! - Upgrade [email protected] 4f4537a
Thanks @iiroj! - Fix release issue with previous version; update dependencies- #1391
fdcdad4
Thanks @iiroj! - Lint-staged no longer tries to load configuration from files that are not checked out. This might happen when using sparse-checkout. - #1371
f3378be
Thanks @iiroj! - Using the--no-stash
flag no longer discards all unstaged changes to partially staged files, which resulted in inadvertent data loss. This fix is available with a new flag--no-hide-partially-staged
that is automatically enabled when--no-stash
is used. - #1362
17bc480
Thanks @antonk52! - update [email protected] - #1368
7c55ca9
Thanks @iiroj! - Update most dependencies - #1368
777d4e9
Thanks @iiroj! - To improve performance, only uselilconfig
when searching for config files outside the git repo. In the regular case, lint-staged finds the config files from the Git index and loads them directly. - #1373
85eb0dd
Thanks @iiroj! - When determining git directory, usefs.realpath()
only for symlinks. It looks likefs.realpath()
changes some Windows mapped network filepaths unexpectedly, causing issues. - #1344
0423311
Thanks @danielbayley! - Add support for loading configuration frompackage.yaml
andpackage.yml
files, supported bypnpm
. - #1355
105d901
Thanks @iiroj! - Suppress some warnings when using the "--quiet" flag - #1339
8e82364
Thanks @iiroj! - Update dependencies, including listr2@7.0.2 to fix an upstream issue affecting lint-staged. - #1217
d2e6f8b
Thanks @louneskmt! - Previously it was possible for a function task to mutate the list of staged files passed to the function, and accidentally affect the generation of other tasks. This is now fixed by passing a copy of the original file list instead. - #1322
66b93aa
Thanks @iiroj! - Require at least Node.js 18.12.0
lint-staged/lint-staged (lint-staged)
v15.2.10
Patch Changes
v15.2.9
Patch Changes
- #1463
b69ce2d
Thanks @iiroj! - Set the maximum number of event listeners to the number of tasks. This should silence the console warningMaxListenersExceededWarning: Possible EventEmitter memory leak detected
.
v15.2.8
Patch Changes
-
f0480f0
Thanks @iiroj! - In the previous version the nativegit rev-parse --show-toplevel
command was taken into use for resolving the current git repo root. This version switched the--show-toplevel
flag with--show-cdup
, because on Git installed via MSYS2 the former was returning absolute paths that do not work with Node.jschild_process
. The new flag returns a path relative to the working directory, avoiding the issue.The GitHub Actions workflow has been updated to install Git via MSYS2, to ensure better future compatibility; using the default Git binary in the GitHub Actions runner was working correctly even with MSYS2.
v15.2.7
Patch Changes
- #1440 [
a51be80
...