Skip to content

Releases: berbaquero/react-hide-show-utils

Typing support for React 18

18 Oct 16:30
Compare
Choose a tag to compare

Types are updated for proper React 18 support — thanks, @utkuturna!

Also, bunch of security-related dependency updates.

New Contributors

Full Changelog: v1.2.0...v1.3.0

Safe lifecycle methods

18 Jun 15:16
Compare
Choose a tag to compare

No longer uses componentWillMount internally.

Rewritten in TypeScript

17 May 12:21
Compare
Choose a tag to compare

The whole source code is now written in TypeScript, and the generated JS files are targeted to ES6*.

The functionality is exactly the same as before.

*If you need to target browsers that only support ES5 or earlier, you need to explicitly transpile the files in your node_modules/react-hide-show-utils.

Simple server-side support

10 Jan 13:33
Compare
Choose a tag to compare

Any children declared inside the components will simple render to null on Node. Basically, the components won't break on the server anymore.

On the client, everything works exactly like before.

Added `<ShowAt>` component

21 May 13:35
Compare
Choose a tag to compare

Finally both <HideAt> and <ShowAt> components are available.

Also, added notes and clarifications about its usage and limitations.