Skip to content

Conversation

@emyller
Copy link
Contributor

@emyller emyller commented Nov 7, 2025

Note

This work was authored by Claude (AI assistant) and supervised by @emyller.

This PR refactors the User-Agent version implementation to use release-please markers directly in the code, rather than reading from Application.spec at runtime.

Contributes to #49

…on.spec

Use x-release-please markers directly in the code to maintain a
pseudo-hardcoded version number, rather than reading from Application.spec
at runtime. This approach:

- Makes the implementation consistent across Flagsmith SDKs
- Relies solely on release-please for version management
- Keeps version visible in source code for easier debugging
- Simplifies the user_agent/0 function implementation

The version is now defined directly in lib/flagsmith_client.ex between
x-release-please markers, and release-please will automatically update
it during releases.

Also removed the redundant user_agent/0 unit test since the function now
simply returns a hardcoded string with no conditional logic. The HTTP
integration test sufficiently validates the User-Agent header behavior.

Co-authored-by: Claude <claude@anthropic.com>
@emyller emyller requested a review from a team as a code owner November 7, 2025 22:23
@emyller emyller requested review from khvn26 and removed request for a team November 7, 2025 22:23
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