Skip to content

chore(deps): update dependency type-fest to v6 - #1218

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

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

Conversation

@renovate

@renovate renovate 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 Change Age Confidence
type-fest ^5.10.0 → ^6.0.0 age confidence

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
    • "every weekday"
  • 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.


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

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

@github-actions github-actions Bot added the t-tooling Issues with this label are in the ownership of the tooling team. label Nov 17, 2026
@github-actions

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

✅ The link checker did not find any broken links.

See more at https://github.com/apify/apify-client-js/actions/runs/44262293082#summary-134658289752

@renovate
renovate Bot force-pushed the renovate/type-fest-6.x branch from de25066 to c1870f7 Compare November 18, 2026 07:52

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

t-tooling Issues with this label are in the ownership of the tooling team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants