- fixed: updated dependencies
- fixed: restored support for Node 0.8. It turned out to be just an issue with npm and versions starting with '^'.
- changed: moved from Makefile to Gruntfile, since it was being quite
troublesome to work with
makein Windows environments. - dropped: official support for Node 0.8.
- fixed: tests now run without errors if NODE_ENV is not set.
- fixed: updated dependencies versions.
- fixed: functions passed as values are no longer executed regardless of the environment. Updated code and tests.
- fixed: cleaned up an unused variable.
- updated: CHANGELOG.md
- fixed: environment methods were not being created and tests were missing it. Fixed both code and tests.
Complete rewrite with significant changes to the API. First version published to the npm registry.
- add: license
- add: documentation in the README file;
- add:
e12e()for getting the current environment; - add:
e12e('env')for checking environment; - add:
e12e(['env1', 'env2', ...'envN'])for checking agains multiple environments; - add:
e12e('env', 'env value')ande12e('env', 'env value', 'other value')for getting a value for a specific environment; - add: accept array of environments when setting a value;
- removed: the
'other'parameter in an environment-value map is no longer used to set a fallback value. Now the signature for maps with a fallback value ise12e(map, fallback); - removed: the 2-param signature for production/staging-development/test was replaced by the previously described behavior;
- changed:
e12e.envis set whenevere12e.setup()is called. It no longer checksprocess.env.NODE_ENVeach time it's used;