Repository navigation
Update dependency type-fest to v6 - #1070
Open
renovate-desselbane[bot] wants to merge 1 commit into
Open
renovate-desselbane[bot] wants to merge 1 commit into
renovate-desselbane[bot] wants to merge 1 commit into
Conversation
🦋 Changeset detectedLatest commit: 799f8ea The changes in this PR will be included in the next version bump. This PR includes changesets to release 5 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
renovate-desselbane
Bot
force-pushed
the
renovate/type-fest-6.x
branch
from
November 18, 2026 06:07
43ad390 to
db02e12
Compare
| datasource | package | from | to | | ---------- | --------- | ------ | ----- | | npm | type-fest | 5.10.0 | 6.0.1 |
renovate-desselbane
Bot
force-pushed
the
renovate/type-fest-6.x
branch
from
November 18, 2026 16:59
db02e12 to
799f8ea
Compare
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.
Note
This PR body was truncated due to platform limits.
This PR contains the following updates:
5.10.0→6.0.15.10.0→6.0.1Release Notes
sindresorhus/type-fest (type-fest)
v6.0.1Compare Source
SetOptional,SetRequired,SetReadonly: Fix out-of-memory type-checking with generic keys80b7baaObjectMerge: TreatNaNkeys as numeric916ed24v6.0.0Compare Source
Summary
This is a huge release! 120 new types. All open issues resolved. A huge number of performance and correctness fixes.
Breaking
9ec25939ec2593exactOptionalPropertyTypes: truein your tsconfig82f2b44exactOptionalPropertyTypes: false. Disabling it is unsupported.type-festrequiresstrict, which is the default since TypeScript 6. Do not set it tofalse.IfAny,IfNever,IfUnknown,IfNull, andIfEmptyObjecttypes. UseIfwith the matchingIs*type.6fc1861ReadonlyTupletype. UseReadonly<TupleOf<Length, Element>>.6fc1861CamelCase,PascalCase,KebabCase,SnakeCase,ScreamingSnakeCase,DelimiterCase,Words, and their*CasedProperties/*CasedPropertiesDeeptypes: EnablesplitOnPunctuationby default.ebc42e5KebabCase<'div.card::after'>is now'div-card-after'(was'div.card::after').$is now removed:CamelCase<'$foo'>is'foo'.CamelCase/PascalCase(and their*CasedPropertiestypes): DisablesplitOnNumbersby default976bd26CamelCase<'p2p_network'>is now'p2pNetwork'(was'p2PNetwork'). The other case types already usedfalse.CamelCase/PascalCase(and their*CasedPropertiestypes): EnablepreserveLeadingUnderscoresby default8144ba1CamelCase<'_id'>is now'_id'(was'id'). This matches thecamelcasepackage.PascalCase<'_foo_bar'>is now'_FooBar'(was'FooBar').Words: WithsplitOnPunctuation: false, punctuation now stays inside the word:Words<'hello:world', {splitOnPunctuation: false}>is['hello:world'](was['hello', ':world'])9f2ad66PartialDeep: EnablerecurseIntoArraysby default.ab0e23dallowUndefinedInNonTupleArrays: truenow works alone. Before, it also neededrecurseIntoArrays: true.PartialOnUndefinedDeep: EnablerecurseIntoArraysby default939abe3ExtendsStrict: EnablestrictAnyby default, soExtendsStrict<any, number>is nowfalse. Pass{strictAny: false}to get the old behavior.b2f7ed4Split: Rename thestrictLiteralChecksoption tostrictbc38ddbStringToArray: Replace themapNonLiteralsDirectlyoption withstrict, which has the opposite meaning.{mapNonLiteralsDirectly: true}is now{strict: false}.b61e528ReadonlyDeep: ConvertDateto the newReadonlyDatetype, which has noset*methods.WritableDeepconverts it back toDate.c533251TsConfigJson: Remove the options and values that TypeScript 5.5 removed and that TypeScript 6.0 deprecated.393c0930716fa84e5442065b2db8falseinstead ofneverwhen an input isnever9ec1de5IsEmptyObject,IsFloat,IsInteger,IsNegative,GreaterThan,GreaterThanOrEqual,LessThan,LessThanOrEqual,Includes,IsOptionalKeyOf,IsRequiredKeyOf,IsReadonlyKeyOf, andIsWritableKeyOf.IsNeveror[Result] extends [never], check forfalseinstead.IsNull/IsUndefined: Returnfalseforanyandnever(wastrue)349271e750177a65fc2ebIsOptionalKeyOf/IsRequiredKeyOf/IsReadonlyKeyOf/IsWritableKeyOf: Read a literal key of an index signature like the index signature, and read ananyobject likeRecord<PropertyKey, any>62df5d95a2e786IsOptionalKeyOf<Record<string, number>, 'x'>is nowtrue(wasfalse), andIsRequiredKeyOfis nowfalse.IsReadonlyKeyOf<{readonly [key: string]: number}, 'x'>is nowtrue(wasfalse).anyobject, the result wasnever. Now a literal key is optional and writable, soIsOptionalKeyOf<any, 'a'>andIsWritableKeyOf<any, 'a'>aretrue, andIsRequiredKeyOf<any, 'a'>andIsReadonlyKeyOf<any, 'a'>arefalse. Astring,number, orsymbolkey is required, and ananykey givesboolean.FixedLengthArray: Returnneverfor a non-literal length, likenumber. Use a normal array type for an unknown length.88281feFinite/NonNegative: Returnneverfor the widenumbertype (wasnumber)23e295fNonNegative/Negative: RejectInfinityand-Infinity(for example1e999)608026dJsonifiable: Reject values typedobject, because they can contain anything92aba94ConditionalPickDeep: Matchanyandnevervalues likeConditionalKeys. Anevervalue is no longer picked, and ananyvalue is now picked.02aef94Simplify: Keep functions, class constructors, and branded primitives as is.Simplify<() => void>was{}.28b9f8e7d0a323Merge: Keep the call signatures of the input166b209PartialDeep,ReadonlyDeep,RequiredDeep, and others) no longer recurse into DOM nodes, likeHTMLElemente379753Entries/Entry: Pair each key with its own value.Entry<{a: 1; b: 'x'}>is now['a', 1] | ['b', 'x'](was['a' | 'b', 1 | 'x']).34d036fValueOf: Read the values of every union member.ValueOf<{a: 1} | {b: 2}>is now1 | 2(wasnever).6a0de701a2e90aGet: Returnundefinedfor the union members that do not have the key.Get<{a: 1} | {b: 2}, 'a'>is now1 | undefined(wasunknown).cc955bdLiteralToPrimitiveDeep: Keep tuples as tuples.[1]becomes[number](wasnumber[]).8173c2cLiteralToPrimitive: Returnanyforany65fc2ebMultidimensionalArray/MultidimensionalReadonlyArray: Allow leaf values at all levels when the dimension is not known762b656RemovePrefix/RemoveSuffix: Returnstringwhen a non-literal input cannot contain the affix.RemovePrefix<`user_${string}`, 'admin_'>is nowstring(was`user_${string}`).b8c6ef21fbd1d2IsEmptyObject: Returnfalseforobject(wastrue) and forany(wasboolean)43c237d9ec1de5HasRequiredKeys: Returnfalsefor index signatures, arrays without required elements, andany(wastrue)1c184e6IsFloat: Returnbooleanforany(wasfalse)cdf0edeAsyncify: Keep the return type of each function in a union1b374deSingleKeyObject: Returnneverforboolean(wasboolean), and return broad object types, likeobjectandRecord<string, number>, as is (wasnever)2745e8f43c237dStringToArray: A non-literal part givesstringelements, because each character does not always match the type of the whole part.StringToArray<Lowercase<string>>is nowstring[](wasLowercase<string>[]).b9337f2OpaqueandUnwrapOpaqueare still deprecated, and v7 will remove them. UseTaggedandUnwrapTagged.62c465eNew types
AnyAsyncFunction: Matches any asynchronous function.32c73cdAnyFunction: Matches any function.32c73cdApplyDefaultOptions: Apply default options to specified options, preserving literal types.b22217aArrayAt: Get the type of the element at the given index of an array, likeArray#at().f00afbbArrayChunk: Split an array into consecutive chunks of the given size.b68f6cfArrayFlat: Flatten an array type to the given depth, likeArray#flat().d4b8be9ArrayGroupBy: Group an array of objects by a property, preserving the order within each group.b68f6cfArrayToRecord: Transforms an array of objects into a record keyed by one of their properties.beb7d8aArrayTrim: Remove the elements of the given type from both ends of an array.219ea42ArrayTrimEnd: Remove the elements of the given type from the end of an array.219ea42ArrayTrimStart: Remove the elements of the given type from the start of an array.219ea42ArrayUnique: Remove duplicate element types from an array, preserving their first occurrence.b68f6cfArrayZip: Pair the elements at matching positions in two arrays.b68f6cfAsciiPunctuationCharacter: Matches a single ASCII punctuation character.fbecabaAsExtendable: Allow any object type to be used in theextendsclause of an interface or theimplementsclause of a class, which otherwise only accept a type name.9b93e09AsyncFunction: Matches an asynchronous function.32c73cdCamelCaseString: Astringthat is in camel case, like'fooBar'.70e7c1aCollapseLiterals: Collapse literal union members into broader types already present in the union.ef86da2ConsistsOnlyOf: Returns a boolean for whether a string consists only of zero or more repetitions of the given pattern.d941796Curry: Convert a function into a chain of functions that each accept one argument.b68f6cfDefaultsFor: Create the type of a defaults object for the given options type, with only its optional keys, made required.6d3571cEmptyArray: Represents a strictly empty readonly array, implemented as the readonly empty tuplereadonly [].15416b2ExcludeValues: Exclude the given type from the value of every property in an object type, or every element in an array type.8b6905cExtractLiterals: Extract the literal types from a union, removing wide types likestringand infinite string types like`on${string}`.29ab96dExtractValues: Extract the given type from the value of every property in an object type, or every element in an array type.4fbae20Falsy: Matches any falsy value.27f2429FirstArrayElement: Extract the type of the first element of an array.8d73897Flavor: Attach a name to a type without requiring a cast, so that differently named types cannot be mixed.adf9875FromEntries: Create an object type from an array of key-value pairs.b68f6cfFunctionParameters: Extract the parameters of a function type as a tuple.c437399GuardedType: Extract the type that a type predicate function narrows its parameter to.65955f9HasMultipleCallSignatures: Returns a boolean for whether the given function type has multiple distinct call signatures.9402832IncompatibleKeys: Get the keys that both types have, where the property inSourceis not assignable to the property inTarget.d5d96f6IndexOf: Returns the union of indices at which the given item can be found in the given array.2fbae25IndexTuple: Create a tuple type of the indices of a constant array or tuple.0e170c9InvertRecord: Create a record that maps each property value to its original keys.b68f6cfIsMutuallyAssignable: Returns a boolean for whether the two given types are mutually assignable.abb2df2IsNumberLike: Returns a boolean for whether the given type is anumberor a numeric string.8f1cc35IsNumericString: Returns a boolean for whether the given type is a numeric string without surrounding whitespace.48d6a5fIsPrimitive: Returns a boolean for whether the given type is a primitive.b54cc19IsReadonlyArray: Returns a boolean for whether the given array or tuple is readonly.99268d9IsRecordLike: Returns a boolean for whether the given type is a record-like object.2c97a9bIsTemplateLiteral: Returns a boolean for whether the given type is a template literal type: astringtype with infinitely many possible values, other than plainstring.47ef070IsUnionMember: Returns a boolean for whether the given union type includes the given member.f892fd8IsWhitespace: Returns a boolean for whether a string is non-empty and consists only of whitespace characters.be1b5d8JoinUnion: Join a union of strings and/or numbers using the given string as a delimiter.6a1e840JsonifiableArray: Matches an array that can be losslessly converted to JSON.619b7baJsonifiableObject: Matches an object that can be losslessly converted to JSON.619b7baJsonifiableValue: Validates that a function argument of typeValuecan be losslessly converted to JSON, including aninterface.97fe10aJsonPointer: Generate a union of all possible JSON Pointer strings for the given type.e3f4efbKebabCaseString: Astringthat is in kebab case, like'foo-bar'.70e7c1aLiteralList: Enforces that a tuple contains exactly the members of a union type, with no duplicates or omissions.6a1e840MapKey: Get the key type of aMap,ReadonlyMap, orWeakMap.1ff1dc1MapValue: Get the value type of aMap,ReadonlyMap, orWeakMap.1ff1dc1MatchingKey: Resolve a property key to the matching key type in an object, converting between numeric and string forms when needed.a23883fMergeAll: Merge any number of types into a new type. Keys of each type override keys of the types before it.b550b41MinimumLengthArray: Create an array type with at least the given number of elements of the given type.8303a6eModify: Create a type from an object type and a modifier type, where keys of the modifier type override keys of the object type, and keys with thenevertype are removed from the result.6981c50ModifyDeep: Recursively create a type from an object type and a modifier type, where keys of the modifier type override keys of the object type, and keys with thenevertype are removed from the result.6981c50Negate: Returns the specified number with its sign reversed.5b1c348NonNegativeIntegerString: Astringthat represents a non-negative integer, like'42'.df2fb32Not: Returns a boolean for whether the given type isfalse.c3328b0ObjectEntries: Create a type that describes the key-value pairs produced byObject.entries, even for a generic object type.cf1f757ObjectEntry: Create a type that describes a single key-value pair produced byObject.entries, even for a generic object type.cf1f757ObjectToTuple: Convert an object with consecutive numeric keys starting at zero into a tuple.c53a825ObjectToUnion: Create a union of single-property objects, one for each property of the given object.7f522f9OptionalPaths: Get a union of all paths to optional properties in the given object.a1c5705OverloadParameters: Extract the parameter types of all overloads as a union.2508f3cOverloadReturnType: Extract the return types of all overloads as a union.2508f3cOverloads: Extract all overload signatures of the given function type as a tuple, preserving declaration order.2508f3cOverridePropertiesDeep: Override existing properties of the given type deeply. Similar toMergeDeep, but requires overridden keys to exist at every level.c96c9efParsePath: Convert a property path into a tuple of keys, with numeric indices.03f5566PartialApply: Create the type of a function with the given leading arguments already applied.d232733PartialOnUndefined: Create a type where all keys acceptingundefinedtype are set to optional.9ad0fb4PascalCaseString: Astringthat is in pascal case, like'FooBar'.70e7c1aPickNonNever: Pick only the properties of the given object type that do not have thenevertype.a15cfd8PickReadonly: Pick only thereadonlyproperties from the given object type, leaving out the writable ones.892423aPickWritable: Pick only the writable properties from the given object type, leaving out thereadonlyones.892423aPipe: Create the signature of a function pipeline, checking that adjacent stages are compatible.b68f6cfPropertyValue: Get the type of a property, orneverif the key does not exist.37d6f0eReadonlyDate: Matches aDatethat cannot be changed.9c943a5RequireArity: Require a function to have at least the given number of required parameters.50b0027RequiredKeepUndefined: Create a type that makes all keys required, while the keys that were optional also acceptundefined.55dede9RequiredNonNullable: Create a type that makes all keys required and non-nullable, including the elements of an array or tuple.be3f010RequireNone: Create an object type that forbids the given keys, to intersect with another object type.5b12320RouteParameters: Extract the named parameters from a URL route pattern, like/users/:id.e529994ScreamingSnakeCasedProperties: Convert top-level object properties to screaming snake case.2e1d2cdScreamingSnakeCasedPropertiesDeep: Convert object properties to screaming snake case recursively.2e1d2cdScreamingSnakeCaseString: Astringthat is in screaming snake case, like'FOO_BAR'.70e7c1aSetNullable: Create a type that makes the given keys nullable, while keeping the remaining keys as is.f227ed8SetOptionalDeep: Create a type that makes the given keys optional, with support for deeply nested key paths, while keeping the remaining keys as is.2398c41SetOptionalExcept: Create a type that makes all keys optional except the given keys, which are kept as is.0cf968cSetProperty: Set a deeply-nested property on an object using a key path, like Lodash's.set()function.b2f526bSetRequiredExcept: Create a type that makes all keys required except the given keys, which are kept as is.0cf968cSetRequiredNonNullable: Create a type that makes the given keys required and non-nullable, while keeping the remaining keys as is.419959bSimplifyUnion: Flattens a union type to improve type hints shown in editors, by showing the members instead of the type alias names.86ea62cSnakeCaseString: Astringthat is in snake case, like'foo_bar'.70e7c1aStartsWith: Returns a boolean for whether the given string starts with the given prefix.0cbb6e8StrictEventTarget: A stricter version ofEventTargetthat maps event names to event types.52914ecStringReverse: Reverse the order of characters in a string literal type.e074cc4StringToBoolean: Converts a boolean string to a boolean literal.5fde933SubsetOf: Constrain a type to be a subset of another type, returning it as is.c2b0d50SubstituteDeep: Recursively replaces every occurrence of a type in another type.c3e825fThunkable: Create a type that represents either the value or a function that returns the value.cc3e31fToString: Convert a primitive type to its string representation.a9d0e86Truthy: Remove the falsy types from the given type, likeif (value)does.27f2429TupleLength: Return the length of a tuple.3fb7450TupleMax: Returns the maximum number in a tuple of numbers.88dfc59TupleMin: Returns the minimum number in a tuple of numbers.88dfc59TupleToEnum: Create an enum-like object type from a tuple of property keys, where each key maps to itself, or to its index with thenumericoption.87d8020Uncurry: Convert a chain of functions into a function that accepts all arguments at once.d2ba210UndefinableDeep: Create a deep version of another type where leaf values also acceptundefined, keeping object containers present.1d47047UndefinedOnPartial: Create a type where all optional keys are set to also acceptundefined.9ad0fb4UndefinedToOptional: Make properties with a union containingundefinedoptional, removingundefinedfrom their values.8263679UnionMin: Returns the minimum number in a union of numbers.c3099e0UnionToEnum: Create an enum-like object type from a union of property keys, where each key maps to itself.87d8020UnknownCollection: Matches an array, map, or set, including readonly and weak variants.3ab86faUnwrapBrandedPrimitive: Remove brand properties from primitive types while preserving literal types.78a1fd9ValueOfDeep: Create a union of all leaf values in the given object, including values in nested objects and arrays.c708f0bWhitespaceCharacter: Matches a single whitespace character.d2bcd21Improvements
PartialDeep,ReadonlyDeep,RequiredDeep,WritableDeep,NonNullableDeep: Add akeepoption to leave the matching types as isc09e9ecConditionalKeys](https://redirect.github.com/sindresorhus/type-fest/blob/main/source/conditionalConfiguration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR has been generated by Mend Renovate CLI.