[deps]: Update type-fest to v5 #475
Open
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
Mend has cancelled the proposed renaming of the Renovate GitHub app being renamed to
mend[bot]
.This notice will be removed on 2025-10-07.
This PR contains the following updates:
^4.41.0
->^5.0.0
Release Notes
sindresorhus/type-fest (type-fest)
v5.0.1
Compare Source
4f9c248
v5.0.0
Compare Source
Breaking
b5b0214
cc2b0f2
type-fest
requiresstrict: true
in your tsconfig.StringKeyOf
: Rename toKeyAsString
e492c9c
ArrayTail
: EnablepreserveReadonly
by default and remove the optionb34b1d8
CamelCase
/CamelCasedProperties
/CamelCasedPropertiesDeep
/PascalCase
/PascalCasedProperties
/PascalCasedPropertiesDeep
: DisablepreserveConsecutiveUppercase
by default8226c1b
PartialDeep
: DisableallowUndefinedInNonTupleArrays
by defaultb3c4524
Split
: EnablestrictLiteralChecks
by default544a846
Paths
: DefaultmaxRecursionDepth
5 (was 10)2ab5dec
ObservableLike
: Move to sub-export2a1072e
If*
types in favor of a singleIf
4c2151a
New types
Alphanumeric
— Single alphanumeric character (A–Z
,a–z
,0–9
).484e030
AllExtend
— Evaluates totrue
if every element of a tuple/array extendsU
.c8c6d55
ConditionalSimplify
— Simplifies a type’s unions/intersections with opt-in controls.b7a4771
ConditionalSimplifyDeep
— Deep version ofConditionalSimplify
that recurses into objects.b7a4771
DigitCharacter
— Single ASCII digit character (0–9
).484e030
ExcludeStrict
— Non-distributive, stricter variant ofExclude<T, U>
.e6f62a2
ExtendsStrict
— Non-distributiveA extends B
check.d71242a
ExtractStrict
— Non-distributive, stricter variant ofExtract<T, U>
.98d24fa
IsLowercase
— Evaluates totrue
if a string literal is all lowercase.afe132c
IsNullable
— Evaluates totrue
ifT
includesnull
.5067e25
IsOptional
— Evaluates totrue
ifT
includesundefined
.5067e25
IsOptionalKeyOf
— Evaluates totrue
if propertyK
ofT
is optional.93728b5
IsReadonlyKeyOf
— Evaluates totrue
if propertyK
ofT
is readonly.93728b5
IsRequiredKeyOf
— Evaluates totrue
if propertyK
ofT
is required.93728b5
IsUnion
— Evaluates totrue
ifT
is a union type.b3d92ed
IsUndefined
— Evaluates totrue
if the type is exactlyundefined
.f7bc576
IsUppercase
— Evaluates totrue
if a string literal is all uppercase.afe132c
LowercaseLetter
— Single lowercase Latin letter (a–z
).484e030
RemovePrefix
— Removes a specified prefix from a string literal.18a1c04
UppercaseLetter
— Single uppercase Latin letter (A–Z
).484e030
Improvements
Jsonify
: Handleunknown
asJsonValue
642bb13
SetRequired
/SetOptional
/SetReadonly
: Handle functions with propertiesa5e45d4
Schema
: Preserve arrays/remove extraneous unions8a96def
; dropundefined
forrecurseIntoArrays
1cb955b
ReadonlyKeysOf
/WritableKeysOf
: Addobject
constrainta6efbe0
TsConfigJson
: Add TypeScript 5.9 fieldsd2bda94
Fixes
Or
: Fix withboolean
,never
,any
42d6106
And
: Fix withboolean
,never
,any
b38ac60
IsStringLiteral
: Fix uncollapsed unions, and tagged typeseb37799
/d1b35c7
Paths
: Fix behavior with index signatures9926e5d
ConditionalKeys
: Fix behavior with arrays and unions4d7cc50
RequiredDeep
: Fix withundefined
bfcdbc4
Split
: Fix template strings ending with interpolation853b881
ArrayTail
: Fix fix non-tuple arraysf3aabd8
UnionMin
andUnionMax
d52d5e7
Meta
Huge thanks to all the contributors to this release, especially @som-sm 🙌
Configuration
📅 Schedule: Branch creation - "every 2nd week starting on the 2 week of the year before 4am on Monday" (UTC), 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.
This PR was generated by Mend Renovate. View the repository job log.