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

chore: release v11.0.0 #1767

Merged
merged 4 commits into from
Aug 28, 2023
Merged

chore: release v11.0.0 #1767

merged 4 commits into from
Aug 28, 2023

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Aug 28, 2023

v11.0.0 (2023-08-28)

⚠ BREAKING CHANGES

  • Removed support for Node 14.
  • Replaced ESM loader with import-in-the-middle to fix instrumentation firing for both CommonJS and ESM.
    • You must load both the ESM loader and agent as follows: node --experimental-loader newrelic/esm-loader.mjs -r newrelic path/to/app.js.
    • Removed config.esm.custom_instrumentation_entrypoint to register ESM instrumentation. You can now just call the newrelic.instrument* APIs but you must pass in an object and specify isEsm: true, See example.
  • Updated agent to use require-in-the-middle to register CommonJS instrumentation. You can no longer use onResolved hook to register custom instrumentation.
  • Updated the default context manager to be AsyncLocalContextManager.
  • Renamed shim.handleCATHeaders to shim.handleMqTracingHeaders.

Features

  • Added support for Node 20.
  • Renamed shim.handleCATHeaders to shim.handleMqTracingHeaders (#1735) (6788f9e)
    • If you have calls to shim.handleCATHeaders, the signature is identical and a function name change is only necessary.
    • Note: The agent will be removing CAT functionality in an upcoming release.
  • Updated the default context manager to be AsyncLocalContextManager (#1731) (25f2bd8)
    • To restore functionality of legacy context manager you can set config.feature_flag.legacy_context_manager to true or `NEW_RELIC_FEATURE_FLAG_LEGACY_CONTEXT_MANAGER=true
    • Please note this legacy context manager will be removed in future major releases. If you have any issues, please raise with New Relic support or on the issues of the agent.

Bug Fixes

  • Replaced esm loader with import-in-the-middle to fix instrumentation firing for both commonjs and esm (#1760) (4452354), closes 1646
    • Breaking Change: Updated ESM loader that now requires to use both a loader and -r.
      • node --experimental-loader newrelic/esm-loader.mjs -r newrelic path/to/app.js
    • Breaking Change: Removed config.esm.custom_instrumentation_entrypoint to register ESM instrumentation.
      • You can now just call the newrelic.instrument* APIs but you must pass in an object and specify isEsm: true.
  • Updated prisma instrumentation to parse prisma datamodel with internal package (#1765) (48079b3)

Code Refactoring

  • Updated agent to use require-in-the-middle to register CommonJS instrumentation (#1758) (d4b4f11)
    • Removed onResolved hook. If you're using custom instrumentation with an onResolved hook, you must update to use onRequire
    • You can no longer instrument files that are not within a node_module unless you provide an absolute path to the file when registering the instrumentation.
    • You cannot instrument both the base module and a sub module.

Miscellaneous Chores

  • Remove support for Node 14 (#1756) (0ff9912)
  • Updated the bundled packages to the latest @newrelic/superagent, @newrelic/aws-sdk, @newrelic/koa, @newrelic/native-metrics, and @newrelic/test-utilities (#1766) (8f6e15b)
  • Updated the aws-sdk external branch to be main now that the code is in there (#1761) (d34d0fe)

Tests

  • update smoke tests versioned matrix in CI to 16, 18, and 20. (#1762) (c82b517)

@bizob2828 bizob2828 marked this pull request as ready for review August 28, 2023 18:50
@mrickard mrickard self-assigned this Aug 28, 2023
NEWS.md Outdated Show resolved Hide resolved
NEWS.md Outdated Show resolved Hide resolved
Co-authored-by: Maurice Rickard <[email protected]>
@codecov
Copy link

codecov bot commented Aug 28, 2023

Codecov Report

Merging #1767 (cfbf332) into main (48079b3) will not change coverage.
Report is 1 commits behind head on main.
The diff coverage is n/a.

❗ Current head cfbf332 differs from pull request most recent head 9f6838a. Consider uploading reports for the commit 9f6838a to get more accurate results

@@           Coverage Diff           @@
##             main    #1767   +/-   ##
=======================================
  Coverage   96.83%   96.83%           
=======================================
  Files         198      198           
  Lines       38766    38766           
=======================================
  Hits        37539    37539           
  Misses       1227     1227           
Flag Coverage Δ
integration-tests-16.x 79.04% <ø> (-0.01%) ⬇️
integration-tests-18.x 79.05% <ø> (+0.01%) ⬆️
integration-tests-20.x 79.05% <ø> (ø)
unit-tests-16.x 91.39% <ø> (ø)
unit-tests-18.x 91.37% <ø> (ø)
unit-tests-20.x 91.37% <ø> (ø)
versioned-tests-16.x 75.56% <ø> (-0.07%) ⬇️
versioned-tests-18.x 75.56% <ø> (-0.08%) ⬇️
versioned-tests-20.x 75.57% <ø> (-0.07%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Transaction name multiplies when upgrading to v10 with ESM
2 participants