All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- The
sizes
attribute does no longer render[Object object]
in the generated markup
- Peer dependency
styled-components
inpackage.json
- Add flag to skip test file generation
--no-tests
, fixes #10
- Styled-components to v4.x
- templates/enzyme.js because of a styled-compnent bug styled-components/styled-components#1985
- fixed lint warning (unused concats)
- lint and audit fix
- bugfix wrong sizes object was used in template
- sizes are stored in props now and might be overridden
- removed
getDimensionsCss()
--> usegetCss()
- new template string format in component template
##SVG##
= JSX - all svg child nodes##WIDTH##
= Number - original width##HEIGHT##
= Number - original height##VIEWBOX##
= String - viewBox expression##NAME##
= String - name derived from filename'##SIZES##'
= Object - size aliases, keys are the names, values are objects in this form{ width: 12, height: 12 }
- new template string format in test template
##FILENAME##
= String - original filenanme##NAME##
= String - name derived from filename
- getCss( size )
- size alias support
- fill color support (handy for icon systems)
- Skip svg files with missing viewBox attribute
- Added CLI options
- Trim style attribute before parsing
- Allow negative values in viewBox
- Coverage reports
- Refactoring
- Fix test suite dependencies
- Update to React 16
- Fixed viewBox parsing: allow floats, allow origins other than zero
- Use file content for hash, instead of file path
- Consecutive child tags broke the output
- Consecutive child tags broke the output
- Moved from mocha to jest for testing
- Use full path for id hashes
- Generate unique id attributes, to avoid conflicts in DOM (fixes IE11 google analytics bug, when clicking on svg elements)
- Snapshot testing with enzyme
- Travis CI
- Documentation and credits in README.md
- Typos and version bumps
- Basic unit tests
- A changelog
- accept empty strings in
camelCase
andpascalCase
helper methods
- yarn dependency
- Attributes comma separation bug
- npm bump
- Initial release