Skip to content

Releases: britannica/compendium

v3.0.0

12 Jun 21:23
Compare
Choose a tag to compare

Breaking changes

  • mapValidationErrorToFormFields is no longer exported. It now lives within the FormUtils class.

    // Example usage
    
    import { FormUtils } from '@britannica/compendium';
    
    FormUtils.mapValidationErrorToFormFields(...);

New features

  • New utility classes
    • ContentfulUtils
    • FormUtils
    • RouteUtils
  • New components
    • SnapSlider

v2.0.0

30 May 18:11
Compare
Choose a tag to compare

Breaking changes

  • MediaOverlay now accepts an array of assemblies, vs fetching media within the component

Features

  • Library can now be properly tree-shaken in production builds (thanks @arminbro)
  • New hook available: useForm
  • New form utility available: mapValidationErrorToFormFields
  • MediaStrip now uses custom component,SnapSlider, replacing nuka-carousel

Dependencies

  • Remove nuka-carousel dependency
  • Replace date-fns with dayjs
  • Add lodash-es dependency