1. 29 May, 2022 17 commits
  2. 28 May, 2022 1 commit
    • JJ Kasper's avatar
      Refactor incremental cache to be extensible (#37258) · 88b1f7d5
      JJ Kasper authored
      This refactors the `incremental-cache` and moves the file-system cache handling to it's own cache handler allowing it to be replaced by a custom cache handler (experimental). 
      
      Closes: https://github.com/vercel/next.js/pull/22619
      
      ## 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 by running `yarn lint`
      - [ ] The examples guidelines are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing.md#adding-examples)
      88b1f7d5
  3. 27 May, 2022 12 commits
  4. 26 May, 2022 10 commits
    • JJ Kasper's avatar
      v12.1.7-canary.17 · d5706dc4
      JJ Kasper authored
      d5706dc4
    • Shu Ding's avatar
      Small code improvements (#37227) · 37b859f3
      Shu Ding authored
      Two small things noticed today. When calling `getDependencies` concurrently (which is happening right now) the cache doesn't work as it's after the `await`, so here we move it to cache the promise instead. Also `NUM_OF_MICROSEC_IN_SEC` isn't accurate and it should be `NANOSEC` actually.
      
      ## 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 by running `yarn lint`
      - [ ] The examples guidelines are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing.md#adding-examples)
      37b859f3
    • Lee Robinson's avatar
      Add note that `next build` output is compressed. (#37228) · 8aa15a21
      Lee Robinson authored
      When you run `next build`, the sizes you're seeing in the output are the compressed sizes with gzip.
      8aa15a21
    • OJ Kwon's avatar
      feat(next/swc): support experimental swc plugins (#36790) · fc61428d
      OJ Kwon authored
      * build(cargo): build swc with plugin support
      
      * feat(next): expose experimental swcplugins config
      
      * docs(compiler): add description
      
      * build(cargo): resolve feature conflicts
      
      * build(cargo): resolve build conflict
      
      * Update docs/advanced-features/compiler.md
      Co-authored-by: 's avatarMaia Teegarden <dev@padmaia.rocks>
      Co-authored-by: 's avatarMaia Teegarden <dev@padmaia.rocks>
      fc61428d
    • Stanley Hong's avatar
      Fix broken links in image.md (#37223) · e4a9f09d
      Stanley Hong authored
      **Broken** 
      (#local-images)
      
      **Updated**
      (/docs/basic-features/image-optimization.md#local-images)
      e4a9f09d
    • JJ Kasper's avatar
      a4f94e52
    • Jiachi Liu's avatar
      build: import useSyncExternalStore from react when using react 18 (#37212) · 4340b4e6
      Jiachi Liu authored
      
      
      Fixes #37197 
      
      tested with `examples/analyze-bundles/`, stripped off 300b of the the use-sync-external-store shim when applied the code change. 
      
      ## Bug
      
      - [x] Related issues linked using `fixes #number`
      - [ ] Integration tests added
      - [ ] Errors have helpful link attached, see `contributing.md`
      4340b4e6
    • Tom Marshall's avatar
      Update `cms-kontent` example to action PR feedback (#37206) · 6a5bdb5d
      Tom Marshall authored
      * Updates the `cms-kontent` example `Image` component to implement the
        suggested improvements from @styfle in #37188.
      * Simplifies the Kontent loader host checking.
      * Reduces the default image quality to from `100` to `75`.
      * Add `tslib` dependency to fix `Module not found: Can't resolve 'tslib'`
        error when importing `transformImageUrl` in the `Image` component.
        It looks like this might be a bug in v11 of the Kontent Delivery SDK,
        as it appears `tslib` needs to be included as dependency, rather than
        dev dependency. I missed this originally as the example runs fine in
        the Next repo as the root `yarn.lock` has `tslib`. It's only when the
        example is used via `yarn create next-app` that the issue occurs. We
        can likely remove this in future alongside an upgrade to the SDK
        package once this issue has been fixed and released there.
      
      https://github.com/vercel/next.js/pull/37188
      6a5bdb5d
    • Balázs Orbán's avatar
      Update contributing doc and PR template for examples (#37215) · 3c764fc1
      Balázs Orbán authored
      Follow-up on https://github.com/vercel/next.js/pull/37193
      
      ## 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 by running `yarn lint`
      - [ ] The examples guidelines are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing.md#adding-examples)
      3c764fc1
    • Tim Neutkens's avatar
      Refactor fetchFlight (#37213) · a8636528
      Tim Neutkens authored
      * Remove __props__
      
      * Remove refreshCache function
      a8636528