Skip to content

Releases: shuding/react-wrap-balancer

1.1.1

25 May 21:43
704dabd
Compare
Choose a tag to compare

What's Changed

  • Remove explicit children: typing in BalancerOwnProps by @anulman in #83
  • Forward ref by @SeokminHong in #88
  • fix: Make sure relayout func handles incorrect input safely by @othree in #85
  • Stop spreading as prop onto root element by @hasparus in #87
  • chore: 🏷️ Export BalancerOwnProps interface by @edwinhern in #92

New Contributors

Full Changelog: 1.1.0...1.1.1

1.1.0

15 Aug 16:16
eb36382
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 1.0.0...1.1.0

1.0.0

15 Jun 20:21
53bc953
Compare
Choose a tag to compare

V1.0 is here! Major new feature from this release is that <Balancer> will now switch to use the native CSS text-wrap: balance if it's available. This improves the runtime performance quite a lot!

With that, it's even more important to always add a <Provider> to your app as that makes the CSS feature detection logic shared across all <Balancer> components.

Lastly, if the native CSS balance is available, the ratio option will be ignored because that's not part of the text-wrap: balance standard.

What's Changed

  • Add repository, homepage and bugs to package.json by @kachkaev in #70
  • Use text-wrap: balance if supported by @shuding in #72

New Contributors

Full Changelog: 0.5.0...1.0.0

0.5.0

09 May 12:35
d6ae52f
Compare
Choose a tag to compare

Highlights

nonce prop

Since React Wrap Balancer generates inlined script tags under the hood, you can now set the nonce prop for them:

<Balancer nonce="...">

// => <script nonce="...">

Support for React 16.8.0+

By adding a workaround for useId, we now have support for React 16.8.0+.

Bug fixes & Other Improvements

See the full changelog below.

What's Changed

New Contributors

Full Changelog: 0.4.1...0.5.0

0.4.1

28 Apr 17:19
5f2f2e8
Compare
Choose a tag to compare

What's Changed

  • add Browser support information in readme. by @teobler in #30
  • Fix reference error of resize observer by @lucasweng in #55

New Contributors

Full Changelog: 0.4.0...0.4.1

0.4.0

22 Jan 14:31
f75cdef
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 0.3.0...0.4.0

0.3.0

05 Jan 13:36
366a7d0
Compare
Choose a tag to compare

Improvements

This new release has improved types for <Balancer>'s props (#14) and a critical bug fix when web font is used (#18) with a new API.
It's not breaking and recommended to upgrade.

If you have multiple <Balancer> components used, it’s recommended (but optional) to also use <Provider> to wrap the entire app. This will make them share the re-balance logic and reduce the HTML size:

import { Provider } from 'react-wrap-balancer'

// ...

function App() {
  return (
    <Provider>
      <MyApp/>
    </Provider>
  )
}

To learn more about the bug and the fix, check out #20.

What's Changed

New Contributors

Full Changelog: 0.2.4...0.3.0

0.2.4

27 Dec 15:49
05b2f49
Compare
Choose a tag to compare

What's Changed

Core

  • Create LICENSE.md by @Saintpreston in #10
  • Ignore hydration warning on script by @thebuilder in #12

Website & Docs

New Contributors

  • @luke-h1 made their first contribution in #2
  • @Saintpreston made their first contribution in #10
  • @thebuilder made their first contribution in #12

Full Changelog: https://github.com/shuding/react-wrap-balancer/commits/0.2.4