Skip to content

fix: require auth0/version so client construction works and correct rest-client changelog note - #790

Open
kishore7snehil wants to merge 1 commit into
masterfrom
fix/version-require-and-restclient-changelog
Open

fix: require auth0/version so client construction works and correct rest-client changelog note#790
kishore7snehil wants to merge 1 commit into
masterfrom
fix/version-require-and-restclient-changelog

Conversation

@kishore7snehil

Copy link
Copy Markdown
Contributor

Changes

Two fixes reported against v6.

  • lib/auth0/mixins/headers.rb now requires auth0/version before referencing Auth0::VERSION. The telemetry header is built during every client construction (Initializer#initialize -> client_headers -> telemetry), and the gem entrypoint never loaded the version file, so a plain require "auth0" followed by Auth0::Client.new(...) raised NameError: uninitialized constant Auth0::VERSION. The require lives in headers.rb (a .fernignore-protected file) so it survives Fern regeneration.
  • Corrected the v6 changelog note that claimed the rest-client dependency was removed. Only the Management API client moved to net/http. The Authentication API still uses rest-client, and it remains a declared dependency in the gemspec.

References

Testing

  • This change adds unit test coverage
  • This change adds integration test coverage
  • This change has been tested on the latest version of Ruby

Checklist

…est-client changelog note

Require auth0/version in headers.rb before referencing Auth0::VERSION, so
a plain require "auth0" followed by Auth0::Client.new no longer raises
NameError. Correct the v6 changelog note: only the Management API client
moved to net/http, the Authentication API still uses rest-client.
@kishore7snehil
kishore7snehil requested a review from a team as a code owner August 20, 2026 04:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant