Loading
chore(deps): update dependency type-fest to v5
This MR contains the following updates:
| Package | Change | Age | Confidence |
|---|---|---|---|
| type-fest | ^4.41.0 -> ^5.0.0 |
Release Notes
sindresorhus/type-fest (type-fest)
v5.0.0
Breaking
- This package is now pure ESM. Please read this.
- Require TypeScript 5.9
b5b0214 - Require Node.js 20
cc2b0f2 - Reminder:
type-festrequiresstrict: truein your tsconfig. -
StringKeyOf: Rename toKeyAsStringe492c9c -
ArrayTail: EnablepreserveReadonlyby default and remove the optionb34b1d8 -
CamelCase/CamelCasedProperties/CamelCasedPropertiesDeep/PascalCase/PascalCasedProperties/PascalCasedPropertiesDeep: DisablepreserveConsecutiveUppercaseby default8226c1b- This aligns it with the general JavaScript naming convention.
-
PartialDeep: DisableallowUndefinedInNonTupleArraysby defaultb3c4524 -
Split: EnablestrictLiteralChecksby default544a846 -
Paths: DefaultmaxRecursionDepth5 (was 10)2ab5dec -
ObservableLike: Move to sub-export2a1072e - Deprecate
If*types in favor of a singleIf4c2151a
New types
-
Alphanumeric— Single alphanumeric character (A–Z,a–z,0–9).484e030 -
AllExtend— Evaluates totrueif every element of a tuple/array extendsU.c8c6d55 -
ConditionalSimplify— Simplifies a type’s unions/intersections with opt-in controls.b7a4771 -
ConditionalSimplifyDeep— Deep version ofConditionalSimplifythat 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 Bcheck.d71242a -
ExtractStrict— Non-distributive, stricter variant ofExtract<T, U>.98d24fa -
IsLowercase— Evaluates totrueif a string literal is all lowercase.afe132c -
IsNullable— Evaluates totrueifTincludesnull.5067e25 -
IsOptional— Evaluates totrueifTincludesundefined.5067e25 -
IsOptionalKeyOf— Evaluates totrueif propertyKofTis optional.93728b5 -
IsReadonlyKeyOf— Evaluates totrueif propertyKofTis readonly.93728b5 -
IsRequiredKeyOf— Evaluates totrueif propertyKofTis required.93728b5 -
IsUnion— Evaluates totrueifTis a union type.b3d92ed -
IsUndefined— Evaluates totrueif the type is exactlyundefined.f7bc576 -
IsUppercase— Evaluates totrueif 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: HandleunknownasJsonValue642bb13 -
SetRequired/SetOptional/SetReadonly: Handle functions with propertiesa5e45d4 -
Schema: Preserve arrays/remove extraneous unions8a96def; dropundefinedforrecurseIntoArrays1cb955b -
ReadonlyKeysOf/WritableKeysOf: Addobjectconstrainta6efbe0 -
TsConfigJson: Add TypeScript 5.9 fieldsd2bda94
Fixes
-
Or: Fix withboolean,never,any42d6106 -
And: Fix withboolean,never,anyb38ac60 -
IsStringLiteral: Fix uncollapsed unions, and tagged typeseb37799/d1b35c7 -
Paths: Fix behavior with index signatures9926e5d -
ConditionalKeys: Fix behavior with arrays and unions4d7cc50 -
RequiredDeep: Fix withundefinedbfcdbc4 -
Split: Fix template strings ending with interpolation853b881 -
ArrayTail: Fix fix non-tuple arraysf3aabd8 - Fix
UnionMinandUnionMaxd52d5e7
Meta
Huge thanks to all the contributors to this release, especially @som-sm
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.
Edited by Ghost User