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

fix: Do not use getters and setters on public data object #26

Merged
merged 1 commit into from
Mar 23, 2021

Conversation

trygve-lie
Copy link
Contributor

Using gettersand setters have some downsides when using object spreading and for data objects returned from public APIs we want to be able to use object spreading as an end user expects it to work. Iow; remove setters and getters in favor of using properties defined on the object itself.

@trygve-lie trygve-lie requested a review from digitalsadhu March 23, 2021 09:54
@trygve-lie trygve-lie merged commit 0c55d59 into next Mar 23, 2021
@trygve-lie trygve-lie deleted the no-get-set branch March 23, 2021 10:21
@github-actions
Copy link

🎉 This PR is included in version 1.0.0-next.5 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions
Copy link

github-actions bot commented Aug 8, 2022

🎉 This PR is included in version 2.0.0-next.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

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.

2 participants