Skip to content

Releases: MoOx/react-from-svg

4.0.5

08 Aug 13:42
6f3a4e7
Compare
Choose a tag to compare
  • --with-native-for-reason: Fix untransformed offset prop for Stop component cdcbf0e by @MoOx

4.0.3

11 Jun 07:54
d74da73
Compare
Choose a tag to compare
  • --with-native: Fix JS output error "Error: Text strings must be rendered
    within a <Text> #14 by
    @Freddy03h

4.0.2

01 May 09:26
ad22c3d
Compare
Choose a tag to compare
  • --with-native-for-reason: Fix 4.0.1 regression where size is undefined

4.0.1

16 Apr 10:08
e9e6465
Compare
Choose a tag to compare
  • --with-native-for-reason: Avoid bucklescript shadow warnings for
    ReactNative.Style.size by @MoOx

4.0.0

16 Apr 05:51
5bc42ef
Compare
Choose a tag to compare

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-native is also used,
    will be output as .web.js files
  • --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-web options
    (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-reason new options).
  • Add --with-native-for-reason, --with-web-for-reason
    (8034065) by @MoOx
  • File are now renamed to pascale case (eg: some-file.svg become
    SVGSomeFile.*)
    (c62989f) by @MoOx

🐛 BugFixes

  • Fix strokeLinejoin, strokeLinecap & strokeMiterlimit props
    (#8) by @Freddy03h
  • Fix incorrect replacement for width/height/fill incorrectly removed
    (4533c64) by @MoOx

🎉 New

🚧 Notable Internal changes

  • We now serve the package as a bundle bin to avoid bs-platform build 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

18 Feb 08:21
7c74b7e
Compare
Choose a tag to compare

3.0.0

23 Jan 15:03
b30deed
Compare
Choose a tag to compare
  • fixed reason generated module name to the js
  • --reason-absolute-path is now --reason-module-path & can support absolute
    and local path

2.1.1

23 Jan 14:37
b6ca3c6
Compare
Choose a tag to compare
  • oopsy path

2.1.0

23 Jan 14:23
5448910
Compare
Choose a tag to compare
  • Add --reason-absolute-path option for reason files
    (#4) by @Freddy03h
  • Fix fill reason type by @MoOx

2.0.1

22 Jan 16:42
12b9ad0
Compare
Choose a tag to compare
  • Try to autorebuild if compiled artifacts are missing