Skip to content

Releases: krakenjs/confit

v3.0.0

12 Feb 17:40
Compare
Choose a tag to compare
  • Don't merge objects created from custom "Classes". The merge can fail or return unexpected results depending on the "Class" implementation.
  • Dependency updates
  • Removed babel dependency for compiling

Refer #74

v2.3.0

06 Jan 23:47
Compare
Choose a tag to compare
  • removes load-jsonic-sync, which was bringing in insecure version of uglify

2.2.1

18 Jul 18:55
Compare
Choose a tag to compare
  • FIX: load-jsonic-sync doesn't account for files specified without their file extension. The original intent was that people could use "require-like" syntax, which implies no file extension. The unit tests didn't cover that use case so this wasn't caught.

2.2.0

17 Jul 22:09
Compare
Choose a tag to compare
  • add feature for ignoring environment variables
  • Use load-jsonic-sync to load json with comments and report position and filename in error messages

support for an array of handlers

16 Feb 15:29
Compare
Choose a tag to compare

New feature: support an array of handlers. See

Fixes

environment property env makes config.get('env:env') undefined

fix test idempotency

Resolving import on load of config.json and env.json. Babel cleanup

16 Feb 15:16
Compare
Choose a tag to compare

Bundling up 2.0.1, 2.0.2, 2.0.3 releases here.

Please see:

v2.0.0

17 Mar 14:43
Compare
Choose a tag to compare

Breaking Changes

  1. The import shortstop handler is now resolved after the merging of config.json, [env].json, and before the other shortstop handlers are resolved.
    previously: import handler resolved only once, before the rest of the shortstop handlers.
    implementation 1, implementation 2, Issue, Pull Request

    New Behavior:
    { "main": "import:main.json" }                              // config/config.json
    { "key": "value", "otherKey": "otherValue" }                // config/main.json
    { "main": { "key": "devValue" } }                           // config/dev.json
    { "main": { "key": "devValue", "otherKey": "otherValue" } } // result
  2. Source priority, from highest to lowest (higher overrides lower), is now: command line arguments, environment variables, [env].json, config.json, convenience (environment normalization and env:* keys).
    previously: source priority order, from highest to lowest, was [env].json, config.json, convenience, environment variables, command line arguments.
    Implementation, Pull Request

    New Behavior:
    // config/config.json
    { "KEY": "fromConfig", "OTHER_KEY": "fromConfig", "THIRD_KEY": "fromConfig" }
    OTHER_KEY=fromEnv THIRD_KEY=fromEnv node myApp.js --THIRD_KEY=fromArgv
    // result
    { "KEY": "fromConfig", "OTHER_KEY": "fromEnv", "THIRD_KEY": "fromArgv" }