Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: vercel/next.js
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v12.1.0
Choose a base ref
...
head repository: vercel/next.js
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v13.5.0
Choose a head ref

Commits on Feb 17, 2022

  1. Update docs for image optimization swr (#34483)

    - Related to #27208 
    - Related to #33735
    styfle authored Feb 17, 2022
    2
    Copy the full SHA
    c0abf32 View commit details
  2. Fix 404 links in React 18 docs (#34486)

    https://nextjs.org/docs/advanced-features/react-18/overview
    
    ## 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
    
    - [x] Make sure the linting passes by running `yarn lint`
    shuding authored Feb 17, 2022
    Copy the full SHA
    ae3e55d View commit details
  3. Copy the full SHA
    d4eea75 View commit details
  4. refactor: move HtmlContext (#34482)

    The shared utils file included an import from `react` (because it was using `createContext`) which seems to be unnecessary in the Middleware bundle.
    
    With this PR and steps #34425 laid out, the bundle size did decrease without breaking functionality.
    
    ![image](https://user-images.githubusercontent.com/18369201/154508389-0a813e3e-1e07-4c45-8b71-444cc54a7f9e.png)
    
    Fixes #34425
    
    ## 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`
    balazsorban44 authored Feb 17, 2022
    Copy the full SHA
    eddabd9 View commit details
  5. rsc: clean client buffer cache after flushed (#34475)

    ## Bug
    
    Fixes #34464
    
    - [x] Related issues linked using `fixes #number`
    - [x] Integration tests added
    - [x] Errors have helpful link attached, see `contributing.md`
    huozhi authored Feb 17, 2022
    Copy the full SHA
    1c167af View commit details
  6. Add info on rendering an error page when using getServerSideProps (#3…

    …4488)
    
    This PR adds information on rendering an error page (500 page specifically) when using `getServerSideProps`.
    
    ## Bug
    
    - [x] Related issues linked using https://github.com/vercel/documentation/issues/106
    - [ ] 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`
    
    
    Co-authored-by: JJ Kasper <22380829+ijjk@users.noreply.github.com>
    amandeepmittal and ijjk authored Feb 17, 2022
    Copy the full SHA
    787186a View commit details
  7. Ensure config's experimental field exists (#34500)

    Fixes #34499 
    
    Starting with `v12.1.0`, you can't use React 18 when you don't use the `experimental` field in the `next.config.js`
    
    ![image](https://user-images.githubusercontent.com/29319414/154569017-38f72690-6879-47d1-a0cd-09072af2967c.png)
    
    That's because [this recent change](1aee935) sets `reactRoot` on the user's config without checking if the key already exists:
    
    https://github.com/vercel/next.js/blob/787186a85a054ea870fc964583fe65e9f2286354/packages/next/server/config.ts#L679-L682
    
    
    This change initializes `experimental` on the `userConfig` if necessary.
    
    
    
    ## Bug
    
    - [x] Related issues linked using `fixes #number`
    - [ ] Integration tests added
    - [ ] Errors have helpful link attached, see `contributing.md`
    bennettdams authored Feb 17, 2022
    Copy the full SHA
    0b95da5 View commit details
  8. Only log experiments warning if user actually opted in to an experime…

    …nt(s) (#34413)
    
    Currently if you have a Next config like the following:
    
    ```js
    module.exports = {
      experimental: {},
    },
    ```
    
    You are presented with the warning for experimental features, even though you haven't actually enabled any experiments. This PR checks there's at least one key in the `experimental` object before logging the warning.
    sophiabits authored Feb 17, 2022
    Copy the full SHA
    d4bef88 View commit details
  9. Update details about Cache Control Headers (#34416)

    We need to update details about adding Serverless Functions' `Cache-Control` headers to `next.config.js` files. And inform developers that these headers cannot be set in `next.config.js` files.
    
    ## Bug
    
    - [x] [Slack Thread](https://vercel.slack.com/archives/C02F56A54LU/p1644993522741169)
    - [ ] 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
    - [x] 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
    
    - [x] Make sure the linting passes by running `yarn lint`
    
    
    Co-authored-by: Steven <229881+styfle@users.noreply.github.com>
    MaedahBatool and styfle authored Feb 17, 2022
    Copy the full SHA
    a52bd71 View commit details

Commits on Feb 18, 2022

  1. Add unstable_useFlushEffects hook (#34117)

    Implements #30997 with some minor tweaks to the design:
    
    * The hook is moved to Client Components (e.g. `pages/_app` instead of `pages/_document`). This was a silly oversight in the original design: the hook needs to be called during server prerendering.
    
    * `useFlushEffects` instead of `useFlushEffect` as there isn't a particularly safe way to implement the singular semantics as a Client Component hook given the current implementation of server rendering.
    
    ---
    
    Fixes #30997
    devknoll authored Feb 18, 2022
    Copy the full SHA
    944c734 View commit details
  2. fix: mock image path as next/image expects it (#34350)

    The default mock value caused `next/image` to throw an error.
    
    Fixes #33976
    
    ## 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`
    balazsorban44 authored Feb 18, 2022
    Copy the full SHA
    a74af1f View commit details
  3. fix process polyfill on middleware (#34426)

    Fixes the problem that global `process` variable has only the `env` field.
    Also fixed the issue that the `env` field is empty when the `process` module is used as the value of the variable (which happens when the module is contained in a dependency of application).
    
    ## Bug
    
    - [ ] Related issues linked using `fixes #number`
    - [x] Integration tests added
    - [ ] Errors have helpful link attached, see `contributing.md`
    nkzawa authored Feb 18, 2022
    Copy the full SHA
    7c103fa View commit details
  4. Ensure workers are not left open (#34503)

    This fixes #33615. If an App uses `getInitialProps`, the build function never enters [this conditional block](https://github.com/vercel/next.js/blob/a52bd712fe797b59cfd05ceaa4c33096a0c346ff/packages/next/build/index.ts#L1481-L1484) and the static worker is left open.
    kinetifex authored Feb 18, 2022
    Copy the full SHA
    ab40370 View commit details
  5. Update wrong code snippet (#34520)

    Following the [example](https://nextjs.org/docs/advanced-features/custom-document), avoiding the following error:
    >  Identifier 'Document' has already been declared
    
    
    
    ## 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`
    elrumordelaluz authored Feb 18, 2022
    Copy the full SHA
    4ad1c5a View commit details
  6. Leverage existing component checking warning for streaming (#34526)

    ## Bug
    
    Fixes: #31993
    
    * Remove the simple component checking in middleware ssr
    * Leverage existing components checking for Component / App / Document, if any of these component is not valid react type or is undefined nextjs will error in dev mode with redbox. Like above.
    
    <img width="826" alt="image" src="https://user-images.githubusercontent.com/4800338/154668945-bcee24ee-17aa-4afd-acda-9f8b249891ac.png">
    
    
    - [x] Related issues linked using `fixes #number`
    - [x] Integration tests added
    - [x] Errors have helpful link attached, see `contributing.md`
    huozhi authored Feb 18, 2022
    Copy the full SHA
    ce76d17 View commit details
  7. build(next-swc): linux glibc compatible issue (#34481)

    Fix `GLIBC` compatible issues:
    
    - Fixes #33854
    - All `CentOS 7` related issues in #30468
    
    Should also fix:
    
    - #33530
    
    Refactored jobs tested in https://github.com/Brooooooklyn/next.js/runs/5233199833?check_suite_focus=true
    
    ### `objdump` in `next@12.0.10`
    
    <details>
      <summary>Symbols</summary>
    node_modules/@next/swc-linux-x64-gnu/next-swc.linux-x64-gnu.node:     file format elf64-x86-64
    
    DYNAMIC SYMBOL TABLE:
    0000000000000000      D  *UND*	0000000000000000              napi_resolve_deferred
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.3.4 __xpg_strerror_r
    0000000000000000      D  *UND*	0000000000000000              napi_typeof
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 pthread_setspecific
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.3.2 pthread_cond_destroy
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.4   __stack_chk_fail
    0000000000000000      DF *UND*	0000000000000000  GCC_3.0     _Unwind_GetRegionStart
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 memset
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 fputs
    0000000000000000      DF *UND*	0000000000000000  GCC_3.3     _Unwind_FindEnclosingFunction
    0000000000000000      DF *UND*	0000000000000000  GCC_3.0     _Unwind_GetTextRelBase
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 setgroups
    0000000000000000      DO *UND*	0000000000000000  GLIBC_2.2.5 stdout
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 madvise
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.3   realpath
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 posix_spawn_file_actions_adddup2
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 pow
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 sigaltstack
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 pthread_self
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 trunc
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.3.4 __strncat_chk
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 pthread_attr_setstacksize
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 sigemptyset
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 pthread_detach
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 __fxstat64
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.3.2 pthread_cond_broadcast
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 strtol
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 __cxa_atexit
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 round
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 sigaddset
    0000000000000000      DF *UND*	0000000000000000  GCC_3.0     _Unwind_RaiseException
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.15  posix_spawnp
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 memcmp
    0000000000000000      D  *UND*	0000000000000000              napi_queue_async_work
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 pthread_rwlock_wrlock
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 floor
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.3.4 __vsnprintf_chk
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 pthread_key_create
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 close
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 pthread_mutexattr_destroy
    0000000000000000      D  *UND*	0000000000000000              napi_throw_error
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.3   __ctype_toupper_loc
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 poll
    0000000000000000      D  *UND*	0000000000000000              napi_reject_deferred
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 signal
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 getcwd
    0000000000000000  w   D  *UND*	0000000000000000              __gmon_start__
    0000000000000000      D  *UND*	0000000000000000              napi_get_value_string_utf8
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 posix_spawnattr_setsigmask
    0000000000000000      D  *UND*	0000000000000000              napi_create_promise
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 dup2
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 pthread_attr_getguardsize
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 __xstat64
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 pthread_attr_getstack
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 strerror
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 getenv
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 read
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 memrchr
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 pthread_rwlock_rdlock
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 fmod
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 fork
    0000000000000000      DF *UND*	0000000000000000  GCC_3.3     _Unwind_Backtrace
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 posix_spawn_file_actions_destroy
    0000000000000000      D  *UND*	0000000000000000              napi_get_value_bool
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 setuid
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.9   pipe2
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.3.4 __snprintf_chk
    0000000000000000      DF *UND*	0000000000000000  GCC_3.0     _Unwind_SetIP
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 dlsym
    0000000000000000      D  *UND*	0000000000000000              napi_create_error
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 pthread_mutex_destroy
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 access
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 ioctl
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 strncpy
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 localtime_r
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 memmove
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 syscall
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 readlink
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 fma
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 getuid
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 sin
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 pthread_mutex_init
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 strlen
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 posix_spawnattr_setflags
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 posix_spawn_file_actions_init
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 strstr
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 pthread_key_delete
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 pthread_getattr_np
    0000000000000000      D  *UND*	0000000000000000              napi_get_buffer_info
    0000000000000000      DO *UND*	0000000000000000  GLIBC_2.2.5 stderr
    0000000000000000      DF *UND*	0000000000000000  GCC_3.0     _Unwind_Resume
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 posix_spawnattr_destroy
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.3.2 pthread_cond_signal
    0000000000000000  w   DF *UND*	0000000000000000  GLIBC_2.18  __cxa_thread_atexit_impl
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 pthread_mutex_trylock
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 writev
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 clock_gettime
    0000000000000000      D  *UND*	0000000000000000              napi_delete_async_work
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 pthread_getspecific
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 pthread_condattr_destroy
    0000000000000000      DF *UND*	0000000000000000  GCC_3.0     _Unwind_DeleteException
    0000000000000000      D  *UND*	0000000000000000              napi_create_function
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 prctl
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 waitpid
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 lseek64
    0000000000000000      D  *UND*	0000000000000000              napi_set_named_property
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 cos
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 posix_spawnattr_init
    0000000000000000      DF *UND*	0000000000000000  GCC_3.0     _Unwind_GetIP
    0000000000000000  w   D  *UND*	0000000000000000              _ITM_registerTMCloneTable
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 execvp
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 ceil
    0000000000000000      DO *UND*	0000000000000000  GLIBC_2.2.5 environ
    0000000000000000      D  *UND*	0000000000000000              napi_get_cb_info
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 pthread_mutexattr_init
    0000000000000000      D  *UND*	0000000000000000              napi_coerce_to_object
    0000000000000000      D  *UND*	0000000000000000              napi_throw
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 mprotect
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.14  memcpy
    0000000000000000  w   D  *UND*	0000000000000000              _ITM_deregisterTMCloneTable
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 pthread_attr_init
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 fcntl
    0000000000000000      DF *UND*	0000000000000000  GCC_4.2.0   _Unwind_GetIPInfo
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 free
    0000000000000000  w   DF *UND*	0000000000000000  GLIBC_2.2.5 __cxa_finalize
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 pthread_mutex_unlock
    0000000000000000      DF *UND*	0000000000000000  GCC_3.0     _Unwind_GetDataRelBase
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 pthread_mutex_lock
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 dl_iterate_phdr
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.3.4 sched_getaffinity
    0000000000000000      DF *UND*	0000000000000000  GCC_3.0     _Unwind_SetGR
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.3.2 pthread_cond_init
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 memchr
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 open
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.3   __tls_get_addr
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 log10
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.3.2 pthread_cond_wait
    0000000000000000      D  *UND*	0000000000000000              napi_create_async_work
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 sysconf
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 munmap
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 log2
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.3.3 pthread_condattr_setclock
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 pthread_attr_destroy
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 bcmp
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 pthread_create
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 posix_spawnattr_setsigdefault
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 abort
    0000000000000000      D  *UND*	0000000000000000              napi_create_string_utf8
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 pthread_condattr_init
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 pthread_sigmask
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 pthread_mutexattr_settype
    0000000000000000      DO *UND*	0000000000000000  GLIBC_2.2.5 __environ
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 mmap
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 __errno_location
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 _exit
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 write
    0000000000000000      DF *UND*	0000000000000000  GCC_3.3     _Unwind_GetCFA
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 getrusage
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 pthread_rwlock_unlock
    0000000000000000      DF *UND*	0000000000000000  GCC_3.0     _Unwind_GetLanguageSpecificData
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 sched_yield
    0000000000000000      D  *UND*	0000000000000000              napi_create_object
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 setgid
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 chdir
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 open64
    000000000039bbd0 g    DF .text	000000000000032a  Base        napi_register_module_v1
    0000000001ddd750 g    DF .text	00000000000002e5  Base        rust_eh_personality
    </details>
    
    There is `0000000000000000  w   DF *UND*	0000000000000000  GLIBC_2.18  __cxa_thread_atexit_impl` introduced by rust-lang/rust#36826
    
    ### `objdump` in current branch
    
    <details>
      <summary>Symbols</summary>
      next-swc.linux-x64-gnu.node:     file format elf64-x86-64
    
    DYNAMIC SYMBOL TABLE:
    0000000000000000  w   D  *UND*	0000000000000000  Base        __gmon_start__
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 memcpy
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 trunc
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.3   __tls_get_addr
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 bcmp
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 memmove
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 memset
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 pthread_mutex_lock
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 pthread_mutex_trylock
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 memcmp
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 pthread_mutex_unlock
    0000000000000000      D  *UND*	0000000000000000  Base        napi_create_function
    0000000000000000      D  *UND*	0000000000000000  Base        napi_set_named_property
    0000000000000000      D  *UND*	0000000000000000  Base        napi_create_string_utf8
    0000000000000000      D  *UND*	0000000000000000  Base        napi_coerce_to_object
    0000000000000000      D  *UND*	0000000000000000  Base        napi_get_cb_info
    0000000000000000      D  *UND*	0000000000000000  Base        napi_create_error
    0000000000000000      D  *UND*	0000000000000000  Base        napi_throw
    0000000000000000      D  *UND*	0000000000000000  Base        napi_throw_error
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 fma
    0000000000000000      D  *UND*	0000000000000000  Base        napi_create_object
    0000000000000000      D  *UND*	0000000000000000  Base        napi_create_promise
    0000000000000000      D  *UND*	0000000000000000  Base        napi_create_async_work
    0000000000000000      D  *UND*	0000000000000000  Base        napi_queue_async_work
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 strlen
    0000000000000000      D  *UND*	0000000000000000  Base        napi_get_value_string_utf8
    0000000000000000      D  *UND*	0000000000000000  Base        napi_get_value_bool
    0000000000000000      D  *UND*	0000000000000000  Base        napi_typeof
    0000000000000000      D  *UND*	0000000000000000  Base        napi_get_buffer_info
    0000000000000000      D  *UND*	0000000000000000  Base        napi_reject_deferred
    0000000000000000      D  *UND*	0000000000000000  Base        napi_resolve_deferred
    0000000000000000      D  *UND*	0000000000000000  Base        napi_delete_async_work
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 close
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 pow
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 round
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 localtime_r
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 log10
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 cos
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 sin
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 fmod
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 ceil
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.3.2 pthread_cond_wait
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.3.4 sched_getaffinity
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 sysconf
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.3.4 __xpg_strerror_r
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 syscall
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 __errno_location
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 read
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 open64
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 poll
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 log2
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 munmap
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 mmap
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 dl_iterate_phdr
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 clock_gettime
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 getrusage
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 snprintf
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 access
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 vsnprintf
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 madvise
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 strerror
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 mprotect
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 pthread_setspecific
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 memchr
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.3   realpath
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 getenv
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 pthread_key_create
    0000000000000000      DO *UND*	0000000000000000  GLIBC_2.2.5 stderr
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 fputs
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 strncat
    0000000000000000      DO *UND*	0000000000000000  GLIBC_2.2.5 environ
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.3   __ctype_toupper_loc
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 strncpy
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 strstr
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 strtol
    0000000000000000      DO *UND*	0000000000000000  GLIBC_2.2.5 stdout
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 posix_spawnattr_destroy
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 posix_spawn_file_actions_destroy
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 pthread_mutexattr_destroy
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 pthread_rwlock_unlock
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 pthread_mutex_destroy
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 sched_yield
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 getcwd
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 pthread_rwlock_rdlock
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 pthread_rwlock_wrlock
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 getuid
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 write
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 fcntl
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 lseek64
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 writev
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 memrchr
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 ioctl
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 waitpid
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.3.2 pthread_cond_broadcast
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 pthread_condattr_init
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.3.3 pthread_condattr_setclock
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.3.2 pthread_cond_init
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 pthread_condattr_destroy
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.3.2 pthread_cond_signal
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 sigaltstack
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 abort
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 signal
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 pthread_self
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 pthread_getattr_np
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 pthread_attr_getstack
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 pthread_attr_destroy
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 malloc
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 free
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.3.2 pthread_cond_destroy
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 pthread_mutexattr_init
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 pthread_mutexattr_settype
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 pthread_mutex_init
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 pthread_getspecific
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 pthread_key_delete
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 dlsym
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 readlink
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 chdir
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.9   pipe2
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 pthread_attr_init
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 pthread_attr_setstacksize
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 pthread_create
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 prctl
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 pthread_detach
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 pthread_attr_getguardsize
    0000000000000000  w   D  *UND*	0000000000000000  Base        __cxa_thread_atexit_impl
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 posix_spawnattr_init
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 posix_spawn_file_actions_init
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 posix_spawn_file_actions_adddup2
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 sigemptyset
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 posix_spawnattr_setsigmask
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 sigaddset
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 posix_spawnattr_setsigdefault
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 posix_spawnattr_setflags
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 fork
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 posix_spawnp
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 _exit
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 dup2
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 setgroups
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 setgid
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 setuid
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 pthread_sigmask
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 execvp
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 fprintf
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 fflush
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 dladdr
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 fwrite
    0000000000000000      DF *UND*	0000000000000000  GLIBC_2.2.5 __cxa_atexit
    0000000002830dc0 g    DF .text	00000000000002e5  Base        rust_eh_personality
    0000000000e10380 g    DF .text	000000000000032a  Base        napi_register_module_v1
    </details>
    
    No more `GLIBC_2.18` symbols.
    
    Confirm it works on `centos:7` docker image.
    Brooooooklyn authored Feb 18, 2022
    Copy the full SHA
    924b71c View commit details
  8. chore: clarify GitHub action (bot) comments (#34546)

    For anyone landing on this PR, if you are new to contributing to open source, here is a helpful video with some good tips: [How to Contribute to Open Source (Next.js)
    ](https://www.youtube.com/watch?v=cuoNzXFLitc)
    
    We use two GitHub Actions (here bots) to help us maintain the project better:
    
    1. Stalebot
    
    When an issue is triaged, we look for a reproduction and clear steps to reproduce the reported issue. This helps us identify bugs easier, which will result in a quicker resolution of the bug.
    
    Skipping these steps could mean that we will not be able to investigate. In these cases, the issue will receive a `please add a complete reproduction` label, that indicates to the original poster (or those following along in the issue) that we would like them to post the missed steps. Unless that happens within 30 days, we are marking the issue as stale. A day after, the issue is automatically closed.
    
    If someone finds this now-closed issue later, through the Stalebot we encourage that a new issue will be opened and reference the old one if it holds important/relevant contextual information. The reason is that newer releases might have already fixed the issue that was reported in the first place. This is indicated in the bug report issue template forms.
    
    2. Lockbot
    
    This bot is similar to Stalebot, but it strictly operates on **already closed/resolved** issues, it **never** closes ongoing/open issue discussions.
    
    An issue can be closed for multiple reasons. It either has been closed by the original poster because they found the solution, or a PR merge included a fix in a recent Next.js release. It is important to look for the reason before commenting.
    
    If the issue was seemingly locked by accident, through the Lockbot comment we encourage that a new issue will be opened and reference the old one if it holds important/relevant contextual information. The reason is that newer releases might have already fixed the issue that was reported in the first place. This is indicated in the bug report issue template forms.
    
    
    Important: Issues can be closed/locked by accident, and we encourage everyone to feel welcome opening a new case and reference back to the old issue. Our team values everyone's opinion and we would like to make sure that we resolve any confusion in each individual case.
    balazsorban44 authored Feb 18, 2022
    Copy the full SHA
    aa35aa1 View commit details
  9. v12.1.1-canary.0

    ijjk committed Feb 18, 2022
    Copy the full SHA
    44bc4d9 View commit details
  10. Copy the full SHA
    9e77ef4 View commit details
  11. Convert custom-server-hapi Example to Typescript (#34507)

    In the contributing doc, it mentions "Examples should be TypeScript first, if possible" so I thought about converting some examples to be typescript along with updating a couple in my free time. Let me know if that would be an issue.
    
    ## 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
    
    - [X] Make sure the linting passes by running `yarn lint`
    mitchell-abbott authored Feb 18, 2022
    1
    Copy the full SHA
    670eb03 View commit details
  12. Copy the full SHA
    204a955 View commit details
  13. Allow reading request bodies in middlewares (#34294) (#34519)

    This PR brings back @Schniz awesome contribution to bring in bodies to middleware. It was reverted to leave it out of the stable release and to have some time to test it out in canary before officially releasing it. This PR is simply a `cherry-pick` of his original work.
    
    Closes: #30953 
    Closes: #34490
    
    Co-authored-by: Gal Schlezinger <2054772+Schniz@users.noreply.github.com>
    javivelasco and Schniz authored Feb 18, 2022
    Copy the full SHA
    8752464 View commit details
  14. Update swc crates (#34491)

    * Revert "Revert swc css bump temporarily (#34440)"
    
    This reverts commit 01524ef.
    
    * Update css crates
    
    Co-authored-by: Donny/강동윤 <kdy1997.dev@gmail.com>
    ijjk and kdy1 authored Feb 18, 2022
    Copy the full SHA
    271dff5 View commit details
  15. Add test for multiple cookies coming from middleware (#34465)

    This PR adds a test that ensures that we can set multiple cookies in a middleware response
    Schniz authored Feb 18, 2022
    Copy the full SHA
    e251a8b View commit details
  16. feat(react-dev-overlay): export getErrorByType and add preventDisplay…

    … prop (#34237)
    
    Report full parsed runtime errors over error bus, accepts preventDisplay prop to avoid showing error messages inline, while still reporting errors over the bus.
    
    Basically, we want to handle the parsed error/stack differently in Next Live, showing a modal that sits above the content and allows users to report the issue to us. We want to have that stack trace in the issue report, so I added a new event `unhandled-error-full`.
    
    The `preventDisplay` prop then just lets us output our own modal instead of showing the error inline, but still renders the `<RuntimeErrors />` component so it can fetch the stack and report it over the bus.
    
    This isn't *beautiful* code per-se, but I think doing it really right would require a pretty intense re-structure of this module. I think ideally we'd have export a function to fetch of the stack that we can just expose separately - that fetch currently happens in a sub-sub-component (DevOverlay > Errors > RuntimeError). But that re-write is pretty high effort, would still require much of what we do here anyway, and would just to get a slightly less awkward API in a not very high-use area. So leaving it as-is for now, happy to revisit though if we want.
    
    ## Feature
    
    - [x] Related issues linked using `fixes #number`
    
    Fixes an issue with Next Live #290.
    
    ## Documentation / Examples
    
    - [x] Make sure the linting passes by running `yarn lint`
    
    
    Co-authored-by: JJ Kasper <22380829+ijjk@users.noreply.github.com>
    natew and ijjk authored Feb 18, 2022
    Copy the full SHA
    97b964a View commit details
  17. Updated head, img -> Image, type { NextPage } as default next-app (#3…

    …4513)
    
    Everything updated in accordance to latest yarn create next-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 by running `yarn lint`
    
    
    Co-authored-by: JJ Kasper <22380829+ijjk@users.noreply.github.com>
    nrjdalal and ijjk authored Feb 18, 2022
    Copy the full SHA
    71aa019 View commit details
  18. Simplify .env.local gitignores (#34471)

    * ignore all .env files in default template
    
    * ignore all .env files in typescript template
    
    * ignore all local .env files in default template
    
    Co-authored-by: Balázs Orbán <info@balazsorban.com>
    
    * ignore all local .env files in typescript template
    
    Co-authored-by: Balázs Orbán <info@balazsorban.com>
    ephraimduncan and balazsorban44 authored Feb 18, 2022
    Copy the full SHA
    2c80444 View commit details
  19. Improve next/image warnings to avoid printing more than once (#34562)

    Currently, we print warnings during `next dev` for every render of `next/image`, which can quickly fill the console making it really unfriendly to developers trying to read the logs.
    
    This PR changes the behavior so that each unique warning prints at most once.
    
    - Related to #33007 
    - Related to #31340
    styfle authored Feb 18, 2022
    Copy the full SHA
    a4f5463 View commit details
  20. Support trailingSlash in middleware SSR (#34544)

    ## Bug
    
    Fixes #34527 
    
    - [x] Related issues linked using `fixes #number`
    - [x] Integration tests added
    - [x] Errors have helpful link attached, see `contributing.md`
    huozhi authored Feb 18, 2022
    Copy the full SHA
    6ed281d View commit details
  21. Update to latest version of jscodeshift (#34563)

    * Update to latest version of jscodeshift
    
    * update-compiled
    ijjk authored Feb 18, 2022
    Copy the full SHA
    46d7f45 View commit details
  22. v12.1.1-canary.1

    ijjk committed Feb 18, 2022
    1
    Copy the full SHA
    4613e3b View commit details

Commits on Feb 19, 2022

  1. Don't import internally from types in next-env.d.ts (#34394)

    * Move type to image component
    
    * Add types/global.d.ts to excludes too
    
    * Undo global exclude as it's using internally
    
    * Don't add root imports for module augmentations
    lfades authored Feb 19, 2022
    Copy the full SHA
    27affb4 View commit details
  2. Improve type imports in server/render and optimize the Edge SSR loader (

    #34552)
    
    * reorganize imports
    
    * code refactoring
    
    * remove unused variables
    
    * fix test
    
    Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
    shuding and kodiakhq[bot] authored Feb 19, 2022
    Copy the full SHA
    b701de6 View commit details
  3. remove commons chunk config (#34445)

    This removes the config for the `commons` chunk.
    
    I think the idea was that modules are that in all pages are put into a `commons` chunk, but that breaks when next/dynamic comes into play, which also creates chunks. So the `totalPages` condition is broken and could lead to too many modules placed into the commons chunk.
    
    Example: 2 pages, each has one next/dynamic. Both on demand chunks include module A. page 1 includes module B and next/dynamic on page 2 includes module B. A and B are placed into commons. commonjs chunk is loaded in page 1 and both next/dynamic. Page 1 would load module A even while it doesn't need it.
    
    ## 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`
    sokra authored Feb 19, 2022
    Copy the full SHA
    94ad033 View commit details
  4. fix: change showcase url (#34590)

    ## 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`
    AmirhBeigi authored Feb 19, 2022
    Copy the full SHA
    bf8b835 View commit details

Commits on Feb 21, 2022

  1. removing redundant/unnecessary lines as these are defaults (#34587)

    ## 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`
    theabgarg authored Feb 21, 2022
    Copy the full SHA
    5a16b1a View commit details
  2. Add cargo clippy and cargo fmt to CI (#34625)

    Run `cargo fmt` and `cargo clippy` and add them to CI.
    Brooooooklyn authored Feb 21, 2022
    Copy the full SHA
    0243e6e View commit details
  3. Fix rsc bootstrap buffer missing in the future renders (#34631)

    ## Bug
    
    If there's upcoming streaming data from server components, should safely skip the bootstrap process. Previously we deleted the buffer then it will cause the buffer is missing in the later re-renders. Now we mark it as empty array, so it can safely skip the boostrap phase
    
    x-ref: #34475
    
    - [x] Related issues linked using `fixes #number`
    - [x] Integration tests added
    - [x] Errors have helpful link attached, see `contributing.md`
    huozhi authored Feb 21, 2022
    Copy the full SHA
    f110a37 View commit details
  4. Copy the full SHA
    5c8e787 View commit details
  5. Copy the full SHA
    411a9b8 View commit details
  6. Copy the full SHA
    30b434b View commit details
  7. added styled-components & replay support in swc (#34647)

    styled-components & relay is supported in swc since nextjs 12.1
    mxgnus-de authored Feb 21, 2022
    Copy the full SHA
    7d98537 View commit details
  8. Copy the full SHA
    3f9142f View commit details
  9. Provide more detail to static folder placement (#34651)

    ## 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
    - [x] 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
    
    - [x] Make sure the linting passes by running `yarn lint`
    
    
    I felt the current documentation was somewhat vague on where exactly the directories would need to go, when serving the `public` and/or `static` directory with the standalone mode.
    MoltenCoffee authored Feb 21, 2022
    Copy the full SHA
    dc20805 View commit details
  10. Sentry example: add js types to SentryWebpackPluginOptions (#28726)

    * Add js types to SentryWebpackPluginOptions
    
    Enables code completion in Visual Studio Code (and perhaps other editors)
    
    * Use partial type for SentryWebpackPluginOptions
    
    This matches the expected type in https://github.com/getsentry/sentry-javascript/blob/e71454ef781563e36c727315d1a5b59acb9e2e0a/packages/nextjs/src/config/webpack.ts#L38
    
    * inline sentry config
    jonespen authored Feb 21, 2022
    Copy the full SHA
    31d8385 View commit details
  11. Add .git to .dockerignore in docker examples (#34628)

    * Add .git to .dockerignore in with-docker-multi-env
    
    * Add .git to .dockerignore in with-docker
    NoamNol authored Feb 21, 2022
    Copy the full SHA
    7ec5d29 View commit details

Commits on Feb 22, 2022

  1. Update testing.md (#34661)

    https://playwright.dev/docs/ci#running-headed
    Playwright runs headless by default.
    
    
    
    ## 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`
    khuezy authored Feb 22, 2022
    Copy the full SHA
    8f65c38 View commit details
  2. Copy the full SHA
    6178e7c View commit details
  3. Update CODEOWNERS to include renamed files (#34686)

    * Update CODEOWNERS to include renamed files
    
    * Add wildcard
    
    * Reduce number of lines
    styfle authored Feb 22, 2022
    Copy the full SHA
    ea532c7 View commit details
  4. Copy the full SHA
    5f1536b View commit details
Showing 14,360 changed files with 947,099 additions and 326,824 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
1 change: 1 addition & 0 deletions .alexignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
CODE_OF_CONDUCT.md
examples/
**/*/LICENSE.md
5 changes: 4 additions & 1 deletion .alexrc
Original file line number Diff line number Diff line change
@@ -16,6 +16,9 @@
"hook",
"hooks",
"host-hostess",
"invalid"
"invalid",
"remains",
"special",
"white"
]
}
1 change: 1 addition & 0 deletions .cargo/.vercel.approvers
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@vercel/web-tooling
39 changes: 39 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
[env]
CARGO_WORKSPACE_DIR = { value = "", relative = true }

[build]

rustdocflags = []

[target.x86_64-pc-windows-msvc]
linker = "rust-lld"

[target.aarch64-unknown-linux-gnu]
linker = "aarch64-linux-gnu-gcc"

[target.aarch64-unknown-linux-musl]
linker = "aarch64-linux-musl-gcc"
rustflags = [
"--cfg",
"tokio_unstable",
"-Zshare-generics=y",
"-Csymbol-mangling-version=v0",
"-Ctarget-feature=-crt-static",
"-Clink-arg=-lgcc",
]

[target.armv7-unknown-linux-gnueabihf]
linker = "arm-linux-gnueabihf-gcc"

[target.'cfg(all())']
rustflags = [
"--cfg",
"tokio_unstable",
"-Zshare-generics=y",
"-Csymbol-mangling-version=v0",
"-Aclippy::too_many_arguments",
# Clippy's needless mut lint is buggy: https://github.com/rust-lang/rust-clippy/issues/11299
"-Aclippy::needless_pass_by_ref_mut",
# Clippy's partial_eq lint is buggy: https://github.com/rust-lang/rust-clippy/issues/11178
"-Aclippy::incorrect_partial_ord_impl_on_ord_type",
]
1 change: 1 addition & 0 deletions .config/.vercel.approvers
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nextest.toml @vercel/web-tooling
9 changes: 9 additions & 0 deletions .config/nextest.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[[profile.default.overrides]]
filter = "package(next-dev-tests)"
# Default is 100ms. Extending this addresses false positives in the
# next-dev integration tests.
leak-timeout = "500ms"
retries = 2
slow-timeout = "60s"
threads-required = 4
failure-output = "immediate-final"
29 changes: 29 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# [Choice] Node.js version (use -bullseye variants on local arm64/Apple Silicon): 18, 16, 14, 18-bullseye, 16-bullseye, 14-bullseye, 18-buster, 16-buster, 14-buster
ARG VARIANT=16-bullseye
FROM mcr.microsoft.com/vscode/devcontainers/javascript-node:0-${VARIANT}

# [Optional] Uncomment this section to install additional OS packages.
# These are required to run playwright properly
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
&& apt-get -y install --no-install-recommends \
gconf-service libxext6 libxfixes3 libxi6 libxrandr2 \
libxrender1 libcairo2 libcups2 libdbus-1-3 libexpat1 \
libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 \
libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 \
libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 \
libxdamage1 libxss1 libxtst6 libappindicator1 libnss3 libasound2 \
libatk1.0-0 libc6 libdrm-dev libgbm-dev ca-certificates fonts-liberation lsb-release xdg-utils wget \
# Chromium for running Turbopack benchmarks
chromium \
# Used for plotters graph visualizations in turbopack benchmarks
libfontconfig1-dev

# [Optional] Uncomment if you want to install an additional version of node using nvm
# ARG EXTRA_NODE_VERSION=10
# RUN su node -c "source /usr/local/share/nvm/nvm.sh && nvm install ${EXTRA_NODE_VERSION}"

# [Optional] Uncomment if you want to install more global node modules
# RUN su node -c "npm install -g <your-package-list-here>"

# Enable pnpm
RUN corepack enable pnpm
55 changes: 55 additions & 0 deletions .devcontainer/base.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# [Choice] Node.js version (use -bullseye variants on local arm64/Apple Silicon): 18-bullseye, 16-bullseye, 14-bullseye, 18-buster, 16-buster, 14-buster
ARG VARIANT=16-bullseye
FROM node:${VARIANT}

# [Option] Install zsh
ARG INSTALL_ZSH="true"
# [Option] Upgrade OS packages to their latest versions
ARG UPGRADE_PACKAGES="true"

# Install needed packages, yarn, nvm and setup non-root user. Use a separate RUN statement to add your own dependencies.
ARG USERNAME=node
ARG USER_UID=1000
ARG USER_GID=$USER_UID
ARG NPM_GLOBAL=/usr/local/share/npm-global
ENV NVM_DIR=/usr/local/share/nvm
ENV NVM_SYMLINK_CURRENT=true \
PATH=${NPM_GLOBAL}/bin:${NVM_DIR}/current/bin:${PATH}
COPY library-scripts/*.sh library-scripts/*.env /tmp/library-scripts/
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
# Remove imagemagick due to https://security-tracker.debian.org/tracker/CVE-2019-10131
&& apt-get purge -y imagemagick imagemagick-6-common \
# Install common packages, non-root user, update yarn and install nvm
&& bash /tmp/library-scripts/common-debian.sh "${INSTALL_ZSH}" "${USERNAME}" "${USER_UID}" "${USER_GID}" "${UPGRADE_PACKAGES}" "true" "true" \
# Install yarn, nvm
&& rm -rf /opt/yarn-* /usr/local/bin/yarn /usr/local/bin/yarnpkg \
&& bash /tmp/library-scripts/node-debian.sh "${NVM_DIR}" "none" "${USERNAME}" \
# Configure global npm install location, use group to adapt to UID/GID changes
&& if ! cat /etc/group | grep -e "^npm:" > /dev/null 2>&1; then groupadd -r npm; fi \
&& usermod -a -G npm ${USERNAME} \
&& umask 0002 \
&& mkdir -p ${NPM_GLOBAL} \
&& touch /usr/local/etc/npmrc \
&& chown ${USERNAME}:npm ${NPM_GLOBAL} /usr/local/etc/npmrc \
&& chmod g+s ${NPM_GLOBAL} \
&& npm config -g set prefix ${NPM_GLOBAL} \
&& sudo -u ${USERNAME} npm config -g set prefix ${NPM_GLOBAL} \
# Install eslint
&& su ${USERNAME} -c "umask 0002 && npm install -g eslint" \
&& npm cache clean --force > /dev/null 2>&1 \
# Install python-is-python3 on bullseye to prevent node-gyp regressions
&& . /etc/os-release \
&& if [ "${VERSION_CODENAME}" = "bullseye" ]; then apt-get -y install --no-install-recommends python-is-python3; fi \
# Clean up
&& apt-get autoremove -y && apt-get clean -y && rm -rf /var/lib/apt/lists/* /root/.gnupg /tmp/library-scripts

# [Optional] Uncomment this section to install additional OS packages.
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
# && apt-get -y install --no-install-recommends <your-package-list-here>

# [Optional] Uncomment if you want to install an additional version of node using nvm
# ARG EXTRA_NODE_VERSION=10
# RUN su node -c "source /usr/local/share/nvm/nvm.sh && nvm install ${EXTRA_NODE_VERSION}"

# [Optional] Uncomment if you want to install more global node modules
# RUN su node -c "npm install -g <your-package-list-here>""
38 changes: 38 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
// https://github.com/microsoft/vscode-dev-containers/tree/v0.245.0/containers/javascript-node
{
"name": "Next.js Dev Container",
"build": {
"dockerfile": "Dockerfile",
// Update 'VARIANT' to pick a Node version: 18, 16, 14.
// Append -bullseye or -buster to pin to an OS version.
// Use -bullseye variants on local arm64/Apple Silicon.
"args": {
"VARIANT": "16-bullseye"
}
},
// Configure tool-specific properties.
"customizations": {
// Configure properties specific to VS Code.
"vscode": {
// Add the IDs of extensions you want installed when the container is created.
"extensions": ["dbaeumer.vscode-eslint"]
}
},
// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],
// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "yarn install",
// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
"remoteUser": "node",
"features": {
// For some reason "git" or "rust" doesn't work
"ghcr.io/devcontainers/features/git:1": "os-provided",
"ghcr.io/devcontainers/features/rust:1": "latest"
// Github latest can't be installed due to GPG issues: https://github.com/cli/cli/discussions/6222
// "github-cli": "latest",
},
"remoteEnv": {
"DISPLAY": ":0"
}
}
20 changes: 15 additions & 5 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
node_modules
**/.next/**
**/_next/**
**/.vscode/**
**/dist/**
e2e-tests/**
examples/with-eslint/**
@@ -11,23 +12,32 @@ examples/with-flow/**
examples/with-jest/**
examples/with-mobx-state-tree/**
examples/with-mobx/**
packages/next/bundles/webpack/packages/*.runtime.js
packages/next/bundles/webpack/packages/lazy-compilation-*.js
packages/next/compiled/**/*
examples/with-tigris/db/models/todoItems.ts
packages/next/src/bundles/webpack/packages/*.runtime.js
packages/next/src/bundles/webpack/packages/lazy-compilation-*.js
packages/next/src/compiled/**/*
packages/react-refresh-utils/**/*.js
packages/react-dev-overlay/lib/**
**/__tmp__/**
.github/actions/next-stats-action/.work
.github/actions/validate-docs-links/lib/index.js
.github/actions/needs-triage/index.js
.github/actions/*/index.mjs
packages/next-codemod/transforms/__testfixtures__/**/*
packages/next-codemod/transforms/__tests__/**/*
packages/next-codemod/**/*.js
packages/next-codemod/**/*.d.ts
packages/next-env/**/*.d.ts
packages/create-next-app/templates/**
test/integration/eslint/**
test/integration/script-loader/**/*
test/development/basic/legacy-decorators/**/*
test/production/emit-decorator-metadata/**/*.js
test/e2e/app-dir/rsc-errors/app/swc/use-client/page.js
test-timings.json
packages/next-swc/crates/**
bench/nested-deps/pages/**
bench/nested-deps/components/**
bench/nested-deps/**
bench/nested-deps-app-router/**
packages/next-bundle-analyzer/index.d.ts
examples/with-typescript-graphql/lib/gql/
test/development/basic/hmr/components/parse-error.js
Loading