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

Bump newrelic from 10.6.2 to 11.0.0 #235

Merged
merged 1 commit into from
Aug 29, 2023

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Aug 29, 2023

Bumps newrelic from 10.6.2 to 11.0.0.

Release notes

Sourced from newrelic's releases.

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 an 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)

Support statement:

... (truncated)

Changelog

Sourced from newrelic's changelog.

{ "repository": "newrelic/node-newrelic", "entries": [ { "version": "11.0.0", "changes": { "security": [], "bugfixes": [ "Updated prisma instrumentation to parse prisma datamodel with internal package.", "Replaced ESM loader with import-in-the-middle to fix instrumentation firing for both CommonJS and ESM." ], "features": [ "Added support for Node 20", "Removed support for Node 14", "Updated the default context manager to be AsyncLocalContextManager.", "Renamed shim.handleCATHeaders to shim.handleMqTracingHeaders" ] } }, { "version": "10.6.2", "changes": { "security": [], "bugfixes": [ "added defensive code around JSON.parse in formatting pino log lines because pino can return invalid json" ], "features": [] } }, { "version": "10.6.1", "changes": { "security": [ "updated ESM loader to track instrumentation by url in a map instead of in url to avoid remote code execution." ], "bugfixes": [], "features": [] } }, { "version": "10.6.0", "changes": { "security": [], "bugfixes": [], "features": [] } }, { "version": "10.5.0", "changes": {

... (truncated)

Commits
  • 7d53728 chore: release v11.0.0 (#1767)
  • 8f6e15b chore: updated the bundled packages to the latest @​newrelic/superagent, @​newr...
  • 48079b3 fix: updated prisma instrumentation to parse prisma datamodel with internal p...
  • 25f2bd8 feat!: updated the default context manager to be AsyncLocalContextManager (#1...
  • c82b517 test: update smoke tests versioned matrix in CI to 16, 18, and 20. (#1762)
  • 0ff9912 chore!: Remove support for Node 14 (#1756)
  • d34d0fe chore: updated the aws-sdk external branch to be main now that the code is in...
  • 4452354 fix!: Replaced esm loader with import-in-the-middle to fix instrumentation fi...
  • d4b4f11 refactor!: Updated agent to use require-in-the-middle to register CommonJS in...
  • 6788f9e feat!: Renamed shim.handleCATHeaders to shim.handleMqTracingHeaders (#1735)
  • See full diff in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [newrelic](https://github.com/newrelic/node-newrelic) from 10.6.2 to 11.0.0.
- [Release notes](https://github.com/newrelic/node-newrelic/releases)
- [Changelog](https://github.com/newrelic/node-newrelic/blob/main/changelog.json)
- [Commits](newrelic/node-newrelic@v10.6.2...v11.0.0)

---
updated-dependencies:
- dependency-name: newrelic
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Aug 29, 2023
@eatyourgreens eatyourgreens merged commit 44a34ac into master Aug 29, 2023
4 checks passed
@eatyourgreens eatyourgreens deleted the dependabot/npm_and_yarn/newrelic-11.0.0 branch August 29, 2023 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant