Skip to content

Releases: icd2k3/use-react-router-breadcrumbs

2.0.0

22 Dec 21:23
dcbe4fd
Compare
Choose a tag to compare
  • Adds a props option in route config for passing properties through to the breadcrumb components. Previously, we were passing through all additional props on the route object, by moving it to an explicit props option we can avoid property conflicts and have better types support.

This will not be a breaking change unless you are already including extra props in your route objects.

For example:

const routes = [{
  path: '/path',
  breadcrumb: ({ extraProp }) => <span>{extraProp}</span>,
  props: { extraProp: 'extra' },  // optional extra pass-through props for breadcrumb components
}]

useBreadcrumbs(routes)

1.0.5

05 Nov 18:56
87099d9
Compare
Choose a tag to compare
  • Fixes a typing issue with allowing null for breadcrumb (#12)

1.0.4

24 Apr 15:55
5048dfc
Compare
Choose a tag to compare
  • Fixes typescript definitions (#7) (thanks @ksocha)

1.0.3

15 Apr 16:01
6ae03dd
Compare
Choose a tag to compare
  • Fix: edge case for multiple slashes in a URL (for example: site.com/sandwiches//tuna)

1.0.2

09 Apr 17:33
9b3652e
Compare
Choose a tag to compare
  • Fixes typescript definitions (#3)

1.0.1

02 Apr 20:03
4451748
Compare
Choose a tag to compare
  • Removes react-router-dom as a peer dependency