Releases: sindresorhus/type-fest
Releases Β· sindresorhus/type-fest
v5.7.0
New types
Improvements
ExtendsStrict: AdddistributiveUnions,strictNever&strictAnyoptions (#1408) 9ea810bTupleOf: Improve implementation (#1441) 391e1bb
Fixes
RemovePrefix: Fix: Remove incorrect optimization and always fallback tostringfor non-literal prefixes (#1438) 9f35398DelimiterCase: Fix behavior with non-single character delimiters (#1424) 9b36590RemovePrefix: Fixanyprefix behavior in non-strict mode (#1423) c49cb75DelimiterCase: Fix behavior with union delimiters (#1422) 96172c0ApplyDefaultOptions: Fix behavior with generic instantiations &anyvalues (#1411) c46020dApplyDefaultOptions: Fix behavior with explicitundefined(#1407) 60bfd3f
v5.6.0
New types
Improvements
- Add
splitOnPunctuationoption toCamelCase/PascalCase/KebabCase/SnakeCase(#1394) 852d016 CamelCase: AddpreserveLeadingUnderscoresoption (#1404) 5ca6564TsConfigJson: Add TypeScript 6.0 fields (#1406) ac4861dUnionToTuple: Fix behavior with large unions (#1405) 651f7ea
v5.5.0
New types
Optional(#1374) 9b52980ExcludeExactly(#1349) 0f923d0ArrayLength(#1344) 59bd056UnionMember(#1368) 878b6dfSomeExtend(#1380) bbce298AndAll(#1383) 94aa3f8OrAll(#1378) 4c42d89
Improvements
- Add function parameter constraint examples to numeric comparison types (#1357) 24be93d
UnionToTuple: Fix behavior when a union member is a supertype of another (#1349) 0f923d0ConditionalPickDeep: Fix returning{}instead ofneverwhen no keys match (#1360) 6af847aConditionalPick: Fix returning{}instead ofneverwhen no keys match (#1359) 3995003GreaterThan/LessThan/GreaterThanOrEqual/LessThanOrEqual: Fix behavior with thenumbertype (#1363) cfea505
v5.4.4
PackageJson: UseLiteralUnionforenginesfield (#1354) fc9e2bbIsUnion: Fix behavior when the entire union extends all individual members (#1353) b0321a5Paths: FixleavesOnlybehavior withneverleaves (#1350) 2c34128Paths: Fix behavior withWeakMaps /WeakSets (#1348) ac3b50ePaths: Fix behavior with tuples containing optional elements with a rest element (#1346) 7c82a21