- Updated to Apache 2.0 license.
- Bumped minimum peer dependency (and dev dependency) of newrelic (agent) to 6.11 for license matching.
- Added code of conduct file.
- Updated readme with more detail.
- Updated pull request template.
- Added issue templates for bugs and enhancements.
- Updated contributing guide.
- Migrated CI to GitHub Actions.
- Added copyright headers to all source files.
- Removed Coveralls integration.
- Added third party notices file and metadata for dependencies.
- Bumped minimum versions of tap, coveralls and semver.
- Added repository property to package.json.
- Limited koa-router and @koa/router tests to below versions with known naming issues (8.0.3+).
- Modified router-instrumentation.js to fully conform with linting rules.
-
add @koa/router instrumentation
Thanks to @zacanger for this contribution.
-
BREAKING Removed support for Node 6, 7, and 9.
The minimum supported version is now Node v8. 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 v12.
-
Bumps
tap
to latest major version.
-
koa-router
instrumentation now names transactions after the internalkoa-router
matched route. In the case of multiple matches, the last matched route that can serve requests is used. -
Added
allowedMethods
middleware coverage. -
Fixed issue where
koa
middleware instrumentation did not accurately tracknext
method. This could impact custom transaction naming and router framework naming, in certain situations.
- Bumped
@newrelic/test-utilities
dependency to v3.0.0.
-
Adds support for naming transactions without setting the
context.body
property. -
Added missing instrumentation hooks when module imported directly.
-
Upgraded dev dependencies.
-
Fixed coveralls link in readme to point at default branch.
-
Removed testing on Node 4 and 5 for Koa and dependent modules.
Koa versions that supported Node 4 and 5 had an open dependency on
debug
(e.g."debug": "*"
). The latest major version ofdebug
no longer works on Node <6 thus rendering these older versions of Koa unusable on Node <6 as well.
-
Upgraded
newrelic
peerDep semver to allow newest major version.Thanks @cesine for the PR!
-
Moved
methods
fromdevDependencies
todependencies
.This fixes an error caused by an oversight in the last release, which included
methods
used as a core dep.
-
Added support for the
koa-route
routing module.Transactions will now be correctly named when routing using the
koa-route
module. Huge thanks to @shumsky for the contribution!
-
Added check against
Koa.prototype
before instrumenting.This ensures that we aren't wrapping versions below 2.0, which would break once middleware are executed.
-
Updated instrumentation to hook into
context.response._body
instead ofcontext.body
.This ensures delegation is not overridden regardless of whether users define the body directly on
ctx
, or onctx.response
. Thanks @qventura for the investigation! modules.