forge-dev-kit
forge-dev-kit copied to clipboard
Update dependency type-fest to v5
This PR contains the following updates:
| Package | Change | Age | Confidence |
|---|---|---|---|
| type-fest | ^3.12.0 -> ^5.2.0 |
Release Notes
sindresorhus/type-fest (type-fest)
v5.2.0
v5.1.0
New types
-
TupleOf(#1247)7fb2f75 -
Xor(#1254)ad04bc5 -
SplitOnRestElement(#1166)34b8fad -
ExtractRestElement(#1166)34b8fad -
ExcludeRestElement(#1166)34b8fad
Improvements
-
ReadonlyTuple: Deprecate in favor ofTupleOf(#1256)af4bebc -
TsConfigJson: Add missing lib enum values (#1263)72f491f -
TsConfigJson: AddrewriteRelativeImportExtensions(#1262)7d011ce
Fixes
-
PartialDeep: Fix behavior with functions containing multiple call signatures (#1259)3bd9de6 -
IsEqual: Fix behaviour when instantiated withneverandunknown(#1251)785549f -
FixedLengthArray: Fix element type (#1246)ee29ef7 -
is-equal: Fix handling with intersecting wrapped types (#1231)5af60a1
v5.0.1
- Add missing exports
4f9c248
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 🙌
v4.41.0
- Add
SetNonNullableDeeptype (#1117)b9606e7 -
LessThan/GreaterThan/GreaterThanOrEqual: Fix behaviour with unions (#1116)afd809a -
RequireAllOrNone/RequireAtLeastOne/RequireExactlyOne/RequireOneOrNone: Fix behaviour withanyandnever(#1113)8c154e9
v4.40.1
-
PartialDeep: Fix behaviour with functions containing properties (#1108)86a3a69 -
CamelCasedPropertiesDeep/DelimiterCasedPropertiesDeep/KebabCasedPropertiesDeep/PascalCasedPropertiesDeep/SnakeCasedPropertiesDeep: Fix behaviour when property value isunknown(#1112)cfcf9ec
v4.40.0
- Add
NonEmptyStringtype (#1103)19a9c37 - Add
UnknownMaptype (#1106)b4ace2d - Add
UnknownSettype (#1106)b4ace2d -
IsFloat/IsInteger: Fix instantiations with numbers represented using exponential notation (#1101)21a92f6
v4.39.1
v4.39.0
-
ArrayTail: AddpreserveReadonlyoption (#1091)544271e -
PartialDeep: Fix behaviour whenstrictNullChecksis disabled (#1096)7536bae -
OptionalKeysOf/RequiredKeysOf: Fix instantiations with unions and arrays (#1089)e1ac7b2 -
WritableKeysOf/ReadonlyKeysOf: Fix behavior with unions and optional properties (#1088)bbf9137
v4.38.0
-
AsyncReturnType: Add support forPromiseLike(#1082)72ccde9 -
DelimiterCase/SnakeCase/ScreamingSnakeCase/KebabCase: Fix instantiations containing punctuations (#1080)063e28d -
DelimiterCase: PassOptionsgeneric to all related types (#1078)1974944 -
CamelCasedPropertiesDeep: Make nested array objects respect the options (#1077)c11c9ca
v4.37.0
-
Sum: Add negative return value support (#1068)af5bfb7 -
Subtract: Add negative return value support (#1061)2b85ae2 -
Split: AddstrictLiteralChecksoption (#1067)cc93f85 -
Split: Fix instantiations with unions (#1067)cc93f85 -
Replace: Fix instantiations with unions (#1065)a733698 -
DelimiterCase/SnakeCase/ScreamingSnakeCase/KebabCase: Fix default value forsplitOnNumbersoption (#1073)e462e72
v4.36.0
-
TsConfigJson: Add TypeScript 5.8 fields (#1064)918156a -
Replace: Add support for generating longer strings (#1060)3c03a0d -
DelimiterCase: Internal improvements (#930)a463c30
v4.35.0
v4.34.1
v4.34.0
- Add
AllUnionFieldstype (#997)9aba4c3 -
Paths: AddleavesOnlyoption (#1050)7dfb307 -
OmitDeep: Fix removal of multiple paths within arrays (#1049)fa6e31b
v4.33.0
-
StringRepeat: Add support for generating longer strings & fix instantiations with unions (#1046)fbccaab -
Split: Add support for longer strings (#1042)49605b9 -
Get: Optimize performance (#1031)cfb5947 -
KeysOfUnion: Fix assignability withkeyof(#1009)4789c7c -
IsStringLiteral: Fix instantiations with infinite string types (#1044)e7800af -
SetRequiredDeep: Fix handling of unions in nested keys (#1037)bf5ce3c -
StringSlice: Fix return type when passing in non-literal (#1036)979eccf -
Sum/Subtract: Fix instantiations with unions (#1034)69bfd51
v4.32.0
New types
Improvements
-
PartialDeep: AddallowUndefinedInNonTupleArraysoption (#1019)278df80
Fixes
v4.31.0
-
SetFieldType: Add option to preserve property modifiers (#1017)59517cb -
IsEqual: Fix identity issue (#1012)591700a -
SetOptional: Fix instantiations with index signatures (#1014)cb269ff -
SetRequired: Fix instantiations with index signatures (#1014)cb269ff -
SetReadonly: Fix instantiations with index signatures (#1014)cb269ff
v4.30.2
- Fix missing export (#1011)
527d600 -
SetOptional/SetRequired/SetReadonly: Fix when the second argument isany(#1007)fdbcb11 -
SetOptional: Fix when instantiated with unions (#1007)fdbcb11
v4.30.1
v4.30.0
- Add
SharedUnionFieldstype (#994)a716c29 -
ArrayTail: Fix support for optional parameters (#977)f6b1387
v4.29.1
v4.29.0
- Add
IntClosedRangetype (#992)d7b692b -
Schema: AddrecurseIntoArraysoption (#960)fbbb8ba
v4.28.1
v4.28.0
v4.27.1
-
SharedUnionFieldsDeep: Fix propagation for non union root types (#984)f215f9f -
ArraySlice: Fix support for union input (#986)0efbae3
v4.27.0
- Add
Wordstype (#975)13c0c83 -
Get: Fix handling of paths with number template literal (#968)b93f54a -
TsConfigJson: AddnoChecktocompilerOptions(#981)a470913
v4.26.1
v4.26.0
- Add
UnionToTupletype (#945)1f4f7a1
v4.25.0
v4.24.0
v4.23.0
v4.22.1
v4.22.0
New types
-
ArrayTail(#913)128b21e -
NonEmptyTuple(#915)bb57638 -
FindGlobalType(#908)0086cd6 -
FindGlobalInstanceType(#908)0086cd6
Improvements
- Ensure all
RequireXtypes' second parameter is optional (#907)fee4e04 -
StructuredCloneable: Include web-specific types when available (#908)0086cd6
Fixes
v4.21.0
New types
Fixes
-
Jsonify: Convertundefinedtonullin union element of array (#901)60c1024 -
Exact: Fix support forDatein union (#902)d89a709 -
CamelCasedPropertiesDeep: Fix handling of non-recursive types inside target type (#890)476024d
v4.20.1
v4.20.0
-
SimplifyDeep: Support array (#888)a6ab051 -
IsLiteral: Returnfalsefor tagged types (#886)587380c
v4.19.0
- Add
SimplifyDeeptype (#882)3a04fcf
v4.18.3
v4.18.2
v4.18.1
v4.18.0
New types
Improvements
-
TsConfigJson: Addpreservemodule type andES2022lib types (#874)7096613 -
Opaque: Mark as deprecated (#867)ef7b580 -
UnwrapOpaque: Mark as deprecated (#867)ef7b580
v4.17.0
New types
Fixes
v4.16.0
New types
Fixes
-
Integer: Fix handling of some edge-cases (#857)f5b09de -
Float: Fix handling of some edge-cases (#857)f5b09de
v4.15.0
New types
Fixes
-
ConditionalKeys: Fix TypeScript 5.4 compatibility (#852)0fb2d62 -
WritableDeep: Fix TypeScript 5.4 compatibility (#839)2878773 -
ReadonlyDeep: Fix TypeScript 5.4 compatibility (#839)2878773
v4.14.0
- Add
DistributedPicktype (#841)fa4099c
v4.13.1
v4.13.0
New types
Improvements
Fixes
-
SetParameterType: Fix compatibility with TypeScript 5.4 (#835)2bc451e -
OmitDeep: Fix handling for when the given path is not matched (#834)4f14bff
v4.12.0
New types
-
ArraySlice -
StringSlice -
IsNegative -
GreaterThan -
GreaterThanOrEqual -
LessThan -
LessThanOrEqual -
Sum -
Subtract
v4.11.1
v4.11.0
New types
Improvements
v4.10.3
-
PartialOnUndefinedDeep: Fix it incorrectly removing non-optional properties when the input type contains an index signature (#764)2f4b55a
v4.10.2
v4.10.1
v4.10.0
-
Get: Fix handling of readonly array (#799)4a38651 -
SharedUnionFieldsDeep: Skip if input type is not a union type (#798)6f1db93 -
DelimiterCasedPropertiesDeep: Don't recurse into intersection type that include primitive value (#789)eb96609 -
Merge: Don't turn undefined into optional key (#787)0aec247
v4.9.0
New types
Improvements
-
ReadonlyDeep: Fix usage with properties defined withvoid(#782)a919f93 -
ConditionalPickDeep: Support interface (#776)ebb7a59
v4.8.3
-
MergeDeep: Fix optional key when value
Configuration
📅 Schedule: Branch creation - "on friday" (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.
- [ ] If you want to rebase/retry this PR, check this box
This PR was generated by Mend Renovate. View the repository job log.