Skip to content

Releases: icd2k3/react-router-breadcrumbs-hoc

3.2.6

16 Mar 17:03
3c8adc5
Compare
Choose a tag to compare
  • Implements useLocation instead of withRouter where available
  • Adds a deprecation warning for those still on react-router v4 (this is still supported, but probably won't be in the next major version). If you don't plan on upgrading react-router for a while, just continue to use v3.2.5 if you're annoyed by this warning.

3.2.5

24 Jan 22:16
06a1854
Compare
Choose a tag to compare
  • Converted source code to typescript and updated devDependencies. Nothing should have changed, but rolling a "fix" release number in case of any unexpected consequences.

3.2.4

13 Nov 18:13
943ff70
Compare
Choose a tag to compare
  • Fixes a typescript definition mistake (#81)

3.2.3

05 Sep 01:40
e6bdd7d
Compare
Choose a tag to compare
  • Fixes an issue with excludePaths used in conjunction with URL parameters (#77)

3.2.2

05 Sep 01:33
e6bdd7d
Compare
Choose a tag to compare
  • Fixes an issue with preinstall hook (#74)

3.2.1

19 Jul 22:43
2f5d38d
Compare
Choose a tag to compare
  • Fix: allows for null to be passed as routes. For example, withBreadcrumbs(null, { ... }). This is for users of default, generated breadcrumbs who also want to pass an options object into the HOC
  • Chore: general dev dependency updates

3.2.0

04 May 17:54
f71df10
Compare
Choose a tag to compare
  • Switches the main module from umd format to cjs. (there is still a umd version if needed at /dist/umd)
  • Maintains all dev dependencies and adds husky hooks for pre-commit & pre-push

3.1.2

04 May 17:33
946143a
Compare
Choose a tag to compare
  • Adds support for React.memo wrapped breadcrumb components. Fixes: #66

3.1.1

23 Mar 14:54
ce30a3a
Compare
Choose a tag to compare
  • Sets peer dependencies to support react-router 5
  • Maintains dev dependencies

3.1.0

15 Mar 23:37
6247d24
Compare
Choose a tag to compare

Removes humanize-string as a dependency.

Zero dependencies!

humanize-string as used to generate default breadcrumbs, but it was adding a lot to the bundle size as well as compilation issues for some. Instead, these regexes seem to cover all the cases for default breadcrumbs we need. As a result, the bundle size of 3.0.0 has been dropped from ~32kb (gzip) to ~1.5kb (gzip).