Skip to content

Releases: MoOx/react-from-svg

4.0.2

01 May 09:26
ad22c3d

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

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

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

Choose a tag to compare

3.0.0

23 Jan 15:03
b30deed

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

Choose a tag to compare

  • oopsy path

2.1.0

23 Jan 14:23
5448910

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

Choose a tag to compare

  • Try to autorebuild if compiled artifacts are missing

2.0.0

22 Jan 15:42
8e8ccac

Choose a tag to compare

  • 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.

1.2.3

03 Jan 21:19
069b9c9

Choose a tag to compare

  • Fix unwanted whitespace that create text nodes