1. 29 3月, 2021 2 次提交
  2. 28 3月, 2021 2 次提交
    • S
      Add links to dependencies in with-three-js example README (#23470) · 5fde82a5
      Scott MacDonnell 提交于
      
      
      ## Bug
      
      - [ ] Related issues linked using `fixes #number`
      - [ ] Integration tests added
      
      ## 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.
      
      ## Documentation / Examples
      
      - [x] Make sure the linting passes
      5fde82a5
    • J
      doc: fix ActiveLink detection condition (#23472) · 737c25ed
      Jiachi Liu 提交于
      
      
      ## Documentation / Examples
      
      - [x] Make sure the linting passes
      
      
      `router.pathname` can be dynamic routes like `/posts/[slug]`, use `router.asPath` instead to detect anchor is active
      737c25ed
  3. 27 3月, 2021 4 次提交
  4. 26 3月, 2021 2 次提交
    • J
      Add handling fo beforeFiles, afterFiles, and fallback rewrites (#23407) · d130f63c
      JJ Kasper 提交于
      This adds support for returning an object from `rewrites` in `next.config.js` with `beforeFiles`, `afterFiles`, and `fallback` to allow specifying rewrites at different stages of routing. The existing support for returning an array for rewrites is still supported and behaves the same way. The documentation has been updated to include information on these new stages that can be rewritten and removes the outdated note of rewrites not being able to override pages. 
      
      
      
      ## Bug
      
      - [ ] Related issues linked using `fixes #number`
      - [ ] Integration tests added
      
      ## 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`
      - [x] Integration tests added
      - [x] Documentation added
      - [ ] Telemetry added. In case of a feature if it's used or not.
      
      ## Documentation / Examples
      
      - [ ] Make sure the linting passes
      d130f63c
    • S
      Update next.config.js rewrites · dee70f02
      samsisle 提交于
      dee70f02
  5. 25 3月, 2021 6 次提交
    • P
      with-stitches Fix Stitches config (#23394) · 1afcf67c
      Pedro Duarte 提交于
      This PR fixes the Stitches config. 
      
      Thanks!
      
      ## Documentation / Examples
      
      - [x] Make sure the linting passes
      1afcf67c
    • J
      v10.0.10-canary.11 · 9f5b61d0
      JJ Kasper 提交于
      9f5b61d0
    • J
      Run server client/server builds serially (#23371) · a6c0d76e
      JJ Kasper 提交于
      
      
      Previously we special cased serverless builds and ran the client/server builds serially to allow the server build to load manifests produced in the client. To help with memory usage and for consistency this updates server mode to build in the same way.  
      
      ## Bug
      
      - [ ] Related issues linked using `fixes #number`
      - [ ] Integration tests added
      
      ## 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.
      
      ## Documentation / Examples
      
      - [ ] Make sure the linting passes
      a6c0d76e
    • S
      Make sure the image optimization endpoint only response with images (#23366) · 98211405
      Shu Ding 提交于
      If the upstream MIME type isn't prefixed with `image/`, the endpoint should directly response with a 400 error.
      
      ## Bug
      
      - [x] Fixes #23312
      - [x] Integration tests added
      
      ## 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.
      
      ## Documentation / Examples
      
      - [ ] Make sure the linting passes
      98211405
    • J
      v10.0.10-canary.10 · 1dae2288
      JJ Kasper 提交于
      1dae2288
    • J
      Add has route field (#22341) · 75c721c5
      JJ Kasper 提交于
      This adds support for a `has` field to `rewrites`, `redirects`, and `headers` to allow matching against `header`, `cookie`, and `query` values. Documentation and additional tests for the feature is also added in this PR. 
      
      Closes: https://github.com/vercel/next.js/issues/22345
      75c721c5
  6. 24 3月, 2021 12 次提交
    • P
      `with-stitches`: Use `latest` version (#23343) · 3141b6ff
      Pedro Duarte 提交于
      Hey 👋 
      
      I realise neither I or you want to keep reviewing and merging these "Update Stitches" PRs
      
      So I'm setting it to the `latest`.
      
      Thanks (and sorry)
      
      ## Documentation / Examples
      
      - [x] Make sure the linting passes
      3141b6ff
    • T
      upgrade webpack to 5.28.0 (#23350) · 1383bbff
      Tobias Koppers 提交于
      fixes some bugs and improves performance
      
      ## Bug
      
      - [ ] Related issues linked using `fixes #number`
      - [ ] Integration tests added
      
      ## 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.
      
      ## Documentation / Examples
      
      - [ ] Make sure the linting passes
      1383bbff
    • T
      v10.0.10-canary.9 · 34f98451
      Tim Neutkens 提交于
      34f98451
    • J
      feat: automatically enable webpack 5 (#22323) · 437c35f1
      Joe Haddad 提交于
      Co-authored-by: NTim Neutkens <timneutkens@me.com>
      Co-authored-by: NTim Neutkens <tim@timneutkens.nl>
      437c35f1
    • M
      Fix typo in eslint doc (#23338) · 5c7475a6
      matamatanot 提交于
      ## Bug
      
      - [ ] Related issues linked using `fixes #number`
      - [ ] Integration tests added
      
      ## 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.
      
      ## Documentation / Examples
      
      - [ ] Make sure the linting passes
      5c7475a6
    • P
      Update with stitches example (#23326) · 873cd835
      Pedro Duarte 提交于
      Hey 👋 
      
      Just a quick update to the latest version of Stitches. 
      
      Thanks! <3
      
      ## Documentation / Examples
      
      - [x] Make sure the linting passes
      873cd835
    • S
      Remove `visibility: inherit` from the image component (#23329) · 4c634565
      Shu Ding 提交于
      This is a follow-up PR of #19052, where `visibility: inherit` was mistakenly added back. It was removed in #23278.
      
      ## Bug
      
      - [ ] Related issues linked using `fixes #number`
      - [ ] Integration tests added
      
      ## 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.
      
      ## Documentation / Examples
      
      - [ ] Make sure the linting passes
      4c634565
    • J
      v10.0.10-canary.8 · a16f7a38
      JJ Kasper 提交于
      a16f7a38
    • H
      Add ESLint to Next.js (#22437) · e5ef60fe
      Houssein Djirdeh 提交于
      For #22228
      
      This PR:
      
      - Adds ESLint to toolchain
        - Included by default for builds (`next build`)
        - Can be enabled for development (`next dev`)
        - Custom formatter built for output
      - Adds appropriate tests
      - Adds two documentation pages
      e5ef60fe
    • T
      Add polyfills for node_modules that are covered in webpack 4 to webpack 5 (#23316) · c219c1d9
      Tim Neutkens 提交于
      Brings back the remaining Node.js module polyfills to not break existing apps upgrading from webpack 4 to webpack 5.
      
      Fixes #23169
      
      
      
      ## Bug
      
      - [x] Related issues linked using `fixes #number`
      - [x] Integration tests added
      
      ## 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.
      
      ## Documentation / Examples
      
      - [ ] Make sure the linting passes
      c219c1d9
    • L
      Update dependencies for blog starter. (#23317) · 361b56b2
      Lee Robinson 提交于
      Closes https://github.com/vercel/next.js/issues/23299 to fix issues with NPM 7.
      361b56b2
    • B
      Add fallback for <Image /> component when JavaScript is disabled in browser (#19052) · 48dd9954
      Bruno Crosier 提交于
      The current `<Image />` component does not fallback gracefully when JavaScript is disabled in the client / browser.
      
      You can test this with the [official Next/Image example](https://csb-4k0kr-p8ya8f304.vercel.app/), by disabling JavaScript in the browser's DevTools. Video demo: https://streamable.com/frkvw9
      
      This PR aims to fix this behaviour by using `<noscript></noscript>` tags to conditionally display a standard `<img>` element using the `props` passed to `<Image />` when JavaScript is disabled.
      
      For browser sessions where JavaScript is enabled, this will not cause an increase in network requests, so there should be no downside.
      
      One area where this PR is a bit "hacky" is that it uses a negative `margin-top` to counteract `sizerStyle.paddingTop`. From what I can tell, `sizerStyle.paddingTop` is generated on the server side, where we can not know ahead of time whether JavaScript is enabled in the browser - hence why I've opted for this solution. 
      
      Fixes #19223
      Fixes #21214
      48dd9954
  7. 23 3月, 2021 6 次提交
    • M
      update with-xstate example and add documentation for inspect package usage (#23287) · 9cc6ba93
      Mohamed SADAT 提交于
      Hello this PR is in order to update xstate to the lastest version and use the `createMachine` method instead of `Machine`.
      I also added the inspect mode in order to show how we could use into a next.js app.
      
      ## Documentation / Examples
      
      - [x] Make sure the linting passes
      9cc6ba93
    • T
      Update static-dir-deprecated.md · 7ecf2448
      Tim Neutkens 提交于
      7ecf2448
    • T
      Add manifest of error pages (#23310) · e52a224c
      Tim Neutkens 提交于
      
      
      ## Bug
      
      - [ ] Related issues linked using `fixes #number`
      - [ ] Integration tests added
      
      ## 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.
      
      ## Documentation / Examples
      
      - [x] Make sure the linting passes
      e52a224c
    • L
      [examples] Small updates to blog example. (#23258) · b7588fd9
      Lee Robinson 提交于
      b7588fd9
    • P
      Update with-stitches example (#23281) · 2ef00a3c
      Pedro Duarte 提交于
      ## Examples
      
      - [x] Make sure the linting passes
      
      This PR updates the `with-stitches` example to use the Beta `0.1.0` release. 
      2ef00a3c
    • S
      Remove `visibility: hidden` from the image component (#23278) · c8680a34
      Shu Ding 提交于
      This PR removes the `visibility` style property change from next/image. It was previously added in #18195 to fix a bug that when no `src` is set, and that bug is not valid anymore as all images will always have `src` (and a fallback too).
      
      It also fixes the problem that screen readers ignore elements with `visibility: hidden`.
      
      Fixes #23201.
      
      ## Bug
      
      - [x] Related issues #23201
      - [ ] Integration tests added
      
      ## 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.
      
      ## Documentation / Examples
      
      - [ ] Make sure the linting passes
      c8680a34
  8. 22 3月, 2021 6 次提交
    • J
    • T
      v10.0.10-canary.7 · fe801289
      Tim Neutkens 提交于
      fe801289
    • T
      upgrade webpack to 5.27.1 (#23224) · c9a2e5b8
      Tobias Koppers 提交于
      
      
      fixes #23125
      
      fixes https://github.com/tailwindlabs/tailwindcss-jit/issues/54
      
      ## Bug
      
      - [ ] Related issues linked using `fixes #number`
      - [ ] Integration tests added
      
      ## 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.
      
      ## Documentation / Examples
      
      - [ ] Make sure the linting passes
      c9a2e5b8
    • J
      feat: add exemple with redux toolkit in typescript (#23250) · 8e4123e9
      Julien Karst 提交于
      This pull request add typescript to the current redux-toolkit example on next.js. @markerikson suggested this nice idea to add a ts example: https://twitter.com/acemarke/status/1370877104527712259?s=20
      
      This example is with the previous redux-toolkit example which was more complex. An example with the current example is available here: https://github.com/vercel/next.js/pull/23249
      
      ## Bug
      
      - [ ] Related issues linked using `fixes #number`
      - [ ] Integration tests added
      
      ## 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.
      
      ## Documentation / Examples
      
      - [ ] Make sure the linting passes
      8e4123e9
    • M
      Include useEffect in SPA demo import, Fix punctuation (#23256) · 46fc6968
      Mito 提交于
      Under the Single-Page App (SPA) heading, there is a code snipped which has a missing import:
      import { useState } from 'react'
      to
      import { useState, useEffect } from 'react'
      
      Also added apostrophe to description:
      your old application entry point
      to
      your old application's entry point
      
      
      
      ## Bug
      
      - [ ] Related issues linked using `fixes #number`
      - [ ] Integration tests added
      
      ## 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.
      
      ## Documentation / Examples
      
      - [X] Make sure the linting passes
      46fc6968
    • L
      [examples] Add portfolio starter kit. (#23212) · 6a418b7d
      Lee Robinson 提交于
      6a418b7d