1. 24 3月, 2021 2 次提交
  2. 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
  3. 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
  4. 21 3月, 2021 2 次提交
    • S
      Fix wrong source path resolved from the stack frame to not expose internal code (#23203) · 89ec21ed
      Shu Ding 提交于
      Currently Next.js exposes internal code in the error overlay if certain errors were created from the user code. Some examples were attached in #20776.
      
      We can clearly see that the path is wrong (`../next-server`), it should be `./node_modules/next/dist/next-server`:
      
      ![CleanShot 2021-03-19 at 01 33 04](https://user-images.githubusercontent.com/3676859/111670728-1ae7e400-8853-11eb-9213-3b359798900e.png)
      
      The root cause is the `__nextjs_original-stack-frame` middleware resolves the file path with the following code:
      
      ```js
      path.resolve(
        rootDirectory,
        getSourcePath(sourcePosition.source)
      )
      ```
      
      where `rootDirectory` is the **app root**, but `sourcePosition.source` comes from the module path, which is relative to the path of the `next` binary, not the app root. 
      
      That explains why we see `../next-server` from the error above, because it's relative to `./node_modules/next/bin/next`.
      
      Because of that, the resolved result will never have `node_modules` in its path and it won't be filtered by the error overlay in the UI. Here's a screenshot of the frame object in the UI:
      
      ![CleanShot 2021-03-18 at 23 01 29@2x](https://user-images.githubusercontent.com/3676859/111670062-65b52c00-8852-11eb-9293-3a6e5b7c4b9b.png)
      
      And the filter we use to determine if a frame is expanded or not only depends on `body.originalStackFrame`:
      
      ```js
      expanded: !Boolean(
        body.originalStackFrame?.file?.includes('node_modules') ?? true
      )
      ```
      
      So this PR also adds `source.file` check to ensure they will be ignored (not necessary because we fixed the path resolving).
      
      Fixes #20776.
      89ec21ed
    • T
      add separate progress output for typechecking (#23226) · 8c72806a
      Tobias Koppers 提交于
      
      
      ## Bug
      
      - [x] 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
      
      Fixes #23240
      8c72806a
  5. 20 3月, 2021 5 次提交
  6. 19 3月, 2021 8 次提交
  7. 18 3月, 2021 11 次提交