Skip to content

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

Merged
kishore7snehil merged 1 commit into
masterfrom
fix/version-require-and-restclient-changelog
Aug 25, 2026
Merged

fix: require auth0/version so client construction works and correct rest-client changelog note#790
kishore7snehil merged 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

@rmad17 rmad17 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@kishore7snehil
kishore7snehil merged commit 7e61e1e into master Aug 25, 2026
8 checks passed
@kishore7snehil
kishore7snehil deleted the fix/version-require-and-restclient-changelog branch August 25, 2026 11:28
@kishore7snehil kishore7snehil mentioned this pull request Sep 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants