Skip to content
This repository has been archived by the owner on Aug 29, 2018. It is now read-only.

implement node-config #27

Merged
merged 1 commit into from
Oct 22, 2016
Merged

implement node-config #27

merged 1 commit into from
Oct 22, 2016

Conversation

kc-dot-io
Copy link
Contributor

@kc-dot-io kc-dot-io commented Oct 19, 2016

overview

This is a mostly backwards compatible implementation of node-config.

It closes #25 and should be able to merge separately from #26 if we think we want to release it without all the other goodies described in that epic.

change log

  • constructor arguments will no longer set path, folder or disable deep assignment
  • custom configs are now set the node-config way using NODE_CONFIG_DIR and NODE_ENV
  • you can now override your configuration with with cli arguments as well
  • you can call the configuration() constructor directly to get the full config object

release

Since there is still a pretty major breaking API change within the constructor I think we should release this as 0.4 or 1.0 in Auk and then release #26 as next stable during Buzzard.

@kc-dot-io kc-dot-io modified the milestone: 2.0 Oct 19, 2016
@kc-dot-io kc-dot-io self-assigned this Oct 19, 2016
@kc-dot-io kc-dot-io mentioned this pull request Oct 19, 2016
@kc-dot-io kc-dot-io force-pushed the node-config branch 3 times, most recently from 68bcfe6 to 879f067 Compare October 19, 2016 05:52
@ekryski
Copy link
Member

ekryski commented Oct 19, 2016

Looks good to me. @slajax can you maybe add what the old signature used to be vs. the new signature (ie. better highlight the breaking changes).

I think we can release this as v0.4. Anything below < 1.0 that has breaking changes is fine to be a minor release. Since @daffl wrote all of this he should be the one to give the ship.

@kc-dot-io
Copy link
Contributor Author

Ah right on, good point. Yeah I'll make it v0.4 and update the readme to better highlight the change log like I did in the issue body. Agreed @daffl should review.

@daffl
Copy link
Member

daffl commented Oct 21, 2016

Looks great, thank you! I'll release it later today. We might want to update https://docs.feathersjs.com/configuration/readme.html as well.

@daffl daffl merged commit afb1618 into master Oct 22, 2016
@daffl daffl deleted the node-config branch October 22, 2016 21:55
@daffl daffl removed the in progress label Oct 22, 2016
@daffl
Copy link
Member

daffl commented Oct 22, 2016

Released in v0.4.0

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deprecate v1 in favour of node-config
3 participants