Repository navigation
fix(deps): update dependency type-fest to v5 - #179
Merged
Merged
Conversation
gr2m
approved these changes
Sep 14, 2025
|
π This PR is included in version 5.4.3 π The release is available on: Your semantic-release bot π¦π |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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:
^4.0.0->^5.0.0Release Notes
sindresorhus/type-fest (type-fest)
v5.0.0Compare Source
Breaking
b5b0214cc2b0f2type-festrequiresstrict: truein your tsconfig.StringKeyOf: Rename toKeyAsStringe492c9cArrayTail: EnablepreserveReadonlyby default and remove the optionb34b1d8CamelCase/CamelCasedProperties/CamelCasedPropertiesDeep/PascalCase/PascalCasedProperties/PascalCasedPropertiesDeep: DisablepreserveConsecutiveUppercaseby default8226c1bPartialDeep: DisableallowUndefinedInNonTupleArraysby defaultb3c4524Split: EnablestrictLiteralChecksby default544a846Paths: DefaultmaxRecursionDepth5 (was 10)2ab5decObservableLike: Move to sub-export2a1072eIf*types in favor of a singleIf4c2151aNew types
Alphanumericβ Single alphanumeric character (AβZ,aβz,0β9).484e030AllExtendβ Evaluates totrueif every element of a tuple/array extendsU.c8c6d55ConditionalSimplifyβ Simplifies a typeβs unions/intersections with opt-in controls.b7a4771ConditionalSimplifyDeepβ Deep version ofConditionalSimplifythat recurses into objects.b7a4771DigitCharacterβ Single ASCII digit character (0β9).484e030ExcludeStrictβ Non-distributive, stricter variant ofExclude<T, U>.e6f62a2ExtendsStrictβ Non-distributiveA extends Bcheck.d71242aExtractStrictβ Non-distributive, stricter variant ofExtract<T, U>.98d24faIsLowercaseβ Evaluates totrueif a string literal is all lowercase.afe132cIsNullableβ Evaluates totrueifTincludesnull.5067e25IsOptionalβ Evaluates totrueifTincludesundefined.5067e25IsOptionalKeyOfβ Evaluates totrueif propertyKofTis optional.93728b5IsReadonlyKeyOfβ Evaluates totrueif propertyKofTis readonly.93728b5IsRequiredKeyOfβ Evaluates totrueif propertyKofTis required.93728b5IsUnionβ Evaluates totrueifTis a union type.b3d92edIsUndefinedβ Evaluates totrueif the type is exactlyundefined.f7bc576IsUppercaseβ Evaluates totrueif a string literal is all uppercase.afe132cLowercaseLetterβ Single lowercase Latin letter (aβz).484e030RemovePrefixβ Removes a specified prefix from a string literal.18a1c04UppercaseLetterβ Single uppercase Latin letter (AβZ).484e030Improvements
Jsonify: HandleunknownasJsonValue642bb13SetRequired/SetOptional/SetReadonly: Handle functions with propertiesa5e45d4Schema: Preserve arrays/remove extraneous unions8a96def; dropundefinedforrecurseIntoArrays1cb955bReadonlyKeysOf/WritableKeysOf: Addobjectconstrainta6efbe0TsConfigJson: Add TypeScript 5.9 fieldsd2bda94Fixes
Or: Fix withboolean,never,any42d6106And: Fix withboolean,never,anyb38ac60IsStringLiteral: Fix uncollapsed unions, and tagged typeseb37799/d1b35c7Paths: Fix behavior with index signatures9926e5dConditionalKeys: Fix behavior with arrays and unions4d7cc50RequiredDeep: Fix withundefinedbfcdbc4Split: Fix template strings ending with interpolation853b881ArrayTail: Fix fix non-tuple arraysf3aabd8UnionMinandUnionMaxd52d5e7Meta
Huge thanks to all the contributors to this release, especially @βsom-sm π
v4.41.0Compare Source
SetNonNullableDeeptype (#β1117)b9606e7LessThan/GreaterThan/GreaterThanOrEqual: Fix behaviour with unions (#β1116)afd809aRequireAllOrNone/RequireAtLeastOne/RequireExactlyOne/RequireOneOrNone: Fix behaviour withanyandnever(#β1113)8c154e9v4.40.1Compare Source
PartialDeep: Fix behaviour with functions containing properties (#β1108)86a3a69CamelCasedPropertiesDeep/DelimiterCasedPropertiesDeep/KebabCasedPropertiesDeep/PascalCasedPropertiesDeep/SnakeCasedPropertiesDeep: Fix behaviour when property value isunknown(#β1112)cfcf9ecv4.40.0Compare Source
NonEmptyStringtype (#β1103)19a9c37UnknownMaptype (#β1106)b4ace2dUnknownSettype (#β1106)b4ace2dIsFloat/IsInteger: Fix instantiations with numbers represented using exponential notation (#β1101)21a92f6v4.39.1Compare Source
OptionalKeysOf/WritableKeysOf: Fix generic assignability withkeyof T(#β1098)1b41ed3v4.39.0Compare Source
ArrayTail: AddpreserveReadonlyoption (#β1091)544271ePartialDeep: Fix behaviour whenstrictNullChecksis disabled (#β1096)7536baeOptionalKeysOf/RequiredKeysOf: Fix instantiations with unions and arrays (#β1089)e1ac7b2WritableKeysOf/ReadonlyKeysOf: Fix behavior with unions and optional properties (#β1088)bbf9137v4.38.0Compare Source
AsyncReturnType: Add support forPromiseLike(#β1082)72ccde9DelimiterCase/SnakeCase/ScreamingSnakeCase/KebabCase: Fix instantiations containing punctuations (#β1080)063e28dDelimiterCase: PassOptionsgeneric to all related types (#β1078)1974944CamelCasedPropertiesDeep: Make nested array objects respect the options (#β1077)c11c9cav4.37.0Compare Source
Sum: Add negative return value support (#β1068)af5bfb7Subtract: Add negative return value support (#β1061)2b85ae2Split: AddstrictLiteralChecksoption (#β1067)cc93f85Split: Fix instantiations with unions (#β1067)cc93f85Replace: Fix instantiations with unions (#β1065)a733698DelimiterCase/SnakeCase/ScreamingSnakeCase/KebabCase: Fix default value forsplitOnNumbersoption (#β1073)e462e72v4.36.0Compare Source
TsConfigJson: Add TypeScript 5.8 fields (#β1064)918156aReplace: Add support for generating longer strings (#β1060)3c03a0dDelimiterCase: Internal improvements (#β930)a463c30v4.35.0Compare Source
TupleToObjecttype (#β1055)c8149ecPaths: Adddepthoption (#β1058)2633e5bv4.34.1Compare Source
OmitDeep: Fix import statement (#β1052)e5b66a4v4.34.0Compare Source
AllUnionFieldstype (#β997)9aba4c3Paths: AddleavesOnlyoption (#β1050)7dfb307OmitDeep: Fix removal of multiple paths within arrays (#β1049)fa6e31bv4.33.0Compare Source
StringRepeat: Add support for generating longer strings & fix instantiations with unions (#β1046)fbccaabSplit: Add support for longer strings (#β1042)49605b9Get: Optimize performance (#β1031)cfb5947KeysOfUnion: Fix assignability withkeyof(#β1009)4789c7cIsStringLiteral: Fix instantiations with infinite string types (#β1044)e7800afSetRequiredDeep: Fix handling of unions in nested keys (#β1037)bf5ce3cStringSlice: Fix return type when passing in non-literal (#β1036)979eccfSum/Subtract: Fix instantiations with unions (#β1034)69bfd51v4.32.0Compare Source
New types
IsTuple(#β1024)1e0872dSetRequiredDeep(#β939)3d54627Improvements
PartialDeep: AddallowUndefinedInNonTupleArraysoption (#β1019)278df80Fixes
SetRequired: Fix support for removal of optional modifiers from tuples (#β1030)c897aadv4.31.0Compare Source
SetFieldType: Add option to preserve property modifiers (#β1017)59517cbIsEqual: Fix identity issue (#β1012)591700aSetOptional: Fix instantiations with index signatures (#β1014)cb269ffSetRequired: Fix instantiations with index signatures (#β1014)cb269ffSetReadonly: Fix instantiations with index signatures (#β1014)cb269ffv4.30.2Compare Source
527d600SetOptional/SetRequired/SetReadonly: Fix when the second argument isany(#β1007)fdbcb11SetOptional: Fix when instantiated with unions (#β1007)fdbcb11v4.30.1Compare Source
Arrayable: Make it more usable by removingreadonly(#β1003)a128f69v4.30.0Compare Source
SharedUnionFieldstype (#β994)a716c29ArrayTail: Fix support for optional parameters (#β977)f6b1387v4.29.1Compare Source
IsAny: Fix circular constraint error on TypeScript 5.4+ (#β993)32d94ddv4.29.0Compare Source
IntClosedRangetype (#β992)d7b692bSchema: AddrecurseIntoArraysoption (#β960)fbbb8bav4.28.1Compare Source
SharedUnionFieldsDeep: Fix support for optional fields (#β988)4b49b93v4.28.0Compare Source
TsConfigJson: Add TypeScript 5.7 fields (#β987)9d6fff3v4.27.1Compare Source
SharedUnionFieldsDeep: Fix propagation for non union root types (#β984)f215f9fArraySlice: Fix support for union input (#β986)0efbae3v4.27.0Compare Source
Wordstype (#β975)13c0c83Get: Fix handling of paths with number template literal (#β968)b93f54aTsConfigJson: AddnoChecktocompilerOptions(#β981)a470913v4.26.1Compare Source
Exact: Fix usage with recursive types and unions (#β949)91f6d39v4.26.0Compare Source
UnionToTupletype (#β945)1f4f7a1v4.25.0Compare Source
StringRepeattype (#β938)a83e87eArrayabletype #β270 (#β935)9aabcb9v4.24.0Compare Source
Path: AddbracketNotationoption (#β926)3b15a94v4.23.0Compare Source
Paths: AddmaxRecursionDepthoption (#β920)052e887v4.22.1Compare Source
4b74444v4.22.0Compare Source
New types
ArrayTail(#β913)128b21eNonEmptyTuple(#β915)bb57638FindGlobalType(#β908)0086cd6FindGlobalInstanceType(#β908)0086cd6Improvements
RequireXtypes' second parameter is optional (#β907)fee4e04StructuredCloneable: Include web-specific types when available (#β908)0086cd6Fixes
Exact: Fix type when class is present (#β911)bf85819v4.21.0Compare Source
New types
StructuredCloneable(#β897)737550bFixes
Jsonify: Convertundefinedtonullin union element of array (#β901)60c1024Exact: Fix support forDatein union (#β902)d89a709CamelCasedPropertiesDeep: Fix handling of non-recursive types inside target type (#β890)476024dv4.20.1Compare Source
Schema: Fix handling of arrays (#β887)c570ec2Paths: Prevent infinite recursion (#β891)7d4e875v4.20.0Compare Source
SimplifyDeep: Support array (#β888)a6ab051IsLiteral: Returnfalsefor tagged types (#β886)587380cv4.19.0Compare Source
SimplifyDeeptype (#β882)3a04fcfv4.18.3Compare Source
ConditionalKeys: Fix filtering out never type (#β881)863511dv4.18.2Compare Source
CamelCasedPropertiesDeep: Fix tuple being incorrectly turned into array (#β818)4e7bb18v4.18.1Compare Source
ed860e9v4.18.0Compare Source
New types
Or909c38eAnd9d628aaImprovements
TsConfigJson: Addpreservemodule type andES2022lib types (#β874)7096613Opaque: Mark as deprecated (#β867)ef7b580UnwrapOpaque: Mark as deprecated (#β867)ef7b580v4.17.0Compare Source
New types
IsNulld639574Fixes
Zero: Fix missing export (#β870)91a2b1ev4.16.0Compare Source
New types
IsIntegerIsFloatFixes
Integer: Fix handling of some edge-cases (#β857)f5b09deFloat: Fix handling of some edge-cases (#β857)f5b09dev4.15.0Compare Source
New types
SingleKeyObject(#β849)fa1c3f3IfEmptyObject(#β849)fa1c3f3Fixes
ConditionalKeys: Fix TypeScript 5.4 compatibility (#β852)0fb2d62WritableDeep: Fix TypeScript 5.4 compatibility (#β839)2878773ReadonlyDeep: Fix TypeScript 5.4 compatibility (#β839)2878773v4.14.0Compare Source
DistributedPicktype (#β841)fa4099cv4.13.1Compare Source
SetParameterType: Properly fix compatibility with TypeScript 5.4 (#β836)a186adbv4.13.0Compare Source
New types
DistributedOmit(#β820)bc49577Improvements
ArraySlice: Support array spread (#β832)d2d0d01Fixes
SetParameterType: Fix compatibility with TypeScript 5.4 (#β835)2bc451eOmitDeep: Fix handling for when the given path is not matched (#β834)4f14bffv4.12.0Compare Source
New types
ArraySliceStringSliceIsNegativeGreaterThanGreaterThanOrEqualLessThanLessThanOrEqualSumSubtractv4.11.1Compare Source
OmitDeep: Fix internally imported type (#β824)2061925v4.11.0Compare Source
New types
OmitDeep(#β816)0e196aaArraySplice(#β816)0e196aaImprovements
Tagged: Add metadata support (#β723)3ec8dbav4.10.3Compare Source
PartialOnUndefinedDeep: Fix it incorrectly removing non-optional properties when the input type contains an index signature (#β764)2f4b55av4.10.2Compare Source
MergeDeep: Fix compatibility with TypeScript 5.4 (#β807)5f6165av4.10.1Compare Source
exactOptionalPropertyTypes: truetsconfig (#β804)a54e313v4.10.0Compare Source
Get: Fix handling of readonly array (#β799)4a38651SharedUnionFieldsDeep: Skip if input type is not a union type (#β798)6f1db93DelimiterCasedPropertiesDeep: Don't recurse into intersection type that include primitive value (#β789)eb96609Merge: Don't turn undefined into optional key (#β787)0aec247v4.9.0Compare Source
New types
SharedUnionFieldsDeep(#β783)94bb3d3Improvements
ReadonlyDeep: Fix usage with properties defined withvoid(#β782)a919f93ConditionalPickDeep: Support interface (#β776)ebb7a59v4.8.3Compare Source
MergeDeep: Fix optional key when value type isanyornever(#β777)609c097Paths: Ensure it doesn't recurse intoMaporSet's prototype properties (#β772)6759853v4.8.2Compare Source
DelimiterCasedPropertiesDeep: Fix handing of string (#β768)e26c779v4.8.1Compare Source
Jsonify: Fix usage with readonly arrayf8019c2Elementto typeBuiltIns(#β745)"1b25febDOMtypes are not available.v4.8.0Compare Source
PickDeep: Support interface (#β755)1c65935Paths: Support interface (#β746)8fa831eObjectValue: Support any kind of number index (#β753)972815cClass: Fix type inference (#β701)7294cf0DelimiterCasedPropertiesDeep: Improve array handling (#β744)59411c8PartialDeep: Don't recurse intoHTMLElement(#β745)d42ea80preserveConsecutiveUppercasetoPascalCaseand friends (#β749)e58127av4.7.1Compare Source
PartialDeep: Ensure it doesn't recurse into prototype properties" (#β743)9f47b11v4.7.0Compare Source
New types
Configuration
π 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.
π Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.