All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
Allowed Types of change: Added, Changed, Deprecated, Removed, Fixed, Security
- general updates
- remove SC_INSTANCE from parsed environment stages
- update prettier rules
- fix dot notation handling in toObject and update
- updated changelog github action
- OPS-1297 - Added Changelog github action
- load development.json by default if there is no NODE_ENV defined after default.json
- allow invalid configurations steps in printHierarchy
- add default NODE_ENV to configuration
- SC-6294 remove ts paths, fix build
- OPS-1289 change the npm organisation namen
- reflect plainSecrets option to be applied in toObject()
- do not print hierarchy implicitly by default on startup
- general bugfixes
- fix static imports again
- define secret matches in config options as string
- fix static import pathes
- general dependency updates
- add
passwordandsaltto secrets to be not printed - move secret expressions to configuration options
- fix non-relative imports to relative ones as they work in tests but not in the npm package
- print configuration hierarchy added, printing secrets disabled by default
- replace parsing NODE_ENV from env only, added env configuration hierarchy with options.loadFilesFromEnv
- cleanup eslint, fix support for markdown
- updated dependencies
- removed compatibility with node 8 due an update of mocha from version 7 to 8.
- add compatibility with node 14
- disable methods changing the config exept for test environment
- fix prettier/eslint
- fix fileEncoding type
- adding again parsing of default.json before NODE_ENV.json files. required attribute defaults have to be added here (json schema default is not working)
- added dependency ref support
- dependencies general updates of dependencies applied
- dependency/security updates
- use 'development' as default for NODE_ENV if not defined
- parsing a default.json as default has been removed and replaced by development.json, system defaults can be applied in the schema only
- dependency/security updates only
- fixed toObject() of config to return nested properties instead of with dot separator in the name (discussion for export option open).
- default export returns instance of configuration, options loaded from file optionally, manual init() is no more required for thew singleton access
- default node version updated to current 10.X
- cache final (dotted) config object
- return errors on set/get for invalid values
- debugging: register tsconfig-paths
- eslint: require tabs for indention and semi after statements
- coverage support using nyc mocha added
- improve test coverage
- Singleton import and initialization rewritten
- updated readme describing different imports using a sample
- Singleton getInstance() Method
- Singleton access to Configuration, public constructor is deprecated but enabled for tests
- Support for Dot-Notation and Nested Properties in Configuration for reading environment variables and using Configurations has, get and toObject
- File encoding added to configuration
- Different spelling issues rewritten