Skip to content

Releases: cfg4j/cfg4j

4.0.2 release

25 Aug 08:21
Compare
Choose a tag to compare

Fixes

  • #110 - unable to invoke hashCode method on bound configuration objects

4.0.1 release

15 Aug 06:34
Compare
Choose a tag to compare

Fixes

  • #107 - non-string values in YAML files are not recognized

4.0.0 release

08 Aug 06:37
Compare
Choose a tag to compare

New features

  • add YAML support
  • PeriodicalReloadStrategy now supports multiple providers (one extra thread instead of many)
  • new builders for configuration sources for easier construction
  • add toString() methods for better logging
  • cfg4j is now split into 3 modules:
    • cfg4j-core - contains core classes and configuration sources (Files, Classpath, Merge, Fallback, Empty)
    • cfg4j-consul - contains Consul configuration source
    • cfg4j-git - contains Git configuration source

Fixes

  • better logging messages

Interface changes

Renames & moves

  • EnvironmentBasedBranchResolver -> FirstTokenBranchResolver
  • EnvironmentBasedPathResolver -> AllButFirstTokenPathResolver
  • Refreshable -> Reloadable
  • RefreshStrategy -> ReloadStrategy
  • OnInitRefreshStrategy -> ImmediateReloadStrategy
  • PeriodicalRefreshStrategy -> PeriodicalReloadStrategy
  • rename package: refresh -> reload
  • reorganized org.cfg4j.source package

Changes

  • ConfigFilesProvider.getConfigFiles() returns Iterable instead of Iterable
  • GitConfigurationSource now throws IllegalStateException and SourceCommunicationException instead of GitConfigurationSourceException

Removals

  • removed deprecated ConfigurationSource.getConfiguration()
  • removed deprecated PeriodicalRefreshStrategy(long refreshAfterMs) constructor
  • removed ConfigurationProviders class
  • removed ConfigurationProvider.getProperty(String key)

Other

  • upgraded dependencies

3.3.2 release

28 Jun 22:01
Compare
Choose a tag to compare

Fixes

  • Get rid of JCenter repository dependency by upgrading dependencies

3.3.1 release

19 Jun 05:03
Compare
Choose a tag to compare

Fixes

  • Classpath source could fail with MissingEnvironmentException when run inside a web container

3.3.0 release

16 Jun 09:15
Compare
Choose a tag to compare

New features

  • new source backed by classpath files (see ClasspathConfigurationSource)

Fixes

  • support malformed configuration files in the following sources: files, git

Other

  • upgrade dependencies
  • javadoc improvements

3.2.0 release

15 Jun 00:51
Compare
Choose a tag to compare

New features

  • new source backed by regular files (see FilesConfigurationSource)
  • support merge configurations (see MergeConfigurationSource)
  • support fallback to other source when selected source fails (see FallbackConfigurationSource)
  • allow to specify *time unit when constructing PeriodicalRefreshStrategy
  • remove direct dependency on Guava

Fixes

  • Use provided source environment when calling SimpleConfigurationProvider.getProperty() and SimpleConfigurationProvider.bind() - #64 #62 - thanks @pimlock

Interface changes

  • deprecate ConfigurationSource.getConfiguration()

3.1.0 release

11 Jun 08:10
Compare
Choose a tag to compare

New features

  • new source: Consul
  • Git source changes:
    • support multiple configuration files (e.g. for different contexts / features)

Other

  • demo applications

3.0.0 release

08 Jun 05:37
Compare
Choose a tag to compare

Interface changes

  • Rename project to cfg4j
  • Rename packages to org.cfg4j
  • Improve documentation

2.0.1 release

07 Jun 21:49
Compare
Choose a tag to compare

Fixes

  • Fix ConfigurationSource javadoc