Skip to content

Added support for additional non-primitive types

Compare
Choose a tag to compare
@AsyncBanana AsyncBanana released this 05 Nov 22:01
· 56 commits to master since this release
30fcdf0

This release uses prototype checking, number coercion, and string coercion to support diffing non-primitive types. The new design also makes it much easier to add support for new types without a significant increase in size, as this is designed in a more modular way than earlier designs like v1.0.1's dates. In fact, Dates now use this design.

  • new String() is now supported
  • new Number() is now supported
  • new RegExp() and Regex literals are now supported

This release only adds 113 bytes of Terser compressed JavaScript (even less with Gzip or Brotli) and does not affect performance.
Thanks for all of your support!