Skip to content

Lot of code and bundle size improvements

Compare
Choose a tag to compare
@Dabolus Dabolus released this 07 Nov 08:19

BREAKING CHANGES:

  • social-click event renamed to share
  • Social icons package now only contains the SVG paths data, not the entire SVG
  • browser field on package.json now points to the ESM version of the share menu, so that you can be sure that using a bare import specifier (i.e. import 'share-menu') you're going to get the module version instead of the IIFE version. To use the IIFE version, you will now need to import it explicitly (i.e. share-menu/share-menu.iife.js)

Other changes:

  • Now the automatic setting of title, text, and url properties can be avoided by assigning them an empty string (e.g. <share-menu text=""></share-menu> will avoid using the description meta tag content as text default value)
  • Added two new events: close and error
  • TypeScript typings improvements
  • Styling support via CSS shadow parts
  • Huge socials SVGs optimizations
  • Bundle size reduction thanks to some code refactoring and bundler configuration tweaks
  • Various bug fixes and code style and performance improvements
  • Finally added a decent test suite to (possibly) avoid bugs and regressions