2023-02-23 16:31:04 -05:00
|
|
|
# Changelog
|
|
|
|
|
|
|
|
All notable changes to this project will be documented in this file.
|
|
|
|
|
|
|
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
|
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
|
|
|
2023-07-11 22:25:53 -04:00
|
|
|
## [1.0.2] - 2023-07-11
|
|
|
|
|
|
|
|
### Fixed
|
|
|
|
* Fixed issue [#1](https://git.n64.cc/nosial/libs/config/-/issues/1) in Configuration->__construct() where the name of
|
|
|
|
an environment variable was being used instead of its value when determining the configuration file path. This
|
|
|
|
incorrect handling resulted in warnings about non-existent files and hindered the proper loading of configuration
|
|
|
|
files. With this fix, environment variables should now correctly guide the path to the desired configuration files,
|
|
|
|
improving the flexibility and functionality of the configuration library.
|
|
|
|
|
|
|
|
|
2023-07-11 14:37:39 -04:00
|
|
|
## [1.0.1] - 2023-07-11
|
2023-07-11 13:53:24 -04:00
|
|
|
|
2023-07-11 14:27:21 -04:00
|
|
|
### Changed
|
|
|
|
* Refactored codebase to be more maintainable, readable & more optimized
|
|
|
|
|
2023-07-11 13:53:42 -04:00
|
|
|
### Added
|
2023-07-11 13:55:57 -04:00
|
|
|
* ConfigurationLib will now attempt to load configuration files from Environment Variables if they are set, for example,
|
2023-07-11 13:53:24 -04:00
|
|
|
if `com.example.application` wants to load `ExampleConfiguration` it will first check if `CONFIGLIB_EXAMPLECONFIGURATION`
|
2023-07-11 13:55:57 -04:00
|
|
|
is set, and if so, load that file instead of going through the default process of loading the default configuration file.
|
|
|
|
If the file is not found, it will resort to its default behavior. You can either load an original json configuration
|
|
|
|
file which is usually located at `\var\ncc\data\net.nosial.configlib` as one of the .conf files, or you can load a yml
|
2023-07-11 14:15:38 -04:00
|
|
|
which is the same one you usually use to import or edit configurations. But the file extension must be either `.yml`
|
|
|
|
or `.yaml` if you want ConfigLib to load it as a yml file, otherwise by default it assumes it is a json file.
|
2023-07-11 13:53:24 -04:00
|
|
|
|
|
|
|
|
2023-02-23 16:31:04 -05:00
|
|
|
## [1.0.0] - 2023-02-23
|
|
|
|
|
|
|
|
### Added
|
2023-07-11 13:53:24 -04:00
|
|
|
* First Release
|