Skip to content

⬆️ Update dependency type-fest to v6 - #748

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

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

Conversation

@renovate

@renovate renovate Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Note

This PR body was truncated due to platform limits.

This PR contains the following updates:

Package Change Age Confidence
type-fest 5.10.0 → 6.0.3 age confidence

Release Notes

sindresorhus/type-fest (type-fest)

v6.0.3

Compare Source

  • Exact: Preserve readonly index signatures 2a0893b
  • Exact: Accept number keys for a string index signature 5c0e1cc
  • Exact: Fix slow type-checking and false rejections with an index signature and a generic input value 56b6285

v6.0.2

Compare Source

  • Exact: Fix slow type-checking with an index signature and a generic input value 22d031b

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

[!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: Enabled.

♻ 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 this update again.


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

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot added renovate upgrade Dependency or tool upgrade labels Nov 19, 2026
renovate-approve[bot]
renovate-approve Bot previously approved these changes Nov 19, 2026
@renovate
renovate Bot force-pushed the renovate/type-fest-6.x branch 3 times, most recently from 8ab6bad to 30d4e0a Compare November 19, 2026 21:45
@renovate
renovate Bot force-pushed the renovate/type-fest-6.x branch from 30d4e0a to 91c09d3 Compare November 20, 2026 00:57
renovate-approve[bot]
renovate-approve Bot previously approved these changes Nov 20, 2026
renovate-approve[bot]
renovate-approve Bot previously approved these changes Nov 20, 2026
@renovate
renovate Bot force-pushed the renovate/type-fest-6.x branch 2 times, most recently from d63ab38 to 5dde0e4 Compare November 20, 2026 15:07
@renovate
renovate Bot force-pushed the renovate/type-fest-6.x branch from 5dde0e4 to 41a1f33 Compare November 20, 2026 17:24
renovate-approve[bot]
renovate-approve Bot previously approved these changes Nov 20, 2026
@renovate
renovate Bot force-pushed the renovate/type-fest-6.x branch 5 times, most recently from d6c5a25 to d7e2194 Compare November 21, 2026 01:51
@renovate
renovate Bot force-pushed the renovate/type-fest-6.x branch from d7e2194 to 08c97b7 Compare November 21, 2026 21:58
renovate-approve[bot]
renovate-approve Bot previously approved these changes Nov 21, 2026
renovate-approve[bot]
renovate-approve Bot previously approved these changes Nov 22, 2026
renovate-approve[bot]
renovate-approve Bot previously approved these changes Nov 25, 2026
@renovate
renovate Bot force-pushed the renovate/type-fest-6.x branch 9 times, most recently from ebb8701 to 65fb830 Compare November 27, 2026 17:16
@renovate
renovate Bot force-pushed the renovate/type-fest-6.x branch from 65fb830 to 4cf94e0 Compare November 27, 2026 21:07
renovate-approve[bot]
renovate-approve Bot previously approved these changes Nov 27, 2026
@renovate

renovate Bot commented Nov 28, 2026

Copy link
Copy Markdown
Contributor Author

ℹ️ Artifact update notice

File name: package-lock.json

npm --before could not be enforced because existing locked packages were published after the minimumReleaseAge cutoff. This will resolve after the next lock file maintenance run.

renovate-approve[bot]
renovate-approve Bot previously approved these changes Nov 28, 2026
@renovate
renovate Bot force-pushed the renovate/type-fest-6.x branch 3 times, most recently from 4d02040 to aa0545f Compare November 29, 2026 03:16
@renovate
renovate Bot force-pushed the renovate/type-fest-6.x branch from aa0545f to d69f8ad Compare November 29, 2026 04:52
renovate-approve[bot]
renovate-approve Bot previously approved these changes Nov 29, 2026
@renovate
renovate Bot force-pushed the renovate/type-fest-6.x branch from 2d1ef8f to d0f436e Compare November 29, 2026 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

renovate upgrade Dependency or tool upgrade

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants