Skip to content

v3.0.0

Compare
Choose a tag to compare
@BrianMitchL BrianMitchL released this 21 Mar 05:44
· 9 commits to main since this release
c1f0fdb

This is a relatively small update, but with some breaking changes.

Breaking Changes

  • All files in the published package have consistent filenames
    • This shouldn't affect CommonJS or ESM imports
    • UMD builds are now at dist/giftexchange.umd.production.min.js instead of dist/gift-exchange.umd.production.min.js
  • calculateSync has been renamed to calculate, and the old calculate has been removed
  • DerangementError was removed in favor of a standard Error and setting the name property to "GiftExchangeError"
  • The bundle size was reduced from 1.2KB to under 500B through the removal of DerangementError and the bundled polyfills for Object.setPrototypeOf and class
  • All code was moved to the single src/index.ts file to simplify emitted files and types

New Features

  • There is a new exported function, validateMatches, which is used internally, in case you want to use it to build your own implementation

v2.1.0...v3.0.0