- In case a property is an object create a new instance of that object instead of using a POJO (#37)
- Fix a bug where non-ciphertext string values where set to null with setNullOnDecryptionFailure=true
- Breaking changes: options object for decryption changed: from
decryptionSecrets
todecryption
:secrets
,setNullOnDecryptionFailure
- Implement setNullOnDecryptionFailure flag
- Breaking changes: values are base64 encoded before being encrypted and base64 decoded after being decrypted. This way, when providing multiple keys, a correct decryption can be determined by checking whether the plaintext only contains charactesr from the base64 characterset.
- Export the
decrypt
method from the package so the consumer can test the correct functionality of encryption and decryption.
- Fixed error during packaging/ publishing which made the package unusable.
- Add the
decrypt
option for specifying decryption secrets that are used to decrypt configuration values that are provided encrypted.
- Fix wrong packing of npm package
- Add the
strictObjectStructureChecking
option
- Bugfix: remove the "is-plain-object" dependency and replace it with a simple object check as class instances should be treated as objects as well but are not "plain" objects
- Add example for a NestJS webserver using the ts-configurable package
- Update documentation
- Update documentation
- Additionally export IDecoratorOptions and IEnvOptions from package
- Change throwing "Error" to "TypeError"
- Update documentation
- Introduce CI tools (CircleCI, Greenkeeper, Codecov)