1. 14 Sep, 2021 5 commits
  2. 13 Sep, 2021 14 commits
  3. 12 Sep, 2021 1 commit
  4. 11 Sep, 2021 3 commits
    • Oiva Eskola's avatar
      Fix falsy values not being returned in post fields (#29011) · c78b249c
      Oiva Eskola authored
      I imported a bunch of old markdown posts to the blog-starter example but some of the post metadata was not returned by the API in the example code.
      
      For example, having `published: false` in post metadata was not returned in the item fields.
      
      The problem was in check:
      ```
      if (data[field]) {
        items[field] = data[field]
      }
      ```
      This rejects all falsy values in addition to fields that are not set. Checking only for `undefined` should fix this issue.
      
      I didn't find existing integration tests for the blog example nor an issue describing this problem.
      
      
      
      ## Bug
      
      - [ ] Related issues linked using `fixes #number`
      - [ ] Integration tests added
      - [ ] Errors have helpful link attached, see `contributing.md`
      c78b249c
    • Maia Teegarden's avatar
      Pass code as buffer to swc minify (#29009) · 0d0f34ba
      Maia Teegarden authored
      This should fix this: https://github.com/vercel/next.js/pull/28883/checks?check_run_id=3560578176#step:4:353
      
      
      
      ## 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
      0d0f34ba
    • Gerald Monaco's avatar
      Use `Writable` instead of `Observable` (#29007) · 1f99c300
      Gerald Monaco authored
      Use `Writable` instead of `Observable` and remove the `zen-observable` dependencies. I initially opted to use `Observable` for simplicity and fast iteration, but we should really just use `Writable` directly (or some other stream in the future).
      
      React's streaming SSR has some [specific requirements](https://github.com/reactwg/react-18/discussions/66#discussioncomment-944266) on the stream API. Rather than trying to also squeeze a `Readable` in here, which might be more standard for node apps, I've just followed React's lead. By limiting ourselves to just `Writable`, it ought to be easier to adopt a different stream type in the future if desired.
      
      The React `pipeToNodeWritable` API requires us to pass a stream immediately, but we don't actually have a `ServerResponse` to give it until `RenderResult.pipe(...)` is called later. For that reason, we pass React a `Writable` that we will simply forward to `res` later. This mechanism of deferring is `NodeWritablePiper`, which is just a function that can be called with `ServerResponse` (or another `Writable`, as we now do to render to string for static results) to have content written to it. `NodeWritablePiper` takes a `next` argument so that we can chain both synchronous and asynchronous pipers together.
      
      Also does some clean up and adds another streaming test for backpressure.
      1f99c300
  5. 10 Sep, 2021 4 commits
    • Kara's avatar
      Update gSSP type to support props as a promise (#28999) · c27e3a41
      Kara authored
      In a previous PR, `getServerSideProps` was altered to support returning
      `props` as a promise. This change updates the TS types to permit promises
      as well, so you can write type `GetServerSideProps<Props>` instead of
      `GetServerSideProps<Promise<Props>>`. e.g.:
      
      ```typescript
      type Props = {
        data: string
      }
      
      export const getServerSideProps: GetServerSideProps<Props> = async (
        context
      ) => {
        return {
          props: (async function () {
            return { data: 'some data' }
          })(),
        }
      }
      ```
      
      ## Feature
      
      - [x] 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`
      - [x] 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`
      c27e3a41
    • volcareso's avatar
      Fixed typo (#28989) · e09b7a58
      volcareso authored
      Added () outside *demo"
      
      
      
      ## 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
      e09b7a58
    • Tim Neutkens's avatar
      v11.1.3-canary.15 · 5fed96dd
      Tim Neutkens authored
      5fed96dd
    • JJ Kasper's avatar
      Ensure cache-control is correct for notFound: true with revalidate (#28973) · a00de0c2
      JJ Kasper authored
      This ensures we have the correct `cache-control` header when `revalidate` is used with `notFound: true` on `getStaticProps` or `getServerSideProps` pages. 
      
      ## Bug
      
      - [x] Related issues linked using `fixes #number`
      - [x] Integration tests added
      - [x] Errors have helpful link attached, see `contributing.md`
      
      Fixes: https://app.clubhouse.io/vercel/story/23445
      a00de0c2
  6. 09 Sep, 2021 8 commits
  7. 08 Sep, 2021 5 commits