1 | # CHANGELOG
|
2 |
|
3 | ## v3.9.2 (June 16, 2020)
|
4 |
|
5 | * Updated dependencies to resolve TypeScript issues
|
6 |
|
7 | ## v3.9.1 (June 08, 2020)
|
8 |
|
9 | * Improved performance when reading TypeScript config (Thanks to @FauxFaux)
|
10 |
|
11 | ## v3.9.0 (May 07, 2020)
|
12 |
|
13 | * Better support for TypeScript >=3.8 “import type” (Thanks to @eelco)
|
14 |
|
15 | ## v3.8.0 (Mars 09, 2020)
|
16 |
|
17 | * Added `leaves` option to show modules that do not have dependencies (Thanks to @avahe-kellenberger)
|
18 |
|
19 | ## v3.7.0 (Jan 30, 2020)
|
20 |
|
21 | * Support package.json config (Thanks to @zekth)
|
22 |
|
23 | ## v3.6.0 (Nov 11, 2019)
|
24 |
|
25 | * Added support for TypeScript with mixed import syntax (Thanks to @codemonkey800)
|
26 |
|
27 | ## v3.5.1 (Nov 07, 2019)
|
28 |
|
29 | * Added funding to package.json
|
30 |
|
31 | ## v3.5.0 (Oct 28, 2019)
|
32 |
|
33 | * Reduce processing by excluding .git content (Thanks to @villelaitila)
|
34 |
|
35 | ## v3.4.4 (Feb 12, 2019)
|
36 |
|
37 | * Exclude test folder from npm registry (Thanks to @SethDavenport)
|
38 |
|
39 | ## v3.4.3 (Jan 17, 2019)
|
40 |
|
41 | * Updated the `dependency-tree` module to get rid of the eslint dependency
|
42 |
|
43 | ## v3.4.2 (Jan 10, 2019)
|
44 |
|
45 | * One more fix for missing eslint dependency
|
46 |
|
47 | ## v3.4.1 (Jan 10, 2019)
|
48 |
|
49 | * Fix peer dependency issue with typescript-eslint-parser causing error: Cannot find module 'eslint/lib/util/traverser'
|
50 |
|
51 | ## v3.4.0 (Jan 07, 2019)
|
52 |
|
53 | * Support .tsx files and specifying a tsconfig (Thanks to @BPScott and @mrjoelkemp)
|
54 |
|
55 | ## v3.3.0 (Oct 31, 2018)
|
56 |
|
57 | * Add --no-spinner option (Thanks to @joebowbeer)
|
58 |
|
59 | ## v3.2.0 (June 26, 2018)
|
60 |
|
61 | * Plot rounded boxes, prefer left to right by default (Thanks to @paulirish)
|
62 |
|
63 | ## v3.1.0 (May 22, 2018)
|
64 |
|
65 | * Fix performance issue when flattening the dependency tree (Thanks to @wjohnsto)
|
66 |
|
67 | ## v3.0.1 (Feb 05, 2018)
|
68 |
|
69 | * Fix issue with short CLI options not working properly
|
70 | * Upgraded deps
|
71 |
|
72 | ## v3.0.0 (Jan 01, 2018)
|
73 |
|
74 | * Upgraded `dependency-tree` to 6.0.0
|
75 |
|
76 | ## v2.2.0 (Aug 29, 2017)
|
77 |
|
78 | * Support for dynamic imports thanks to @mrjoelkemp and @gmathieu
|
79 |
|
80 | ## v2.1.0 (Aug 26, 2017)
|
81 |
|
82 | * Support for TypeScript thanks to @mrjoelkemp and @davidfirst
|
83 |
|
84 | ## v2.0.0 (July 15, 2017)
|
85 |
|
86 | * To prevent issues with corrupt dependency trees the file extension in filenames will now always be included. Note that this affect how `--depends` and `--exclude` match filenames.
|
87 | * Added `--orphans` to show modules that no one is depending on.
|
88 |
|
89 | ## v1.6.0 (Feb 8, 2017)
|
90 |
|
91 | * Don't traverses NPM modules anymore (only shallow include)
|
92 | * Option `--include-npm` added
|
93 | * Show CLI spinner with the currently processed file
|
94 | * Updated CLI output and colors
|
95 | * Added support for option `dependencyFilter`
|
96 | * Bug with —-stdin not working properly
|
97 |
|
98 | ## v1.5.0 (Jan 13, 2017)
|
99 |
|
100 | * Tweaked output colors and error messages
|
101 | * Support running —circular with —-warning
|
102 |
|
103 | ## v1.4.6 (Jan 9, 2017)
|
104 |
|
105 | * Updated output in circular dependency check to include file count and better colors.
|
106 |
|
107 | ## v1.4.5 (Jan 7, 2017)
|
108 |
|
109 | * Bug with circular dependency reported for `foo.js` > `foo.json` due to how file extensions are handled.
|
110 |
|
111 | ## v1.4.4 (Jan 4, 2017)
|
112 |
|
113 | * Better support for resolving paths using Webpack config.
|
114 | * Show number of skipped files.
|
115 |
|
116 | ## v1.4.3 (Oct 12, 2016)
|
117 |
|
118 | * Fixed bug with —-require-config and --webpack-config options in CLI not working.
|
119 |
|
120 | ## v1.4.2 (Oct 6, 2016)
|
121 |
|
122 | * Renamed `--show-skipped` to `--warning`.
|
123 |
|
124 | ## v1.4.1 (Oct 6, 2016)
|
125 |
|
126 | * Don't show warnings about skipped files by default (enable with --show-skipped).
|
127 |
|
128 | ## v1.4.0 (Oct 6, 2016)
|
129 |
|
130 | * Show skipped files that can't be resolved as warnings (can be disabled with --no-warning).
|
131 |
|
132 | ## v1.3.2 (Oct 3, 2016)
|
133 |
|
134 | * Support for [precinct](https://github.com/dependents/node-precinct) detective option `es6.mixedImports`.
|
135 |
|
136 | ## v1.3.1 (Oct 1, 2016)
|
137 |
|
138 | * Allow to pass options to [dependency-tree](https://github.com/dependents/node-dependency-tree) detectives (Thanks to [Fabio Crisci](https://github.com/piuccio)).
|
139 |
|
140 | ## v1.3.0 (Sep 6, 2016)
|
141 |
|
142 | * Big performance boost when running on large codebases.
|
143 |
|
144 | ## v1.2.0 (Sep 1, 2016)
|
145 |
|
146 | * Added option `--stdin` to be used for piping a predefined tree.
|
147 |
|
148 | ## v1.1.0 (Aug 23, 2016)
|
149 |
|
150 | * Support for setting custom GraphViz options with config `graphVizOptions`.
|
151 |
|
152 | ## v1.0.0 (Aug 19, 2016)
|
153 |
|
154 | After 4 years of adding features/fixes it started to be hard to maintain the project and fix some outstanding issues due to how madge was designed to work.
|
155 |
|
156 | So I decided it was high time for version 1.0 to be released and take the opportunity to do a major rewrite and reduce the size and responsibility of the project and delegate some work to [external libraries](https://github.com/mrjoelkemp/node-dependency-tree). This introduced many breaking changes. Here's the most important ones.
|
157 |
|
158 | **Added:**
|
159 |
|
160 | * Automatic module type detection thanks to [precinct](https://github.com/mrjoelkemp/node-precinct)
|
161 | * Determine image format based on file extension (SVG support)
|
162 | * Reading [config](README.md#configuration) from `.madgerc` (replaces `--config`)
|
163 | * Option `--webpack-config` for supporting aliased module paths
|
164 | * Option `--debug` for turning on debug output
|
165 |
|
166 | **Changed:**
|
167 |
|
168 | * Renamed many of the settings in the [config](README.md#configuration)
|
169 | * Option `--json` should now be used instead of `--output json`
|
170 | * The generation of the dependency tree is now delegated to the external module [dependency-tree](https://github.com/mrjoelkemp/node-dependency-tree)
|
171 | * Recurse into child dependencies to get a complete dependency tree of a file
|
172 | * NPM installed dependencies are now excluded by default
|
173 | * Node.js core modules are now excluded
|
174 | * The [API](README.md#api) is now using promises
|
175 |
|
176 | **Removed:**
|
177 |
|
178 | * Option `--format` since the format is now detected automatically from the file content
|
179 | * Option `--optimized` and `--main-require-module` since we no longer support RequireJS builds (r.js)
|
180 | * Option `--read`
|
181 | * Option `--find-nested-dependencies`
|
182 | * Option `--paths`
|
183 | * Option `--config`
|
184 | * Option `--output`
|
185 | * Option `--break-on-error`
|
186 | * CoffeeScript support
|
187 | * Event callbacks `onParseFile` and `onAddModule`
|
188 | * NPM shrinkwrap no longer used
|
189 |
|
190 | ## v0.6.0 (July 06, 2016)
|
191 |
|
192 | * Refactored Madge to use ES6 and now requires Node.js 4 to run.
|
193 |
|
194 | ## v0.5.5 (July 03, 2016)
|
195 |
|
196 | * Add note about Graphviz and Windows in README.
|
197 | * Fix matching absolute path in Windows (Thanks to nadejdashed).
|
198 | * Support for ES6 re-export syntax (Thanks to Oli Lalonde).
|
199 | * Support files with ES6 (Thanks to Joel Kemp).
|
200 | * Improve readme circular return object (Thanks to Way Of The Future).
|
201 |
|
202 | ## v0.5.4 (June 13, 2016)
|
203 |
|
204 | * Improved JSX and ES7 support (Thanks to Joel Kemp).
|
205 |
|
206 | ## v0.5.3 (November 25, 2015)
|
207 |
|
208 | * Correct regex on CommonJS parser to detect a core module (Thanks to Guillaume Gomez).
|
209 |
|
210 | ## v0.5.2 (October 16, 2015)
|
211 |
|
212 | * Updated dependency resolve to latest version.
|
213 |
|
214 | ## v0.5.1 (October 15, 2015)
|
215 |
|
216 | * Updated dependencies to newer versions (Thanks to Martin Kapp).
|
217 |
|
218 | ## v0.5.0 (April 2, 2015)
|
219 |
|
220 | * Added support for ES6 modules (Thanks to Marc Laval).
|
221 | * Added support for setting custom file extension name (Thanks to Marc Laval).
|
222 |
|
223 | ## v0.4.1 (December 19, 2014)
|
224 |
|
225 | * Fixed issues with absolute paths for modules IDs in Windows (all tests should now pass on Windows too).
|
226 |
|
227 | ## v0.4.0 (December 19, 2014)
|
228 |
|
229 | * Add support for JSX (React) and additional module paths (Thanks to Ben Lowery).
|
230 | * Fix for detecting presence of AMD or CommonJS modules (Thanks to Aaron Russ).
|
231 | * Now resolves the module IDs from the RequireJS paths-config properly (Thanks to russaa).
|
232 | * Added support for option findNestedDependencies to find nested dependencies in AMD modules.
|
233 |
|
234 | ## v0.3.5 (Septemper 22, 2014)
|
235 |
|
236 | * Fix issue with number of graph node lines increased with each render (Thanks to Colin H. Fredericks).
|
237 |
|
238 | ## v0.3.4 (Septemper 04, 2014)
|
239 |
|
240 | * Correctly detect circular dependencies when using path aliases in RequireJS config (Thanks to Nicolas Ramz).
|
241 |
|
242 | ## v0.3.3 (July 11, 2014)
|
243 |
|
244 | * Fixed bug with relative paths in AMD not handled properly when checking for cyclic dependencies.
|
245 |
|
246 | ## v0.3.2 (June 25, 2014)
|
247 |
|
248 | * Handle anonymous require() as entry in the RequireJS optimized file (Thanks to Benjamin Horsleben).
|
249 |
|
250 | ## v0.3.1 (June 03, 2014)
|
251 |
|
252 | * Apply exclude to RequireJS shim dependencies (Thanks to Michael White).
|
253 |
|
254 | ## v0.3.0 (May 25, 2014)
|
255 |
|
256 | * Added support for onParseFile and onAddModule options (Thanks to Brandon Selway).
|
257 | * Added JSON output option (Thanks to Drew Foehn).
|
258 | * Fix for optimized files including dependency information for excluded modules (Thanks to Drew Foehn). Fixes [issue](https://github.com/pahen/madge/issues/26).
|
259 |
|
260 | ## v0.2.0 (April 17, 2014)
|
261 |
|
262 | * Added support for including shim dependencies found in RequiredJS config (specify with option -R).
|
263 |
|
264 | ## v0.1.9 (February 17, 2014)
|
265 |
|
266 | * Ensure forward slashes are used in modules paths (Windows).
|
267 |
|
268 | ## v0.1.8 (January 27, 2014)
|
269 |
|
270 | * Added support for reading AMD dependencies from a r.js optimized file by using option -O.
|
271 |
|
272 | ## v0.1.7 (September 20, 2013)
|
273 |
|
274 | * Added missing fontsize option when generating images.
|
275 |
|
276 | ## v0.1.6 (September 04, 2013)
|
277 |
|
278 | * AMD plugins are now ignored as dependencies. Fixes [issue](https://github.com/pahen/grunt-madge/issues/1).
|
279 |
|
280 | ## v0.1.5 (September 04, 2013)
|
281 |
|
282 | * Fixed Windows [issue](https://github.com/pahen/madge/issues/17) when reading from standard input with --read.
|
283 |
|
284 | ## v0.1.4 (January 10, 2013)
|
285 |
|
286 | * Switched library for walking directory tree which should solve issues on [Windows](https://github.com/pahen/madge/issues/8).
|
287 |
|
288 | ## v0.1.3 (December 28, 2012)
|
289 |
|
290 | * Added proper exit code when running "madge --circular" so it can be used in build scripts.
|
291 |
|
292 | ## v0.1.2 (November 15, 2012)
|
293 |
|
294 | * Relative AMD module identifiers (if the first term is "." or "..") are now resolved.
|
295 |
|
296 | ## v0.1.1 (September 3, 2012)
|
297 |
|
298 | * Tweaked circular dependency path output.
|
299 |
|
300 | ## v0.1.0 (September 3, 2012)
|
301 |
|
302 | * Complete path in circular dependencies is now printed (and marked as red in image graphs).
|
303 |
|
304 | ## v0.0.5 (August 8, 2012)
|
305 |
|
306 | * Added support for CoffeeScript. Files with extension .coffee will automatically be compiled on-the-fly.
|
307 |
|
308 | ## v0.0.4 (August 17, 2012)
|
309 |
|
310 | * Fixed dependency issues with Node.js v0.8.
|
311 |
|
312 | ## v0.0.3 (July 01, 2012)
|
313 |
|
314 | * Added support for Node.js v0.8 and dropped support for lower versions.
|
315 |
|
316 | ## v0.0.2 (May 21, 2012)
|
317 |
|
318 | * Added ability to read config file and customize colors.
|
319 |
|
320 | ## v0.0.1 (May 20, 2012)
|
321 |
|
322 | * Initial release.
|