Releases: MoOx/react-from-svg
Releases · MoOx/react-from-svg
4.0.2
4.0.1
4.0.0
In addition to some fixes, this release introduce a breaking change for the CLI
Now you must use one of the --with-* options options to have output for you
desired platform/language:
--with-native: Output code using React Native &react-native-svg
(compatible with React Native Web)--with-web: Output code using React DOM. If--with-nativeis also used,
will be output as.web.jsfiles--with-native-for-reason: Output code for Reason React Native &
@reason-react-native/svg--with-web-for-reason: Output code for Reason React DOM
CLI has also been improved a little to be more gentle & can offer some --help.
Also, now, no postinstall step are necessary for this package as we ship a
bundled version.
💥 Breaking Changes
- Add
--with-native, &--with-weboptions
(070a85f) by @MoOx - Remove
--with-reason&--bs-module-path
(8034065) by @MoOx
This change make sense as you can now directly output reason code that are
directly svgs, not just bindings (see--with*-for-reasonnew options). - Add
--with-native-for-reason,--with-web-for-reason
(8034065) by @MoOx - File are now renamed to pascale case (eg:
some-file.svgbecome
SVGSomeFile.*)
(c62989f) by @MoOx
🐛 BugFixes
- Fix
strokeLinejoin,strokeLinecap&strokeMiterlimitprops
(#8) by @Freddy03h - Fix incorrect replacement for width/height/fill incorrectly removed
(4533c64) by @MoOx
🎉 New
- Add
--remove-strokeoption +strokecomponent prop
(#8) by @Freddy03h - Add
--commonjs
(070a85f) by @MoOx
🚧 Notable Internal changes
- We now serve the package as a bundle bin to avoid
bs-platformbuild on
postinstall + artifacts issues
(ed6262c) by @MoOx - Codebase covered by tests (via snapshots) by @MoOx
- Upgrade to bs-platform 7.2
(#7) by @broerjuang
3.1.0
- Fix TSpan import error
(#6) by @broerjuang - bump bs-platform to 7.1.0
(#6) by @broerjuang
3.0.0
2.1.1
2.1.0
2.0.1
2.0.0
- Try to load compiled transformer differently (not in-source as it's the recommended place - to avoid issue with existing bs compilation, which can override & break nodejs script due to not using commonjs).
- Use bs-platform@^7.0.0
We might in the future rebuild script before running it.