Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for AVIF #20381

Closed
wants to merge 129 commits into from
Closed

Add support for AVIF #20381

wants to merge 129 commits into from

Commits on Dec 22, 2020

  1. Add support for AVIF.

    sharp v0.27.0 should land tomorrow with support for AVIF (see lovell/sharp#2289 (comment)).
    paambaati committed Dec 22, 2020
    Configuration menu
    Copy the full SHA
    8a6e2fe View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0aa1bf2 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    cf47df0 View commit details
    Browse the repository at this point in the history

Commits on Jan 5, 2021

  1. changed ref from 'master' to 'main' branch (#20390)

    Changed reference from 'master' to 'main' branch under DPS section in line with GitHub's recent switch from master to main branch as base repo branch names.
    rfinkley authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    a5f98c1 View commit details
    Browse the repository at this point in the history
  2. Add note to deployment docs about handling new versions. (#20373)

    Co-authored-by: Luis Alvarez D. <[email protected]>
    Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
    3 people authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    b45d75d View commit details
    Browse the repository at this point in the history
  3. v10.0.4-canary.10

    Timer authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    a181778 View commit details
    Browse the repository at this point in the history
  4. v10.0.4

    Timer authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    1616cba View commit details
    Browse the repository at this point in the history
  5. Remove extra redirect for index with i18n (#20397)

    This makes sure redirects to the index route properly end with a trailing slash or don't based on the `trailingSlash` config to ensure an additional redirect doesn't need to take place un-necessarily. 
    
    Fixes: #19405
    ijjk authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    a226d36 View commit details
    Browse the repository at this point in the history
  6. Update revalidate checks (#19796)

    This ensures we show an error for string values for `revalidate` since we currently don't handle these and instead it results in `revalidate: false` being used. This also adds tests for our `revalidate` checks to ensure they are triggered correctly and not triggered for valid values. 
    
    x-ref: #20310
    ijjk authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    61e85f6 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    ba4884b View commit details
    Browse the repository at this point in the history
  8. v10.0.5-canary.0

    ijjk authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    900fa33 View commit details
    Browse the repository at this point in the history
  9. example with-google-tag-manager (#20042)

    Hi ✌️
    
    I've seen that many people have problem with implement Google Tag Manager, I've created an example of how insert "Google Tag Manager" in a NextJs app
    niko20 authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    b823d0f View commit details
    Browse the repository at this point in the history
  10. Style improvements on MongoDB example (#20515)

    I've looked at the example code and saw some consistent issues related to code style. The changes applied to this PR fixes the following points:
    
    - Differences of line breaks styles between multiple files
    - Differences of if statements styles
    - Unnecessary comment
    - A typo on a JSDocs
    
    ---
    
    There were line breaks between statements on `pages/index.js`
    ````
    export async function getServerSideProps(context) {
      const { client } = await connectToDatabase()
    
      const isConnected = await client.isConnected() 
    
      return {
        props: { isConnected },
      }
    }
    ```` 
    
    And this wasn't being applied to the MongoDB utility:
    
    ````
    export async function connectToDatabase() {
      if (cached.conn) return cached.conn
      if (!cached.promise) {
        const conn = {}
        const opts = {
          useNewUrlParser: true,
          useUnifiedTopology: true,
        }
    {...}
    ````
    
    And also, as shown in the snippet above, there are different styles of if statements being used. 
    
    With that being said, the reason I made this PR is because I think that this kind of inconsistent arises questions when a contributor looks to the codebase, even if this is a simple example.
    LauraBeatris authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    47e40ef View commit details
    Browse the repository at this point in the history
  11. Fix typos found on examples docs (#20516)

    This PR fixes some typos found on examples docs
    LauraBeatris authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    62c14ff View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    b70c229 View commit details
    Browse the repository at this point in the history
  13. Update README for with-emotion example (#20338)

    Change README from outdated @emotion/core to @emotion/react
    xiaooye authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    40247ed View commit details
    Browse the repository at this point in the history
  14. Update README.md (#19885)

    Co-authored-by: Joe Haddad <[email protected]>
    2 people authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    a0c4152 View commit details
    Browse the repository at this point in the history
  15. Upgrade Tailwindcss to 2.0.2 (#20517)

    Normally I wouldn't make a PR for a minor version upgrade, but the 2.0.2 version contains some important performance improvements.
    tailwindlabs/tailwindcss#3032
    awareness481 authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    438911f View commit details
    Browse the repository at this point in the history
  16. Ensure query is present with i18n and history navigation (#20441)

    This makes sure the query isn't dropped when doing a history navigation with i18n. Additional tests have been added to ensure this is working correctly as well. 
    
    Fixes: #20212
    ijjk authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    cc0c854 View commit details
    Browse the repository at this point in the history
  17. Ensure index rewrite is matched with i18n correctly (#20509)

    This makes sure we don't generate the wrong locale source variant for the rewrite requiring a `/` on the end which won't ever be added causing the rewrite to never match. Additional tests have been added to ensure this specific rewrite is working correctly. 
    
    
    Fixes: #20508
    ijjk authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    38b51bb View commit details
    Browse the repository at this point in the history
  18. fix(next/image): inherit parent visibility (#20542)

    This PR is an alternative to #20247 which contains tests for the expected behavior.
    
    ---
    
    Fixes #20198
    Closes #20247
    Timer authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    cecd307 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    07be203 View commit details
    Browse the repository at this point in the history
  20. Docs typo fix (#20498)

    * Docs typo fix
    
    * Update docs/basic-features/environment-variables.md
    
    Co-authored-by: Lachlan Campbell <[email protected]>
    
    Co-authored-by: Joe Haddad <[email protected]>
    Co-authored-by: Lachlan Campbell <[email protected]>
    Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
    4 people authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    11195b6 View commit details
    Browse the repository at this point in the history
  21. Update with-msw example (#20335)

    * Update with-msw example
    
    * Update README
    
    * Update examples/with-msw/README.md
    
    * lint fix
    
    Co-authored-by: Luis Alvarez D <[email protected]>
    Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
    3 people authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    bf38f5f View commit details
    Browse the repository at this point in the history
  22. Correct import comment in interfaces (#20052)

    Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
    2 people authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    e7aa0ae View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    7acb8ec View commit details
    Browse the repository at this point in the history
  24. Update with-mongodb to be TypeScript-friendly (#19383)

    * Update with-mongodb to be TypeScript-friendly
    
    I slightly modified the approach so TypeScript can correctly infer types without actually having to type anything but the global:
    
    **index.d.ts**
    ```ts
    import { Db, MongoClient } from "mongodb";
    
    declare global {
      namespace NodeJS {
        interface Global {
          mongoCache: {
            conn: {
              client: MongoClient | null;
              db: Db | null;
            }
            promise: Promise<MongoClient> | null;
          };
        }
      }
    }
    ```
    
    * lint
    
    Co-authored-by: Joe Haddad <[email protected]>
    2 people authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    045a49a View commit details
    Browse the repository at this point in the history
  25. Ensure path encoding is handled consistently for prerendered pages (#…

    …19135)
    
    This ensures we handle encoding/decoding for SSG prerendered/fallback pages correctly. Since we only encode path delimiters when outputting to the disk we need to match this encoding when building the `ssgCacheKey` to look-up the prerendered pages. This also fixes non-ascii prerendered paths (e.g. 商業日語) not matching correctly. 
    
    This does not resolve 👉  #10084 and further investigation will be needed before addressing non-ascii paths for non-SSG pages. 
    
    The encoding output was tested against https://tst-encoding-l7amu5b9c.vercel.app/ to ensure the values will match correctly on Vercel. 
    
    Closes: #17582
    Closes: #17642
    x-ref: #14717
    ijjk authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    618c9c9 View commit details
    Browse the repository at this point in the history
  26. Update i18n test (#20548)

    This tweaks the new i18n query history test to address intermittent failures in CI
    
    x-ref: #19197 (comment)
    x-ref: #19135 (comment)
    x-ref: #20379 (comment)
    ijjk authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    03a0bca View commit details
    Browse the repository at this point in the history
  27. v10.0.5-canary.1

    Timer authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    450df44 View commit details
    Browse the repository at this point in the history
  28. Remove import type syntax from core files (#20379)

    This removes `import type` usage from our core files since `import type` requires a higher TypeScript version than currently expected.
    
    Fixes: #19300
    ijjk authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    c176f43 View commit details
    Browse the repository at this point in the history
  29. Configuration menu
    Copy the full SHA
    e9c10f7 View commit details
    Browse the repository at this point in the history
  30. v10.0.5-canary.2

    Timer authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    ec9cf31 View commit details
    Browse the repository at this point in the history
  31. Configuration menu
    Copy the full SHA
    0ca9528 View commit details
    Browse the repository at this point in the history
  32. Remove "priority" prop from Image docs (#20471)

    I don't think the docs should still mention the `priority` prop because the feature no longer exists since this was merged -  #19118
    
    It certainly caught me out! 😬 #20438
    danielyefet authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    cb6a3bd View commit details
    Browse the repository at this point in the history
  33. Add error for invalid webpack 5 version (#20558)

    Closes: #20545
    ijjk authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    32080cd View commit details
    Browse the repository at this point in the history
  34. v10.0.5-canary.3

    Timer authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    f42cfd6 View commit details
    Browse the repository at this point in the history
  35. Ignore emacs lockfiles (#20497)

    Fixes: #15278
    
    > Bug report
    
    > When using next dev with emacs, as you develop, emacs creates symbolic link files starting with .# as lock files. Next.js seems to attempt to load these but fails, spewing out errors constantly.
    
    Prevents dev server from crashing when emacs creates lockfiles
    
    tested with:
    
    - GNU Emacs 27.1
    - OSX 11.1
    - Node v15.4.0
    Luke Fender authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    51c5432 View commit details
    Browse the repository at this point in the history
  36. Update with-styletron example to not use DebugEngine (#20233)

    [DebugEngine stopped working](styletron/styletron#366) with v9.5 since the devtool is strictly set to eval and this option is not customizable. Unfortunately there is currently no way to fix this.
    tajo authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    a9a376a View commit details
    Browse the repository at this point in the history
  37. fix(next/image): ignore typography prose styles (#20580)

    This fixes `next/image` to properly ignore inherited styles applied to the `img` tag by a parent element.
    
    Image styling should **always** be done by a wrapper element—not to the image itself!
    
    ---
    
    Fixes #19817
    Fixes #19964
    Timer authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    8385291 View commit details
    Browse the repository at this point in the history
  38. Configuration menu
    Copy the full SHA
    fa00af1 View commit details
    Browse the repository at this point in the history
  39. Update authentication examples (#19330)

    * Updated example readme
    
    * Updated with-passport example
    
    * Updated profile page for with-passport
    
    * Updated with-passport-and-next-connect
    
    * Updated with-magic
    
    * Updated with-magic readme
    
    * Updated with-iron-session
    
    * Updated next version in with-iron-session
    
    Co-authored-by: Lee Robinson <[email protected]>
    2 people authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    6339a86 View commit details
    Browse the repository at this point in the history
  40. Update sharp optional dependency to support NPM 7 (#20432)

    Sharp 0.26.3 updates prebuild-install to ^6.0.0 which fixes an incompatibility with NPM 7.
    
    See lovell/sharp#2419 and prebuild/prebuild-install#128
    jorrit authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    4ee8ef6 View commit details
    Browse the repository at this point in the history
  41. deps: upgrade various deps (mainly babel) (#20586)

    Fixes #20585
    Closes #20406 as it duplicates Babel dependencies
    Closes #18926 as it's outdated
    Timer authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    8e6cae6 View commit details
    Browse the repository at this point in the history
  42. Remove unnecessary unfetch polyfill for dev (#20589)

    Fetch is always polyfilled in legacy browsers by `@next/polyfill-nomodule`, so we do not need to import unfetch for IE11 support.
    
    Fixes #20588
    Timer authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    e9b2214 View commit details
    Browse the repository at this point in the history
  43. Add profiling to webpack loaders (#20392)

    Follow-up to #20357 with additional tracers.
    timneutkens authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    4365109 View commit details
    Browse the repository at this point in the history
  44. Ignore domains option when loader is set (#18447)

    ```
    images: {
        domains: ['example.com'],
        path: 'https://example.com/myaccount/',
    },
    ```
    Those `domains` and `path` look a lot alike for me and so, I was confused. I found out that the domains are ignored if the Loader is set, which makes sense.
    matamatanot authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    4a98c4f View commit details
    Browse the repository at this point in the history
  45. Ensure next/image loads correctly with basePath (#20592)

    This ensures the default path used for the `next/image` component includes the `basePath` when configured. Additional tests have also been added to ensure the image component is working correctly with `basePath` configured.
    
    Fixes: #19711
    ijjk authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    1cce1d9 View commit details
    Browse the repository at this point in the history
  46. fix(next/link): reset scroll before lifecycles (#20595)

    This moves the scroll reset behavior to happen synchronously with the DOM commit, instead of a few ticks after the render completes.
    
    This is necessary for components that read scroll state on mount.
    
    ---
    
    Fixes #6462
    Timer authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    3612d62 View commit details
    Browse the repository at this point in the history
  47. Refactor GS(S)P notFound client-side handling (#20594)

    This refactors to instead of throwing a specific error when a SSG data route 404s, we return it through props and render the 404 outside of the error handling flow. No additional tests have been added as existing tests should cover this. 
    
    Closes: #19243
    ijjk authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    bf9ccb2 View commit details
    Browse the repository at this point in the history
  48. Ensure index basePath is detected correctly (#20596)

    This ensures we detect the `basePath` correctly for the index `basePath` route when either a `hash` or a `query` are present in the provided path. This also adds this specific test to our basePath test suite. 
    
    Fixes: #19294
    Fixes: #19437
    Closes: #19444
    ijjk authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    b8257f4 View commit details
    Browse the repository at this point in the history
  49. Ensure domain locales are redirected client-side (#20562)

    This ensures we detect domain specific locales and redirect them client-side. Tests have been added in the `i18n` suite to ensure the domain redirect is applied correctly during a client-side navigation
    
    Fixes: #19174
    ijjk authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    59df598 View commit details
    Browse the repository at this point in the history
  50. Configuration menu
    Copy the full SHA
    59e9de3 View commit details
    Browse the repository at this point in the history
  51. Configuration menu
    Copy the full SHA
    27b5c87 View commit details
    Browse the repository at this point in the history
  52. fix(router): consistent scroll behavior for Link/Router#push (#20606)

    This pull request makes `Router#push` and `Router#replace` function identically to `<Link />`, i.e. reset scroll when the new render is complete.
    
    Users can opt out of this new behavior via:
    ```tsx
    const path = '/my-page'
    router.push(path, path, { scroll: false })
    ```
    
    ---
    
    Fixes #3249
    Timer authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    95428b0 View commit details
    Browse the repository at this point in the history
  53. v10.0.5-canary.4

    ijjk authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    1ef1cb5 View commit details
    Browse the repository at this point in the history
  54. feat(next/image): reduce byte waste for 3x screens (#20610)

    https://blog.twitter.com/engineering/en_us/topics/infrastructure/2019/capping-image-fidelity-on-ultra-high-resolution-devices.html
    
    > This means that most OLED screens that say they are 3x resolution, are actually 3x in the green color, but only 1.5x in the red and blue colors. Showing a 3x resolution image in the app vs a 2x resolution image will be visually the same, though the 3x image takes significantly more data. Even true 3x resolution screens are wasteful as the human eye cannot see that level of detail without something like a magnifying glass.
    
    > ![image](https://user-images.githubusercontent.com/616428/103366340-61b61100-4a90-11eb-9c16-8467f8930247.png)
    
    Even the iPhone doesn't have true 3x DPI!
    
    related: #18756
    Timer authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    9bb9a09 View commit details
    Browse the repository at this point in the history
  55. Fix memory leak in useIntersection (#20407)

    This pull request adds an `elements.delete` operation to the `useIntersection`'s cleanup function: `unobserve`.
    
    Without this delete operation, next.js holds onto an unreachable reference of every observed element indefinitely (automatically every Link and Image is observed, so that means every rendered Link and Image element adds to the leak). I found this memory leak when building out an infinite feed in next.js with thousands of Link elements.
    
    The final code block of the `unobserve` function body:
    
    ```tsx
      // Destroy observer when there's nothing left to watch:
      if (elements.size === 0) {
        observer.disconnect()
        observers.delete(id)
      }
    ```
    
    Is effectively unreachable without this delete operation, as the `elements` map will never decrease in size as it is currently. This means that there will always be at least one IntersectionObserver instance in memory if useIntersection has been used once, regardless of if there are currently any components still using the hook.
    tvler authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    e86a301 View commit details
    Browse the repository at this point in the history
  56. Update dbConnect.js (#19644)

    * Update dbConnect.js
    
    The previous logic was in my opinion prone to errors in situations when different calls to this function from different locations may happen at the same time ( like a race condition  ). If the readyState is anything but not 0, then we must not try to perform a new connection as this may cause consequent connections!
    
    I hope this makes sense
    
    * Update examples/with-mongodb-mongoose/utils/dbConnect.js
    
    * Lint fix and minor changes
    
    Co-authored-by: Luis Alvarez D <[email protected]>
    Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
    3 people authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    09cebb8 View commit details
    Browse the repository at this point in the history
  57. feat(next/image): preload priority images (#20615)

    The HTML Living Standard explicitly says `href` should be omitted to prevent the loading of an incorrectly sized image:
    https://html.spec.whatwg.org/multipage/semantics.html#attr-link-imagesrcset
    
    ![image](https://user-images.githubusercontent.com/616428/103378205-8a013800-4aaf-11eb-9085-10f547263fed.png)
    
    Since it's in the spec, I assume this is valid-enough HTML.
    
    This also dedupes preloads which the old implementation did not.
    
    ---
    
    Fixes #18756
    x-ref #19118
    Fixes #18720
    Timer authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    17b9ba5 View commit details
    Browse the repository at this point in the history
  58. Configuration menu
    Copy the full SHA
    398c6fc View commit details
    Browse the repository at this point in the history
  59. v10.0.5-canary.5

    Timer authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    d05f70a View commit details
    Browse the repository at this point in the history
  60. Move CSS Preloads to top of head at document render (#18864)

    Co-authored-by: Joe Haddad <[email protected]>
    2 people authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    37cb0f4 View commit details
    Browse the repository at this point in the history
  61. Ensure SSG data 404 handles correctly for non-notFound (#20622)

    Follow-up to #20594 this ensures non-notFound SSG data 404s do cause a hard navigation as this signals a new deployment has occurred and a hard navigation will load the new deployment's version of the page. 
    
    Closes: #20623
    ijjk authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    2ec2362 View commit details
    Browse the repository at this point in the history
  62. Fix: fallback font tag repetition (#20382)

    partially fixes #20341
    
    - Makes sure that font fallback does not get repeated for every request.
    - Adds a test for the same.
    prateekbh authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    cf2d6f3 View commit details
    Browse the repository at this point in the history
  63. Update blog starter example (#19698)

    * bump dependencies to latest versions
    
    * use tailwindcss class names
    
    * use next/image component
    
    * pass in height & width. update tailwindcss classes
    
    * update tailwindcss classes
    
    * mention tailwindcss 2.0
    gregrickaby authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    59ca531 View commit details
    Browse the repository at this point in the history
  64. feat: upgrade to [email protected] (#20627)

    This upgrades to the version of ncc with subbundling support.
    guybedford authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    299c763 View commit details
    Browse the repository at this point in the history
  65. v10.0.5-canary.6

    ijjk authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    d167356 View commit details
    Browse the repository at this point in the history
  66. Ensure href is updated for locale domain (#20631)

    This ensures we render the locale domain on the `href` when using `next/link` previously the provided `href` was stilling being rendered which differed from the resulting `href` that was navigated to. 
    
    Fixes: #20612
    ijjk authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    95a4b4d View commit details
    Browse the repository at this point in the history
  67. Add docs on authentication patterns. (#16277)

    Building off [this Slack conversation](https://vercel.slack.com/archives/CGD3XGSD7/p1597329727013900), this PR adds a top-level section to the documentation on authentication patterns.
    
    Please provide any and all comments! A few open thoughts I have:
    
    - ~Should this include code snippets from the related providers or stay very high-level? At what point do we delegate to the examples folder?~ Keep things high level and delegate to examples folder 
    - ~Should this include any related cards at the bottom?~ Added to the bottom
    - ~Should other places in the documentation link back to here?~ Added link from routing
    - Should it be a top-level route, or be underneath advanced?
    leerob authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    0a134fe View commit details
    Browse the repository at this point in the history
  68. fix(experimental scroll): use sessionStorage instead of history (#…

    …20633)
    
    This pull request adjusts our experimental scroll restoration behavior to use `sessionStorage` as opposed to `History#replaceState` to track scroll position.
    
    In addition, **it eliminates a scroll event listener** and only captures when a `pushState` event happens (thereby leaving state that needs snapshotted).
    
    These merely adjusts implementation detail, and is covered by existing tests:
    ```
    test/integration/scroll-back-restoration/
    ```
    
    ---
    
    Fixes #16690
    Fixes #17073
    Fixes #20486
    Timer authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    78d550e View commit details
    Browse the repository at this point in the history
  69. Configuration menu
    Copy the full SHA
    65518f9 View commit details
    Browse the repository at this point in the history
  70. Add isReady field on router (#20628)

    Adds an `isReady` field on `next/router` specifying whether the router fields are updated client-side and ready for use. Should only be used inside of `useEffect` methods and not for conditionally rendering on the server.
    
    Closes: #8259
    Closes: #9370
    ijjk authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    8a939f0 View commit details
    Browse the repository at this point in the history
  71. example with-mdbreact (#19879)

    This example illustrates how to integrate mdbreact (material design bootstrap for react) with next.js
    enochndika authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    87029a2 View commit details
    Browse the repository at this point in the history
  72. fix(overlay): skip disable & upgrade platform (#20647)

    This bundles ally.js into Next.js itself to upgrade a dependency they have pinned.
    
    I tried every other major focus trap solution, even those used by some modal libraries, and they all failed.
    
    `ally.js` is the only library that can do it correctly, so we're going to stick with it.
    
    I also removed the `maintain/disabled` as we have a backdrop that would effectively result in the same. This reduces CPU strain.
    
    ---
    
    Fixes #19893
    Fixes #14369
    Closes #14372
    Timer authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    8df1045 View commit details
    Browse the repository at this point in the history
  73. Fix react-dev-overlay rem style conflict (#17723)

    ### Don‘t use rem in react-dev-overlay.
    If we create a nextjs project and use css rem. We could set the html fontsize to any 'px'.  The react-dev-overlay components styles will be affected so that the style becomes larger or smaller.
    
    ![image](https://user-images.githubusercontent.com/10840654/95490394-c189a800-09ca-11eb-816a-8bcaf6bcb657.png)
    ## So i suggest change the rem to px.
    ## After modification:
    ![image](https://user-images.githubusercontent.com/10840654/95490703-2e9d3d80-09cb-11eb-8369-7ec650fa6c52.png)
    
    ---
    
    Fixes #18680
    zimv authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    2eb2b7a View commit details
    Browse the repository at this point in the history
  74. fix(next/image): do not pass-through srcSrc on lazy image (#20651)

    This PR fixes a bug where we'd accidentally pass-through the user-provided `srcSet` if the image was lazy, just to then replace it when we hydrate.
    
    ---
    
    Fixes #19041
    Timer authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    432dcb2 View commit details
    Browse the repository at this point in the history
  75. Fix withSourceMaps is not a function (#20643)

    In order to get this example working, I needed to remove the invocation as described here: vercel/next-plugins#309 (comment)
    lharries authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    599e5fe View commit details
    Browse the repository at this point in the history
  76. Configuration menu
    Copy the full SHA
    7a21643 View commit details
    Browse the repository at this point in the history
  77. Configuration menu
    Copy the full SHA
    1fedf98 View commit details
    Browse the repository at this point in the history
  78. Update error when internal href and external as are used (#20658)

    * Update error when internal href and external as are used
    
    * Update to handle error outside invariant
    
    * Update err.sh components
    ijjk authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    6ffdaa0 View commit details
    Browse the repository at this point in the history
  79. Update to Tailwind CSS 2.0 in blog-starter-typescript example (#20664)

    This updates the blog-starter-typescript example to use the latest version of Tailwind CSS (2.0.2)
    
    Notes:
    Followed the upgrade guide here: https://tailwindcss.com/docs/upgrading-to-v2 
    And Next / PostCSS guide here: https://nextjs.org/docs/advanced-features/customizing-postcss-config
    JstnEdr authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    cf8d2b1 View commit details
    Browse the repository at this point in the history
  80. Configuration menu
    Copy the full SHA
    e1c5678 View commit details
    Browse the repository at this point in the history
  81. v10.0.5-canary.7

    ijjk authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    c669213 View commit details
    Browse the repository at this point in the history
  82. chore: remove old traces of next/data experiment (#20678)

    This PR removes some left over traces of the `next/data` experiment, as it has been superseded by RSC.
    Timer authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    ea4762c View commit details
    Browse the repository at this point in the history
  83. fix(next/babel): read env from caller, not process (#20679)

    This PR fixes a bug where `next/babel` would accidentally enable development transforms for a production build (`next build`).
    
    This is tested by the two updated unit tests (which removed a workaround for this bug, and one now properly enables dev transforms).
    
    ---
    
    Fixes #18929
    Fixes #19001
    x-ref #19046
    x-ref #17032
    Timer authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    2a396b5 View commit details
    Browse the repository at this point in the history
  84. v10.0.5-canary.8

    Timer authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    efb308a View commit details
    Browse the repository at this point in the history
  85. Don't dedupe meta tags with the same name but unique keys (#17099)

    Currently there is no way to add multiple meta tags with the same name attribute to the head of a page. This PR modifies the Head component to allow multiple meta tags with the same name if they have unique keys. 
    
    This is important for integrating with certain services like Google Scholar and Swiftype.
    
    Fixes #10183
    zbialecki authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    a5a7dee View commit details
    Browse the repository at this point in the history
  86. Update link.md (#20435)

    Added the `locale` prop in the Link documentation. At the moment it is only stated in the i18n doc.
    fredmontet authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    66e3bae View commit details
    Browse the repository at this point in the history
  87. Configuration menu
    Copy the full SHA
    3f6c17f View commit details
    Browse the repository at this point in the history
  88. Configuration menu
    Copy the full SHA
    7d16a8f View commit details
    Browse the repository at this point in the history
  89. Ensure isReady is set correctly for auto static dynamic route (#20729)

    Follow-up to #20628 this ensures `isReady` is not initially true when the query isn't present but the page is an automatically statically optimized dynamic route
    ijjk authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    347715d View commit details
    Browse the repository at this point in the history
  90. Clarify how to use Environment Variables on Vercel (#20708)

    Updates the env documentation to mention `.vercelignore` when using the Vercel CLI. Also clears up parts of the other paragraphs and updates the links as these topics now have dedicated pages in the Vercel docs.
    leo authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    134bc9b View commit details
    Browse the repository at this point in the history
  91. Remove outdated documentation (#20714)

    Fixes #20487
    timneutkens authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    e06fd86 View commit details
    Browse the repository at this point in the history
  92. Call res.write('') inside apiRes.redirect() helper to prevent an edge…

    … case (#20461)
    
    This PR is a small follow-up to #14705. It saves Next.js users from falling into a [pretty nasty trap](nodejs/node#36620) in which I ended up last Friday. It took more than two days to investigate what was going on, so I hope I'm the last person who’s doing it 😅
    
    Next.js-specific MWE: https://github.com/kachkaev/hanging-response-in-next-via-redirect-plus-compression (needs to be ran locally using Node 14.0.0+).
    
    > <img width="521" alt="Screenshot 2020-12-24 at 20 50 00" src="https://user-images.githubusercontent.com/608862/103105989-a9b8dc00-4629-11eb-9be3-5108755604bf.png">
    
    To reproduce the bug I’m fixing:
    
    1. Pick a large http body size (64 or 128 KB)
    1. Check _Call res.end() after res.redirect() in /api/redirect_
    1. Navigate to a heavy page or an api handler via redirect
    1. Observe that the http response is never finished.
    
    If you set `compress` to `false` in `next.config.js` or pick a small payload size (< `zlib.Z_DEFAULT_CHUNK` after compression), the bug will not be observed. This is explained by the use of `res.on("drain", ...)` [by the `compression` package](https://github.com/expressjs/compression/blob/3fea81d0eaed1eb872bf3e0405f20d9e175ab2cf/index.js#L193-L218). The package itself is not the reason for an issue though, it seems to be in the Node’s built-in `http` package.
    
    I’m happy to provide more info or GitHub CI to the MWE if needed. I was also thinking of adding some Next.js-specific testing, but could not come up with a compact and clear test plan. Happy to do this if there are any ideas.
    
    cc @botv (author of #14705)
    kachkaev authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    9dbb6f8 View commit details
    Browse the repository at this point in the history
  93. Create bug_report.yml

    timneutkens authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    1267700 View commit details
    Browse the repository at this point in the history
  94. Update bug_report.yml

    timneutkens authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    7bae868 View commit details
    Browse the repository at this point in the history
  95. Update bug_report.yml

    timneutkens authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    4e0a330 View commit details
    Browse the repository at this point in the history
  96. Update bug_report.yml

    timneutkens authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    a957f5b View commit details
    Browse the repository at this point in the history
  97. Update bug_report.yml

    timneutkens authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    c33fe2f View commit details
    Browse the repository at this point in the history
  98. Update bug_report.yml

    timneutkens authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    d91049e View commit details
    Browse the repository at this point in the history
  99. Configuration menu
    Copy the full SHA
    078ef05 View commit details
    Browse the repository at this point in the history
  100. Delete 1.Bug_report.md

    This file has been replaced by the bug-report issue template
    timneutkens authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    cc4e361 View commit details
    Browse the repository at this point in the history
  101. Update 1.bug_report.yml

    timneutkens authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    d0115bc View commit details
    Browse the repository at this point in the history
  102. Create 2.feature_request.yml

    timneutkens authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    fd7407d View commit details
    Browse the repository at this point in the history
  103. Update 2.feature_request.yml

    timneutkens authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    18483ab View commit details
    Browse the repository at this point in the history
  104. Delete 2.Feature_request.md

    timneutkens authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    1854f1e View commit details
    Browse the repository at this point in the history
  105. Update 1.bug_report.yml

    timneutkens authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    5485982 View commit details
    Browse the repository at this point in the history
  106. Update 1.bug_report.yml

    timneutkens authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    1cacd07 View commit details
    Browse the repository at this point in the history
  107. Update 1.bug_report.yml

    timneutkens authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    2e2ef75 View commit details
    Browse the repository at this point in the history
  108. Update 1.bug_report.yml

    timneutkens authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    800a116 View commit details
    Browse the repository at this point in the history
  109. Create 3.example_bug_report.yml

    timneutkens authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    46de752 View commit details
    Browse the repository at this point in the history
  110. Update 1.bug_report.yml

    timneutkens authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    915452a View commit details
    Browse the repository at this point in the history
  111. Change order of templates

    timneutkens authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    0bc8935 View commit details
    Browse the repository at this point in the history
  112. Configuration menu
    Copy the full SHA
    d085bcf View commit details
    Browse the repository at this point in the history
  113. Configuration menu
    Copy the full SHA
    36e0460 View commit details
    Browse the repository at this point in the history
  114. v10.0.5-canary.9

    Timer authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    b33c5da View commit details
    Browse the repository at this point in the history
  115. fix(next-mdx): resolve webpack loader (#17983)

    **What's the problem this PR addresses?**
    
    `@next/mdx` adds the webpack loader `@mdx-js/loader` without resolving it to an absolute path
    
    Depends on #17606
    
    **How did you fix it?**
    
    `require.resolve` the webpack loader before adding it
    merceyz authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    0f7efee View commit details
    Browse the repository at this point in the history
  116. Move sizes var declaration just before used (#18402)

    As with `const width`, it should be declared just before it is used.
    matamatanot authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    fb53ce6 View commit details
    Browse the repository at this point in the history
  117. fix(next/head): assign bool attrs to match server (#20748)

    This pull request correctly assigns boolean attributes for `<script />` to match the element as it is created by a server-side render.
    
    Prior to this pull request, we'd double-execute `<script>` tags with the `async`, `defer`, or `nomodule` property.
    
    ---
    
    Fixes #9070
    Timer authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    339b7ce View commit details
    Browse the repository at this point in the history
  118. Update database config explanation in with-firebase-app example (#20709)

    I made the following changes.
    
    - Addition of procedure for setting private_key
    - Addition of procedure for creating a database and setting database_url
    mongolyy authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    252cddb View commit details
    Browse the repository at this point in the history
  119. New example: /with-storybook-styled-jsx-scss (#18570)

    Hi, 
    
    I'm submitting this PR for consideration as a new example app showing Styled JSX with SCSS working inside and outside storybook with example components.
    
    Only known issue: I noticed that when running this example with:
    
    `$ yarn next ./examples/with-storybook-styled-jsx-scss`
    
    I receive the following error:
    
    ```
    error - ./pages/_app.js
    Error: [BABEL] .../next.js/examples/with-storybook-styled-jsx-scss/pages/_app.js: Cannot find module 'styled-jsx-plugin-sass' (While processing: ".../next.js/node_modules/next/babel.js")
    ```
    
    However I notice that this same missing module error is triggered when running this existing example app "with-styled-jsx-scss".
    
    Any changes/tweaks needed?
    
    Thanks!
    justinphilpott authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    32b7b3a View commit details
    Browse the repository at this point in the history
  120. Configuration menu
    Copy the full SHA
    452087d View commit details
    Browse the repository at this point in the history
  121. Update with-antd example (#19699)

    https://ant.design/docs/react/getting-started#Import-on-Demand
    At the document, We don't need to use `babel-import-plugin` to `Import on Demand`.
    fireairforce authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    47beaeb View commit details
    Browse the repository at this point in the history
  122. Clarify ctx.query type on getServerSideProps (#20327)

    Closes #19481
    
    The current text implies `query` is a string. IMO it would be better if it clarified that `query` is an object containing the query string's keys and values
    
    Edit:
    Relevant docs url: https://nextjs.org/docs/basic-features/data-fetching#getserversideprops-server-side-rendering
    awareness481 authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    6e9ff96 View commit details
    Browse the repository at this point in the history
  123. Add new example for rate limiting API routes. (#19509)

    Adds an example using `lru-cache` to implement a simple rate limiter for API routes ([Serverless Functions](https://vercel.com/docs/serverless-functions/introduction)).
    
    **Demo: https://nextjs-rate-limit.vercel.app/**
    leerob authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    90aeed4 View commit details
    Browse the repository at this point in the history
  124. Fix notFound false pages returning 404 (#19861)

    Currently pages with `notFound: false` from `getServerSideProps` behave the same as `notFound: true`, i.e. just having the key is enough to result in a 404. This fixes the check in render.tsx and adds tests for it.
    jvarho authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    74bea9d View commit details
    Browse the repository at this point in the history
  125. Add pr section to azure config (#20758)

    Adds the `pr` section from https://docs.microsoft.com/en-us/azure/devops/pipelines/repos/github?view=azure-devops&tabs=yaml#pr-triggers to filter paths that don't require test runs on PRs.
    ijjk authored and paambaati committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    6e0d995 View commit details
    Browse the repository at this point in the history
  126. Configuration menu
    Copy the full SHA
    417f96c View commit details
    Browse the repository at this point in the history