Skip to content

Latest commit

 

History

History
1289 lines (707 loc) · 79.1 KB

CHANGELOG.md

File metadata and controls

1289 lines (707 loc) · 79.1 KB

Changelog

4.41.4 (2024-05-23)

Bug Fixes

4.41.3 (2023-12-08)

Bug Fixes

  • check type before using string-only method (#2393) (06f0e0c)

4.41.2 (2023-11-15)

Bug Fixes

  • deps: update dependency @netlify/ipx to ^1.4.6 (#2368) (f73cbc0)

4.41.1 (2023-10-19)

Bug Fixes

4.41.0 (2023-10-17)

Features

Bug Fixes

  • improve support for new requireHooks update (#2313) (e354b73)

4.40.2 (2023-10-02)

Bug Fixes

4.40.1 (2023-08-21)

Bug Fixes

  • improves support for __NEXT_PRIVATE_PREBUNDLED_REACT (#2236) (4261de7)
  • pass packagePath down to rsc edge manifest (#2269) (3517973)

4.40.0 (2023-08-14)

Features

4.39.4 (2023-08-10)

Bug Fixes

  • deps: update dependency @netlify/ipx to ^1.4.3 (#2256) (ffdf101)
  • don't ever execute middleware in lambda (#2249) (b9e87d1)

4.39.3 (2023-08-03)

Bug Fixes

  • deps: update dependency @netlify/ipx to ^1.4.2 (#2240) (b911230)

4.39.2 (2023-08-01)

Bug Fixes

  • ISR 404 pages should be cached ephemerally (#2233) (d7aad8a)

4.39.1 (2023-07-11)

Bug Fixes

  • use native path matching for prebundled react conditional (#2206) (ba036fb)

4.39.0 (2023-07-03)

Features

Bug Fixes

  • deps: update dependency pathe to ^0.3.0 (#2199) (87391e1)
  • edge cases for custom react module resolution (#2188) (6b527be)
  • preserve original path after middleware rewrite (#2177) (9c6ec9f)

4.38.1 (2023-06-22)

Bug Fixes

  • deps: update dependency @netlify/ipx to ^1.4.1 (#2167) (c295bc2)
  • optionally chain server functions when selecting react version (#2179) (e63fcf0)

4.38.0 (2023-06-16)

Features

  • provide display name for split api routes (#2155) (10250a0)

Bug Fixes

  • bundle dynamic API routes correctly with split-api-routes (#2154) (dc7c479)
  • ensure next-server patches only run on Netlify (#2117) (6bdaec1)
  • ensures compatibility with Next.js 13.4 (support for some features still en-route) (9f85472)
  • new ISR cache handling to resolve regression in 13.4 (#2165) (6817cc9)
  • strip domain from ipx edge functions path (#2098) (#2099) (c9ab983)
  • uses pre-bundled React modules for App Router paths (9f85472)

4.37.4 (2023-05-30)

Bug Fixes

  • pass only first language to next-server to match platform redirects support (#2138) (aca3dc6)

4.37.3 (2023-05-30)

Bug Fixes

4.37.2 (2023-05-22)

Bug Fixes

  • checks when Next.js' implementation of ResponseCookies._headers is undefined now (#2119) (f051e22)
  • don't deploy metadata files to CDN (#2104) (ba3a430)
  • guard split api routes behaviour by next version (#2125) (a8bb0e3)
  • resolve follow-redirects from runtime package, so it's available also in auto-installs (#2124) (49ada27)

4.37.1 (2023-05-17)

Bug Fixes

  • clientContext isn't available in background functions (#2121) (df0f6bc)
  • support named & default export for middleware in ntl dev (#2116) (b31f858)

4.37.0 (2023-05-15)

Features

  • split up API Routes + use .nft.json files to make builds fast (#2058) (d98efc1)

Bug Fixes

  • deps: update dependency @netlify/functions to ^1.5.0 (#2096) (2eba019)
  • deps: update dependency @netlify/functions to ^1.6.0 (#2107) (5ee2fce)
  • follow-up to split-api revalidate behaviour (#2113) (cce048a)
  • support api routes at index of folder (#2101) (cc9ed84)

4.36.1 (2023-05-08)

Bug Fixes

  • add shim for require('node:buffer') (#2050) (e007b08)
  • Legacy fallback env var (#2074) (aad9e5f)
  • make large lambda warning message more informative (#2057) (b4cb75b)
  • resolve next-server from next app directory and not from plugin (#2059) (38f34c7)
  • Respect pageExtensions config setting (#2073) (940cbbc)
  • update next to 13.3.0 & ensure compatibility (#2056) (75ed977)
  • workaround netlify-cli not matching prod (#2030) (fd29ea5)

4.36.0 (2023-04-24)

Features

Bug Fixes

  • default to target server, not serverless (#2060) (61c2458)

4.35.0 (2023-04-17)

Features

Bug Fixes

  • ensure appDir routes with null dataRoutes are not added to edge manifest for rsc-data (#2044) (2f31acb)
  • now data routes for dynamic routes filter even when null when creating the RSC data router (#2041) (5fa1435)
  • typo in comment (#2049) (447b7d4)

4.34.0 (2023-04-10)

Features

Bug Fixes

  • deps: update dependency @netlify/ipx to ^1.4.0 (#2031) (03f60bb)
  • routes with null data routes can be filtered now (#2018) (7c1673b)
  • support setting cookies from MiddlewareResponse (#2027) (a630ab4)

4.33.0 (2023-03-27)

Features

  • add generator meta data for framework generated Netlify Functions (#1999) (e5ddcd2)
  • refresh hooks api implementation (#1950) (fb93b54)

Bug Fixes

4.32.2 (2023-03-14)

Bug Fixes

  • make error message matching more generic (#1988) (cfc8e96)

4.32.1 (2023-03-13)

Bug Fixes

  • use the same id for importing and checking error (#1984) (62e2efe)

4.32.0 (2023-03-13)

Features

  • add multiple set-cookie headers in middleware (#1970) (32b31c6)

Bug Fixes

  • remove fs access which isn't available in edge functions (#1980) (6546641)

4.31.0 (2023-03-06)

Features

  • make edge image opt-in instead of opt-out (#1935) (7a63d2f)

4.30.4 (2023-02-06)

Bug Fixes

4.30.3 (2023-01-30)

Bug Fixes

4.30.2 (2023-01-24)

Bug Fixes

4.30.1 (2023-01-23)

Bug Fixes

  • added polyfill for process.env (#1889) (15af7c7)
  • correctly handle ISR for appDir pages (#1855) (f2a7cac)
  • correctly rewrite default locale ISR homepage to ODB handler (#1867) (14ad486)
  • getMaxAge is not used in APIHandlers (#1888) (d0343b8)
  • match edge runtime pages with optional trailing slash (#1892) (138b19d)
  • transform Regex named capture groups for Golang (#1809) (15790aa)

4.30.0 (2023-01-09)

Features

  • add Next 13 request header mutation to middleware (#1866) (5d60191)

Bug Fixes

  • deps: update dependency @netlify/functions to ^1.4.0 (#1869) (3960c31)
  • deps: update dependency @netlify/ipx to ^1.3.3 (#1868) (d75d0ff)
  • merge Middleware and API route response cookies (#1870) (878ddd7)
  • serve static files from basePath (#1850) (d4ff894)

4.29.4 (2022-12-19)

Bug Fixes

  • deps: update dependency @netlify/ipx to ^1.3.2 (#1833) (fb4d816)
  • support appDir (#1638) (a5b8047)
  • use static 404 for non-prerendered dynamic routes without fallback (#1795) (2aa02db)

4.29.3 (2022-12-05)

Bug Fixes

4.29.2 (2022-11-21)

Bug Fixes

  • add longitude, latitude, and timezone to RequestData.geo (#1777) (3f35549)
  • resolve all pages using nft (#1780) (267ff0b)

4.29.1 (2022-11-14)

Bug Fixes

4.29.0 (2022-11-11)

Features

4.28.7 (2022-11-11)

Bug Fixes

4.28.6 (2022-11-07)

Bug Fixes

  • exclude swc by default, and don't exclude sharp if included (#1745) (383c186)

4.28.5 (2022-11-07)

Bug Fixes

4.28.4 (2022-11-02)

Bug Fixes

  • only split extended routes to decrease build times (#1731) (1e6fb8c)

4.28.3 (2022-10-27)

Bug Fixes

4.28.2 (2022-10-26)

Bug Fixes

  • follow redirects when downloading a file from the CDN (#1719) (1d27a99)

4.28.1 (2022-10-25)

Bug Fixes

  • use process.env.URL when deploying to production (#1680) (4b08911)

4.28.0 (2022-10-25)

Features

4.27.3 (2022-10-19)

Bug Fixes

  • correctly handle matchers with lookaheads and i18n (#1693) (9d440ab)

4.27.2 (2022-10-19)

Bug Fixes

  • handle custom publish dir for api routes (#1697) (c24a520)

4.27.1 (2022-10-18)

Bug Fixes

  • gracefully handle missing static analysis tools (#1691) (34a039e)

4.27.0 (2022-10-17)

Features

  • split api routes into separate functions (#1495) (654c6de)

4.26.0 (2022-10-17)

Features

Bug Fixes

  • deps: update dependency @netlify/ipx to ^1.3.1 (#1686) (2b419a0)
  • prevent Next from defining duplicate global property in edge functions (#1682) (730df6b)

4.25.0 (2022-10-12)

Features

  • cache redirects for 60 seconds if no ttl provided (#1677) (23d8d3b)

4.24.3 (2022-10-06)

Bug Fixes

4.24.2 (2022-10-05)

Bug Fixes

4.24.1 (2022-10-05)

Bug Fixes

  • deps: update dependency @netlify/functions to ^1.3.0 (#1660) (4e7e2ae)
  • set undefined ODB 404 TTLs to 60 seconds (#1647) (029b497)

4.24.0 (2022-10-03)

Features

4.23.4 (2022-10-03)

Bug Fixes

4.23.3 (2022-09-28)

Bug Fixes

  • add missing data to middleware request object (#1634) (0c05726)

4.23.2 (2022-09-26)

Bug Fixes

  • check NEXT_DISABLE_NETLIFY_EDGE value rather than if truthy (#1603) (5cf8c52)
  • deps: update dependency @netlify/esbuild to v0.14.39 (#1623) (3dc7b23)

4.23.1 (2022-09-09)

Bug Fixes

4.23.0 (2022-09-09)

Features

  • add support for Next 12.3 middleware matchers (#1612) (fd88b98)

Bug Fixes

  • correct handling of edge dev utils (#1616) (62c135d)
  • deps: update dependency @netlify/ipx to ^1.2.5 (#1615) (362d5dd)
  • support non-prerendered dynamic routes with fallback false (#1541) (92a015c)

4.22.0 (2022-09-08)

Features

  • support updated remotePatterns configuration (#1607) (e7bed15)

4.21.3 (2022-09-08)

Bug Fixes

4.21.2 (2022-09-06)

Bug Fixes

4.21.1 (2022-08-31)

Bug Fixes

4.21.0 (2022-08-30)

Features

4.20.0 (2022-08-26)

Features

  • improve messaging on middleware detection (#1575) (73d6b8e)

4.19.0 (2022-08-25)

Features

4.18.1 (2022-08-25)

Bug Fixes

  • deps: update dependency @netlify/ipx to ^1.2.3 (#1571) (471ce8d)

4.18.0 (2022-08-22)

Features

Bug Fixes

  • check for middleware manifest before providing to Object.keys (#1559) (f500f51)
  • deps: update dependency @netlify/functions to ^1.1.0 (#1526) (8a98d72)
  • deps: update dependency @netlify/functions to ^1.2.0 (#1543) (81381eb)
  • deps: update dependency @netlify/ipx to ^1.2.1 (#1534) (086a703)
  • deps: update dependency @netlify/ipx to ^1.2.2 (#1544) (097e624)
  • ensure newly-created middleware works (#1558) (39f3b4b)
  • handle missing config base (#1555) (f69d9db)
  • use individual next/server deno imports (#1556) (0667662)

4.17.0 (2022-08-17)

Features

  • ✨ change over to next-runtime (#1540) (7ecf41d)
  • graph: populate graph token for ISR (#1525) (573b913)
  • skip run if @netlify/plugin-nextjs installed (#1536) (0b4cf8c)
  • support custom response headers on images served via IPX (#1515) (40cb8a9)

Bug Fixes

  • deps: update dependency @netlify/functions to ^1.1.0 (#1526) (8a98d72)
  • deps: update dependency @netlify/functions to ^1.2.0 (#1543) (81381eb)
  • deps: update dependency @netlify/ipx to ^1.2.1 (#1534) (086a703)
  • deps: update dependency @netlify/ipx to ^1.2.2 (#1544) (097e624)

4.16.0 (2022-08-15)

Features

Bug Fixes

  • deps: update dependency @netlify/functions to ^1.1.0 (#1526) (8a98d72)
  • deps: update dependency @netlify/ipx to ^1.2.1 (#1534) (086a703)

4.15.0 (2022-08-12)

Features

  • support custom response headers on images served via IPX (#1515) (40cb8a9)

4.14.2 (2022-08-11)

Bug Fixes

4.14.1 (2022-08-03)

Bug Fixes

  • replace netlify:edge identifier with full URL (#1500) (69327e6)

4.14.0 (2022-08-01)

Features

4.13.1 (2022-07-25)

Bug Fixes

4.13.0 (2022-07-21)

Features

Bug Fixes

4.12.2 (2022-07-13)

Bug Fixes

4.12.1 (2022-07-12)

Bug Fixes

4.12.0 (2022-07-12)

Features

  • get client IP from Context object rather than header (#1460) (30b6717)

4.11.2 (2022-07-12)

Bug Fixes

  • explicitly type image config in ipx edge function (#1457) (a96af92)

4.11.1 (2022-06-30)

Bug Fixes

  • deps: update dependency @netlify/ipx to ^1.1.3 (#1441) (9a72c0c)

4.11.0 (2022-06-30)

Features

  • use edge functions for content negotiation by default (#1438) (0bac0e0)

4.10.1 (2022-06-29)

Bug Fixes

4.10.0 (2022-06-29)

Features

4.9.3 (2022-06-24)

Bug Fixes

4.9.2 (2022-06-23)

Bug Fixes

4.9.1 (2022-06-14)

Bug Fixes

  • check for existence of experimental images (#1392) (db004fa)

4.9.0 (2022-06-14)

Features

  • add support for experimental image remotePatterns (#1375) (9095c82)

Bug Fixes

  • deps: update dependency @netlify/ipx to ^1.1.0 (#1377) (9ed5c38)
  • run edge middleware on data requests (#1382) (55755df)

4.8.0 (2022-06-06)

Features

4.7.1 (2022-05-25)

Bug Fixes

  • deps: update dependency @netlify/ipx to v1 (#1343) (4ab9ff4)
  • don't override user defined NEXTAUTH_URL (#1360) (9010da3)

4.7.0 (2022-05-02)

Features

  • Include basePath property in NEXTAUTH_URL when present in config (#1336) (346aad1)

4.6.0 (2022-04-28)

Features

4.5.0 (2022-04-26)

Features

  • ✨ add out-of-the-box support for NextAuth.js (#1309) (45c0978)

4.4.4 (2022-04-26)

Bug Fixes

4.4.3 (2022-04-25)

Bug Fixes

  • pass x-middleware-rewrite header to client (#1322) (ed17658)

4.4.2 (2022-04-19)

Bug Fixes

4.4.1 (2022-04-19)

Bug Fixes

4.4.0 (2022-04-19)

Features

Changelog

4.3.2 (2022-04-04)

Bug Fixes

  • 🐛 include terser bundle into netlify functions (#1295) (f29adf3)

4.3.1 (2022-03-28)

Bug Fixes

  • correctly find site root when using SSR with Nx (#1281) (3b26573)

4.3.0 (2022-03-23)

Features

Bug Fixes

  • deps: update dependency @vercel/node-bridge to v2.2.0 (#1246) (3637fff)

4.2.8 (2022-03-21)

Bug Fixes

4.2.7 (2022-02-18)

Bug Fixes

  • correctly cache when using next export (#1223) (a8030ca)
  • deps: update dependency @netlify/functions to ^0.11.1 (#1217) (e17892b)
  • deps: update dependency @netlify/functions to v1 (#1219) (af841cd)

4.2.6 (2022-02-14)

Bug Fixes

4.2.5 (2022-02-07)

Bug Fixes

4.2.4 (2022-02-03)

Bug Fixes

4.2.3 (2022-02-02)

Bug Fixes

  • don't use ODB for routes that match middleware (#1171) (bbcdfbd)

4.2.2 (2022-01-31)

Bug Fixes

  • deps: update dependency @netlify/ipx to ^0.0.9 (#1181) (2e55a9e)

4.2.1 (2022-01-24)

Bug Fixes

  • deps: update dependency @netlify/functions to ^0.11.0 (#1146) (4da630b)
  • deps: update dependency core-js to v3.20.3 (#1155) (043ad36)
  • provide hostname and port to server (#1149) (02053fd)

4.2.0 (2022-01-17)

Features

4.1.3 (2022-01-13)

Bug Fixes

  • handle routes-manifests without staticRoutes defined (#1120) (96f3ccb)

4.1.2 (2022-01-11)

Bug Fixes

  • add specific rewrites for all SSR routes (#1105) (6fd7bcc)
  • deps: update dependency core-js to v3.20.2 (#1095) (41966ca)

4.1.1 (2021-12-21)

Bug Fixes

  • fix bug that caused ISR pages to sometimes serve first built version (#1051) (62660b2)
  • force React to use production env (#1056) (eca0bee)

4.1.0 (2021-12-17)

Features

Bug Fixes

4.0.0 (2021-12-14)

This is a full rewrite of the Essential Next.js plugin, with a new architecture that gives greater compatibility and stability.

What's new

  • Full support for incremental static regeneration (ISR).
  • Full support for Next.js rewrites, redirects and headers.
  • Beta support for Next 12 Middleware
  • Faster builds and deploys. Instead of generating one function per route, there are just three functions per site and a much smaller list of rewrites.
  • Full support for Netlify's new persistent On-Demand Builders. Return fallback: "blocking" from getStaticPaths and your rendering will be deferred until the first page load, then persisted globally.
  • A new image server for next/image, built on Nuxt's ipx. This is a high-performance, framework-agnostic image server based on sharp. This implementation uses On-Demand Builders to persist transformed images globally. Improved source image caching reduces time-to-first-byte for new transforms.
  • Simplified configuration. You no longer need to set any Netlify-specific configuration options. For example, in a monorepo all you need to do is set publish to point to your .next directory and you can build the site in any way you like.
  • Removes requirement for the target to be set to serverless, which is deprecated in Next 12.
  • Bundling now uses Next.js's own node-file-trace, giving more predictable results and smaller uploads.

Breaking changes

The publish directory should point to the site's .next directory or distDir if set, rather than out as in previous versions of the plugin.

Migration guide

Change the publish directory to .next:

[build]
publish = ".next"

If you previously set these values, they're no longer needed and can be removed:

  • target: "serverless" in your next.config.js
  • distDir in your next.config.js
  • node_bundler = "esbuild" in netlify.toml
  • external_node_modules in netlify.toml

If you currently use redirects or rewrites on your site, see the Rewrites and Redirects guide for information on changes to how they are handled in this version.

If you want to use Next 12's beta Middleware feature, this will mostly work as expected but please read the docs on some caveats and workarounds that are currently needed.

4.0.0-rc.1 (2021-12-07)

Features

Bug Fixes

  • bypass preview for static files (#918) (ecb3cc8)
  • work around a bug that caused a full response to be sent for images, even if the etag matched
  • deps: update dependency @netlify/ipx to ^0.0.8 (#902) (25f375f)

4.0.0-rc.0 (2021-12-06)

Bug Fixes

  • copy public directory output instead of input when using Nx (#856) (d959f82)
  • correct root redirect when trailingSlash = false (#879) (3c6b10b)

4.0.0-beta.13 (2021-12-02)

Bug Fixes

  • correct handling of data route JSON files (#864) (adea889)
  • move locale detection to netlify redirects (#861) (964637b)

4.0.0-beta.12 (2021-11-30)

Features

Miscellaneous Chores

  • deps: update dependency @netlify/build to v19 (#840) (d927524)

4.0.0-beta.11 (2021-11-24)

Bug Fixes

4.0.0-beta.10 (2021-11-24)

Bug Fixes

  • replace node-fetch with builtin (#834) (6ff3100)
  • correct redirect priority and correctly handle ISR pages assets (#826) (6b61643)
  • deps: update dependency @netlify/functions to ^0.10.0 (#830) (3256839)
  • don't move files to the CDN if they match redirect/rewrite rules (#832) (9e3dd0e)

4.0.0-beta.9 (2021-11-19)

Bug Fixes

4.0.0-beta.8 (2021-11-19)

Features

  • don't move files to CDN if they match middleware (#812) (615c97a)
  • move static pages by default (#816) (12ce69e)

4.0.0-beta.7 (2021-11-17)

Features

Bug Fixes

  • deps: update dependency @netlify/functions to ^0.9.0 (#807) (3deec1d)
  • ensure path is encoded (#800) (b0f666e)
  • use forced catchall for preview mode (#793) (fd7130f)

Miscellaneous Chores

4.0.0-beta.6 (2021-11-08)

Bug Fixes

4.0.0-beta.5 (2021-11-03)

Bug Fixes

  • add missing middleware runtime file (#762) (83378b4)
  • deps: update dependency node-fetch to v2.6.6 (#758) (759915b)
  • don't force rewrite in preview mode (#761) (c88a504)

4.0.0-beta.4 (2021-10-27)

Bug Fixes

4.0.0-beta.3 (2021-10-26)

Features

  • support moving static pages out of function bundle (#728) (3da9c77)
  • warn if zip is too large, and log the largest files (#730) (9989c0a)

Bug Fixes

4.0.0-beta.2 (2021-10-19)

Features

  • Enable persistent builders by default (#716) (de07dc2)

Bug Fixes

4.0.0-beta.1 (2021-10-15)

Bug Fixes

Miscellaneous Chores

4.0.0-beta.0 (2021-10-15)

A complete rewrite of the Essential Next plugin. See the README for details and migration instructions