Releases: balena-io/balena-sdk
v20.6.9
v20.6.8
v20.6.7
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
](https://red...
v20.6.6
v20.6.5
Update dependency jsdoc-to-markdown to v9
Notable changes
- Fixed a regression where spaces in the jsdoc binary path caused jsdoc2md to fail. #307
- Implemented a permanent fix for the critical
util.isRegExp is not a function
issue in Node v23, replacing the previous temporary workaround. #306 - Temporary workaround fix for critical
util.isRegExp is not a function
issue in Node v23: #306 - Fixed a scenario where
--EOL
failed to correctly replace naked CR characters created by jsdoc. jsdoc2md/dmd#102 - Removed
.renderSync()
,.getTemplateDataSync()
and.getJsdocDataSync()
. The jsdoc2md API is now async-only. - Previously, passing either
option.files
oroption.source
was mandatory. Now, it is eitheroption.files
,option.source
oroption.configure
. https://github.com/jsdoc2md/jsdoc-api/issues/27 - Fixed a bug where it was possible for a handlebars template to be passed into the jsdoc-api
template
option. #303 - Support clever-links, monospace-links,
{@​linkcode}
and{@​linkplain}
. #301 - Fixed a 'maximum call stack size exceeded' error. The user now gets a warning if the malformed input which formerly caused the error is detected. https://github.com/jsdoc2md/dmd/issues/89
- Fixed an issue where the dmd internal partials failed to load if a user's directory name contained special glob characters. https://github.com/jsdoc2md/dmd/issues/82
- Added the
--EOL
option to control line-endings. Fixes https://github.com/jsdoc2md/dmd/issues/92. - Fixed an issue where setting
{ pedantic: false }
confused the underlying jsdoc. https://github.com/jsdoc2md/jsdoc-api/issues/22 - Can now pass an array of strings to
.source
. https://github.com/jsdoc2md/jsdoc-api/issues/11 - Added support for
@hideconstructor
. https://github.com/jsdoc2md/dmd/issues/94 - Print a warning when the most common mistake is detected (
@module
tag required) https://github.com/jsdoc2md/dmd/issues/96 - Fixed an issue where a
@example
was excluded in the output if the doclet did not contain a description. https://github.com/jsdoc2md/jsdoc-parse/issues/33 - Greatly optimised the dependency tree - upgraded all deps to their latest versions (removing deprecation warnings) and factored many old modules out of the project.
- Update your code replacing any use of
.renderSync()
,.getTemplateDataSync()
and.getJsdocDataSync()
with their async equivalents.
jsdoc2md/jsdoc-to-markdown (jsdoc-to-markdown)
v9.0.5
Non-breaking changes since v9.0.4
- Fixed a regression where spaces in the jsdoc binary path caused jsdoc2md to fail. #307
v9.0.4
Non-breaking change
- Implemented a permanent fix for the critical
util.isRegExp is not a function
issue in Node v23, replacing the previous temporary workaround. #306
v9.0.3
Non-breaking change
- Temporary workaround fix for critical
util.isRegExp is not a function
issue in Node v23: #306
v9.0.2
Non-breaking
- Fixed a scenario where
--EOL
failed to correctly replace naked CR characters created by jsdoc. jsdoc2md/dmd#102
v9.0.1
v9.0.0
The default output has not changed. The minimum required Node version is still v12.17. The goals for this release were bug fixing and simplification. Feel free to comment in the release discussion or post an issue.
Breaking changes since v8.0.3
- Removed
.renderSync()
,.getTemplateDataSync()
and.getJsdocDataSync()
. The jsdoc2md API is now async-only. - Previously, passing either
option.files
oroption.source
was mandatory. Now, it is eitheroption.files
,option.source
oroption.configure
. https://github.com/jsdoc2md/jsdoc-api/issues/27
Non-breaking changes
- Fixed a bug where it was possible for a handlebars template to be passed into the jsdoc-api
template
option. #303 - Support clever-links, monospace-links,
{@​linkcode}
and{@​linkplain}
. #301 - Fixed a 'maximum call stack size exceeded' error. The user now gets a warning if the malformed input which formerly caused the error is detected. https://github.com/jsdoc2md/dmd/issues/89
- Fixed an issue where the dmd internal partials failed to load if a user's directory name contained special glob characters. https://github.com/jsdoc2md/dmd/issues/82
- Added the
--EOL
option to control line-endings. Fixes https://github.com/jsdoc2md/dmd/issues/92. - Fixed an issue where setting
{ pedantic: false }
confused the underlying jsdoc. https://github.com/jsdoc2md/jsdoc-api/issues/22 - Can now pass an array of strings to
.source
. https://github.com/jsdoc2md/jsdoc-api/issues/11 - Added support for
@hideconstructor
. https://github.com/jsdoc2md/dmd/issues/94 - Print a warning when the most common mistake is detected (
@module
tag required) https://github.com/jsdoc2md/dmd/issues/96 - Fixed an issue where a
@example
was excluded in the output if the doclet did not contain a description. https://github.com/jsdoc2md/jsdoc-parse/issues/33
Other improvements
- Greatly optimised the dependency tree - upgraded all deps to their latest versions (removing deprecation warnings) and factored many old modules out of the project.
Upgrade notes
- Update your code replacing any use of
.renderSync()
,.getTemplateDataSync()
and.getJsdocDataSync()
with their async equivalents.- To see an example of API usage, see here.
List of commits
5fa1b9f (Update dependency jsdoc-to-markdown to v9, 2024-11-14)
v20.6.4
60b984b (Update author, 2024-11-14)
a5ec3e4 (v20.6.3, 2024-11-18)
a5ff553 (Merge pull request #1494 from balena-io/drop-superagent, 2024-11-18)
56405a2 (flowzone: Update windows, ubuntu & macos runners to -latest
, 2024-11-18)
a6e3eaf (tests: Stop using supertest in favor of balena-request, 2024-11-15)
0687e14 (Update dependency sinon to v19, 2024-11-14)
545bf72 (renovate: Block updating majors & minors of balena-hup-action-utils, 2024-11-15)
aed1092 (renovate: Drop the custom rule for majors in favor of the global setting, 2024-11-15)
8a71533 (renovate: Set prHourlyLimit to 1, 2024-11-15)
71008cc (renovate: Avoid rebasing failing PRs, 2024-11-15)
v20.6.3
56405a2 (flowzone: Update windows, ubuntu & macos runners to -latest
, 2024-11-18)
a6e3eaf (tests: Stop using supertest in favor of balena-request, 2024-11-15)
0687e14 (Update dependency sinon to v19, 2024-11-14)
545bf72 (renovate: Block updating majors & minors of balena-hup-action-utils, 2024-11-15)
aed1092 (renovate: Drop the custom rule for majors in favor of the global setting, 2024-11-15)
8a71533 (renovate: Set prHourlyLimit to 1, 2024-11-15)
71008cc (renovate: Avoid rebasing failing PRs, 2024-11-15)
v20.6.2
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 iss...