v3.0.0
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 ofdist/gift-exchange.umd.production.min.js
calculateSync
has been renamed tocalculate
, and the oldcalculate
has been removedDerangementError
was removed in favor of a standardError
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 forObject.setPrototypeOf
andclass
- 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