type-fest

A collection of essential TypeScript types

CC0-1.0 License

Downloads
705.7M
Stars
13.3K
Committers
165

Bot releases are hidden (Show)

type-fest -

Published by sindresorhus about 2 years ago

Meta

  • Welcome @skarab42 as a maintainer 🎉 f3a5e4e
    • He did a lot of the work on this release.

Breaking

  • Require TypeScript 4.7 or later cca3ca2
  • Require Node.js 14 or later cca3ca2
  • Rename Mutable type to Writable ff0de63
  • Remove the PromiseValue type in favor of the built-in Awaited type 28f3e48
  • Get: Make the strict option true by default a7f367d
  • PartialDeep: Make the recurseIntoArrays option false by default db89d9c
  • Simplify: Remove the deep option (#441) bbccfb8
    • It caused weird problems with the TS compiler. We plan to add it back in the form a SimplifyDeep type. So if you depend on this type, defer upgrading until it's added.

New types

Improvements

  • Merge: Add index signatures support and improve performances (#455) 850ac04
  • DelimiterCase: Support screaming snake case as input (#448) f53e3dc
  • Jsonify: Add support for optional object keys (#445) d83d62c
  • PackageJson: Add packageManager field (#446) ac5b821
  • TsConfigJson: Add some Module values 1003d5d

Fixes

  • DelimiterCase: Fix regression after TypeScript 4.8 (#464) 2a2f310
  • Merge: Fix index signature type overwrite (#460) eb7f08b
  • Merge: Fix optional keys and type override (#456) 2e443e2
  • PackageJson: Fix the type (#465) f3b13e3
  • JsonObject: Fix the type (#465) f3b13e3

https://github.com/sindresorhus/type-fest/compare/v2.19.0...v3.0.0

type-fest -

Published by sindresorhus about 2 years ago

New types

Improvements

  • Exact: Support array union (#421) edcad04
  • PackageJson: Support condition object in exports array (#439) 290e3a2

https://github.com/sindresorhus/type-fest/compare/v2.18.1...v2.19.0

type-fest -

Published by sindresorhus about 2 years ago

  • Jsonify: Do not downgrade tuples to arrays (#433) 8a014e5
  • Spread: Support arrays/tuples (#435) 96acab1

https://github.com/sindresorhus/type-fest/compare/v2.18.0...v2.18.1

type-fest -

Published by sindresorhus about 2 years ago

type-fest -

Published by sindresorhus about 2 years ago

type-fest -

Published by sindresorhus over 2 years ago

New types

Improvements

  • Simplify: Add deep option (#414) 96fe795

Fixes

  • Replace: Fix the all option (#416) 1483de3
  • Includes: Fix false-positive when the array contains null and you are checking against undefined (#413) de5e7fc
  • Simplify: Fix handling of some types (#414) 96fe795

https://github.com/sindresorhus/type-fest/compare/v2.15.1...v2.16.0

type-fest -

Published by sindresorhus over 2 years ago

type-fest -

Published by sindresorhus over 2 years ago

  • Make the Jsonify type more correct (#410) 8ca2959

https://github.com/sindresorhus/type-fest/compare/v2.14.0...v2.15.0

type-fest -

Published by sindresorhus over 2 years ago

type-fest -

Published by sindresorhus over 2 years ago

  • Fix TsConfigJson to require paths array (#404) 74891f0

https://github.com/sindresorhus/type-fest/compare/v2.13.0...v2.13.1

type-fest -

Published by sindresorhus over 2 years ago

New types

Improvements

  • Rename Mutable to Writable (#398) 638d597
    • Mutable still works and is now just a deprecated alias.

Fixes

  • Fix deep properties of PackageJson and TsConfigJson (#269) f2aae51

https://github.com/sindresorhus/type-fest/compare/v2.12.2...v2.13.0

type-fest -

Published by sindresorhus over 2 years ago

  • Get: Fix TypeScript 4.7 compatibility (#388) 6c7ac47
  • TsConfig: Add watchOptions field (#384) 7aa0605
  • Jsonify: Handle undefined in array (#310) 17b0235

https://github.com/sindresorhus/type-fest/compare/v2.12.1...v2.12.2

type-fest -

Published by sindresorhus over 2 years ago

  • PackageJson: Allow null targets in Exports type (#377) 25d0204

https://github.com/sindresorhus/type-fest/compare/v2.12.0...v2.12.1

type-fest -

Published by sindresorhus over 2 years ago

  • Add imports field in PackageJson type (#365)

https://github.com/sindresorhus/type-fest/compare/v2.11.2...v2.12.0

type-fest -

Published by sindresorhus over 2 years ago

  • Add node-addons in PackageJson export condition (#362) 947f637

https://github.com/sindresorhus/type-fest/compare/v2.11.1...v2.11.2

type-fest -

Published by sindresorhus over 2 years ago

  • ReadonlyDeep: Fix handling of objects with call signatures (#359) db54028
  • ReadonlyDeep: Fix sets and maps not getting immutable methods (#358) 0ff4461

https://github.com/sindresorhus/type-fest/compare/v2.11.0...v2.11.1

type-fest -

Published by sindresorhus over 2 years ago

  • Add InvariantOf type (#352) dea70a4
  • Add Schema type (#321) 3aabfbc
  • Get: Support read only arrays (#355) dc7043c

https://github.com/sindresorhus/type-fest/compare/v2.10.0...v2.11.0

type-fest -

Published by sindresorhus over 2 years ago

  • Add RemoveIndexSignature type (#335) 8103238
  • Add StringKeyOf type (#344) 103966b
  • Skip Date and RegExp in "deep" types 3243e22 3cc721b
  • Extend Get to accept Path as string[] (#353) ca45956

https://github.com/sindresorhus/type-fest/compare/v2.9.0...v2.10.0

type-fest -

Published by sindresorhus almost 3 years ago

  • Add LiteralToPrimitive type (#340) ab210eb
  • Jsonify: Allow partial types (#312) 600f0c2
  • Get: Add strict mode (#317) b9ace21

https://github.com/sindresorhus/type-fest/compare/v2.8.0...v2.9.0

type-fest -

Published by sindresorhus almost 3 years ago

Package Rankings
Top 11.78% on Repo1.maven.org
Top 0.44% on Npmjs.org
Top 4.09% on Proxy.golang.org
Badges
Extracted from project README
npm dependents npm downloads