UNPKG

2.31 kBMarkdownView Raw
1# Changelog
2
3## 4.0.0
4
5- Licensing improvement: updated `parse-json` from `3.0.0` to `4.0.0`(see [sindresorhus/parse-json#12][parse-json-pr-12]).
6- Changed: error message format for `JSON` parse errors(see [#101][pr-101]). If you were relying on the format of JSON-parsing error messages, this will be a breaking change for you.
7- Changed: set default for `searchPath` as `process.cwd()` in `explorer.load`.
8
9## 3.1.0
10
11- Added: infer format based on filePath
12
13## 3.0.1
14
15- Fixed: memory leak due to bug in `require-from-string`.
16- Added: for JSON files, append position to end of error message.
17
18## 3.0.0
19
20- Removed: support for loading config path using the `--config` flag. cosmiconfig will not parse command line arguments. Your application can parse command line arguments and pass them to cosmiconfig.
21- Removed: `argv` config option.
22- Removed: support for Node versions < 4.
23- Added: `sync` option.
24- Fixed: Throw a clear error on getting empty config file.
25- Fixed: when a `options.configPath` is `package.json`, return the package prop, not the entire JSON file.
26
27## 2.2.2
28
29- Fixed: `options.configPath` and `--config` flag are respected.
30
31## 2.2.0, 2.2.1
32
33- 2.2.0 included a number of improvements but somehow broke stylelint. The changes were reverted in 2.2.1, to be restored later.
34
35## 2.1.3
36
37- Licensing improvement: switched from `json-parse-helpfulerror` to `parse-json`.
38
39## 2.1.2
40
41- Fixed: bug where an `ENOENT` error would be thrown is `searchPath` referenced a non-existent file.
42- Fixed: JSON parsing errors in Node v7.
43
44## 2.1.1
45
46- Fixed: swapped `graceful-fs` for regular `fs`, fixing a garbage collection problem.
47
48## 2.1.0
49
50- Added: Node 0.12 support.
51
52## 2.0.2
53
54- Fixed: Node version specified in `package.json`.
55
56## 2.0.1
57
58- Fixed: no more infinite loop in Windows.
59
60## 2.0.0
61
62- Changed: module now creates cosmiconfig instances with `load` methods (see README).
63- Added: caching (enabled by the change above).
64- Removed: support for Node versions <4.
65
66## 1.1.0
67
68- Add `rcExtensions` option.
69
70## 1.0.2
71
72- Fix handling of `require()`'s within JS module configs.
73
74## 1.0.1
75
76- Switch Promise implementation to pinkie-promise.
77
78## 1.0.0
79
80- Initial release.
81
82[parse-json-pr-12]: https://github.com/sindresorhus/parse-json/pull/12
83[pr-101]: https://github.com/davidtheclark/cosmiconfig/pull/101
84
\No newline at end of file