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

feat: adds .replace and .getAll methods to config #229

Merged

Conversation

achingbrain
Copy link
Member

The config .get/.set methods are overloaded to allow the user to
retrieve or replace the entire config. This is an error prone
approach that could end with the user invalidating their config when
they did not mean to.

The change here adds .replace and .getAll methods to allow the
user to be specific about their intentions and hopefully makes the
API slightly less of a foot-gun.

The config .get/.set methods are overloaded to allow the user to
retrieve or replace the entire config.  This is an error prone
approach that could end with the user invalidating their config when
they did not mean to.

The change here adds `.replace` and `.getAll` methods to allow the
user to be specific about their intentions and hopefully makes the
API slightly less of a foot-gun.
@achingbrain achingbrain force-pushed the feat/add-explict-config-methods-backport branch from 47af233 to c5c0e3a Compare April 30, 2020 14:19
@achingbrain
Copy link
Member Author

achingbrain commented Apr 30, 2020

This is a backport of #227 to the 1.x.x release.

@achingbrain achingbrain merged commit 1f4328f into release/v1.x.x Apr 30, 2020
@achingbrain achingbrain deleted the feat/add-explict-config-methods-backport branch April 30, 2020 14:27
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.

1 participant