Skip to content

fix(deps): update dependency type-fest to v6 - #1208

Merged
fengmk2 merged 1 commit into
masterfrom
renovate/type-fest-6.x
Nov 19, 2026
Merged

fengmk2 merged 1 commit into
masterfrom
renovate/type-fest-6.x

Conversation

@renovate

@renovate renovate Bot commented Nov 16, 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.3.1 → ^6.0.0 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: 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.

@coderabbitai

coderabbitai Bot commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: ff4d2602-87d7-4421-9c09-037e8323187a

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addednpm/​type-fest@​6.0.010010010088100

View full report

@codecov

codecov Bot commented Nov 16, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.37%. Comparing base (d92f777) to head (09af971).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1208      +/-   ##
==========================================
- Coverage   94.51%   94.37%   -0.14%     
==========================================
  Files         213      213              
  Lines        9110     9110              
  Branches     1790     1780      -10     
==========================================
- Hits         8610     8598      -12     
- Misses        500      512      +12     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@fengmk2
fengmk2 merged commit 26b7de2 into master Nov 19, 2026
23 checks passed
@fengmk2
fengmk2 deleted the renovate/type-fest-6.x branch November 19, 2026 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant