Skip to content

2.0.0

Compare
Choose a tag to compare
@icd2k3 icd2k3 released this 08 Mar 03:05
· 108 commits to master since this release
098b032

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 optional excludePaths param to easily opt-out of generating breadcrumbs for certain paths
  • withBreadcrumbs is now a default export