The Wire · Showcase
LIVEVIEW ASYNC CLEANUP FIX SHIPS ALONGSIDE RANGE OPTIMIZATIONS
By RepoJournal · Filed · About Elixir & Phoenix
Phoenix LiveView closes a critical async task test failure while Elixir cuts unnecessary abs calls from Range operations.
LiveViewTest now ensures async tasks exit gracefully [1], closing four related issues that caused test flakiness when tasks failed to terminate cleanly. This lands as the framework tightens CI coverage to the latest Elixir and OTP versions [2]. On the language side, Elixir removes redundant abs/1 calls from Range.size/1 and Range.disjoint?/2 [3], since Range normalization already guarantees non-negative values, adding coverage for edge cases like negative-step singletons [4]. The Kernel.binary_slice family also picks up formal specs [5], improving type safety for a widely-used API. Dependabot dependencies get refreshed: postcss jumps 8.5.13 to 8.5.23 [6], linkify-it patches a DoS in mailto: links [7], and monocart-reporter updates to 2.12.3 [8]. Calendar.strftime/3 fixes width calculations to handle edge cases correctly [9].
One email a day. Unsubscribe in one click.
Keep up with Elixir & Phoenix in about 3 minutes a day: what actually shipped — the commits, pull requests, releases, and security advisories that matter.
One email a day. Unsubscribe in one click. Read a past issue →
Action items
- → Pull LiveViewTest async fix into your test suite to eliminate flaky task cleanup failures phoenixframework/phoenix_live_view [plan]
- → Update postcss in your asset pipeline to 8.5.23 for source map security fix phoenixframework/phoenix [plan]
- → Review linkify-it bump for mailto: DoS fix if you parse user-supplied links phoenixframework/phoenix_live_view [monitor]
References
- [1] Ensure async tasks can exit gracefully in LiveViewTest ↗ phoenixframework/phoenix_live_view
- [2] add latest Elixir & OTP to CI (#6764) phoenixframework/phoenix
- [3] Remove redundant abs calls from Range (#15666) elixir-lang/elixir
- [4] Remove redundant abs calls from Range ↗ elixir-lang/elixir
- [5] Add specs to Kernel.binary_slice (#15667) elixir-lang/elixir
- [6] Bump postcss from 8.5.13 to 8.5.23 ↗ phoenixframework/phoenix
- [7] Bump linkify-it from 5.0.1 to 5.0.2 ↗ phoenixframework/phoenix_live_view
- [8] Bump nodemailer and monocart-reporter ↗ phoenixframework/phoenix_live_view
- [9] Fix Calendar.strftime/3 width calculations (#15665) elixir-lang/elixir