tiny, flexible, HOC for rendering route breadcrumbs with react-router v4 & 5
MIT License
react-router
dependency with react-router-dom
(see #124)Published by icd2k3 over 3 years ago
Published by icd2k3 over 3 years ago
react-router
v4 (from this version on we'll be supporting only v5 and up)
react-router
v4, and can't update yet, use version 3.4.0 of this modulePublished by icd2k3 over 3 years ago
Published by icd2k3 almost 4 years ago
Published by icd2k3 over 4 years ago
Published by icd2k3 over 4 years ago
site.com/sandwiches//tuna
) (fixes #105)Published by icd2k3 over 4 years ago
@types/react-router-dom
as a dev dependency, and removes react-router-dom
from rollup
's globals object)Published by icd2k3 over 4 years ago
react-router-dom
as a peer dependencyPublished by icd2k3 over 4 years ago
3.2.6
where props were not being forwarded correctly when using react-router
>=5.1
Published by icd2k3 over 4 years ago
withRouter
where availablereact-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.Published by icd2k3 over 4 years ago
typescript
and updated devDependencies
. Nothing should have changed, but rolling a "fix" release number in case of any unexpected consequences.Published by icd2k3 almost 5 years ago
Published by icd2k3 about 5 years ago
excludePaths
used in conjunction with URL parameters (https://github.com/icd2k3/react-router-breadcrumbs-hoc/issues/77)Published by icd2k3 about 5 years ago
Published by icd2k3 over 5 years ago
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 HOCPublished by icd2k3 over 5 years ago
main
module from umd
format to cjs
. (there is still a umd
version if needed at /dist/umd
)Published by icd2k3 over 5 years ago
React.memo
wrapped breadcrumb components. Fixes: https://github.com/icd2k3/react-router-breadcrumbs-hoc/issues/66
Published by icd2k3 over 5 years ago
Published by icd2k3 over 5 years ago
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).