1. 03 Dec, 2018 7 commits
    • Tim Neutkens's avatar
      v7.0.2-canary.35 · 082db287
      Tim Neutkens authored
      082db287
    • Tim Neutkens's avatar
      Add license to the root directory · 2d31404d
      Tim Neutkens authored
      2d31404d
    • Jess Telford's avatar
      MDX example app (#5796) · 2f3b0c4d
      Jess Telford authored
      Example deployment on now v2: https://nextjswith-mdxexample-r8b1vzjbn.now.sh
      2f3b0c4d
    • Tim Neutkens's avatar
    • Matthew Lilley's avatar
      Fix for locale.split is not a function. (#5794) · cefbb842
      Matthew Lilley authored
      * Fix for locale.split is not a function.
      
      Following from https://github.com/zeit/next.js/pull/5488
      
      - Renamed languages to supportedLanguages
      - Firstly, accept languages based on supportedLanguages
      - And finally, accept a single language, if it returns false, the default of 'en' is used.
      
      I looked at the navigator library, which is used by 'accept', this should be a more solid solution, since we can now know that `const locale` is always a string.
      
      // Before (Sometimes returns an array as `const local`)
      const locale = accept.language(languages) || 'en' 
      
      // After (Always returns a string)
      const locale = accept.language(accept.languages(supportedLanguages)) || 'en';
      
      * Update server.js
      
      Update variable name.
      cefbb842
    • Tim Neutkens's avatar
      Dedupe only items with unique key (#5800) · 9890e069
      Tim Neutkens authored
      Fixes #3705
      Fixes #4656
      
      - No longer automatically dedupe certain tags. Only the ones we know are *never* going to be duplicate like charSet, title etc.
      - Fix `key=""` behavior, making sure that if a unique key is provided tags are deduped based on that.
      
      For example:
      
      ```jsx
      <meta property='fb:pages' content='one'>
      <meta property='fb:pages' content='two'>
      ```
      
      Would currently cause
      
      ```jsx
      <meta property='fb:pages' content='two'>
      ```
      
      ### After this change:
      
      ```jsx
      <meta property='fb:pages' content='one'>
      <meta property='fb:pages' content='two'>
      ```
      
      Then if you use next/head multiple times / want to be able to override:
      
      ```jsx
      <meta property='fb:pages' content='one' key="not-unique-key">
      <meta property='fb:pages' content='two' key="not-unique-key">
      ```
      
      Would cause:
      
      ```jsx
      <meta property='fb:pages' content='two'>
      ```
      
      As `key` gets deduped correctly after this PR, similar to how React itself works.
      9890e069
    • Tim Neutkens's avatar
      58f5dd29
  2. 02 Dec, 2018 1 commit
  3. 01 Dec, 2018 1 commit
  4. 30 Nov, 2018 4 commits
  5. 29 Nov, 2018 5 commits
  6. 28 Nov, 2018 7 commits
  7. 27 Nov, 2018 4 commits
  8. 26 Nov, 2018 1 commit
  9. 25 Nov, 2018 5 commits
  10. 24 Nov, 2018 2 commits
  11. 23 Nov, 2018 1 commit
  12. 22 Nov, 2018 2 commits