Blame view

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