Skip to content

Releases: carueda/tscfg

Bug fix release

04 Sep 02:53
Compare
Choose a tag to compare
  • Fixed #55 about strings with regexes not properly captured. This was a regression, alas, not sure when it was introduced. Thanks @Ankoul for reporting!
  • Along with this, also some unit tests re multiline strings and strings with control chars.

Given config now fully validated at wrapper construction

08 Aug 19:38
Compare
Choose a tag to compare

Resolves #49 (which also supersedes #36).

For both java and scala, in case of any missing or incompatible types in the given configuration, wrapper construction will now throw a com.typesafe.config.ConfigException with a summary of all the corresponding com.typesafe.config.ConfigException's collected as the constructor traverses the configuration.

Example of such a summary:

Invalid configuration:
    'service.poolSize': com.typesafe.config.ConfigException$Missing(No configuration setting found for key 'poolSize')
    'service.url': com.typesafe.config.ConfigException$Missing(No configuration setting found for key 'url')      
    'service.debug': com.typesafe.config.ConfigException$WrongType(String: 5: debug has type NUMBER rather than BOOLEAN)
    'service.doLog': com.typesafe.config.ConfigException$WrongType(String: 6: doLog has type STRING rather than BOOLEAN)
    'service.factor': com.typesafe.config.ConfigException$WrongType(String: 7: factor has type BOOLEAN rather than NUMBER)

(Note: command-line option --scala:fp is now obsolete, still accepted but ignored.)

New `--all-required` flag

25 Jul 17:59
4204db6
Compare
Choose a tag to compare

The new --all-required flag strictly forces all entries (even objects) to be required (even the @optional annotation is ignored). Thanks @abonander for the suggestion (#47).

new `--durations` flag

01 Feb 18:47
Compare
Choose a tag to compare

New --durations flag to generate java.time.Duration as base type for duration instead of long. Thanks @qux42!

new `--java:optionals` option

09 Jan 19:18
Compare
Choose a tag to compare

New --java:optionals option to generate Optional<T> for optional fields in java. Thanks @qux42 !

Bug fix release

20 Dec 18:20
Compare
Choose a tag to compare
  • String-to-bytes conversion results in compilation error - #40 (thanks @opensorceror)
  • Generate default config objects if non-existent - #33 (thanks @JustinPihony). Sorry! it seems the previously published v.0.9.4 didn't actually contain this. Anyway, it is now included in v.0.9.6.

Bug fix release

03 Aug 18:06
Compare
Choose a tag to compare

With option to generate getters for java

17 Feb 06:13
Compare
Choose a tag to compare

The new option is --java:getters.

See #31

Minor adjustments

12 Feb 16:42
Compare
Choose a tag to compare

fix typo and add some info regarding backticks for scala identifiers

implement #30 and other adjustments

12 Feb 07:05
Compare
Choose a tag to compare
  • resolve #30 "scala: option to use back ticks"

  • Adjustments regarding keys with $ and quoted strings:

    • key containing $ is left alone (even if it's quoted).
      This mainly due to Config restrictions on keys involving $
    • otherwise, the key is unquoted (if quoted of course)

    Although these changes might break backwards compatibility, it should have minimal impact given the expected relative infrequent use of these characters (quoted keys or keys containing $). In any case, tscfg is still 0.y.z so changes like these should be expected sometimes (but tscfg has tried to avoid/reduce breaking changes unless for good reasons.)