- Exposed loadJson() helper to load settings directly from a JSON object.
- Fixed issues trying to encrypt / decrypt null values.
- Improved extend() helper to avoid replacing existing properties with null values.
- Updated dependencies.
- The APP_ENV environment variable will be used instead of NODE_ENV, if there's one set.
- Updated dependencies.
- Updated dependencies.
- Updated dependencies.
- The doNotLoad instance option is now deprecated, you must always call setmeup.load() after instantiating the module.
- Code refactoring.
- Updated dependencies.
- Updated dependencies.
- Improved support for ESM based modules.
- Fixed regression bug on 1.8.0 (removed from NPM).
- Updated dependencies.
- Updated anyhow logger and other dependencies.
- Fixed regression bug with the utils.extend().
- Updated dependencies.
- Updated dependencies.
- Updated dependencies.
- Fixed remaining deprecated lodash references.
- Removed "lodash" dependency.
- Some bits of refactoring here and there.
- Updated dependencies.
- Updated dependencies.
- Updated dependencies.
- Updated dependencies.
- Updated dependencies.
- BREAKING! Settings will NOT be loaded by default now (doNotLoad option removed, please call load() manually).
- Make sure Anyhow's logging is set up.
- Further logging tweaks.
- NEW! readOnly flag to switch the module to read-only mode (will never write to disk).
- Auto set readOnly to true if file system is read only.
- Improved logging (if anyhow is also installed).
- Fixed exception when having unencrypted array mixed inside an encrypted settings file.
- Improved handling of the special settings.secret.json file.
- Check if anyhow is present for logging, otherwise does not log anything.
- NEW! Command line helper to encrypt / decrypt / print settings.
- NEW! Option "destroy" to delete settings file right after loading.
- NEW! File settings.secret.json added to default load(), and is always encrypted.
- BREAKING! Encrypted setting values are now prefixed with "enc-".
- Fixed bug that allowed re-encrypting settings multiple times.
- Updated dependencies.
- TypeScript types are now exported with the library.
- Renamed internal Crypto to CryptoHelper to avoid confusion with Node's crypto.
- Updated dependencies.
- Updated dependencies.
- BREAKING! The loadFromEnv() is not triggered automatically, now must be called manually.
- Updated dependencies.
- Allow changing the crypto cipher via SMU_CRYPTO_CIPHER env variable.
- Removed wrong warning when loading settings JSON to be decrypted.
- Improved encryption to work with arrays, will not consider booleans.
- BREAKING! You should decrypt existing encrypted settings prior to upgrading!
- Updated dependencies.
- Updated dependencies.
- Fixed "overwrite" behaviour on utils.extend().
- Changed order of load preference on getFilePath(), local path is now last.
- Fixed package dependencies.
- Make sure anyhow (logger) is set up on init.
- Calling reset() will deep clean instead of create new settings object.
- Loading from same filename in different locations now works properly.
- Updated dependencies.
- NEW! Load settings from environment variables.
- Added .once() as shortcut to .events.once().
- Updated dependencies.
- Initial release.