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 #227

Merged
merged 1 commit into from
Apr 27, 2020

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 requested a review from hugomrdias April 23, 2020 15:00
Copy link
Member

@hugomrdias hugomrdias left a comment

Choose a reason for hiding this comment

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

just a note, aegir now has a test helper with chai exports no need to create more chai utils in all the repos, chai deps can also be remove to reduce node_modules size

@achingbrain achingbrain merged commit 0122537 into master Apr 27, 2020
@achingbrain achingbrain deleted the feat/add-explict-config-methods branch April 27, 2020 16:20
@achingbrain achingbrain restored the feat/add-explict-config-methods branch April 30, 2020 14:10
@achingbrain achingbrain deleted the feat/add-explict-config-methods branch September 13, 2021 07:17
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