Chore: Update changesets monorepo [skip netlify] (major) - autoclosed #166
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
8.4.10
->9.6.1
18.11.13
->20.16.3
8.0.2
->9.1.5
13.1.0
->15.2.10
3.3.0
->4.26.0
4.9.4
->5.5.4
Release Notes
typicode/husky (husky)
v9.1.5
Compare Source
v9.1.4
Compare Source
v9.1.3
Compare Source
PATH
v9.1.2
Compare Source
v9.1.1
Compare Source
v9.1.0
Compare Source
Super saiyan
goddog! It's over 9.0.0!There's a bug with this release which prevents the deprecation notice to appear and requires to remove
#!/usr/bin/env sh
and. "$(dirname -- "$0")/_/husky.sh"
(which are deprecated by the way). I'll publish a new version to fix that. Sorry about any inconvenience.What's new
You can now run package commands directly, no need for
npx
or equivalents.It makes writing hooks more intuitive and is also slightly faster 🐺⚡️
A new recipe has been added to the docs. Lint staged files without external dependencies (inspired by Prettier docs). Feel free to modify it.
For more advanced use cases, see lint-staged.
Fixes
bunx husky init
commandDeprecations
#!/usr/bin/env sh
and. "$(dirname -- "$0")/_/husky.sh"
from your hooks~/.huskyrc
to.config/husky/init.sh
Support for these will be removed in v10, notices have been added.
Friendly reminder
If Git hooks don't fit your workflow, you can disable Husky globally. Just add
export HUSKY=0
to.config/husky/init.sh
.I've seen some confusion about this on X, so just a heads-up!
Sponsoring
Husky is downloaded over 45M times per month and used by ~1.5M projects. If your company wants to sponsor, you can do so here: GitHub Sponsors.
Have a nice summer ☀️ I'm open to new opportunities/consulting so feel free to drop me a message 😉
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
~/.huskyrc
correctly (compatibility with v8)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
v9
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
v9
Further Size Reduction
v8
was already the most compact Git hooks manager at approximately6kB
.v9
takes this a step further, reducing the size to just3kB
, 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
--provenance
for safer publishing.$XDG_CONFIG_HOME
support. Move~/.huskyrc
to~/.config/husky/init.sh
for centralized configuration.husky install
. Usehusky
orhusky some/dir
for the same functionality (deprecation notice to be added)..git
is missing; it now triggers a warning instead of failure.HUSKY_DEBUG=1
withHUSKY=2
for debugging.ESM
for module usage.How to Migrate
v9
is backward compatible withv8
, allowing you to freely upgrade and migrate your hooks later.package.json
.husky/pre-commit
v8.0.3
Compare Source
lint-staged/lint-staged (lint-staged)
v15.2.10
Compare Source
Patch Changes
e3f283b
Thanks @iiroj! - Update minor dependencies, includingmicromatch@~4.0.8
.v15.2.9
Compare Source
Patch Changes
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
Compare Source
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
Compare Source
Patch Changes
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.v15.2.6
Compare Source
Patch Changes
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.v15.2.5
Compare Source
Patch Changes
#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]v15.2.4
Compare Source
Patch Changes
4f4537a
Thanks @iiroj! - Fix release issue with previous version; update dependenciesv15.2.2
Compare Source
Patch Changes
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.v15.2.1
Compare Source
Patch Changes
e4023f6
Thanks @iiroj! - Ignore stdin of spawned commands so that they don't get stuck waiting. Until now, lint-staged has used the default settings to spawn linter commands. This means thestdin
of the spawned commands has accepted input, and essentially gotten stuck waiting. Now thestdin
is ignored and commands will no longer get stuck. If you relied on this behavior, please open a new issue and describe how; the behavior has not been intended.v15.2.0
Compare Source
Minor Changes
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.Patch Changes
#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.v15.1.0
Compare Source
Minor Changes
0423311
Thanks @danielbayley! - Add support for loading configuration frompackage.yaml
andpackage.yml
files, supported bypnpm
.Patch Changes
105d901
Thanks @iiroj! - Suppress some warnings when using the "--quiet" flagv15.0.2
Compare Source
Patch Changes
8e82364
Thanks @iiroj! - Update dependencies, including listr2@7.0.2 to fix an upstream issue affecting lint-staged.v15.0.1
Compare Source
Patch Changes
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.v15.0.0
Compare Source
Major Changes
#1322
66b93aa
Thanks @iiroj! - Require at least Node.js 18.12.0This release drops support for Node.js 16, which is EOL after 2023-09-11.
Please upgrade your Node.js to the latest version.
Additionally, all dependencies have been updated to their latest versions.
v14.0.1
Compare Source
Bug Fixes
v14.0.0
Compare Source
Features
BREAKING CHANGES
16.14.0
.v13.3.0
Compare Source
Bug Fixes
Features
listr2@​6.6.0
(09844ca)v13.2.3
Compare Source
Bug Fixes
--diff
option implies--no-stash
(66a716d)v13.2.2
Compare Source
Bug Fixes
[email protected]
(GHSA-f9xv-q969-pqx4) (#1290) (cf691aa)v13.2.1
Compare Source
Bug Fixes
v13.2.0
Compare Source
Bug Fixes
colorette
withchalk
for better color support detection (f598725)Features
v13.1.4
Compare Source
v13.1.3
Compare Source
v13.1.2
Compare Source
Bug Fixes
v13.1.1
Compare Source
Bug Fixes
--stash
when using the--diff
option (99390c3)sindresorhus/type-fest (type-fest)
v4.26.0
Compare Source
UnionToTuple
type (#945)1f4f7a1
v4.25.0
Compare Source
StringRepeat
type (#938)a83e87e
Arrayable
type #270 (#935)9aabcb9
v4.24.0
Compare Source
v4.23.0
Compare Source
Paths
: AddmaxRecursionDepth
option (#920)052e887
v4.22.1
Compare Source
v4.22.0
Compare Source
v4.21.0
Compare Source
New types
StructuredCloneable
(#897)737550b
Fixes
Jsonify
: Convertundefined
tonull
in union element of array (#901)60c1024
Exact
: Fix support forDate
in union (#902)d89a709
CamelCasedPropertiesDeep
: Fix handling of non-recursive types inside target type (#890)476024d
v4.20.1
Compare Source
Schema
: Fix handling of arrays (#887)c570ec2
Paths
: Prevent infinite recursion (#891)7d4e875
v4.20.0
Compare Source
SimplifyDeep
: Support array (#888)a6ab051
IsLiteral
: Returnfalse
for tagged types (#886)587380c
v4.19.0
Compare Source
SimplifyDeep
type (#882)3a04fcf
v4.18.3
Compare Source
ConditionalKeys
: Fix filtering out never type (#881)863511d
v4.18.2
Compare Source
CamelCasedPropertiesDeep
: Fix tuple being incorrectly turned into array (#818)4e7bb18
v4.18.1
Compare Source
v4.18.0
Compare Source
New types
Or
909c38e
And
9d628aa
Improvements
TsConfigJson
: Addpreserve
module type andES2022
lib types (#874)7096613
Opaque
: Mark as deprecated (#867)ef7b580
UnwrapOpaque
: Mark as deprecated (#867)ef7b580
v4.17.0
Compare Source
v4.16.0
Compare Source
New types
IsInteger
IsFloat
Fixes
Integer
: Fix handling of some edge-cases (#857)f5b09de
Float
: Fix handling of some edge-cases (#857)f5b09de
v4.15.0
Compare Source
New types
SingleKeyObject
(#849)fa1c3f3
IfEmptyObject
(#849)fa1c3f3
Fixes
ConditionalKeys
: Fix TypeScript 5.4 compatibility (#852)0fb2d62
WritableDeep
: Fix TypeScript 5.4 compatibility (#839)2878773
ReadonlyDeep
: Fix TypeScript 5.4 compatibility (#839)2878773
v4.14.0
Compare Source
DistributedPick
type (#841)fa4099c
v4.13.1
Compare Source
SetParameterType
: Properly fix compatibility with TypeScript 5.4 (#836)a186adb
v4.13.0
Compare Source
New types
DistributedOmit
(#820)bc49577
Improvements
ArraySlice
: Support array spread (#832)d2d0d01
Fixes
SetParameterType
: Fix compatibility with TypeScript 5.4 (#835)2bc451e
OmitDeep
: Fix handling for when the given path is not matched (#834)4f14bff
v4.12.0
Compare Source
New types
ArraySlice
StringSlice
IsNegative
GreaterThan
GreaterThanOrEqual
LessThan
LessThanOrEqual
Sum
Subtract
v4.11.1
Compare Source
OmitDeep
: Fix internally imported type (#824)2061925
v4.11.0
Compare Source
New types
OmitDeep
(#816)0e196aa
ArraySplice
(#816)0e196aa
Improvements
Tagged
: Add metadata support (#723)3ec8dba
v4.10.3
Compare Source
PartialOnUndefinedDeep
: Fix it incorrectly removing non-optional properties when the input type contains an index signature (#764)2f4b55a
v4.10.2
Compare Source
MergeDeep
: Fix compatibility with TypeScript 5.4 (#807)5f6165a
v4.10.1
Compare Source
exactOptionalPropertyTypes: true
tsconfig (#804)a54e313
v4.10.0
Compare Source
Get
: Fix handling of readonly array (#799)4a38651
SharedUnionFieldsDeep
: Skip if input type is not a union type (#798)6f1db93
DelimiterCasedPropertiesDeep
: Don't recurse into intersection type that include primitive value (#789)eb96609
Merge
: Don't turn undefined into optional key (#787)0aec247
v4.9.0
Compare Source
New types
SharedUnionFieldsDeep
(#783)94bb3d3
Improvements
ReadonlyDeep
: Fix usage with properties defined withvoid
(#782)a919f93
ConditionalPickDeep
: Support interface (#776)ebb7a59
v4.8.3
Compare Source
MergeDeep
: Fix optional key when value type isany
ornever
(#777)609c097
Paths
: Ensure it doesn't recurse intoMap
orSet
's prototype properties (#772)6759853
v4.8.2
Compare Source
DelimiterCasedPropertiesDeep
: Fix handing of string (#768)e26c779
v4.8.1
Compare Source
Jsonify
: Fix usage with readonly arrayf8019c2
Element
to typeBuiltIns
(#745)"1b25feb
DOM
types are not available.v4.8.0
Compare Source
PickDeep
: Support interface (#755)1c65935
Paths
: Support interface (#746)8fa831e
ObjectValue
: Support any kind of number index (#753)972815c
Class
: Fix type inference (#701)7294cf0
DelimiterCasedPropertiesDeep
: Improve array handling (#744)59411c8
PartialDeep
: Don't recurse intoHTMLElement
(#745)d42ea80
preserveConsecutiveUppercase
toPascalCase
and friends (#749)e58127a
v4.7.1
Compare Source
PartialDeep
: Ensure it doesn't recurse into prototype properties" (#743)9f47b11
v4.7.0
Compare Source
New types
PickDeep
(#737)c60caba
Paths
(#741)996171b
SetFieldType
(#721)964466c
UnknownArray
(#740)30aa0ad
Improvements
Writable
: Support array, map, and set (#726)b9723d4
PartialDeep
: Ensure it doesn't recurse into prototype properties (#738)5eeac02
ConditionalPickDeep
: Ensure it doesn't recurse into prototype properties (#736)9960ba4
v4.6.0
Compare Source
New types
ArrayValues
(#720)6c76e4a
ArrayIndices
(#716)c330852
SetParameterType
(#722)9f2388d
Fixes
LastArrayElement
: Fix handling of tuple with spread elements (#727)9630089
PartialDeep
: Skip constructor (#730)75edeef
ReadonlyDeep
: Skip constructor (#728)3ee234a
WritableDeep
: Fix array handling (#724)9baccc3
Meta
8a52129
v4.5.0
Compare Source
New types
UndefinedOnPartialDeep
(#700)d8b44cb
KeysOfUnion
(#709)0517399
IntRange
(#707)e5d145d
Improvements
Jsonify
: Improve type inference for objects with.toJSON()
extending primitives (#690)157ed07
OverrideProperties
: Fix autocomplete in the type ([#&Chore: Bump actions/setup-node from v2.1.4 to v2.1.5 #8Configuration
📅 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.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR was generated by Mend Renovate. View the repository job log.