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

Remove snake_case client properties #314

Merged
merged 1 commit into from
Mar 10, 2023
Merged

Remove snake_case client properties #314

merged 1 commit into from
Mar 10, 2023

Conversation

Pimm
Copy link
Collaborator

@Pimm Pimm commented Mar 10, 2023

The snake case client properties (such as customers_payments) were renamed to dromedary case (such as customerPayments) a while ago. The first version to include this rename is 3.6.0, released on 10 February 2022.

The snake case naming doesn't fit in with the JavaScript ecosystem, and is even inconsistent with the rest of the library.

This commit removes the snake case aliases.

The change is breaking. The next release will be 4.0.0.

The snake case client properties (such as customers_payments) were renamed to dromedary case (such as customerPayments) a while ago. See #223 The first version to include this rename is 3.6.0, released on 10 February 2022. This commit removes the snake case aliases which were added for backwards compatibility.
Copy link
Collaborator

@dsempel dsempel left a comment

Choose a reason for hiding this comment

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

Lgtm

@Pimm Pimm merged commit 0711b0b into master Mar 10, 2023
@Pimm Pimm deleted the pimm/spring-cleaning branch March 10, 2023 14:05
Pimm added a commit that referenced this pull request Jul 9, 2024
We removed snake_case aliases for client properties here: #314. This commit re-introduces the aliases, this time unenumerable and non-existent in the TypeScript types.
Pimm added a commit that referenced this pull request Jul 9, 2024
We removed snake_case aliases for client properties here: #314. This commit re-introduces the aliases, this time unenumerable and non-existent in the TypeScript types.
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