{"action":"created","issue":{"url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/3986","repository_url":"https://api.github.com/repos/gatsbyjs/gatsby","labels_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/3986/labels{/name}","comments_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/3986/comments","events_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/3986/events","html_url":"https://github.com/gatsbyjs/gatsby/issues/3986","id":296326321,"node_id":"MDU6SXNzdWUyOTYzMjYzMjE=","number":3986,"title":"[www] Add 'Upgrading to v2' docs page","user":{"login":"m-allanson","id":381801,"node_id":"MDQ6VXNlcjM4MTgwMQ==","avatar_url":"https://avatars1.githubusercontent.com/u/381801?v=4","gravatar_id":"","url":"https://api.github.com/users/m-allanson","html_url":"https://github.com/m-allanson","followers_url":"https://api.github.com/users/m-allanson/followers","following_url":"https://api.github.com/users/m-allanson/following{/other_user}","gists_url":"https://api.github.com/users/m-allanson/gists{/gist_id}","starred_url":"https://api.github.com/users/m-allanson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/m-allanson/subscriptions","organizations_url":"https://api.github.com/users/m-allanson/orgs","repos_url":"https://api.github.com/users/m-allanson/repos","events_url":"https://api.github.com/users/m-allanson/events{/privacy}","received_events_url":"https://api.github.com/users/m-allanson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"m-allanson","id":381801,"node_id":"MDQ6VXNlcjM4MTgwMQ==","avatar_url":"https://avatars1.githubusercontent.com/u/381801?v=4","gravatar_id":"","url":"https://api.github.com/users/m-allanson","html_url":"https://github.com/m-allanson","followers_url":"https://api.github.com/users/m-allanson/followers","following_url":"https://api.github.com/users/m-allanson/following{/other_user}","gists_url":"https://api.github.com/users/m-allanson/gists{/gist_id}","starred_url":"https://api.github.com/users/m-allanson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/m-allanson/subscriptions","organizations_url":"https://api.github.com/users/m-allanson/orgs","repos_url":"https://api.github.com/users/m-allanson/repos","events_url":"https://api.github.com/users/m-allanson/events{/privacy}","received_events_url":"https://api.github.com/users/m-allanson/received_events","type":"User","site_admin":false},"assignees":[{"login":"m-allanson","id":381801,"node_id":"MDQ6VXNlcjM4MTgwMQ==","avatar_url":"https://avatars1.githubusercontent.com/u/381801?v=4","gravatar_id":"","url":"https://api.github.com/users/m-allanson","html_url":"https://github.com/m-allanson","followers_url":"https://api.github.com/users/m-allanson/followers","following_url":"https://api.github.com/users/m-allanson/following{/other_user}","gists_url":"https://api.github.com/users/m-allanson/gists{/gist_id}","starred_url":"https://api.github.com/users/m-allanson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/m-allanson/subscriptions","organizations_url":"https://api.github.com/users/m-allanson/orgs","repos_url":"https://api.github.com/users/m-allanson/repos","events_url":"https://api.github.com/users/m-allanson/events{/privacy}","received_events_url":"https://api.github.com/users/m-allanson/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2018-02-12T10:28:38Z","updated_at":"2018-06-01T14:45:21Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Create an _Upgrading to Gatsby v2_ guide.\r\n\r\n* [x] Manually install react and react-dom, along with any dependencies required by your plugins.\r\n* [x] Layouts have been removed. To achieve the same behavior as v1, you have to wrap your pages and page templates with your own Layout component. Since Layout is a non-page component, making query has to be done with StaticQuery.\r\n* [x] boundActionCreators => actions\r\n* [x] pathContext => pageContext\r\n* [x] Deprecated responsive image query names\r\n* [x] Remove postcss plugins (cssnext, cssimport) from default css loader config\r\n* [ ] Mixed commonjs/es6 modules fail\r\n* [ ] Source & transformer plugins now use UUIDs for ids. If you used glob or regex to query nodes by id then you'll need to query something else.\r\n* [ ] Remove explicit polyfill and use the new builtins: usage support in babel 7.\r\n* [ ] Changed modifyBabelrc to onCreateBabelConfig\r\n* [ ] Changed modifyWebpackConfig to onCreateWebpackConfig\r\n* [ ] Inlining CSS changed — remove it from any custom html.js as done automatically by core now.\r\n* [ ] Add instructions on converting layouts for sites with many pages ([see discussion](https://github.com/gatsbyjs/gatsby/pull/5575#pullrequestreview-125184323))"},"comment":{"url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/comments/393902995","html_url":"https://github.com/gatsbyjs/gatsby/issues/3986#issuecomment-393902995","issue_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/3986","id":393902995,"node_id":"MDEyOklzc3VlQ29tbWVudDM5MzkwMjk5NQ==","user":{"login":"ryanditjia","id":16177372,"node_id":"MDQ6VXNlcjE2MTc3Mzcy","avatar_url":"https://avatars3.githubusercontent.com/u/16177372?v=4","gravatar_id":"","url":"https://api.github.com/users/ryanditjia","html_url":"https://github.com/ryanditjia","followers_url":"https://api.github.com/users/ryanditjia/followers","following_url":"https://api.github.com/users/ryanditjia/following{/other_user}","gists_url":"https://api.github.com/users/ryanditjia/gists{/gist_id}","starred_url":"https://api.github.com/users/ryanditjia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryanditjia/subscriptions","organizations_url":"https://api.github.com/users/ryanditjia/orgs","repos_url":"https://api.github.com/users/ryanditjia/repos","events_url":"https://api.github.com/users/ryanditjia/events{/privacy}","received_events_url":"https://api.github.com/users/ryanditjia/received_events","type":"User","site_admin":false},"created_at":"2018-06-01T14:45:21Z","updated_at":"2018-06-01T14:45:21Z","author_association":"CONTRIBUTOR","body":"Hi guys, is there currently a `RouterContext` sort of thing, that exposes `history`, `location`, and `match` props?\r\n\r\nWhile upgrading Gatsby’s www to v2, as well as a client site, I found having to pass `history` or `location` to Layout to be somewhat a pain, a sentiment shared by @jquense [here](https://github.com/gatsbyjs/gatsby/pull/5575#pullrequestreview-125184323).\r\n\r\nI’m not sure of the implications of such an API, but being able to do this:\r\n\r\n```jsx\r\nimport { RouterContext } from 'gatsby'\r\n\r\nconst Layout = ({ children }) => (\r\n  <RouterContext.Consumer>\r\n    {({ location, history, match }) => (\r\n      // ...rest of code\r\n    )}\r\n  </RouterContext.Consumer>\r\n)\r\n```\r\nwill help a lot of people migrate faster.\r\n\r\nAnother question I have: should sizes and resolutions’ change to fluid and fixed be documented as breaking instead of deprecation? From what I saw, `gatsby-source-contentful` will be moving to fluid and fixed exclusively."}}
{"actor":{"display_login":"ryanditjia"}}