Releases: cfg4j/cfg4j
Releases · cfg4j/cfg4j
4.0.2 release
Fixes
- #110 - unable to invoke hashCode method on bound configuration objects
4.0.1 release
Fixes
- #107 - non-string values in YAML files are not recognized
4.0.0 release
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
Fixes
- Get rid of JCenter repository dependency by upgrading dependencies
3.3.1 release
Fixes
- Classpath source could fail with MissingEnvironmentException when run inside a web container
3.3.0 release
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
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
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
Interface changes
- Rename project to cfg4j
- Rename packages to org.cfg4j
- Improve documentation
2.0.1 release
Fixes
- Fix ConfigurationSource javadoc