effect@3.22.3

juanfont/headscaleeffect@3.22.3Oct 16, 2026by effect-bot

Upgrading?

AI Summary

Core library patch addressing memory management in LayerMap preloading and preventing hanging scenarios in Reloadable.auto.

Key Highlights

  • LayerMap preload references are released after acquisition to follow idle TTL.
  • Fixes Reloadable.auto hanging when its scope closes.
  • Prevents interrupted acquisition from failing scope closure in addFinalizer.

New Features

  • LayerMap TTL management
  • Scope closure reliability fixes

Full Release Notes

### Patch Changes

- [#8513](https://github.com/Effect-TS/effect/pull/8513) [`97d80c9`](https://github.com/Effect-TS/effect/commit/97d80c91fef755966ffd0adbfb00b3eb4ae7eace) Thanks @tim-smart! - Release LayerMap preload references after acquisition so entries follow their idle TTL instead of remaining pinned until map closure. Skip preloading when the idle TTL is zero (including the default). To keep preloaded entries for the lifetime of the map, set `idleTimeToLive: Infinity`.

- [#8612](https://github.com/Effect-TS/effect/pull/8612) [`e730f59`](https://github.com/Effect-TS/effect/commit/e730f59d29db5f1e312be6476a95d07bcad45788) Thanks @Marve10s! - Fix `Reloadable.auto` hanging when its scope closes.

- [#8271](https://github.com/Effect-TS/effect/pull/8271) [`05803bd`](https://github.com/Effect-TS/effect/commit/05803bd0219a71ea91d7e99e3d5a86b56f832c1c) Thanks @tim-smart! - Prevent interrupted acquisition from causing an uninterrupted scope closure to fail in `Effect.addFinalizer` and `Effect.acquireRelease`.

Related Repositories