1. 31 Aug, 2021 3 commits
  2. 30 Aug, 2021 7 commits
    • Kara's avatar
      getServerSideProps should support props value as Promise (#28607) · 9be387c7
      Kara authored
      Previous to this change, getServerSideProps could only return plain objects
      for props, e.g.:
      
      ```javascript
      export async function getServerSideProps() {
        return {
          props: {
            text: 'some value',
          }
        }
      }
      ```
      
      With this commit, the props object can also be a Promise, e.g.
      
      ```javascript
      export async function getServerSideProps() {
        return {
          props: (async function () {
            return {
              text: 'promise value',
            }
          })(),
        }
      }
      ```
      
      For now, the framework simply waits for the results of the props Promise to resolve,
      but this small change sets the groundwork for later allowing props to be streamed (cc @devknoll).
      
      ## Feature
      
      - [x] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR. -- *This is part of @devknoll's ongoing work to support streaming.*
      - [ ] Related issues linked using `fixes #number`
      - [x] Integration tests added
      - [x] Documentation added
      - [ ] Telemetry added. In case of a feature if it's used or not. *not sure if this applies here*
      - [ ] Errors have helpful link attached, see `contributing.md`
      9be387c7
    • Jiachi Liu's avatar
      chore: upgrade styled-jsx to 4.0.1 (#28626) · 8c553e8d
      Jiachi Liu authored
      Fix warning of peer dep on yarn (berry version) install
      8c553e8d
    • Steven's avatar
      v11.1.1 · 804971fd
      Steven authored
      804971fd
    • jj@jjsweb.site's avatar
      v11.1.1-canary.19 · 194d70f0
      jj@jjsweb.site authored
      194d70f0
    • Knut Melvær's avatar
      Add apiVersion to config (#28610) · 36d922fb
      Knut Melvær authored
      The client now warns against missing `apiVersion` ([docs](https://www.sanity.io/docs/api-versioning)). This PR adds the config for using the latest API version. There shouldn't be breaking changes in this app.
      
      
      
      ## Bug
      
      - [ ] Related issues linked using `fixes #number`
      - [ ] Integration tests added
      - [ ] Errors have helpful link attached, see `contributing.md`
      
      ## Feature
      
      - [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR.
      - [ ] Related issues linked using `fixes #number`
      - [ ] Integration tests added
      - [ ] Documentation added
      - [ ] Telemetry added. In case of a feature if it's used or not.
      - [ ] Errors have helpful link attached, see `contributing.md`
      
      ## Documentation / Examples
      
      - [ ] Make sure the linting passes
      36d922fb
    • Steven's avatar
      v11.1.1-canary.18 · a60690f5
      Steven authored
      a60690f5
    • Steven's avatar
      Add CSP to Image Optimization API (#28620) · 7afc97c5
      Steven authored
      Add CSP header to Image Optimization API
      7afc97c5
  3. 29 Aug, 2021 1 commit
  4. 28 Aug, 2021 1 commit
    • Mike Hedman's avatar
      Small grammar fixes (#28590) · d2094357
      Mike Hedman authored
      "exclusive of" implies that it doesn't pertain to `export` https://www.merriam-webster.com/dictionary/exclusive%20of  "Exclusive to" implies that it's only relevant to `export`.  
      Also changed "can not" to "cannot".
      
      
      
      ## Bug
      
      - [ ] Related issues linked using `fixes #number`
      - [ ] Integration tests added
      - [ ] Errors have helpful link attached, see `contributing.md`
      
      ## Feature
      
      - [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR.
      - [ ] Related issues linked using `fixes #number`
      - [ ] Integration tests added
      - [ ] Documentation added
      - [ ] Telemetry added. In case of a feature if it's used or not.
      - [ ] Errors have helpful link attached, see `contributing.md`
      
      ## Documentation / Examples
      
      - [ ] Make sure the linting passes
      d2094357
  5. 27 Aug, 2021 2 commits
  6. 26 Aug, 2021 3 commits
  7. 25 Aug, 2021 12 commits
  8. 24 Aug, 2021 10 commits
    • Steven's avatar
      Update docs for `sharp` usage to mention Vercel (#28476) · cb6290ad
      Steven authored
      There was some confusion in [this tweet](https://twitter.com/mtliendo/status/1430269174459338759) so I revised the docs around `sharp` usage.
      cb6290ad
    • Anderson Leite's avatar
      Tests: Adds test to data-nimg data attribute based on layout prop. (#28444) · 4d5eaf0e
      Anderson Leite authored
      Adds tests to the Image component to verify that the correct data is being exposed.
      Based on #27899 and #28312
      
      ## Bug
      
      - [ ] Related issues linked using `fixes #number`
      - [x] Integration tests added
      - [ ] Errors have helpful link attached, see `contributing.md`
      
      ## Feature
      
      - [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR.
      - [ ] Related issues linked using `fixes #number`
      - [ ] Integration tests added
      - [ ] Documentation added
      - [ ] Telemetry added. In case of a feature if it's used or not.
      - [ ] Errors have helpful link attached, see `contributing.md`
      
      ## Documentation / Examples
      
      - [ ] Make sure the linting passes
      4d5eaf0e
    • Robbie Averill's avatar
      Minor docs edit: cors -> CORS (#28472) · 57965770
      Robbie Averill authored
      ## Documentation / Examples
      
      - [x] Make sure the linting passes
      57965770
    • Elliot Scribner's avatar
      Fix: changing import syntax slightly to ensure success with `create-next-app` (#28431) · f78ebd08
      Elliot Scribner authored
      
      
      Just a small change to recently merged PR; for some reason `import couchbase from 'couchbase'` is not working correctly when I use create-next-app to bootstrap with the `with-couchbase` example, despite initially working within my local next.js directory. The wildcard import fixes that issue. Thanks!
      
      ## Documentation / Examples
      
      - [x] Make sure the linting passes
      f78ebd08
    • Aravind Putrevu's avatar
      [examples] Add ElasticSearch example (#28043) · a143bc46
      Aravind Putrevu authored
      ## Bug
      
      - [ ] Related issues linked using `fixes #number`
      - [ ] Integration tests added
      - [ ] Errors have helpful link attached, see `contributing.md`
      
      ## Feature
      
      - [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR.
      - [ ] Related issues linked using `fixes #number`
      - [ ] Integration tests added
      - [ ] Documentation added
      - [ ] Telemetry added. In case of a feature if it's used or not.
      - [ ] Errors have helpful link attached, see `contributing.md`
      
      ## Documentation / Examples
      
      - [x] Make sure the linting passes
      a143bc46
    • Janicklas Ralph's avatar
      next/script fix duplicate scripts (#28428) · fd1c56e6
      Janicklas Ralph authored
      * Fix #27747
      
      * Fix lint error
      
      * Add data attribute to script component
      
      * Fix #28036
      
      * Fix tests
      
      * Fix tests
      Co-authored-by: 's avatarJJ Kasper <jj@jjsweb.site>
      fd1c56e6
    • jj@jjsweb.site's avatar
      v11.1.1-canary.14 · ee462442
      jj@jjsweb.site authored
      ee462442
    • Mateusz Burzyński's avatar
      Add missing `typescript` property to `NextConfig` (#28459) · c1a09471
      Mateusz Burzyński authored
      This is similar to https://github.com/vercel/next.js/pull/27126 , https://github.com/vercel/next.js/pull/27446 and https://github.com/vercel/next.js/pull/27974
      
      ## Bug
      
      - [ ] Related issues linked using `fixes #number`
      - [ ] Integration tests added
      - [ ] Errors have helpful link attached, see `contributing.md`
      
      ## Feature
      
      - [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR.
      - [ ] Related issues linked using `fixes #number`
      - [ ] Integration tests added
      - [ ] Documentation added
      - [ ] Telemetry added. In case of a feature if it's used or not.
      - [ ] Errors have helpful link attached, see `contributing.md`
      
      ## Documentation / Examples
      
      - [x] Make sure the linting passes
      c1a09471
    • JJ Kasper's avatar
      Move unit tests to one folder and migrate them to TypeScript (#28427) · 005b13f1
      JJ Kasper authored
      * Move unit tests to one folder
      
      * Migrate unit tests to TypeScript
      
      * add test types to lint
      
      * Ensure ts(x) tests are run with util
      
      * Add tsx extension to jest config
      
      * bump
      005b13f1
    • Elliot Scribner's avatar
      [examples] Added `with-couchbase` example (#27184) · 6072afc8
      Elliot Scribner authored
      This adds a simple `with-couchbase` example app complete with a check for successful connection (in `index.js`).
      
      **Note:** To check the connection, this application runs a simple KV GET operation with a key that does not exist and expects a response of `document not found`. Any other response indicates a failure to connect.
      
      Thank you!
      6072afc8
  9. 23 Aug, 2021 1 commit