Skip to content

Releases: ui-router/react

0.8.8

10 Jan 05:37
Compare
Choose a tag to compare

0.8.8 (2019-01-10)

Compare @uirouter/react versions 0.8.7 and 0.8.8

Updated @uirouter/core from 5.0.21 to 5.0.22

Compare @uirouter/core versions 5.0.21 and 5.0.22

Bug Fixes

Features

  • TransitionHook: Pass in transition to HookMatchCriteria (#255) (926705e)

0.8.7

11 Aug 20:12
Compare
Choose a tag to compare

0.8.7 (2018-08-11)

Compare @uirouter/react versions 0.8.5 and 0.8.7

Updated @uirouter/core from 5.0.20 to 5.0.21

Compare @uirouter/core versions 5.0.20 and 5.0.21

Bug Fixes

  • dynamic: Use 'find' from common.ts instead of Array.prototype.find (66a3244), closes #215
  • url: When using html5Mode and no tag is present, default to '/' (23742e3), closes #223

0.8.5

09 Aug 04:31
Compare
Choose a tag to compare

0.8.5 (2018-08-09)

Compare @uirouter/react versions 0.8.4 and 0.8.5

Features

  • UISref: Call child element's onClick prop first, if it exists (095a90d), closes #240

0.8.4

07 Aug 19:11
Compare
Choose a tag to compare

0.8.4 (2018-08-07)

Compare @uirouter/react versions 0.8.3 and 0.8.4

Bug Fixes

  • uiview: Fix uiCanExit when routing to a React.forwardRef() (cf5c668)

Features

  • UISrefActive: pass down className (fbb8152)
  • UISrefActive: support for nested UISrefActive (49e32e6)

0.8.3

20 Jul 17:00
Compare
Choose a tag to compare

0.8.3 (2018-07-20)

Compare @uirouter/react versions 0.8.2 and 0.8.3

Updated @uirouter/core from 5.0.19 to 5.0.20

Compare @uirouter/core versions 5.0.19 and 5.0.20

Bug Fixes

  • params: When creating an array parameter from a custom type, copy the raw property (b6dd738), closes #178

Features

  • dynamic: Support dynamic flag on a state declaration (3cd5a2a)
  • transition: Added transition.paramsChanged() to get added/deleted/changed parameter values for a transition (10b7fde)
  • view: Add _pluginapi._registeredUIView() to get a ui-view by id (6533b51)

0.8.2

25 May 02:25
Compare
Choose a tag to compare

0.8.2 (2018-05-25)

Compare @uirouter/react versions 0.8.1 and 0.8.2

Bug Fixes

  • enzyme: fix enzyme patch leaving a file called '-' (4c2157c)

Features

  • internal: Change UIView from arrow to Component Class (ce2bc1e)

0.8.1

25 May 01:26
Compare
Choose a tag to compare

0.8.1 (2018-05-25)

Compare @uirouter/react versions 0.8.0 and 0.8.1

Features

  • internal: exposed the internal View component for use by @uirouter/react-hybrid (9c07226)

0.8.0

19 May 11:49
Compare
Choose a tag to compare

0.8.0 (2018-05-19)

Compare @uirouter/react versions 0.7.0 and 0.8.0

Bug Fixes

  • UISref/UISrefActive: make proptypes non-required: parentUIView, addStateInfoToParentActive (c7aa299), closes #173

Features

  • UIView: force component re-mount on reload() (d01162a), closes #172

BREAKING CHANGES

  • UIView: when a state is entered/exited the State Component is remounted, re-running its lifecycle methods.

Updated @uirouter/core from 5.0.18 to 5.0.19

Compare @uirouter/core versions 5.0.18 and 5.0.19

Bug Fixes

0.7.0

05 May 03:29
Compare
Choose a tag to compare

0.7.0 (2018-05-05)

Compare @uirouter/react versions 0.6.2 and 0.7.0

Bug Fixes

  • package: update prop-types to version 15.6.1 (1d0ee26)

Features

  • use new React 16.3 context API (580700f), closes #54
  • react: update minimum react version supported (4acb7a7)

BREAKING CHANGES

  • react: from version 0.7.0 @uirouter/react only supports react from version 16.3.x because of the new Context API.
    If you need to use it with previous versions of React you should check the 0.6.x, but bear in mind that it’s no longer supported and it’s advised to update React instead.
  • @uirouter/react now uses the new React 16.3 Context API. If you were accessing the router instance via the legacy context api (which was never explecitly supported) you need to update your code accordingly:

before:

class SomeComponent extends React.Component {
  static contextTypes = {
    router: PropTypes.object
  }

  render () {
    // access context via this.context
    const router = this.context.router;
    // do whatever needed with the router
  }
}

after:

class SomeComponent extends React.Component {
  render () {
    // access router via props
    const router = this.props.router;
    // do whatever needed with the router
  }
}

// when rendering the component wrap it with the `<UIRouterConsumer>` component
<UIRouterConsumer>
  {router => <SomeComponent router={router} />}
</UIRouterConsumer>

Updated @uirouter/core from 5.0.17 to 5.0.18

Compare @uirouter/core versions 5.0.17 and 5.0.18

Bug Fixes

  • angular: A hack to force the Angular compiler to import from module index (d56a2be)
  • StateRegistry: Notify listeners of added states when there are orphans in the state queue (5a9bac9)
  • transition: Fix typing of Transition.params() (ebea30e)
  • transition: Normalize error() to always return Rejection (9bcc5db)

0.6.2

12 Feb 17:46
Compare
Choose a tag to compare

0.6.2 (2018-02-12)

Compare @uirouter/react versions 0.6.1 and 0.6.2

Bug Fixes

  • package: update @uirouter/core to version 5.0.17 (b0109ee)
  • UIView: Do not reload view if the new viewConfig is identical to the old one (07a03bf)
  • UIView: Pass style prop through even if no className is specified (cc3d80d)
  • UIView: Provide only resolve props that should be accessible to each view (a4ee9e9)

Updated @uirouter/core from 5.0.16 to 5.0.17

Compare @uirouter/core versions 5.0.16 and 5.0.17

Bug Fixes

  • core: Fix leak of old transitions by mutating pathnode*.resolvables*.data (0a1f518)