-
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 master 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.