Releases: icd2k3/react-router-breadcrumbs-hoc
Releases · icd2k3/react-router-breadcrumbs-hoc
2.0.1
2.0.0
This release includes a few key changes to the package. If you're migrating from v1.x.x please check out the migration guide. I don't anticipate any more core changes to the API, but please let me know in the issues tab if there is a problem with this current implementation.
- Sensible defaults: You no longer need to explicitly pass breadcrumb strings or components in. For example:
/one/two
-->Home / One / Two
(with no route config passed). - API change: when mapping over breadcrumbs. Instead of returning an array of objects like
[{ breadcrumb, path, /* ... */ }]
to the component using the HOC. We now just return a flat array of breadcrumb components with props included. This makes the rendering step a bit easier to read / use. - There is a new
options
object with an optionalexcludePaths
param to easily opt-out of generating breadcrumbs for certain paths withBreadcrumbs
is now a default export