You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: use release-please markers for version instead of Application.spec (#51)
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 <[email protected]>
0 commit comments