settler v1.0.0 Release Notes

Release Date: 2017-06-23 // almost 7 years ago
  • ๐Ÿ”„ Changelog:

    • ๐Ÿ‘ Allow extended traits to implement setting methods from their parents:

      trait Parent { def myNumber: Int}trait Child extends ParentSettler.settings[Child](/*...*/)// Will correctly implement the myNumber method.

    • ๐Ÿ‘ Allow lazy/eager loading of settings based on declaration:

      trait Settings { val eagerlyLoaded: Stringdef lazyLoaded: String}

    Format code using scalafmt

    โž• Add a config provider that uses environment variables:

    trait Aws { @Key(name = "AWS\_SECRET\_ACCESS\_KEY") def key: Stringdef awsSecretAccessKey: String}val s = Settler.settings[Aws](ConfigProvider.fromEnv()) println(s.key == s.awsSecretAccessKey)

Previous changes from v0.4.3