Skip to content

Commit bad44f7

Browse files
Upcoming Release Changes (#2641)
1 parent 6ede1c1 commit bad44f7

7 files changed

Lines changed: 22 additions & 33 deletions

File tree

.changeset/graphql-modules-2607-dependencies.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/graphql-modules-2626-dependencies.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/graphql-modules-2642-dependencies.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/late-cups-shave.md

Lines changed: 0 additions & 7 deletions
This file was deleted.

.changeset/quiet-zebras-tango.md

Lines changed: 0 additions & 7 deletions
This file was deleted.

packages/graphql-modules/CHANGELOG.md

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,26 @@
11
# graphql-modules
22

3+
## 3.1.2
4+
5+
### Patch Changes
6+
7+
- [#2607](https://github.com/graphql-hive/graphql-modules/pull/2607) [`3274c04`](https://github.com/graphql-hive/graphql-modules/commit/3274c0498771277f92f9e0f7a48e9a7aa162d642) Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates:
8+
- Updated dependency [`ramda@^0.31.0` ↗︎](https://www.npmjs.com/package/ramda/v/0.31.0) (from `^0.30.0`, in `dependencies`)
9+
10+
- [#2626](https://github.com/graphql-hive/graphql-modules/pull/2626) [`68c2cb4`](https://github.com/graphql-hive/graphql-modules/commit/68c2cb414b39849335de5dcc2460668cd7aefcc8) Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates:
11+
- Updated dependency [`@graphql-tools/wrap@^11.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/wrap/v/11.0.0) (from `^10.0.0`, in `dependencies`)
12+
13+
- [#2642](https://github.com/graphql-hive/graphql-modules/pull/2642) [`dac3288`](https://github.com/graphql-hive/graphql-modules/commit/dac3288316be44c32cea8042532c5f0d6d48dca9) Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates:
14+
- Updated dependency [`ramda@^0.32.0` ↗︎](https://www.npmjs.com/package/ramda/v/0.32.0) (from `^0.31.0`, in `dependencies`)
15+
16+
- [#2681](https://github.com/graphql-hive/graphql-modules/pull/2681) [`8ed0406`](https://github.com/graphql-hive/graphql-modules/commit/8ed0406fd16113321e9e5dfaece8426082517cad) Thanks [@dotansimha](https://github.com/dotansimha)! - Fix memory leak: per-operation `context` was retained forever when any long-lived async resource (a global `setTimeout`/`setInterval`, a telemetry exporter, undici's module-scoped timer, …) snapshotted the current `AsyncContextFrame` during execution. Since [nodejs/node#48528](https://github.com/nodejs/node/pull/48528), every async resource scheduled inside an `AsyncLocalStorage.run(...)` captures a `kAsyncContextFrame` snapshot, and the value stored in our internal `AsyncLocalStorage` was a pair of closures that captured `context` — so the snapshot pinned the entire operation context (potentially multiple MBs).
17+
18+
The fix routes every per-operation reference to `context` through a mutable holder (`refs.context` / `refs.appContext`). `sharedContext` (exposed as `env.context`) and the cached `CONTEXT` injector value are now getter-based views over `refs.context` instead of shallow spreads, so they hold no user data of their own. `ɵdestroy` only nulls the holder slots — public-facing identities (`env.context`, `ɵinjector`) stay intact and continue to work, but the heavy user payload becomes unreachable from the (still-pinned) closure scope.
19+
20+
- [#2681](https://github.com/graphql-hive/graphql-modules/pull/2681) [`8ed0406`](https://github.com/graphql-hive/graphql-modules/commit/8ed0406fd16113321e9e5dfaece8426082517cad) Thanks [@dotansimha](https://github.com/dotansimha)! - Fix `@ExecutionContext()` leaking across concurrent controller-backed operations: in `createExecution`/`createSubscription` the controller branch called `perform(options.controller)` directly, skipping `runWithContext`, so reads after an `await` fell through to the shared `appInjector` getter and resolved to the most recently created operation's context.
21+
22+
The controller now exposes its `runWithContext` as `ɵrunWithContext` and both execution paths wrap `perform` in it, giving controller-backed executions the same per-operation ALS isolation the non-controller path already had.
23+
324
## 3.1.1
425

526
### Patch Changes
@@ -25,7 +46,6 @@
2546
### Patch Changes
2647

2748
- [#2479](https://github.com/Urigo/graphql-modules/pull/2479) [`482499a`](https://github.com/Urigo/graphql-modules/commit/482499a6b288e716a519ef4068a8e74de1b2c45e) Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates:
28-
2949
- Updated dependency [`ramda@^0.30.0` ↗︎](https://www.npmjs.com/package/ramda/v/0.30.0) (from `^0.29.0`, in `dependencies`)
3050

3151
## 2.4.1
@@ -61,7 +81,6 @@
6181
### Patch Changes
6282

6383
- [#2338](https://github.com/Urigo/graphql-modules/pull/2338) [`4d9150f0`](https://github.com/Urigo/graphql-modules/commit/4d9150f0f46db32fe35259c74caabe6b36d8a13b) Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates:
64-
6584
- Updated dependency [`@graphql-tools/schema@^10.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/schema/v/10.0.0) (from `^9.0.0`, in `dependencies`)
6685
- Updated dependency [`@graphql-tools/wrap@^10.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/wrap/v/10.0.0) (from `^9.0.0`, in `dependencies`)
6786

@@ -79,7 +98,6 @@
7998
### Patch Changes
8099

81100
- [#2233](https://github.com/Urigo/graphql-modules/pull/2233) [`1d6b7fb7`](https://github.com/Urigo/graphql-modules/commit/1d6b7fb7a7c9021f4a052825a0951ab948ef684f) Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates:
82-
83101
- Updated dependency [`@graphql-tools/schema@^9.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/schema/v/^9.0.0) (was `^8.3.1`, in `dependencies`)
84102
- Updated dependency [`@graphql-tools/wrap@^9.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/wrap/v/^9.0.0) (was `^8.3.1`, in `dependencies`)
85103

packages/graphql-modules/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"repository": {
1212
"url": "https://github.com/graphql-hive/graphql-modules"
1313
},
14-
"version": "3.1.1",
14+
"version": "3.1.2",
1515
"author": "Kamil Kisiela",
1616
"license": "MIT",
1717
"sideEffects": false,

0 commit comments

Comments
 (0)