Skip to content

v5.0.0

Compare
Choose a tag to compare
@github-actions github-actions released this 17 Apr 14:27
· 533 commits to main since this release

5.0.0 (2022-04-17)

This release focus on tackling some long-standing issues with server-side rendering. react-tabs now uses some new features from react 18 to fix those issues. The npm package is now ~20% smaller and the UMD builds are also a little bit smaller (production: ~5%, dev: ~30%)

Features

  • Add typescript typings to repo (4965a39)
  • Improve output code size and do not package tests (77d571a)
  • Minify generated code and don't print comments (efd6807)
  • Use new useId hook from react 18 (487326c)

BREAKING CHANGES

  • Typescript typings are now part of this package. Please uninstall @types/react-tabs
  • React version 18 or newer is now required.
  • resetIdCounter was removed as it is not necessary anymore. Ensure you remove any calls to it from your code.
  • The package now does use Object.assign directly instead of babel helpers. In older browsers you need to pollyfill Object.assign and Symbol. react itself has the same requirements, see https://reactjs.org/docs/javascript-environment-requirements.html
  • Tests are not shipped anymore with the npm package.