1. 12 7月, 2018 1 次提交
  2. 11 7月, 2018 2 次提交
  3. 09 7月, 2018 1 次提交
  4. 07 7月, 2018 2 次提交
  5. 06 7月, 2018 2 次提交
    • B
      Prepend polyfills only once (#4643) (#4738) · d7d61d3d
      Brendan Houle 提交于
      d7d61d3d
    • N
      Apollo example: avoid double render in browser (#4734) · 728871b0
      NikitaVlaznev 提交于
      Apollo's getDataFromTree is supposed to be called during the server side rendering.
      Being called in browser it fires an unnecessary fake render process and blocks components from rendering with loading=true.
      
      Also there was a mistake in this code:
      
          // `getDataFromTree` renders the component first, the client is passed off as a property.
          // After that rendering is done using Next's normal rendering pipeline
          this.apolloClient = props.apolloClient || initApollo(props.apolloState.data)
      
      **Apollo** component is not rendered by getDataFromTree actually, it renders the **App** directly, thus props.apolloClient will always be undefined.
      
      This example was discussed here: https://github.com/zeit/next.js/issues/387.
      728871b0
  6. 05 7月, 2018 1 次提交
  7. 04 7月, 2018 1 次提交
  8. 03 7月, 2018 1 次提交
    • L
      Upgrade styled-jsx to 2.2.7 (#4714) · 71fe4984
      Luc 提交于
      Fixes #4713
      
      I ran into this issue, when re-installing :
      ```
      error upath@1.0.4: The engine "node" is incompatible with this module. Expected version ">=4 <=9".
      error Found incompatible module
      ```
      
      I used `yarn install --ignore-engines` as a workaround.
      71fe4984
  9. 01 7月, 2018 2 次提交
  10. 30 6月, 2018 2 次提交
  11. 29 6月, 2018 9 次提交
    • D
      Make the file beautiful (#4694) · 4744fbd0
      dengyunxie 提交于
      unified format😀😋
      4744fbd0
    • T
      6.1.1 · 0bcee3c2
      Tim Neutkens 提交于
      0bcee3c2
    • N
      Added note for AWSAppSyncClient (#4611) · dde20fc8
      Niklas Wagner 提交于
      I had some trouble to get server side rendering with the AWSAppSyncClient working. I finally found a solution in https://github.com/awslabs/aws-mobile-appsync-sdk-js/issues/82 but it might be worth to share it here as well. Instead of adding a big code block to each file I'll just refer to this Pull Request.
      
      ______
      
      In case you want to use the `AWSAppSyncClient` you just need to replace the `create()` function with this function:
      ```jsx
      import AWSAppSyncClient from 'aws-appsync';
      import { AUTH_TYPE } from 'aws-appsync/lib/link/auth-link';
      
      function create(initialState) {
        const client = new AWSAppSyncClient({
          url: AWS_AppSync.graphqlEndpoint,
          region: AWS_AppSync.region,
          auth: {
            type: AUTH_TYPE.API_KEY,
            apiKey: AWS_AppSync.apiKey,
      
            // Amazon Cognito Federated Identities using AWS Amplify
            //credentials: () => Auth.currentCredentials(),
      
            // Amazon Cognito user pools using AWS Amplify
            // type: AUTH_TYPE.AMAZON_COGNITO_USER_POOLS,
            // jwtToken: async () => (await Auth.currentSession()).getIdToken().getJwtToken(),
          },
          disableOffline: true,
        }, {
          cache: new InMemoryCache().restore(initialState || {}),
          ssrMode: true
        });
      
        return client;
      }
      ```
      
      dde20fc8
    • T
      6.1.0-canary.0 · 9d522686
      Tim Neutkens 提交于
      9d522686
    • T
      Merge branch 'master' into canary · da0c7a9c
      Tim Neutkens 提交于
      da0c7a9c
    • T
      Make sure hashchanges get triggered (#4676) · 57d8af85
      Tim Neutkens 提交于
      When clicking a next/link with a hash (#something) multiple times, it wouldn't keep the scrolling behavior browsers have. This makes sure we correctly trigger it.
      57d8af85
    • T
      Use nonce attribute for all scripts and preloads if provided (#4539) · 1c817d2b
      Thomas Hermann 提交于
      When implementing a strict CSP with nonces and `strict-dynamic`, every script and preload requires a nonce.
      
      https://csp.withgoogle.com/docs/strict-csp.html
      1c817d2b
    • T
      Fix Typescript HMR (#4689) · 17e410a1
      Tim Neutkens 提交于
      Fixes #4686
      
      Adds tests for @zeit/next-typescript so that we don't regress on this again.
      
      I've fixed an issue in the `next` CLI too which caused lingering processes when the process gets force killed, which is what we do in the test suite, so it kept running if there was no manual quit.
      17e410a1
    • L
      Replaced npm token (#4680) · 810705a0
      Leo Lamprecht 提交于
      810705a0
  12. 28 6月, 2018 3 次提交
    • A
      Fix code splitting on Windows (#4685) · 54ab3bc5
      Andrew Cherniavskii 提交于
      Closes #4684
      54ab3bc5
    • L
      Merge url query with exportPathMap (#4678) · e98a877e
      Luc 提交于
      This PR fixes #4615
      
      From the issue :
      > One thing we might consider is merging and showing a warning for keys not defined in exportPathMap
      
      The behaviour after this PR is the following :
      
      ```js
      // next.config.js
      module.exports = {
        exportPathMap: () => ({
          '/': { page: '/', query: { a: 'blue' } }
        })
      }
      ```
      
      | url called | `ctx.query` | warning ? |
      |-|-|-|
      | `/` | `{ a: 'blue' }` | |
      | `/?a=red` | `{ a: 'blue' }` | |
      | `/?b=green` | `{ a: 'blue', b: 'green' }` | `... parameter 'b' missing in exportPathMap` |
      
      Is that the expected behaviour ? If not, I'll update the PR to shape the expected behavior.
      e98a877e
    • T
      6.1.0 · 512f16e0
      Tim Neutkens 提交于
      512f16e0
  13. 27 6月, 2018 1 次提交
  14. 26 6月, 2018 2 次提交
  15. 25 6月, 2018 1 次提交
  16. 24 6月, 2018 3 次提交
    • O
      Fix incorrect wording (#4658) · 36c82fd1
      Olivier Tassinari 提交于
      I can't use a functional component with `_document.js`.
      [is-react](https://www.npmjs.com/package/is-react) can be used for another potential implementation of the warning logic, but maybe relying on `React.createElement()` internal checks is enough.
      36c82fd1
    • B
      with-socket.io Example updated with _app.js (#4644) · 6ed2da45
      Bünyamin Benny Genel 提交于
      with-socket.io example was using a single index file and was managing connection in there. This would lead handling connection (disconnecting and reconnecting) in each added page.
      
      I updated example with addition of `_app.js` and handled connection in there. This helped only subscribing to event in page and maintaining connection throughout example.
      6ed2da45
    • O
      Remove unneeded async (#4635) · f4af03b9
      Olivier Tassinari 提交于
      Unless I'm missing something, we don't need this async. The transpiled JavaScript is much smaller 🚀
      f4af03b9
  17. 23 6月, 2018 1 次提交
  18. 22 6月, 2018 3 次提交
  19. 20 6月, 2018 2 次提交