Skip to content

Releases: STRML/react-router-component

0.36.3

08 Dec 01:11
17a4956
Compare
Choose a tag to compare
  • Reduce npm tarball size by 80% (excluding docs, examples, etc)

0.36.2

08 Dec 01:11
9491e15
Compare
Choose a tag to compare
  • Remove usage of React.DOM.*, which will soon be deprecated in React 16 and has incompatibilities with
    Preact, Inferno, etc.

0.36.1

08 Dec 01:11
dfa37ad
Compare
Choose a tag to compare
  • Fix component propType. Thanks @jsg2021.

0.36.0

08 Dec 01:11
d3415fd
Compare
Choose a tag to compare
  • Router: Avoid unnecessary setPath() calls when receiving identical props. Fixes #177
  • CaptureClicks: Potentially breaking change:
    • Previously, <CaptureClicks> would call props.gotoURL() (default: window.location.href = e.href) as soon
      as the first router failed to match. This was error-prone as it depended on the registration order of routers.
      Subrouters with limited routes could cause navigation not to occur.
      • This was masked somewhat by the extraenous setPath() calls. Navigation would occur, but onNavigation would
        not fire.
    • Now, <CaptureClicks> calls props.gotoURL() only if all routers fail to match.

0.35.0

08 Dec 01:11
66d736b
Compare
Choose a tag to compare
  • Update for React v15.2.0: attempt to pass fewer unknown props to DOM elements.
  • Tighten up some missing propTypes.

0.34.0

08 Dec 01:11
6bb23cd
Compare
Choose a tag to compare
  • Update dependencies.
  • Move to Babel 6.

0.33.0

08 Dec 01:11
503706e
Compare
Choose a tag to compare
  • Possibly breaking changes to callbacks:
    • onNavigation and onBeforeNavigation is now called on all routers.
      • This fixes #95
    • Arity change in callbacks: now (path, navigation, match) from (path, navigation).
      • The trailing match parameter was added to better track subrouter matches.
      • navigation will no longer contain a match attribute, which was a singleton and thus
        could not be unique when using multiple routers.

0.32.2

08 Dec 01:11
05fcf7a
Compare
Choose a tag to compare
  • Hotfix: Accidental 'const', we're not using Babel

0.32.1

08 Dec 01:11
05ef2e8
Compare
Choose a tag to compare
  • Reuse empty _query objects as not to bust ShouldComponentUpdate.

0.32.0

08 Dec 01:11
a366789
Compare
Choose a tag to compare
  • React v15 support. React 0.14 support will remain for some time.