build(deps): update dependency type-fest to v5 #1339
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:
2.19.0→5.4.3Release Notes
sindresorhus/type-fest (type-fest)
v5.4.3Compare Source
Merge: Fix idempotency, soMerge<A, A>returnsA(#1336)99e35a2Paths: Fix behavior with generic types (#1343)8f0419cv5.4.2Compare Source
SimplifyDeep: Fix behavior with arrays (#1337)a2a180dMerge: Fix behavior with unions (#1327)fa55f48v5.4.1Compare Source
MergeDeep: Remove extraundefinedfrom optional properties (#1319)a6af489v5.4.0Compare Source
New types
ObjectMerge(#1324)ac06066UnwrapPartial(#1296)99b0b07ArrayReverse(#1266)dfbefadv5.3.1Compare Source
PackageJson: Fix key type forDependencyOverrides(#1307)0430f56v5.3.0Compare Source
Improvements
PackageJson: Addoverrides(#1287)8beaa89Fixes
IsEqual: Fix generic inference (#1306)f7b2667ConditionalPickDeep/SimplifyDeep: Prevent mapping over built-ins (#1293)f14a75aArraySlice/StringSlice: Fix behavior with unions (#1291)133258bv5.2.0Compare Source
v5.1.0Compare Source
New types
TupleOf(#1247)7fb2f75Xor(#1254)ad04bc5SplitOnRestElement(#1166)34b8fadExtractRestElement(#1166)34b8fadExcludeRestElement(#1166)34b8fadImprovements
ReadonlyTuple: Deprecate in favor ofTupleOf(#1256)af4bebcTsConfigJson: Add missing lib enum values (#1263)72f491fTsConfigJson: AddrewriteRelativeImportExtensions(#1262)7d011ceFixes
PartialDeep: Fix behavior with functions containing multiple call signatures (#1259)3bd9de6IsEqual: Fix behaviour when instantiated withneverandunknown(#1251)785549fFixedLengthArray: Fix element type (#1246)ee29ef7is-equal: Fix handling with intersecting wrapped types (#1231)5af60a1v5.0.1Compare Source
4f9c248v5.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](https://redirect.github.com/sindresorhus/type-fest/bloConfiguration
📅 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.