Skip to content

v3.0.0

Latest

Choose a tag to compare

@sindresorhus sindresorhus released this 18 Nov 17:13
· 1 commit to main since this release

Breaking

  • Require TypeScript 6 and exactOptionalPropertyTypes e7fd6c7
    • This comes from the update to type-fest 6. Disabling exactOptionalPropertyTypes is unsupported.
    • An optional property can now only hold undefined when it declares | undefined. For example, objectAssign({a: 1}, {} as {a?: string}).a is now string | number, not string | number | undefined.
  • asWritable(): For a union, each member is now made writable on its own e7fd6c7
    • Before, only the keys that every member has became writable.

Improvements


v2.0.0...v3.0.0