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

Make parameter names in core APIs more consistent #52

Merged
merged 11 commits into from
Oct 16, 2024
Merged

Conversation

Firehed
Copy link
Contributor

@Firehed Firehed commented Oct 16, 2024

This replaces the name parameter during both registration (required) and authentication (optional) with username. This better reflects what the parameter actually represents, and helps disambiguate it from a display name.

In doing so, I've adjusted the calls to the backend during registration to omit this data completely, since only the upgrade parameter is used in practice. This keeps data filtering simpler.

Prior to a 1.0 tag, this retains support for the older name parameter at runtime only. TypeScript users will get an immediate type error but nothing will break if they ignore it; plain JS users will get no such warning and things will continue to work. I'll open follow-up tasks to remove it completely.

Fixes #48

@Firehed Firehed merged commit 991a226 into main Oct 16, 2024
1 check passed
@Firehed Firehed deleted the improve-param-names branch October 16, 2024 19:56
Firehed added a commit that referenced this pull request Oct 16, 2024
This reflects the parameter unification in #52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Standardize parameter names for clarity
1 participant