{"action":"created","issue":{"url":"https://api.github.com/repos/cybrairai/internsystem-frontend/issues/12","repository_url":"https://api.github.com/repos/cybrairai/internsystem-frontend","labels_url":"https://api.github.com/repos/cybrairai/internsystem-frontend/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/cybrairai/internsystem-frontend/issues/12/comments","events_url":"https://api.github.com/repos/cybrairai/internsystem-frontend/issues/12/events","html_url":"https://github.com/cybrairai/internsystem-frontend/pull/12","id":166180775,"number":12,"title":"[Doppins] Upgrade dependency react-router to ^3.0.0","user":{"login":"doppins-bot","id":13711356,"avatar_url":"https://avatars.githubusercontent.com/u/13711356?v=3","gravatar_id":"","url":"https://api.github.com/users/doppins-bot","html_url":"https://github.com/doppins-bot","followers_url":"https://api.github.com/users/doppins-bot/followers","following_url":"https://api.github.com/users/doppins-bot/following{/other_user}","gists_url":"https://api.github.com/users/doppins-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/doppins-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doppins-bot/subscriptions","organizations_url":"https://api.github.com/users/doppins-bot/orgs","repos_url":"https://api.github.com/users/doppins-bot/repos","events_url":"https://api.github.com/users/doppins-bot/events{/privacy}","received_events_url":"https://api.github.com/users/doppins-bot/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-07-18T20:04:55Z","updated_at":"2016-11-10T02:01:57Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/cybrairai/internsystem-frontend/pulls/12","html_url":"https://github.com/cybrairai/internsystem-frontend/pull/12","diff_url":"https://github.com/cybrairai/internsystem-frontend/pull/12.diff","patch_url":"https://github.com/cybrairai/internsystem-frontend/pull/12.patch"},"body":"Hi!\n\nA new version was just released of `react-router`, so [Doppins](https://doppins.com)\nhas upgraded your project's dependency ranges.\n\nMake sure that it doesn't break anything, and happy merging! :shipit:\n---\n### Upgraded react-router from `^0.13.5` to `^2.6.0`\n#### Changelog:\n#### Version 2.4.0\n### [Changes](`https://github.com/rackt/react-router/compare/v2.0.0-rc6...v2.0.0`)\n- **Feature:** Add `withRouter` higher-order component for injecting `props.router` ([`#3352`](`https://github.com/reactjs/react-router/pull/3352`))\n- **Minor:** Add React as a peer dependency ([`#3361`](`https://github.com/reactjs/react-router/pull/3361`))\n- **Minor:** Upgrade to Babel 6 ([`#3362`](`https://github.com/reactjs/react-router/pull/3362`))\n- **Minor:** Add `target` to `propTypes` for `<Link>` ([`#3397`](`https://github.com/reactjs/react-router/pull/3397`))\n#### Version 2.3.0\n### [Changes](`https://github.com/rackt/react-router/compare/v2.0.0-rc6...v2.0.0`)\n- **Feature:** Add `applyRouterMiddleware` for extending router rendering ([`#3327`](`https://github.com/reactjs/react-router/issues/3327`))\n- **Feature/Deprecation:** Add `routerShape` and `locationShape` as top-level exported prop types, and deprecate all the old prop types, including the ones that were previously incorrectly removed ([`#3349`](`https://github.com/reactjs/react-router/issues/3349`))\n- **Minor:** Move ES module build back to `es6/` to avoid breaking people who were incorrectly importing from `react-router/es6` ([`#3334`](`https://github.com/reactjs/react-router/issues/3334`))\n#### Version 2.2.4\n### [Changes](`https://github.com/rackt/react-router/compare/v2.0.0-rc6...v2.0.0`)\n- **Noop:** Publish again to npm to work around missing tarball problem\n#### Version 2.2.2\n### [Changes](`https://github.com/rackt/react-router/compare/v2.0.0-rc6...v2.0.0`)\n- **Bugfix:** Fix edge cases with continuing matches after pathless routes ([`#3308`](`https://github.com/reactjs/react-router/pull/3308`))\n#### Version 2.2.1\n### [Changes](`https://github.com/rackt/react-router/compare/v2.0.0-rc6...v2.0.0`)\n- **Bugfix:** Fix `this` in `getComponent` and `getComponents` ([`#3306`](`https://github.com/reactjs/react-router/pull/3306`))\n#### Version 2.2.0\n### [Changes](`https://github.com/rackt/react-router/compare/v2.0.0-rc6...v2.0.0`)\n- **Feature/Deprecation:** Call `getComponent` and `getComponents` with `nextState`; deprecate accessing `location` directly in favor of `nextState.location` there ([`#3298`](`https://github.com/reactjs/react-router/pull/3298`), [Upgrade Guide](/upgrade-guides/v2.2.0.md#getcomponent-getcomponents-signature))\n- **Bugfix:** Do not ignore extraneous slashes in matching ([`#3285`](`https://github.com/reactjs/react-router/pull/3285`))\n- **Bugfix:** Do not unnecessarily set empty `className` on `<Link>` ([`#3288`](`https://github.com/reactjs/react-router/pull/3288`))\n- **Minor:** Update PropTypes ([`#3218`](`https://github.com/reactjs/react-router/pull/3218`))\n- **Minor:** Move ES module build from `es6/` to `es/` ([`#3295`](`https://github.com/reactjs/react-router/pull/3295`))\n- **Minor:** Do not include unused deprecation logic in production builds ([`#3296`](`https://github.com/reactjs/react-router/pull/3296`))\n#### Version 2.1.1\n### [Changes](`https://github.com/rackt/react-router/compare/v2.0.0-rc6...v2.0.0`)\n- **Bugfix:** Remove unintentionally released code change ([`#3280`](`https://github.com/reactjs/react-router/pull/3280`))\n#### Version 2.1.0\n### [Changes](`https://github.com/rackt/react-router/compare/v2.0.0-rc6...v2.0.0`)\n- **Feature:** Add support for `onChange` hook on routes ([`#3108`](`https://github.com/reactjs/react-router/pull/3108`))\n- **Minor:** Include full warning messages in non-minified UMD build ([`#3213`](`https://github.com/reactjs/react-router/pull/3213`))\n- **Minor:** Speed up path matching ([`#3217`](`https://github.com/reactjs/react-router/pull/3217`))\n#### Version 2.0.1\n### [Changes](`https://github.com/rackt/react-router/compare/v2.0.0-rc6...v2.0.0`)\n- **Bugfix:** Call transition hooks on child routes of parents whose params\n  changed but the child's did not. ([`#3166`](`https://github.com/reactjs/react-router/pull/3166`))\n- **Minor:** Remove support for installing from source ([`#3164`](`https://github.com/reactjs/react-router/pull/3164`))\n#### Version 2.0.0\n\n**Read the Full Upgrade Guide** (`https://github.com/rackt/react-router/blob/master/upgrade-guides/v2.0.0.md`)\n### Goals\n\nYou might enjoy reading this issue: `https://github.com/rackt/react-router/issues/2646`\n1. Clear up the coupling between History and Router with simpler APIs.\n2. Provide cleaner integrations with other libraries like Redux, Relay, Async Props etc.\n3. Stop providing API that conceals usage of `context`. It is now a documented feature of React so developers using Router can implement their own opinions on how best to use context: Mixins, higher-order components, decorators, etc. React Router no longer has an opinion, but instead uses the lowest level feature of React.  This project wants to be an incredibly useful routing library and doesn't want to get hung up on best-practice patterns for getting stuff from up top to down low.\n4. Draw a clean line between what goes to Route Components as `props` and what goes on `context`.\n\nFor a lot of apps this upgrade might look like API churn. Underneath the hood there are significant differences that make integrating with the rest of the React ecosystem more straightforward. Thanks for your continued patience and support as we all build this tool together. It's hard to imagine the top-level API changing much after this. But if it does, rest assured we are committed to ...\n### Backwards Compatibility and Deprecation Warnings\n\nThis has been a community project from the start, we need your help making the upgrade as smooth as possible for everybody!\n\nWe have done our best to provide backwards compatibility with deprecated APIs. If you drop in v2.x into a v1.x application and it doesn't run, then there is a bug. Please open an issue when you discover what the problem is so we can get a fix out.\n\nThe deprecation warnings should also lead you to the relevant part of this document. If one doesn't, please open a pull request with a fix. Also, if any part of this document could be improved, please let us know how. Confound it, our bias is often inescapable!\n### Upgrade Automatically with Codemods\n\nUsing a tool called [jscodeshift](https://github.com/facebook/jscodeshift), we have made available some codemods for upgrading your code to the new APIs automatically: https://github.com/rackt/rackt-codemod\n\nA codemod is much like Babel, but instead of converting your ES2015 code to ES5 compatible syntax, it does a limited set of transformations on function names, arguments, common patterns and more. One way to think of jscodeshift (the underlying tool) is \"jQuery for code\". These codemods aren't bulletproof, so be sure to test your code after you run them. But they can help with upgrading a large codebase to remove deprecation warnings you're now triggering.\n### [Changes](`https://github.com/rackt/react-router/compare/v2.0.0-rc6...v2.0.0`) since rc6\n- Add back basename support in `match` ([`#3054`](`https://github.com/rackt/react-router/pull/3054`))\n#### Version 2.0.0\n\nThis should be the final release candidate before 2.0.0 final. Please test this version!\n### Changes (`https://github.com/rackt/react-router/compare/v2.0.0-rc5...v2.0.0-rc6`)\n- **Breaking:** Removed default top-level `<Router>` export ([`#2906`](`https://github.com/rackt/react-router/pull/2906`))\n- Use history.createLocation where possible ([`#2910`](`https://github.com/rackt/react-router/pull/2910`))\n- Fix initial routing state after `match` ([`#2965`](`https://github.com/rackt/react-router/pull/2965`))\n- Reduce stack size from matching routes ([`#2923`](`https://github.com/rackt/react-router/pull/2923`))\n#### Version 2.0.0\n### Changes (`https://github.com/rackt/react-router/compare/v2.0.0-rc4...v2.0.0-rc5`)\n- Export `createMemoryHistory` `#2792` (`https://github.com/rackt/react-router/pull/2792`)\n- Fix warnings caused by React Dev Tools `#2803` (`https://github.com/rackt/react-router/pull/2803`)\n- Add passing custom histories to `match` `#2813` (`https://github.com/rackt/react-router/pull/2813`)\n- Fix basename regression `#2822` (`https://github.com/rackt/react-router/pull/2822`)\n- Add back deprecated RoutingContext export `#2851` (`https://github.com/rackt/react-router/pull/2851`)\n- Improve support for server rendering async routes `#2883` (`https://github.com/rackt/react-router/pull/2883`)\n#### Version 2.0.0\n- Also do not create a `hashHistory` on the server.\n#### Version 2.0.0\n\nrc2 hit an NPM packaging bug. This is a repackaging with one fix included:\n### Changes\n- Rebuilt with `history` correctly included.\n- Don’t create `browserHistory` on the server\n#### Version 2.0.0\n\nRead the fancy upgrade guide (`https://github.com/rackt/react-router/blob/master/upgrade-guides/v2.0.0.md`).\n### Changes\n\nLots of stuff! (`https://github.com/rackt/react-router/compare/v1.0.3...v2.0.0-rc2`) Here's the summary.\n- Added `render` prop to `Router`\n- Added singleton `browserHistory` and `hashHistory`\n- Added `createMemoryHistory`\n- Deprecated all mixins\n- Replaced `context.history` with `context.router`\n- Deprecated Route Component `props.history`\n- Deprecated `context.location`\n#### Version 2.0.0\n\nDon't worry about it. See v2.0.0-rc2 instead! (`https://github.com/rackt/react-router/releases/tag/v2.0.0-rc2`)\n#### Version 1.0.3\n\nYou may now upgrade your history version to the latest release. NPM will no longer yell at you about versioning and any previous deprecation warnings have been cleared in the 1.17.0 version. Sorry about the confusion!\n\n``` sh\nnpm install --save history@1.17.0\n```\n### Changes\n- Switched back to a caret range for history, now that the warnings have been removed\n#### Version 1.0.2\n### :warning: IMPORTANT :warning:\n\nPlease ensure your project is running `history` v1.13.1 to avoid any deprecation warnings or unmet peerDependencies errors.\n\n``` sh\nnpm install --save history@1.13.1\n```\n### Changes\n- Pinned peer dependency on History to `1.13.x` to avoid console warnings.\n#### Version 1.0.1\n- Support IE8 ([`#2540`](`https://github.com/rackt/react-router/pull/2540`))\n- Add ES2015 module build ([`#2530`](`https://github.com/rackt/react-router/pull/2530`))\n#### Version 1.0.0\n- [ec3f3eb](../../commit/ec3f3eb) [wip][added] Support custom RoutingContext on Router\n- [4b8e994](../../commit/4b8e994) [fixed] Index routes with extraneous slashes\n- [c68f9f1](../../commit/c68f9f1) [removed] Remove deprecated handler prop on Route\n- [9e449f5](../../commit/9e449f5) [fixed] Match routes piece-by-piece\n- [fbc109c](../../commit/fbc109c) [fixed] Use %20 instead of + in URL pathnames\n- [8dd8ceb](../../commit/8dd8ceb) [fixed] Mark dynamic index routes as active\n- [fae04bc](../../commit/fae04bc) [added] Greedy splat (**)\n- [24ad58c](../../commit/24ad58c) [changed] Query changes aren't route changes\n- [19c7086](../../commit/19c7086) [added] Handle undefined query values in isActive\n- [3545ab2](../../commit/3545ab2) [removed] params from RoutingContext child context\n- [9d346fc](../../commit/9d346fc) [added] params on RoutingContext child context\n- [52cca98](../../commit/52cca98) [changed] Preventing transition from onClick\n- [4e48b6b](../../commit/4e48b6b) [changed] Pass named children as props\n- [3cc7d6d](../../commit/3cc7d6d) [added] Peer dependency on history package\n- [751ca25](../../commit/751ca25) [fixed] Don't match empty routes for isActive\n- [8459755](../../commit/8459755) [fixed] Include the hash prop on Links\n- [ac7dd4a](../../commit/ac7dd4a) [fixed] Postinstall script on Windows\n- [d905382](../../commit/d905382) [added] Test for IndexLink to deeply nested IndexRoute\n- [6f8ceac](../../commit/6f8ceac) [fixed] Transitions example\n#### Version 1.0.0\n- [e42a4ad](../../commit/e42a4ad) [changed] Stop using npm prepublish script\n- [3be6a2d](../../commit/3be6a2d) [fixed] Workaround for nasty npm bug\n#### Version 1.0.0\n- [bdab3d8](../../commit/bdab3d8) [fixed] Compare query by string value\n- [c43fb61](../../commit/c43fb61) [added] <Link hash> prop\n- [24e7b4f](../../commit/24e7b4f) [fixed] isActive on nested IndexLink\n- [160c5ba](../../commit/160c5ba) [fixed] Removed <Link> warning about no history in context\n- [ca9e3b7](../../commit/ca9e3b7) [added] IndexRedirect\n- [428da54](../../commit/428da54) [added] Support <Redirect to=\"relative/path\">\n- [ebb8d20](../../commit/ebb8d20) [fixed] Remove direct calls to createLocation.\n- [fc8a7a4](../../commit/fc8a7a4) [changed] Run examples using HTML5 history\n- [37d9bac](../../commit/37d9bac) [fixed] isActive on <Link onlyActiveOnIndex>\n- [be37196](../../commit/be37196) [fixed] Actually update state when there are transition hooks\n- [b8f1abe](../../commit/b8f1abe) [changed] Removed (un)registerRouteHook\n- [69a9240](../../commit/69a9240) [fixed] Added missing IndexLink to exports\n#### Version 1.0.0\n- [5fbe933](../../commit/5fbe933) [changed] Do not add \"active\" class by default\n- [85c699c](../../commit/85c699c) [changed] State -> IsActive\n#### Version 1.0.0\n- [94509e7](../../commit/94509e7) [added] IndexLink\n- [adc0a2f](../../commit/adc0a2f) [added] IndexRoute\n- [b86509a](../../commit/b86509a) [added] useRoutes history enhancer [added] RoutingContext component [added] RouteContext mixin [added] Lifecycle mixin\n- [e72812d](../../commit/e72812d) [added] <Router initialState>\n- [4c6dc1b](../../commit/4c6dc1b) [fixed] Installing on Windows\n- [042cffc](../../commit/042cffc) [changed] Removed histories/added history dep\n- [af7eb55](../../commit/af7eb55) [added] History.onBeforeChange\n- [f4ed900](../../commit/f4ed900) [fixed] correctly updates the window scroll position\n- [587e54f](../../commit/587e54f) [added] static `history` singleton getter for `HashHistory` and `BrowserHistory`\n- [5bd62b5](../../commit/5bd62b5) [fixed] errors in examples\n- [4e2ca3c](../../commit/4e2ca3c) [fixed] URI escape path components with special chars\n- [0630488](../../commit/0630488) [fixed] Link module adds extra space\n- [26400c1](../../commit/26400c1) [fixed] Use encodeURI for splat params\n- [178efc3](../../commit/178efc3) [fixed] <Link href> when using HashHistory\n- [41bd525](../../commit/41bd525) [fixed] Properly escape splats\n- [4759961](../../commit/4759961) [fixed] URLUtils recognize values containing \\n\n- [2389c61](../../commit/2389c61) [changed] Export history classes\n- [824ed63](../../commit/824ed63) [fixed] <Redirect> handling\n- [2447ecb](../../commit/2447ecb) [added] formatPattern util method\n#### Version 1.0.0\n\n`https://github.com/rackt/react-router/compare/v1.0.0-beta2...v1.0.0-beta3`\n#### Version 1.0.0\n\n`https://github.com/rackt/react-router/compare/v1.0.0-beta1...v1.0.0-beta2`\n#### Version 1.0.0\n\n`https://github.com/rackt/react-router/compare/v1.0.0-alpha2...v1.0.0-beta1`\n#### Version 1.0.0\n\n`https://github.com/rackt/react-router/compare/0.13.x...v1.0.0-alpha2`\n#### Version 1.0.0\n\nThanks for your patience :) Big changes from v0.13.x to 1.0. While on the surface a lot of this just looks like shuffling around API, the entire codebase has been rewritten to handle some really great use cases, like loading routes and components on demand, session-based route matching, server rendering, integration with libs like redux and relay, and lots more.\n\nBut for now, here's how to translate the old API to the new one.\n### Importing\n\nThe new `Router` component is a property of the top-level module.\n\n``` js\n// v0.13.x\nvar Router = require('react-router');\nvar Route = Router.Route;\n\n// v1.0\nvar ReactRouter = require('react-router');\nvar Router = ReactRouter.Router;\nvar Route = ReactRouter.Route;\n\n// or using ES Modules\nimport { Router, Route } from 'react-router';\n```\n### Rendering\n\n``` js\n// v0.13.x\nRouter.run(routes, (Handler) => {\n  render(<Handler/>, el);\n})\n\n// v1.0\nrender(<Router>{routes}</Router>, el)\n\n// looks more like this:\nrender((\n  <Router>\n    <Route path=\"/\" component={App}/>\n  </Router>\n), el);\n\n// or if you'd rather\nrender(<Router routes={routes}/>, el)\n```\n### Locations\n\nLocations are now called histories (that emit locations). You import them from the [`history` package](https://github.com/rackt/history), not react router.\n\n``` js\n// v0.13.x\nRouter.run(routes, Router.BrowserHistory, (Handler) => {\n  render(<Handler/>, el);\n})\n\n// v1.0\nimport createBrowserHistory from 'history/lib/createBrowserHistory'\nlet history = createBrowserHistory()\nrender(<Router history={history}>{routes}</Router>, el)\n```\n\nIf you do not specify a history type (as in the example above) then you will notice some unusual behavior after updating to 1.0.0. With the default hash based routing a querystring entry not defined by yourself will start appearing in your URLs called `_k`. An example of how it looks is this: `?_k=umhx1s`\n\nThis is intended and part of createHashHistory](`https://github.com/rackt/react-router/blob/master/docs/guides/basics/Histories.md#createhashhistory`) (which is the default history approach used if one is not specified). You can read more about the feature [here (`https://github.com/rackt/react-router/blob/master/docs/guides/basics/Histories.md#what-is-that-_kckuvup-junk-in-the-url`) and how to opt out [here](https://rackt.github.io/history/stable/HashHistoryCaveats.html).\n### Route Config\n\nYou can still nest your routes as before, paths are inherited from parents just like before but prop names have changed.\n\n``` js\n// v0.13.x\n<Route name=\"about\" handler={About}/>\n\n// v1.0\n<Route path=\"about\" component={About}/>\n```\n\nNamed routes are gone (for now, see discussion (`https://github.com/rackt/react-router/issues/1840`))\n### NotFound route\n\nNot found really confused people, mistaking not finding resources from your API for not matching a route. We've removed it completely since it's simple with a `*` path.\n\n``` js\n// v0.13.x\n<NotFoundRoute handler={NoMatch}/>\n\n// v1.0\n<Route path=\"*\" component={NoMatch}/>\n```\n### Redirect route\n\n``` js\n// v0.13.x\n<Redirect from=\"some/where/:id\" to=\"somewhere/else/:id\" params={{id: 2}}/>\n\n// v1.0\n// Works the same as before, except no params, just put them in the path\n<Redirect from=\"/some/where/:id\" to=\"/somewhere/else/2\"/>\n```\n### Links\n#### path / params\n\n``` js\n// v0.13.x\n<Link to=\"user\" params={{userId: user.id}}>Mateusz</Link>\n\n// v1.0\n// because named routes are gone, link to full paths, you no longer need\n// to know the names of the parameters, and string templates are quite\n// nice. Note that `query` has not changed.\n<Link to={`/users/${user.id}`}>Mateusz</Link>\n```\n#### \"active\" class\n\nIn 0.13.x links added the \"active\" class by default which you could override with `activeClassName`, or provide `activeStyle`s. It's usually just a handful of navigation links that need this behavior.\n\nLinks no longer add the \"active\" class by default (its expensive and usually not necessary), you opt-in by providing one; if no `activeClassName` or `activeStyle`s are provided, the link will not check if it's active.\n\n``` js\n// v0.13.x\n<Link to=\"about\">About</Link>\n\n// v1.0\n<Link to=\"/about\" activeClassName=\"active\">About</Link>\n```\n#### Linking to Index routes\n\nBecause named routes are gone, a link to `/` with an index route at `/` will always be active. So we've introduced `IndexLink` that is only active when on exactly that path.\n\n``` js\n// v0.13.x\n// with this route config\n<Route path=\"/\" handler={App}>\n  <DefaultRoute name=\"home\" handler={Home}/>\n  <Route name=\"about\" handler={About}/>\n</Route>\n\n// will be active only when home is active, not when about is active\n<Link to=\"home\">Home</Link>\n\n// v1.0\n<Route path=\"/\" component={App}>\n  <IndexRoute component={Home}/>\n  <Route path=\"about\" component={About}/>\n</Route>\n\n// will be active only when home is active, not when about is active\n<IndexLink to=\"/\">Home</IndexLink>\n```\n\nThis gives you more granular control of what causes a link to be active or not when there is an index route involved.\n#### onClick handler\n\nFor consistency with React v0.14, returning `false` from a `Link`'s `onClick` handler no longer prevents the transition. To prevent the transition, call `e.preventDefault()` instead.\n### RouteHandler\n\n`RouteHandler` is gone. `Router` now automatically populates `this.props.children` of your components based on the active route.\n\n``` js\n// v0.13.x\n<RouteHandler/>\n<RouteHandler someExtraProp={something}/>\n\n// v1.0\n{this.props.children}\n{React.cloneElement(this.props.children, {someExtraProp: something})}\n```\n\n**Note:** React does not validate `propTypes` that are specified via `cloneElement` (see: facebook/react`#4494` (`https://github.com/facebook/react/issues/4494#issuecomment-125068868`)). It is recommended to make such `propTypes` optional.\n### Navigation Mixin\n\nIf you were using the `Navigation` mixin, use the `History` mixin instead.\n\n``` js\n// v0.13.x\nvar Assignment = React.createClass({\n  mixins: [ Navigation ],\n  navigateAfterSomethingHappened () {\n    this.transitionTo('/users', { userId: user.id }, query);\n    // this.replaceWith('/users', { userId: user.id }, query);\n  }\n})\n\n// v1.0\nvar Assignment = React.createClass({\n  mixins: [ History ],\n  navigateAfterSomethingHappened () {\n    // the router is now built on rackt/history, and it is a first class\n    // API in the router for navigating\n    this.history.pushState(null, `/users/${user.id}`, query);\n    // this.history.replaceState(null, `/users/${user.id}`, query);\n  }\n})\n```\n\nThe following `Navigation` methods are now also found on the history object, main difference again is there are no params or route names, just pathnames.\n\n| v0.13 | v1.0 |\n| --- | --- |\n| `go(n)` | `go(n)` |\n| `goBack()` | `goBack()` |\n| `goForward()` | `goForward()` |\n| `makeHref(routeName, params, query)` | `createHref(pathname, query)` |\n| `makePath(routeName, params, query)` | `createPath(pathname, query)` |\n### State mixin\n\n``` js\n// v0.13.x\nvar Assignment = React.createClass({\n  mixins: [ State ],\n  foo () {\n    this.getPath()\n    this.getParams()\n    // etc...\n  }\n})\n\n// v1.0\n// if you are a route component...\n<Route component={Assignment} />\n\nvar Assignment = React.createClass({\n  foo () {\n    this.props.location // contains path information\n    this.props.params // contains params\n    this.props.history.isActive\n  }\n})\n\n// if you're not a route component, you need to pass location down the\n// tree or get the location from context. We will probably provide a\n// higher order component that will do this for you but haven't yet.\n// see further down for more information on what can be passed down\n// via context\nvar Assignment = React.createClass({\n  contextTypes: {\n    location: React.PropTypes.object\n  },\n  foo () {\n    this.context.location\n  }\n})\n```\n\nHere's a table of where you used to get stuff with the `State` mixin, and where you get it now if you're a route component (`this.props`)\n\n| v0.13 (this) | v1.0 (this.props) |\n| --- | --- |\n| `getPath()` | `location.pathname+location.search` |\n| `getPathname()` | `location.pathname` |\n| `getParams()` | `params` |\n| `getQuery()` | `location.search` |\n| `getQueryParams()` | `location.query` |\n| `getRoutes()` | `routes` |\n| `isActive(to, params, query)` | `history.isActive(pathname, query, onlyActiveOnIndex)` |\n\nHere is another table of properties you used to get via the `State` and where you can get it now if you are **not** a route component (`this.context`).\n\n| v0.13 (this) | v1.0 (this.context) |\n| --- | --- |\n| `getPath()` | `location.pathname+location.search` |\n| `getPathname()` | `location.pathname` |\n| `getQuery()` | `location.search` |\n| `getQueryParams()` | `location.query` |\n| `isActive(to, params, query)` | `history.isActive(pathname, query, indexOnly)` |\n\nNote not all `State` functionality can be accessed via context in v1.0. For example, `params` is not available via context.\n### Scrolling\n\nWe're developing scroll behaviors separately in the [`scroll-behavior`](https://github.com/rackt/scroll-behavior) library until we have a stable, robust implementation that we're happy with. Currently, scroll behaviors are exposed there as history enhancers: \n\n``` js\nimport createHistory from 'history/lib/createBrowserHistory'\nimport useScroll from 'scroll-behavior/lib/useStandardScroll'\n\nconst history = useScroll(createHistory)()\n```\n### `willTransitionTo` and `willTransitionFrom`\n\nRoutes now define this behavior:\n\n``` js\n// v0.13.x\nvar Home = React.createClass({\n  statics: {\n    willTransitionTo (transition, params, query, callback) { }\n    willTransitionFrom (component, transition, params, query, callback) { }\n  }\n})\n\n// v1.0\n<Route\n  component={Home}\n  onEnter={(location, replaceWith) => {}}\n  onLeave={() => {}}\n/>\n```\n\nTo cancel a \"transition from\", please refer to the [Confirming Navigation](docs/guides/advanced/ConfirmingNavigation.md) guide.\n"},"comment":{"url":"https://api.github.com/repos/cybrairai/internsystem-frontend/issues/comments/259582201","html_url":"https://github.com/cybrairai/internsystem-frontend/pull/12#issuecomment-259582201","issue_url":"https://api.github.com/repos/cybrairai/internsystem-frontend/issues/12","id":259582201,"user":{"login":"doppins-bot","id":13711356,"avatar_url":"https://avatars.githubusercontent.com/u/13711356?v=3","gravatar_id":"","url":"https://api.github.com/users/doppins-bot","html_url":"https://github.com/doppins-bot","followers_url":"https://api.github.com/users/doppins-bot/followers","following_url":"https://api.github.com/users/doppins-bot/following{/other_user}","gists_url":"https://api.github.com/users/doppins-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/doppins-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doppins-bot/subscriptions","organizations_url":"https://api.github.com/users/doppins-bot/orgs","repos_url":"https://api.github.com/users/doppins-bot/repos","events_url":"https://api.github.com/users/doppins-bot/events{/privacy}","received_events_url":"https://api.github.com/users/doppins-bot/received_events","type":"User","site_admin":false},"created_at":"2016-11-10T02:01:57Z","updated_at":"2016-11-10T02:01:57Z","body":"An additional new version was just released of `react-router`, so we've added an\nextra commit upgrading your range to `^3.0.0`.\n\nHope that's alright!\n— [Doppins](https://doppins.com)\n"}}
{"actor":{"display_login":"doppins-bot"}}