Skip to content

Releases: iconfu/svg-inject

Version 1.2.3

12 Mar 09:56
Compare
Choose a tag to compare
  • Change makeIdsUnique to convert all IDs by default

Version 1.2.2

31 Jan 09:51
Compare
Choose a tag to compare
  • handle root element correctly for ID uniquification

Version 1.2.1

25 Oct 13:25
Compare
Choose a tag to compare
  • fixes a bug where cached SVGs are not injected correctly

Version 1.2.0

24 Oct 16:55
Compare
Choose a tag to compare
  • major performance improvements for cached SVGs
  • added performance testing in /test/test_performance.html - SVGInject is super fast!
  • add onAllFinish hook to options
  • now a Promise object is returned from the SVGInject() call when all SVGs are injected (similar to onAllFinish)
  • handles some edge cases for making ids unique

Version 1.1.2

17 Oct 10:00
Compare
Choose a tag to compare
  • Support for SVGs exported from Inkscape and Corel Draw
  • Code cleanup

Version 1.1.1

09 Oct 10:27
Compare
Choose a tag to compare
  • Handle empty and missing src attributes gracefully
  • Handle: Id not converted if reference is in style attribute
  • use DOMParser instead of innerHTML to create SVGs from String
  • added Test for malformed SVGs

Version 1.1.0

28 Sep 13:27
Compare
Choose a tag to compare
  • add beforeLoad hook as option
  • code cleanup
  • improved code comments
  • change name of option cache to useCache

Version 1.0.5

21 Sep 10:39
Compare
Choose a tag to compare
  • change suffix in makeUniqueIds to use a counter instead of a random string
  • code optimization/cleanup
  • improved code comments

Version 1.0.4

20 Sep 16:41
Compare
Choose a tag to compare
  • update distribution files

Version 1.0.3

20 Sep 16:33
Compare
Choose a tag to compare
  • fix: Empty SVGs on Internet Explorer
  • workaround for IE8 (only) in some cases not displaying images after src attribute gets replaced dynamically