react-router-breadcrumbs-hoc

tiny, flexible, HOC for rendering route breadcrumbs with react-router v4 & 5

MIT License

Downloads
55.1K
Stars
301
Committers
8

Bot releases are hidden (Show)

react-router-breadcrumbs-hoc - 3.0.0

Published by icd2k3 over 5 years ago

Breaking Change

withBreadcrumbs now returns an array of Objects instead of Components:

-  breadcrumbs.map(breadcrumb)
+  breadcrumbs.map({ breadcrumb })

Within this object, other props like match, location, and pass-through props are also returned:

-  breadcrumbs.map((breadcrumb) => {})
+  breadcrumbs.map(({ breadcrumb, match, location, someCustomProp }) => {})

You can read more about this change here

Other

  • Maintains dependencies
  • Updates docs to match the changes above
react-router-breadcrumbs-hoc - 2.3.2

Published by icd2k3 over 5 years ago

react-router-breadcrumbs-hoc - 2.3.1

Published by icd2k3 almost 6 years ago

  • Fix #48 Adds functionality to optionally pass through other props to each breadcrumb (thanks @taschetto)
react-router-breadcrumbs-hoc - 2.2.0

Published by icd2k3 almost 6 years ago

  • Updating dev dependencies. Functionality should be the same, but there were a couple major upgrades, so this version bump represents that.
react-router-breadcrumbs-hoc - 2.1.5

Published by icd2k3 about 6 years ago

react-router-breadcrumbs-hoc - 2.1.4

Published by icd2k3 over 6 years ago

  • Fixes a duplicate key warning when using optional route params (see #37)
react-router-breadcrumbs-hoc - 2.1.3

Published by icd2k3 over 6 years ago

  • Adds better TypeScript defs & tests (Thanks @9renpoto)
  • Chore: adds compiled build tests
  • Chore: keep dev dependencies up to date
  • Chore: Switch from babel-preset-stage-1 to babel-preset-stage-3 (we weren't using any stage 1/2 features anyways)
react-router-breadcrumbs-hoc - 2.1.2

Published by icd2k3 over 6 years ago

  • Added TypeScript support (fixes #32). Thanks @9renpoto!
react-router-breadcrumbs-hoc - 2.1.1

Published by icd2k3 over 6 years ago

  • Keeps our dependencies up to date. No changes to end-functionality are anticipated.
react-router-breadcrumbs-hoc - 2.1.0

Published by icd2k3 over 6 years ago

  • Adds an option to completely disable default breadcrumb generation disableDefaults (outlined in the readme)
react-router-breadcrumbs-hoc - 2.0.1

Published by icd2k3 over 6 years ago

react-router-breadcrumbs-hoc - 2.0.0

Published by icd2k3 over 6 years ago

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
react-router-breadcrumbs-hoc - 1.2.0

Published by icd2k3 over 6 years ago

react-router-breadcrumbs-hoc - 1.1.2

Published by icd2k3 over 6 years ago

react-router-breadcrumbs-hoc - 1.1.1

Published by icd2k3 almost 7 years ago

  • Fixes issue #13 by removing .mjs extension
react-router-breadcrumbs-hoc - 1.1.0

Published by icd2k3 almost 7 years ago

  • Added support for es6 module .mjs export. Thanks @mhelmer
  • Dev dependency upgrades & cleanup
react-router-breadcrumbs-hoc - 1.0.7

Published by icd2k3 almost 7 years ago

  • Bug: Fixes an issue where some breadcrumb components can return Uncaught TypeError: Cannot call a class as a function
react-router-breadcrumbs-hoc - 1.0.5

Published by icd2k3 almost 7 years ago

  • Bump version to fix npm publish compiled build issue
react-router-breadcrumbs-hoc - 1.0.4

Published by icd2k3 almost 7 years ago

react-router-breadcrumbs-hoc - 1.0.3

Published by icd2k3 almost 7 years ago

Package Rankings
Top 2.02% on Npmjs.org
Related Projects