Skip to content

Update dependency type-fest to v6 - #1070

Open
renovate-desselbane[bot] wants to merge 1 commit into
masterfrom
renovate/type-fest-6.x
Open

renovate-desselbane[bot] wants to merge 1 commit into
masterfrom
renovate/type-fest-6.x

Conversation

@renovate-desselbane

@renovate-desselbane renovate-desselbane Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Note

This PR body was truncated due to platform limits.

This PR contains the following updates:

Package Type Update Change
type-fest devDependencies major 5.10.0 → 6.0.1
type-fest dependencies major 5.10.0 → 6.0.1

Release Notes

sindresorhus/type-fest (type-fest)

v6.0.1

Compare Source

  • SetOptional, SetRequired, SetReadonly: Fix out-of-memory type-checking with generic keys 80b7baa
  • ObjectMerge: Treat NaN keys as numeric 916ed24

v6.0.0

Compare Source

Summary

This is a huge release! 120 new types. All open issues resolved. A huge number of performance and correctness fixes.

Breaking
  • Require TypeScript 6 9ec2593
  • Require Node.js 22 9ec2593
  • Require exactOptionalPropertyTypes: true in your tsconfig 82f2b44
    • The types no longer have compatibility logic for exactOptionalPropertyTypes: false. Disabling it is unsupported.
  • Reminder: type-fest requires strict, which is the default since TypeScript 6. Do not set it to false.
  • Remove the deprecated IfAny, IfNever, IfUnknown, IfNull, and IfEmptyObject types. Use If with the matching Is* type. 6fc1861
  • Remove the deprecated ReadonlyTuple type. Use Readonly<TupleOf<Length, Element>>. 6fc1861
  • CamelCase, PascalCase, KebabCase, SnakeCase, ScreamingSnakeCase, DelimiterCase, Words, and their *CasedProperties / *CasedPropertiesDeep types: Enable splitOnPunctuation by default. ebc42e5
    • KebabCase<'div.card::after'> is now 'div-card-after' (was 'div.card::after').
    • A leading $ is now removed: CamelCase<'$foo'> is 'foo'.
  • CamelCase / PascalCase (and their *CasedProperties types): Disable splitOnNumbers by default 976bd26
    • CamelCase<'p2p_network'> is now 'p2pNetwork' (was 'p2PNetwork'). The other case types already used false.
  • CamelCase / PascalCase (and their *CasedProperties types): Enable preserveLeadingUnderscores by default 8144ba1
    • CamelCase<'_id'> is now '_id' (was 'id'). This matches the camelcase package.
    • PascalCase<'_foo_bar'> is now '_FooBar' (was 'FooBar').
  • Words: With splitOnPunctuation: false, punctuation now stays inside the word: Words<'hello:world', {splitOnPunctuation: false}> is ['hello:world'] (was ['hello', ':world']) 9f2ad66
  • PartialDeep: Enable recurseIntoArrays by default. ab0e23d
    • The elements of arrays and tuples are now deeply partial, and the fixed elements of tuples become optional.
    • allowUndefinedInNonTupleArrays: true now works alone. Before, it also needed recurseIntoArrays: true.
  • PartialOnUndefinedDeep: Enable recurseIntoArrays by default 939abe3
  • ExtendsStrict: Enable strictAny by default, so ExtendsStrict<any, number> is now false. Pass {strictAny: false} to get the old behavior. b2f7ed4
  • Split: Rename the strictLiteralChecks option to strict bc38ddb
  • StringToArray: Replace the mapNonLiteralsDirectly option with strict, which has the opposite meaning. {mapNonLiteralsDirectly: true} is now {strict: false}. b61e528
    • The old option names now give a compiler error.
  • ReadonlyDeep: Convert Date to the new ReadonlyDate type, which has no set* methods. WritableDeep converts it back to Date. c533251
  • TsConfigJson: Remove the options and values that TypeScript 5.5 removed and that TypeScript 6.0 deprecated. 393c093 0716fa8 4e54420 65b2db8
  • Predicates now return false instead of never when an input is never 9ec1de5
    • This applies to IsEmptyObject, IsFloat, IsInteger, IsNegative, GreaterThan, GreaterThanOrEqual, LessThan, LessThanOrEqual, Includes, IsOptionalKeyOf, IsRequiredKeyOf, IsReadonlyKeyOf, and IsWritableKeyOf.
    • If you checked the result with IsNever or [Result] extends [never], check for false instead.
  • IsNull / IsUndefined: Return false for any and never (was true) 349271e 750177a 65fc2eb
  • IsOptionalKeyOf / IsRequiredKeyOf / IsReadonlyKeyOf / IsWritableKeyOf: Read a literal key of an index signature like the index signature, and read an any object like Record<PropertyKey, any> 62df5d9 5a2e786
    • IsOptionalKeyOf<Record<string, number>, 'x'> is now true (was false), and IsRequiredKeyOf is now false.
    • IsReadonlyKeyOf<{readonly [key: string]: number}, 'x'> is now true (was false).
    • With an any object, the result was never. Now a literal key is optional and writable, so IsOptionalKeyOf<any, 'a'> and IsWritableKeyOf<any, 'a'> are true, and IsRequiredKeyOf<any, 'a'> and IsReadonlyKeyOf<any, 'a'> are false. A string, number, or symbol key is required, and an any key gives boolean.
  • FixedLengthArray: Return never for a non-literal length, like number. Use a normal array type for an unknown length. 88281fe
  • Finite / NonNegative: Return never for the wide number type (was number) 23e295f
  • NonNegative / Negative: Reject Infinity and -Infinity (for example 1e999) 608026d
  • Jsonifiable: Reject values typed object, because they can contain anything 92aba94
  • ConditionalPickDeep: Match any and never values like ConditionalKeys. A never value is no longer picked, and an any value is now picked. 02aef94
  • Other result changes that you can see in existing code:
    • Simplify: Keep functions, class constructors, and branded primitives as is. Simplify<() => void> was {}. 28b9f8e 7d0a323
    • Merge: Keep the call signatures of the input 166b209
    • The deep types (PartialDeep, ReadonlyDeep, RequiredDeep, and others) no longer recurse into DOM nodes, like HTMLElement e379753
    • Entries / Entry: Pair each key with its own value. Entry<{a: 1; b: 'x'}> is now ['a', 1] | ['b', 'x'] (was ['a' | 'b', 1 | 'x']). 34d036f
    • ValueOf: Read the values of every union member. ValueOf<{a: 1} | {b: 2}> is now 1 | 2 (was never). 6a0de70 1a2e90a
    • Get: Return undefined for the union members that do not have the key. Get<{a: 1} | {b: 2}, 'a'> is now 1 | undefined (was unknown). cc955bd
    • LiteralToPrimitiveDeep: Keep tuples as tuples. [1] becomes [number] (was number[]). 8173c2c
    • LiteralToPrimitive: Return any for any 65fc2eb
    • MultidimensionalArray / MultidimensionalReadonlyArray: Allow leaf values at all levels when the dimension is not known 762b656
    • RemovePrefix / RemoveSuffix: Return string when a non-literal input cannot contain the affix. RemovePrefix<`user_${string}`, 'admin_'> is now string (was `user_${string}`). b8c6ef2 1fbd1d2
    • IsEmptyObject: Return false for object (was true) and for any (was boolean) 43c237d 9ec1de5
    • HasRequiredKeys: Return false for index signatures, arrays without required elements, and any (was true) 1c184e6
    • IsFloat: Return boolean for any (was false) cdf0ede
    • Asyncify: Keep the return type of each function in a union 1b374de
    • SingleKeyObject: Return never for boolean (was boolean), and return broad object types, like object and Record<string, number>, as is (was never) 2745e8f 43c237d
    • StringToArray: A non-literal part gives string elements, because each character does not always match the type of the whole part. StringToArray<Lowercase<string>> is now string[] (was Lowercase<string>[]). b9337f2
  • Opaque and UnwrapOpaque are still deprecated, and v7 will remove them. Use Tagged and UnwrapTagged. 62c465e
New types
Improvements

[!IMPORTANT]
✂ PR body was truncated to here.


Configuration

📅 Schedule: (UTC)

  • 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 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.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate CLI.

@changeset-bot

changeset-bot Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 799f8ea

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 5 packages
Name Type
@desselbane/composables Patch
@desselbane/setup Patch
@desselbane/ts-helpers Patch
@desselbane/vitest-helpers Patch
@repo/scripts Patch

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

| datasource | package   | from   | to    |
| ---------- | --------- | ------ | ----- |
| npm        | type-fest | 5.10.0 | 6.0.1 |
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant