Skip to content

feat: Update minimum OTP version to 24#156

Merged
kinyoklion merged 2 commits into
mainfrom
rlamb/update-shotgun
Aug 8, 2025
Merged

feat: Update minimum OTP version to 24#156
kinyoklion merged 2 commits into
mainfrom
rlamb/update-shotgun

Conversation

@kinyoklion

@kinyoklion kinyoklion commented Aug 8, 2025

Copy link
Copy Markdown
Member

BEGIN_COMMIT_OVERRIDE
feat: Update minimum OTP version to 24.
fix: Fix issue where sometimes a dropped stream would not reconnect.
END_COMMIT_OVERRIDE

In shotgun 1.1.0 a new feature was introduced which introduced a bug with the SSE connection. Where previously it would close its process in all cases where it disconnected, now it would not do that in some situations. This caused #155.

We contributed an update to shotgun to allow disabling the feature for async connections where you need to monitor the connection state. inaka/shotgun#203

This was released in shotgun 1.2.1.

This PR updates to 1.2.1 and uses the option to disable the reopen feature added in shotgun 1.1.0.
This PR also raises the minimum erlang version to 24. This is required to gun 2.2 which shotgun 1.2.0 and newer depends on. OTP doesn't have an official support timeline, but OTP 24 came out in 2021, so most people will likely be on 24 or greater especially when using elixir.

@kinyoklion kinyoklion changed the title fix: Update to shotgun 1.2.1 to resolve issue with reconnections. feat: Drop OTP 21 Aug 8, 2025
@kinyoklion kinyoklion changed the title feat: Drop OTP 21 feat: Update minimum OTP version to 24 Aug 8, 2025
@kinyoklion kinyoklion marked this pull request as ready for review August 8, 2025 16:18
@kinyoklion kinyoklion requested a review from a team as a code owner August 8, 2025 16:18
@kinyoklion kinyoklion merged commit 82f0e77 into main Aug 8, 2025
8 checks passed
@kinyoklion kinyoklion deleted the rlamb/update-shotgun branch August 8, 2025 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants