@envelop/newrelic
11.0.1 · 12 Nov 2026MIT47.8k / weekRepositoryHomepagenpmAtom feed
57 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.
- 11.x · latest line
11.0.1
12 Nov 2026Only updates dependencies:@envelop/core 6.0.1@envelop/on-resolve 8.0.1
11.0.0
22 Oct 2026- Breaking
#4574
79b0e8b
Thanks @egoodwinx! - ### Breaking Changes - Breaking
If you're on Node 18/20, upgrade to Node 22 or later before upgrading this package.
- Breaking
If you're on graphql 14/15, upgrade to graphql 16 or 17 first.
Major Changes
- Breaking
#4574
79b0e8b
Thanks @egoodwinx! - ### Breaking ChangesNode: minimum supported version is now Node 22. Node 18 and 20 are no longer supported.
Future releases will only support Node >=22.GraphQL: minimum supported version is now GraphQL 16. GraphQL 14 and 15 are no longer
supported.Request body parsing: Yoga now limits request bodies to 25,000,000 bytes by default.
Enforcing this limit streams the body through a byte counter, making POST body parsing
asynchronous even for an in-memory body. As a result,yoga.fetch()can return a Promise where
it previously returned a synchronous Response, even when all resolvers and plugins are
synchronous.
Migration
- Breaking
If you're on Node 18/20, upgrade to Node 22 or later before upgrading this package.
- Breaking
If you're on graphql 14/15, upgrade to graphql 16 or 17 first.
- Breaking
Await
yoga.fetch()and response body parsing instead of relying on synchronous results. SetmaxRequestBodySize: falseincreateYogato disable the body-size limit and preserve
synchronous parsing for in-memory bodies, but only if you enforce an appropriate request-body
limit elsewhere.
Minor Changes
#4575
862447a
Thanks @egoodwinx! - Use@graphql-hive/loggerand add correlated, per-request
logging (closes #4048)Every request now gets its own logger, available as
context.log(andserverContext.login
plugin hooks), tagged with arequestId. Everything logged while handling a request can be
correlated by that id.The request id is taken from the host integration if it already assigned one (e.g. Fastify's
request.id), otherwise from the incomingx-request-idheader, otherwise generated. It is also
sent back in thex-request-idresponse header. Configure it with the newrequestIdoption:createYoga({ requestId: { // don't trust the incoming header, recommended when clients can reach the server directly trustHeader: false, headerName: 'x-correlation-id', generateRequestId: () => myId() } })Pass
requestId: falseto disable it.At the
infolevel, a single "Request processed" line is logged per request with the method,
path, operation name and type, response status, error count and duration. At thedebuglevel,
more details about request processing are logged.Masked errors are now logged with the request's logger, so they can be traced back to the request
that caused them. CustommaskErrorfunctions receive the request's context as an optional fourth
argument.The
@envelop/newrelic,@envelop/auth0,@envelop/resource-limitations,@envelop/statsd,@envelop/graphql-jit,@envelop/response-cacheand@envelop/response-cache-cloudflare-kv
plugins accept a newlogoption for their own messages, instead of always writing to the
console.@envelop/response-cache'sshouldCacheResultnow also receives the GraphQLcontext.
Breaking Changes
- Breaking
The
@graphql-yoga/loggerpackage has been removed.graphql-yogare-exportsLogger,MemoryLogWriterandLogLevelfrom@graphql-hive/loggerinstead. - Breaking
createLoggerand theYogaLoggertype are no longer exported. Usenew Logger(options)
instead. - Breaking
The
loggingoption now takesboolean | Logger | LogLevel, whereLoggeris the one from@graphql-hive/logger. - Breaking
yoga.loggerhas been renamed toyoga.log. - Breaking
The
loggeroption ofuseGraphiQLanduseHealthCheckhas been removed. They now log through
the request's logger. - Breaking
@graphql-yoga/nestjsnow logs through Nest'sLoggerby default instead of not logging at
all. Passlogging: falseto keep the previous behaviour.logging: trueon Fastify no longer
logs through Fastify's logger, pass it explicitly instead (see below). - Breaking
@envelop/apollo-federation,@envelop/auth0,@envelop/graphql-jit,@envelop/newrelic,@envelop/resource-limitations,@envelop/response-cache,@envelop/response-cache-cloudflare-kvand@envelop/statsdnow have a peer dependency on@graphql-hive/loggerthat you must install. - Breaking
@envelop/apollo-federation'sloggeroption now expects aLoggerfrom@graphql-hive/loggerand defaults tonew Logger()instead ofconsole.
Migration
Create loggers with
Logger:- import { createLogger } from 'graphql-yoga'; + import { Logger } from 'graphql-yoga'; createYoga({ - logging: createLogger('debug'), + logging: new Logger({ level: 'debug' }), });Use
loginstead ofloggeron the Yoga instance:const plugin = { onYogaInit({ yoga }) { - yoga.logger.info('ready'); + yoga.log.info('ready'); }, };Prefer the request-scoped logger inside resolvers and plugin hooks so the logs carry the request
id:const resolvers = { Query: { hello: (_, __, context) => { context.log.debug('resolving hello') return 'world' } } }If you use any of the
@envelop/*plugins listed above, install the logger:npm i @graphql-hive/logger
If you depended on
@graphql-yoga/loggerdirectly, switch to@graphql-hive/logger:- import { Logger } from '@graphql-yoga/logger'; + import { Logger } from '@graphql-hive/logger';To keep logging through Fastify's logger in
@graphql-yoga/nestjs:import { Logger } from 'graphql-yoga' import { PinoLogWriter } from '@graphql-hive/logger/writers/pino' // in your yoga driver options logging: new Logger({ writers: [new PinoLogWriter(app.log)] })- 10.x
10.2.2
5 Oct 2026#4514
ec75be3
Thanks @beaumontjonathan! - Bump newrelic latest peer
dependency from 11 to 14
10.2.1
16 Sep 2026#4577
7bff35c
Thanks @egoodwinx! - Add homepage and bugs.url to package.json
files
@envelop/newrelic@10.2.1
Patch Changes
#4577
7bff35c
Thanks @egoodwinx! - Add homepage and bugs.url to package.json
files
10.2.0
19 Aug 2026Reading the note…
10.1.1
11 Feb 2026Reading the note…
10.1.0
20 Jan 2026Reading the note…
10.0.0
6 Nov 2025Reading the note…
- 9.x
9.0.0
20 Jun 2025Reading the note…
- 8.x
8.1.3
6 Mar 2025Reading the note…
8.1.2
6 Mar 2025Reading the note…
8.1.1
5 Mar 2025Reading the note…
8.1.0
4 Mar 2025Reading the note…
8.0.1
25 Feb 2025Reading the note…
8.0.0
19 Feb 2025Reading the note…
- 7.x
7.1.0
17 Oct 2023Reading the note…
7.0.0
16 Oct 2023Reading the note…
- 6.x
6.0.4
28 Sep 2023Reading the note…
6.0.3
27 Sep 2023Reading the note…
6.0.2
31 Aug 2023Reading the note…
6.0.1
22 Jun 2023Reading the note…
6.0.0
23 May 2023Reading the note…
- 5.x
5.0.6
20 Feb 2023Reading the note…
5.0.5
17 Feb 2023Reading the note…
5.0.4
24 Nov 2022Reading the note…
5.0.3
27 Oct 2022Reading the note…
5.0.2
17 Oct 2022Reading the note…
5.0.1
13 Oct 2022Reading the note…
5.0.0
12 Oct 2022Reading the note…
- 4.x
4.3.0
31 Aug 2022Reading the note…
4.2.0
16 Aug 2022Reading the note…
4.1.2
5 Aug 2022Reading the note…
4.1.1
28 Jul 2022Reading the note…
4.1.0
27 Jun 2022Reading the note…
4.0.2
4 Jun 2022Reading the note…
4.0.1
11 May 2022Reading the note…
4.0.0
9 Apr 2022Reading the note…
- 3.x
3.4.0
4 Apr 2022Reading the note…
3.3.0
31 Mar 2022Reading the note…
3.2.1
15 Mar 2022Reading the note…
3.2.0
8 Mar 2022Reading the note…
3.1.0
3 Mar 2022Reading the note…
3.0.0
2 Feb 2022Reading the note…
- 2.x
2.0.0
7 Jan 2022Reading the note…
- 1.x
1.3.0
7 Dec 2021Reading the note…
1.2.1
9 Nov 2021Reading the note…
1.2.0
3 Nov 2021Reading the note…
1.1.0
30 Oct 2021Reading the note…
1.0.3
22 Sep 2021Reading the note…
1.0.2
28 Jul 2021Reading the note…
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.