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: opennextjs/opennextjs-netlify
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v5.10.1
Choose a base ref
...
head repository: opennextjs/opennextjs-netlify
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v5.10.2
Choose a head ref

Commits on Mar 22, 2025

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    8a7647d View commit details

Commits on Mar 26, 2025

  1. chore: add LICENSE file (#2782)

    included MIT license as-per the
    package.json#license field
    
    used 2023 as the year because that was when the
    code appears to first have been published
    
    closes #2773
    chee authored Mar 26, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    648f2ea View commit details
  2. ci: remove prettier write from CI workflow (#2787)

    * ci: remove write from ci prettier
    
    * chore: format with prettier
    mrstork authored Mar 26, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    4d22c8d View commit details

Commits on Mar 27, 2025

  1. chore(deps): update dependency @netlify/edge-functions to ^2.11.1 (#2710

    )
    
    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    Co-authored-by: Mateusz Bocian <mrstork@users.noreply.github.com>
    renovate[bot] and mrstork authored Mar 27, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    30803ef View commit details
  2. test: skip some vercel/next tests (#2789)

    * test: skip tests that rely on Vercel specific response headers
    
    * test: skip flaky test that check scroll behavior which is browser focused
    pieh authored Mar 27, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    3c0e1fe View commit details
  3. chore(deps): update dependency netlify-cli to ^17.38.1 (#2711)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    Co-authored-by: Mateusz Bocian <mrstork@users.noreply.github.com>
    renovate[bot] and mrstork authored Mar 27, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    c8d332b View commit details
  4. chore(deps): update netlify packages (#2713)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    Co-authored-by: Mateusz Bocian <mrstork@users.noreply.github.com>
    renovate[bot] and mrstork authored Mar 27, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    849b8c5 View commit details
  5. chore(deps): update dependency @netlify/blobs to ^8.1.2 (#2790)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Mar 27, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    4230869 View commit details
  6. chore(deps): update dependency @netlify/serverless-functions-api to ^…

    …1.36.0 (#2712)
    
    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    Co-authored-by: Mateusz Bocian <mrstork@users.noreply.github.com>
    renovate[bot] and mrstork authored Mar 27, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    99f0d18 View commit details
  7. chore(deps): update dependency netlify-cli to v19 (#2794)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Mar 27, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    ddf256a View commit details
  8. chore(deps): update netlify packages (#2795)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Mar 27, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    755dbd2 View commit details
  9. chore(deps): update dependency @netlify/edge-bundler to ^12.3.3 (#2792)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Mar 27, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    3e96cae View commit details
  10. chore(deps): update dependency prettier to v3.5.3 (#2796)

    * chore(deps): update dependency prettier to v3.5.3
    
    * chore: run prettier fix
    
    ---------
    
    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    Co-authored-by: Mateusz Bocian <mrstork@users.noreply.github.com>
    renovate[bot] and mrstork authored Mar 27, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    b5754f4 View commit details
  11. chore(deps): update dependency netlify-cli to ^19.1.4 (#2797)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Mar 27, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    67d6c7b View commit details

Commits on Mar 28, 2025

  1. perf: memoize blobs requests in the request scope (#2777)

    * test: add test case with multiple fetches for same resource and test asserting we only check blobs once per request for same key
    
    * refactor: create simplified key-value store interface to interact with blobs with common tracing pattern
    
    * refactor: create reusable helper to record warnings
    
    * perf: memoize blobs requests in the request scope
    
    * refactor: rename RequestSpecificInMemoryCache to RequestScopedInMemoryCache
    
    * refactor: modulurize blobs storage abstractions
    
    * chore: fix lint
    
    * refactor: move non-CacheHandler related types and utils from cache-types to blob-types module
    
    * fix: add missing implementation for isTagManifest and isHtmlBlob type guards
    
    * chore: drop use of noOpInMemoryCache
    
    ---------
    
    Co-authored-by: Mateusz Bocian <mrstork@users.noreply.github.com>
    pieh and mrstork authored Mar 28, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    a2881bf View commit details
  2. chore(deps): update dependency @netlify/functions to ^3.0.4 (#2791)

    * chore(deps): update dependency @netlify/functions to ^3.0.4
    
    * chore: remove FutureContext now that waitUntil type is defined
    
    ---------
    
    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    Co-authored-by: Mateusz Bocian <mrstork@users.noreply.github.com>
    Co-authored-by: Michal Piechowiak <misiek.piechowiak@gmail.com>
    3 people authored Mar 28, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    df76359 View commit details
  3. chore(deps-dev): bump vite from 5.4.6 to 5.4.15 (#2788)

    Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 5.4.6 to 5.4.15.
    - [Release notes](https://github.com/vitejs/vite/releases)
    - [Changelog](https://github.com/vitejs/vite/blob/v5.4.15/packages/vite/CHANGELOG.md)
    - [Commits](https://github.com/vitejs/vite/commits/v5.4.15/packages/vite)
    
    ---
    updated-dependencies:
    - dependency-name: vite
      dependency-type: indirect
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: Michal Piechowiak <misiek.piechowiak@gmail.com>
    dependabot[bot] and pieh authored Mar 28, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    6452d45 View commit details
  4. chore(deps): update netlify packages (#2798)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Mar 28, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    7752025 View commit details

Commits on Mar 31, 2025

  1. chore(deps): update dependency @fastly/http-compute-js to v1.1.5 (#2800)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Mar 31, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    d5e7c17 View commit details
  2. chore(deps): update dependency autoprefixer to v10.4.21 (#2802)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Mar 31, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    e39ef69 View commit details
  3. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    e27a73b View commit details
Showing with 10,687 additions and 11,024 deletions.
  1. +8 −0 .eslintrc.cjs
  2. +2 −8 .github/workflows/lint.yml
  3. +1 −1 .release-please-manifest.json
  4. +7 −0 CHANGELOG.md
  5. +22 −0 LICENSE
  6. +3 −2 e2e-report/app/globals.css
  7. +3,789 −4,215 e2e-report/package-lock.json
  8. +1 −1 e2e-report/package.json
  9. +6,036 −6,637 package-lock.json
  10. +11 −10 package.json
  11. +1 −1 src/build/content/static.ts
  12. +26 −6 src/run/config.ts
  13. +32 −65 src/run/handlers/cache.cts
  14. +15 −10 src/run/handlers/request-context.cts
  15. +1 −2 src/run/handlers/server.ts
  16. +13 −0 src/run/handlers/tracer.cts
  17. +12 −31 src/run/headers.ts
  18. +5 −12 src/run/next.cts
  19. 0 src/run/{ → storage}/regional-blob-store.cts
  20. +109 −0 src/run/storage/request-scoped-in-memory-cache.cts
  21. +68 −0 src/run/storage/storage.cts
  22. +205 −0 src/run/storage/storage.test.ts
  23. +32 −0 src/shared/blob-types.cts
  24. +27 −0 src/shared/blob-types.test.ts
  25. +2 −1 tests/e2e-skip-retry.json
  26. +16 −0 tests/e2e/edge-middleware.test.ts
  27. +7 −0 tests/fixtures/middleware-subrequest-vuln/app/[[...wildcard]]/page.js
  28. +12 −0 tests/fixtures/middleware-subrequest-vuln/app/layout.js
  29. +13 −0 tests/fixtures/middleware-subrequest-vuln/middleware.ts
  30. +9 −0 tests/fixtures/middleware-subrequest-vuln/next.config.js
  31. +20 −0 tests/fixtures/middleware-subrequest-vuln/package.json
  32. +47 −0 tests/fixtures/revalidate-fetch/app/same-fetch-multiple-times/[id]/page.js
  33. +3 −3 tests/fixtures/turborepo-npm/apps/docs/app/globals.css
  34. +2 −1 tests/fixtures/turborepo-npm/apps/docs/app/page.module.css
  35. +3 −3 tests/fixtures/turborepo-npm/apps/web/app/globals.css
  36. +2 −1 tests/fixtures/turborepo-npm/apps/web/app/page.module.css
  37. +3 −3 tests/fixtures/turborepo/apps/docs/app/globals.css
  38. +2 −1 tests/fixtures/turborepo/apps/docs/app/page.module.css
  39. +3 −3 tests/fixtures/turborepo/apps/web/app/globals.css
  40. +2 −1 tests/fixtures/turborepo/apps/web/app/page.module.css
  41. +93 −1 tests/integration/fetch-handler.test.ts
  42. +16 −3 tests/test-config.json
  43. +1 −0 tests/utils/create-e2e-fixture.ts
  44. +5 −2 tools/build.js
8 changes: 8 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -72,6 +72,14 @@ module.exports = {
message: 'Please use `getTracer()` from `./handlers/tracer.cjs` instead',
},
],
patterns: [
{
// only */storage/storage.cjs is allowed to be imported
// rest are implementation details that should not be used directly
group: ['*/storage/*', '!*/storage/storage.cjs'],
message: 'Import public `[...]/storage/storage.cjs` module instead.',
},
],
},
],
},
10 changes: 2 additions & 8 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -23,14 +23,8 @@ jobs:
cache: 'npm'
cache-dependency-path: '**/package-lock.json'
- run: npm ci
- name: Prettify code
uses: creyD/prettier_action@v4.3
with:
prettier_options: --write .
only_changed: true
commit_message: 'chore: format with prettier'
clean_node_folder: false

- name: Check Format
run: npm run format:check
- name: Lint
# github adds inline annotation for compact or stylish format
# which is different than our default for local usage
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "5.10.1"
".": "5.10.2"
}
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## [5.10.2](https://github.com/opennextjs/opennextjs-netlify/compare/v5.10.1...v5.10.2) (2025-03-31)


### Performance Improvements

* memoize blobs requests in the request scope ([#2777](https://github.com/opennextjs/opennextjs-netlify/issues/2777)) ([a2881bf](https://github.com/opennextjs/opennextjs-netlify/commit/a2881bff4d0ebac18126924ce2fadbe36832983a))

## [5.10.1](https://github.com/opennextjs/opennextjs-netlify/compare/v5.10.0...v5.10.1) (2025-03-17)


22 changes: 22 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
Copyright (c) 2023 Netlify <team@netlify.com>

MIT License

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
5 changes: 3 additions & 2 deletions e2e-report/app/globals.css
Original file line number Diff line number Diff line change
@@ -6,8 +6,9 @@
@font-face {
font-family: Mulish;
src: url(/MulishVar-latin.woff2) format('woff2');
unicode-range: U+5, U+20, U+21, U+24, U+25, U+26, U+27, U+2B-2E, U+30-3A, U+3F, U+41-5A, U+61-7A,
U+D7, U+2019, U+201C, U+201D;
unicode-range:
U+5, U+20, U+21, U+24, U+25, U+26, U+27, U+2B-2E, U+30-3A, U+3F, U+41-5A, U+61-7A, U+D7,
U+2019, U+201C, U+201D;
font-weight: 200 900;
font-display: swap;
}
Loading