1. 04 Dec, 2021 9 commits
  2. 31 Aug, 2021 3 commits
  3. 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
  4. 29 Aug, 2021 1 commit
  5. 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
  6. 27 Aug, 2021 2 commits
  7. 26 Aug, 2021 3 commits
  8. 25 Aug, 2021 12 commits
  9. 24 Aug, 2021 2 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