Skip to content

v2.1

Compare
Choose a tag to compare
@rossmoody rossmoody released this 12 Jul 00:19

🌮 Improvements

Screen Shot 2020-07-11 at 5 18 19 PM

Lots of positive updates in this release. If I'm honest, it was mostly just me being confused about correct Promise implementation.

  • After battling with Promise resolution for three days, turn out text() returns a Promise and I wasn't awaiting it. This tiny bug fix significantly improves card render formatting.
  • Improved error handling within Promise.all filtering. ty @solominh
  • Improved CORS handling for Firefox and Chrome. You can download SVGs after opening in a new tab now as well (before the Extension wouldn't fire at all)
  • Improved communication in the Download all button. It now only downloads available SVG strings instead of zipping up img elements masquerading as SVGs
  • Fixed asynchoronous messaging when trying to send data to a new tab ty @Deliaz
  • Style updates to the cards. We gave the grey background behind white SVGs a little padding and lightened it up a bit
  • Improved the error notification on the cards to more accurately say what is happening for Sprites and CORS
  • Sprites now dynamically copy their xlink content so exported sprites are now valid SVGs (though they still reference a single id). Thought it was a pretty crafty hack for not being able to access content in the shadow-dom.

What's next

  • Bringing back SVGO implementation for optimizing SVGs before export or copy
  • Explore SplitChunksPlugin for webpack so the bundle isn't 4mb