konf v0.22.0 Release Notes

Release Date: 2019-12-22 // over 4 years ago

    ๐Ÿ”‹ feature: support flatten env source (#41)

    If you have the following environment variables:

    DATABASE=foo.example.com DATABASE\_USER=john DATABASE\_PASS=doe
    

    You can load them without any name conversion by using config.from.env(nested=false):

    object Root : ConfigSpec("") { val DATABASE by required\<String\>() val DATABASE\_USER by required\<String\>() val DATABASE\_PASS by required\<String\>() }Config { addSpec(Root) }.from.env(nested=false)
    

    ๐Ÿ›  fix: support numeric keys in source

    Now you can use numeric keys in source (use YAML as example):

    tree: 1: myVal: true