- Added support for Node 22
- Added FAQs to assist with common issues with next.js instrumentation (#190) (9a44d17)
- updated FAQs and README with app router examples (#192) (ea20b76)
- Updated targets to include minimum agent version for compatibility repo (#189) (92bc602)
- Added missing quotation mark in faq docs (#202) (db92086)
- Added Node 22 to CI (#193) (4a449c8)
- Updated minimum versions of dev dependencies(#203) (e3b832c) (#204) (a81fd04)(#206) (31098b1)
- Enabled quiet mode for CI runs (#188) (b0b1c6a)
- Made pre-commit hook require dependency changes (#191) (d4e2a72)
- Removed
use_new_release
input from prepare release workflow (#186) (640500e) - removed changelog.json file (#185) (e5fa205)
- Added a shim to externalize all 3rd party libraries the Node.js agent instruments (#175) (127e3c0)
- Added a test suite for App Router. (#176) (e7bc0db)
- Updated instrumentation to construct spec objects at instrumentation.
- Fixed instrumentation to only pass in route parameters to be added to Next.js segments.
- Updated minimum version of agent to 11.12.0.
- Updated dev deps
follow-redirects
,@babel/traverse
to fix bugs and CVEs
-
Updated the module path to properly instrument Next.js with
require-in-the-middle
. -
Updated minimum version of peer dependency
newrelic
to>=11.0.0
to ensure the new path to Next.js server instrumentation will work. -
Updated the contributing docs.
-
Updated versioned test helper to handle [email protected] changes.
- BREAKING - Dropped support for Node 14.
- Added support for Node 20.
- Updated instrumentation to no longer record spans for middleware execution. Middleware instrumentation is now recorded only for Next.js 12.2.0-13.4.12.
- Updated instrumentation for api requests to properly extract the params and page.
- Updated CI to run against versions 16-20.
- Updated
semver
,word-wrap
,protobuf
,fast-xml-parser
, and@aws-sdk/client-lambda
to resolve CVEs.
-
Fixed Next.js
getServerSideProps
instrumentation to register viarenderToResponseWithComponents
instead ofrenderHTML
-
Updated README links to point to new forum link due to repolinter ruleset change
- Updated instrumentation to work in versions >= 13.3.1 as the methods we try to wrap no longer have setters.
-
BREAKING - Route (URL) parameters are now stored as
request.parameters.route.*
attributes on Transactions -
Updated README header image to latest OSS office required images
-
Bumped json5 from 2.2.1 to 2.2.3.
-
Added lockfile checks to CI workflow to prevent malicious changes
-
Added ability to capture code level metrics attributes for middleware,
getServerSideProps
functions, and API handlers.- This will require customers to use New Relic Node.js version >= 9.7.1.
- Please note that the integration with CodeStream is not finished. A future release of agent will enable code level metrics by default.
-
Updated versioned tests to include v13 of Next.js.
-
Updated newrelic peer dependency to be >= 8.14.0. This makes the hasToRemoveScriptWrapper property available for api.getBrowserTimingHeader.
Thanks for your contribution @siuvdlec!
-
Updated injecting browser agent snippet in both README and docs.
-
Updated example application to include the browser agent snippet and README to using example project.
-
Removed browser agent injection test from versioned tests
- BREAKING Removed support for Node 12.
The minimum supported version is now Node v14. For further information on our support policy, see: https://docs.newrelic.com/docs/agents/nodejs-agent/getting-started/compatibility-requirements-nodejs-agent.
-
Added support for Node 18.x
-
Updated sample app to use
http.get
instead offetch
to make subrequests to API to avoid async context propagation breakage in Node 18.
-
BREAKING: Fixed instrumentation to only support middleware in
>=12.2.0
of Next.js- Next.js has made middleware stable.
- All attempts in
@newrelic/next
to track middleware before 12.2.0 have been removed.
-
Added an additional path to register
next-server
when running a Next.js app with a standalone server. -
Updated dev-dependencies to clear security audit warnings.
-
Added support for middleware in > 12.1.1 of Next.js. The return of
getModuleContext
is now an async function. -
Fixed a few small documentation items.
- Initial release of the Node.js Next.js instrumentation.
- Transaction naming based on Next.js page or API route.
- Segment/Span capture for middleware, and getServerSideProps.
- Documentation around manually injecting the New Relic browser agent.
- Verified support on Next.js >= 12.0.9