Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename token::Interface/Client to TokenInterface/Client #1149

Merged
merged 2 commits into from
Nov 14, 2023

Conversation

leighmcculloch
Copy link
Member

@leighmcculloch leighmcculloch commented Nov 13, 2023

What

Rename token::Interface/Client to TokenInterface/Client.

Why

When I've used the token::Interface it ends up with less than readable code because I end up with this generic "Interface" identifier in my code. If other interfaces follow suit it gets even worse when implementing multiple interfaces.

The rename happens in a backwards compatible way. The types are reexported as their old names, and the old names are hidden from docs, and have deprecated notices. The deprecated notice informs a developer what they need to change to update to the change. The hidden doc is helpful for the upcoming release that will be a first release and would be odd to display deprecated fns in the docs given any fns were release candidates anyway and the deprecated notice is a courtesy and convenience.

@leighmcculloch leighmcculloch marked this pull request as ready for review November 13, 2023 21:00
@leighmcculloch leighmcculloch added this pull request to the merge queue Nov 14, 2023
Merged via the queue into main with commit d5d373d Nov 14, 2023
@leighmcculloch leighmcculloch deleted the plap-ikhwan branch November 14, 2023 02:43
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