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: v14.2.12
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: f550237aa564bd59bfef7462350ac6c502f0206d
Choose a head ref
  • 5 commits
  • 29 files changed
  • 5 contributors

Commits on Sep 19, 2024

  1. Fix missing cache-control on SSR app route (#70265)

    This removes an inaccurate check that doesn't set a revalidate value if
    revalidate is `undefined` which can be the case for SSR app route pages.
    Also adds a regression test to ensure this doesn't break again.
    
    Fixes: #70213
    # Conflicts:
    #	packages/next/src/server/base-server.ts
    ijjk committed Sep 19, 2024
    Copy the full SHA
    b503b8e View commit details
  2. feat: add polyfill of URL.canParse for browser compatibility (#70228)

    ### Why?
    
    Since `URL.canParse` is incompatible with older browsers like Safari 16,
    we added `canParseUrl` util at
    #70215.
    x-ref: https://caniuse.com/?search=URL.canParse
    
    To improve maintenance, we decided to add polyfill for `URL.canParse`.
    x-ref: [slack
    thread](https://vercel.slack.com/archives/C07BVA6HM17/p1726664071636899?thread_ts=1726620161.450109&cid=C07BVA6HM17)
    
    Closes NDX-302
    
    ---------
    
    Co-authored-by: Jiachi Liu <inbox@huozhi.im>
    # Conflicts:
    #	packages/next/src/lib/url.ts
    #	packages/next/src/server/lib/router-server.ts
    #	pnpm-lock.yaml
    devjiwonchoi authored and ijjk committed Sep 19, 2024
    Copy the full SHA
    62fbd7f View commit details
  3. Fix vercel og package memory leak (#70214)

    # Conflicts:
    #	pnpm-lock.yaml
    huozhi authored and ijjk committed Sep 19, 2024
    Copy the full SHA
    49566f5 View commit details
  4. Fix startTime error on Android 9 with Chrome 74 (#67391)

    ### What?
    
    Fixes the error `Cannot read property 'startTime' of null` on Chrome 74
    for Android 9 by ensuring the `beforeHydrationMeasure` and
    `hydrationMeasure` are not falsy values before accessing their
    properties.
    
    <img width="1164" alt="Screenshot 2024-07-02 at 11 14 53 PM"
    src="https://github.com/vercel/next.js/assets/52588326/34df95b6-a4fe-4886-96b8-a3c873a2ae6a">
    
    ### Why?
    
    The application crashes on Chrome 74 for Android 9 due to `null` or
    other falsy values being returned in certain situations. This fix
    ensures that the `startTime` property is only accessed if it is not a
    falsy value, thereby preventing the crash.
    
    ### How?
    
    Added a falsy check before accessing the `startTime` property in the
    performance measurement logic. Specifically, modified the code at [this
    location](https://github.com/vercel/next.js/blob/b9bd23baec14508400c502b3651f4cf2497e883b/packages/next/src/client/index.tsx#L498)
    
    Co-authored-by: JJ Kasper <jj@jjsweb.site>
    raeyoung-kim and ijjk committed Sep 19, 2024
    Copy the full SHA
    b0ff3d0 View commit details

Commits on Sep 20, 2024

  1. v14.2.13

    vercel-release-bot committed Sep 20, 2024
    Copy the full SHA
    f550237 View commit details
Loading