Skip to content
Permalink
canary

Commits on Sep 21, 2021

  1. Rename experimental tracing to outputFileTracing (#29267)

    Renaming this prop for clarity before we move this out of experimental
    styfle committed Sep 21, 2021
  2. v11.1.3-canary.29

    ijjk committed Sep 21, 2021
  3. Ensure actions/cache paths match for restoring (#29275)

    * Ensure actions/cache paths match for restoring
    
    * add docs check
    ijjk committed Sep 21, 2021
  4. v11.1.3-canary.28

    ijjk committed Sep 21, 2021
  5. v11.1.3-canary.27

    timneutkens committed Sep 21, 2021
  6. the way towards webpack 5 typings (#29105)

    Co-authored-by: sokra <sokra@users.noreply.github.com>
    sokra committed Sep 21, 2021
  7. Remove collect-dependencies span as it balloons trace size (#29266)

    Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
    timneutkens and kodiakhq committed Sep 21, 2021
  8. Fix basePath: false not being honored for client-side redirect (#29235)

    * Fix basePath: false not being honored for client-side redirect
    
    * update test
    
    * fix remove flakey exit
    ijjk committed Sep 21, 2021
  9. Fix dynamic style issue (#29163)

    * Fix dynamic style issue
    
    * Update affected tests
    
    * Build next-swc binaries
    
    * Remove clone
    
    * Build next-swc binaries
    padmaia committed Sep 21, 2021
  10. v11.1.3-canary.26

    timneutkens committed Sep 21, 2021

Commits on Sep 20, 2021

  1. fix compilation relationship (#29174)

    * fix compilation relationship
    
    * fix compilation relationship
    
    * Ensure loader span is provided correctly
    
    * Fix webpack 4 childcompiler run
    
    * Use compilation hook instead of make hook
    
    Co-authored-by: Tim Neutkens <timneutkens@me.com>
    Co-authored-by: Tim Neutkens <tim@timneutkens.nl>
    sokra and timneutkens committed Sep 20, 2021
  2. v11.1.3-canary.25

    ijjk committed Sep 20, 2021
  3. switch to Script component on the facebook pixel example (#29192)

    ## Documentation / Examples
    
    - [x] Make sure the linting passes
    ddzieduch committed Sep 20, 2021
  4. Preserve next-env.d.ts line ending (#28100)

    * Preserve `next-env.d.ts` line ending
    
    Prevent next from changing already existing line ending on
    `next-env.d.ts` for no good reason
    
    * Update comparison
    
    Co-authored-by: Steven <steven@ceriously.com>
    
    * Update checks and add tests
    
    * update test
    
    Co-authored-by: Steven <steven@ceriously.com>
    Co-authored-by: jj@jjsweb.site <jj@jjsweb.site>
    3 people committed Sep 20, 2021
  5. Remove useless getComputedStyle call. (#27969)

    See w3c/csswg-drafts#6501 to see how I found this.
    
    This line doesn't recompute layout in browsers, because `"height"` is given as a pseudo-element name rather than a property.
    
    The right way to do what it wants is `getComputedStyle(document.body).height`, but given nobody noticed this (and this is generally never needed, manually triggering layout should never be needed to avoid FOUC) it seems better to keep current behavior and just remove the call.
    emilio committed Sep 20, 2021
  6. Update with-react-intl example (#28336)

    This PR implements Internationalized Routing using formatjs / react-intl.
    
    ## Changelog
    
    - Updated formatjs to latest version
    - Remove  deprecated babel-react-intl-plugin in favor of babel-formatjs-plugin
    - Remove server in favour of Internationalized Routing
    - Added linter with formatjs rules
    - Refactored JSX
    - Added missing types
    - Auto run formtjs script via before hooks
    - Adjusted readme docs
    - Added message descriptions
    - Removed default configs
    
    
    
    fixes #27870
    
    ## Bug
    
    - [x] 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
    HaNdTriX committed Sep 20, 2021

Commits on Sep 19, 2021

  1. Fix #11107 - don't prefetch preloaded modules (#22818)

    This PR proposes a fix for #11107 (JS modules are loaded twice). A more detailed explanation of the investigation that led to this PR can be found in the issue's comments (#11107 (comment)).
    
    ## Replicability
    
    To identify that the issue replicates on any given project, you need to 
    1. look at the network tab (first/clean load of site, so preferably ⌘+⇧+R on an incognito tab), 
    2. sort by "name", and filter requests by `mime-type:application/javascript` (selecting "JS" in the devtools filters will actually show all "script" types, but ignore all "javascript" types)
    3. look for pairs of identical calls with one originating from initial HTML (`preload` of priority "high" originating from "(index)" or "([page name])")  and another one from a script (`prefetch` of priority "lowest" originating from a .js file), where neither of the files is served from the cache.
    
    Here's a screenshot of an example of what to look for:
    <img width="601" alt="Screen Shot 2021-03-07 at 09 59 18" src="https://user-images.githubusercontent.com/1325721/110234627-cf1c6d00-7f2b-11eb-9cd7-749bf881ba56.png">
    
    
    The issue was reproduced easily on the following projects:
    - On [nextjs.org](https://nextjs.org/) where duplicates add up to ~70kB of transferred javascript out of 470kB (14.9%).
    - On [vercel.com](https://vercel.com/) where duplicates add up to ~105kB of transferred javascript out of 557kB (18.8%).
    - On [tiktok.com](https://tiktok.com/en) where duplicates add up to ~514kB of transferred javascript out of 1556kB (33%).
    - In my own project using `"next": "^10.0.1"` (private repo) where duplicates add up to about 5% of total transferred javascript.
    - In the issue's comments, a developer reported a replication using `"^10.0.7"` on a [public repo](https://github.com/SidOfc/sidneyliebrand.io).
    
    
    ## Some information about the fix
    
    - Both `preload` and `prefetch` values for `<link rel="x">` behave similarly, with the difference being in network priority level (preload is high priority, prefetch is lowest priority).
    
    - Next.js uses `<link rel="preload">` in its initial HTML but then *only* uses `<link rel="prefetch">` for the rest of the lifetime of the page. 
    
    - However, when Next.js detects that a script should be requested in advance, it only checks for matching `<link rel="prefetch">` and not `<link rel="preload">` (which have higher priority and are present earlier in the DOM, thus have a greater likelihood of being already loaded). 
    
    This PR aims to fix that oversight.
    
    ## Potential issues (none AFAIK)
    
    As far as I can tell by looking through the codebase, **there is no downside** not to add a `prefetch` when a `preload` is already in the DOM. No other script looks for a `<link>` based on its `rel` attribute.
    Sheraff committed Sep 19, 2021
  2. Update Gatsby migration guide to use image imports. (#29178)

    * Update Gatsby migration guide to use image imports.
    
    * Update docs/migrating/from-gatsby.md
    
    * Update docs/migrating/from-gatsby.md
    
    Co-authored-by: Steven <steven@ceriously.com>
    
    Co-authored-by: Steven <steven@ceriously.com>
    Co-authored-by: JJ Kasper <jj@jjsweb.site>
    3 people committed Sep 19, 2021

Commits on Sep 18, 2021

  1. Fix type-check in Temporal example (#28546)

    Before this PR, `cd examples/with-temporal && npm run type-check` fails.
    
    ## Documentation / Examples
    
    - [x] Make sure the linting passes
    lorensr committed Sep 18, 2021
  2. Fix bug where returning { notFound: true } from GSP broke `next exp…

    …ort` (#24481)
    
    * Fix bug where returning `{ notFound: true }` from GSP broke `next export`
    
    We could just as easily omit the notFoundRoutes check, but I didn't want
    to mask other potential bugs that would result in missing files
    
    * update check
    
    * move check
    
    Co-authored-by: jj@jjsweb.site <jj@jjsweb.site>
    fracture91 and ijjk committed Sep 18, 2021

Commits on Sep 17, 2021

  1. Fix minor typos (#29188)

    Fix minor typos:
    
    typescript -> TypeScript
    KonstHardy committed Sep 17, 2021
  2. v11.1.3-canary.24

    ijjk committed Sep 17, 2021
  3. add support for new URL() (#28940)

    Currently `new URL()` for server assets is completely broken because of the `publicPath` that is used for them too. `new URL()` for SSR is broken on windows as it's using absolute urls on the windows filesystem. And `new URL()` is using an incorrect filename
    
    * Place all `asset`s correctly in `/_next/static/media` with `[name].[hash:8][ext]`
    * Added a separate runtime chunk for api entries, without `publicPath`
    * Introduce separate layer for api entries, which uses server-side URLs.
    * Otherwise new URL() will return a faked relative URL, that is identical in SSR and CSR
    * Disables react-refresh for api entries
    
    Fixes #27413
    
    
    
    ## Bug
    
    - [ ] Related issues linked using `fixes #number`
    - [x] 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`
    - [x] Integration tests added
    - [ ] Documentation added
    - [ ] Telemetry added. In case of a feature if it's used or not.
    - [ ] Errors have helpful link attached, see `contributing.md`
    
    ## Documentation / Examples
    
    - [ ] Make sure the linting passes
    sokra committed Sep 17, 2021
  4. make code consistent with babel externals (#28867)

    * make code consistent with babel externals
    
    * update compiled
    
    Co-authored-by: JJ Kasper <jj@jjsweb.site>
    sokra and ijjk committed Sep 17, 2021
Older