Skip to content

0.2.0

Compare
Choose a tag to compare
@christopherthielen christopherthielen released this 05 May 05:01
· 612 commits to master since this release

0.2.0 (2018-05-05)

Compare @uirouter/react-hybrid versions 0.1.0 and 0.2.0

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)

Updated @uirouter/react from 0.6.2 to 0.7.0

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/angularjs from 1.0.15 to 1.0.16

Compare @uirouter/angularjs versions 1.0.15 and 1.0.16

Bug Fixes

  • docs: downgrade to @types/angular@1.6.25 to fix typings error when generating docs (5850136)