v4.0.0
Breaking
-
The config is now stored in
%APPDATA%
instead of%LOCALAPPDATA%
on Windows, which is more correct. There's unfortunately no automatic migration path. To continue using the old config location, runnpm i 'env-paths@^1.0.0'
and set thecwd
option:const Conf = require('conf'); const envPaths = require('env-paths'); const config = new Conf({ cwd: envPaths('<projectName>', {suffix: 'nodejs'}).config });
-
For TypeScript users only: Refactor TypeScript definition to CommonJS compatible export (#64) 277d70a
- You need to changeimport Conf from 'conf';
toimport Conf = require('conf');
Enhancements
- Add support for JSON schema (#58) 373afb9
- Fix path derivation logic (#62) bb26c4f