madge
Advanced tools
Comparing version 6.1.0 to 7.0.0
@@ -38,2 +38,3 @@ #!/usr/bin/env node | ||
.option('--no-spinner', 'disable progress spinner', false) | ||
.option('--no-count', 'disable circular dependencies counting', false) | ||
.option('--stdin', 'read predefined tree from STDIN', false) | ||
@@ -262,3 +263,4 @@ .option('--warning', 'show warnings about skipped files', false) | ||
output.circular(spinner, res, circular, { | ||
json: program.json | ||
json: program.json, | ||
printCount: program.count | ||
}); | ||
@@ -265,0 +267,0 @@ |
@@ -5,4 +5,20 @@ ### Changelog | ||
#### [v7.0.0](https://github.com/pahen/madge/compare/v6.1.0...v7.0.0) | ||
- devDeps: release-it@^15.6.0->^16.2.1 [`#393`](https://github.com/pahen/madge/pull/393) | ||
- ci: Run build & test scripts on GitHub Actions [`#394`](https://github.com/pahen/madge/pull/394) | ||
- chore: bump and align dependencies; dedupe typescript [`#379`](https://github.com/pahen/madge/pull/379) | ||
- Adding option to not print the circular file count [`#387`](https://github.com/pahen/madge/pull/387) | ||
- Update README, explaining to how ignore typed imports on .tsx files [`#389`](https://github.com/pahen/madge/pull/389) | ||
- docs: update README to include ignore dynamic imports FAQ [`#360`](https://github.com/pahen/madge/pull/360) | ||
- docs: fix donate anchor [`#362`](https://github.com/pahen/madge/pull/362) | ||
- Release 6.1.0 [`#378`](https://github.com/pahen/madge/pull/378) | ||
- chore: check in package-lock.json [`2137846`](https://github.com/pahen/madge/commit/2137846544697e3cdad9fb9d3599875f241dcb3d) | ||
- devDeps: release-it@^16.1.5->^16.2.1 [`1bcdc12`](https://github.com/pahen/madge/commit/1bcdc12093131b0a92fc9dc76a701cfccdf03867) | ||
- ci: add build/test workflow for GitHub Actions [`fa34634`](https://github.com/pahen/madge/commit/fa34634e06116572d606e6035f7402a7d276ab6e) | ||
#### [v6.1.0](https://github.com/pahen/madge/compare/v6.0.0...v6.1.0) | ||
> 4 June 2023 | ||
- constrain and bump typescript versions [`#376`](https://github.com/pahen/madge/pull/376) | ||
@@ -14,5 +30,5 @@ - Disable spinner when running in CI [`#356`](https://github.com/pahen/madge/pull/356) | ||
- Release 6.0.0 [`#352`](https://github.com/pahen/madge/pull/352) | ||
- Release 6.1.0 [`66bb0c3`](https://github.com/pahen/madge/commit/66bb0c30798b31557d239ca61b2a43ffa6f53fba) | ||
- install and use ci-info [`c35da47`](https://github.com/pahen/madge/commit/c35da472e7352340209f4537d020b2702f9e67e7) | ||
- remove ci-info and change isEnabled setting [`a771115`](https://github.com/pahen/madge/commit/a771115ce570c8ea8d4c3ca68300dcfa0b5759ea) | ||
- control no-spinner from env var [`3a7d544`](https://github.com/pahen/madge/commit/3a7d544fc19b0e23a5e106da969274950e7f7ebc) | ||
@@ -19,0 +35,0 @@ ### [v6.0.0](https://github.com/pahen/madge/compare/v5.0.2...v6.0.0) |
@@ -83,3 +83,5 @@ 'use strict'; | ||
circular.forEach((path, idx) => { | ||
process.stdout.write(chalk.dim(idx + 1 + ') ')); | ||
if (opts.printCount) { | ||
process.stdout.write(chalk.dim(idx + 1 + ') ')); | ||
} | ||
path.forEach((module, idx) => { | ||
@@ -86,0 +88,0 @@ if (idx) { |
{ | ||
"name": "madge", | ||
"version": "6.1.0", | ||
"version": "7.0.0", | ||
"author": "Patrik Henningsson <patrik.henningsson@gmail.com>", | ||
@@ -47,23 +47,14 @@ "repository": "git://github.com/pahen/madge", | ||
"dependencies": { | ||
"chalk": "^4.1.1", | ||
"chalk": "^4.1.2", | ||
"commander": "^7.2.0", | ||
"commondir": "^1.0.1", | ||
"debug": "^4.3.1", | ||
"dependency-tree": "^9.0.0", | ||
"detective-amd": "^4.0.1", | ||
"detective-cjs": "^4.0.0", | ||
"detective-es6": "^3.0.0", | ||
"detective-less": "^1.0.2", | ||
"detective-postcss": "^6.1.0", | ||
"detective-sass": "^4.0.1", | ||
"detective-scss": "^3.0.0", | ||
"detective-stylus": "^2.0.1", | ||
"detective-typescript": "^9.0.0", | ||
"debug": "^4.3.4", | ||
"dependency-tree": "^10.0.9", | ||
"ora": "^5.4.1", | ||
"pluralize": "^8.0.0", | ||
"precinct": "^8.1.0", | ||
"precinct": "^11.0.5", | ||
"pretty-ms": "^7.0.1", | ||
"rc": "^1.2.7", | ||
"rc": "^1.2.8", | ||
"stream-to-array": "^2.3.0", | ||
"ts-graphviz": "^1.5.0", | ||
"ts-graphviz": "^1.8.1", | ||
"walkdir": "^0.4.1" | ||
@@ -85,6 +76,6 @@ }, | ||
"mz": "^2.7.0", | ||
"release-it": "^15.6.0", | ||
"release-it": "^16.2.1", | ||
"should": "^13.2.3", | ||
"typescript": "^4.9.5" | ||
"typescript": "^5.0.4 <5.2" | ||
} | ||
} |
@@ -30,3 +30,3 @@ <p align="center"> | ||
> I've worked with Madge on my free time for the last couple of years and it's been a great experience. It started as an experiment but turned out to be a very useful tool for many developers. I have many ideas for the project and it would definitely be easier to dedicate more time to it with some [financial support](#donations) đ | ||
> I've worked with Madge on my free time for the last couple of years and it's been a great experience. It started as an experiment but turned out to be a very useful tool for many developers. I have many ideas for the project and it would definitely be easier to dedicate more time to it with some [financial support](#donations-%EF%B8%8F) đ | ||
> | ||
@@ -447,2 +447,21 @@ > Regardless of your contribution, thanks for your support! | ||
## How to ignore dynamic imports in Typescript? | ||
Put this in your madge config. | ||
```json | ||
{ | ||
"detectiveOptions": { | ||
"ts": { | ||
"skipAsyncImports": true | ||
}, | ||
"tsx": { | ||
"skipAsyncImports": true | ||
} | ||
} | ||
} | ||
``` | ||
Note: `tsx` is optional, use this when working with JSX. | ||
## Mixing TypesScript and Javascript imports? | ||
@@ -501,3 +520,3 @@ | ||
Thanks to the awesome people below for making donations! đ[[Donate](https://paypal.me/pahen)] | ||
Thanks to the awesome people below for making donations! đ[Donate](https://paypal.me/pahen) | ||
@@ -504,0 +523,0 @@ <p> |
@@ -55,4 +55,3 @@ /* eslint-env mocha */ | ||
configFilePath: undefined | ||
}, | ||
compileOnSave: undefined | ||
} | ||
}); | ||
@@ -59,0 +58,0 @@ done(); |
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
102114
14
132
1915
558
1
+ Added@dependents/detective-less@4.1.0(transitive)
+ Addedarray-union@2.1.0(transitive)
+ Addedast-module-types@5.0.0(transitive)
+ Addedcommander@10.0.1(transitive)
+ Addeddependency-tree@10.0.9(transitive)
+ Addeddetective-amd@5.0.2(transitive)
+ Addeddetective-cjs@5.0.1(transitive)
+ Addeddetective-es6@4.0.1(transitive)
+ Addeddetective-sass@5.0.3(transitive)
+ Addeddetective-scss@4.0.3(transitive)
+ Addeddetective-stylus@4.0.0(transitive)
+ Addeddetective-typescript@11.2.0(transitive)
+ Addedenhanced-resolve@5.16.0(transitive)
+ Addedfiling-cabinet@4.2.0(transitive)
+ Addedget-amd-module-type@5.0.1(transitive)
+ Addedjson5@2.2.3(transitive)
+ Addedlru-cache@6.0.0(transitive)
+ Addedmodule-definition@5.0.1(transitive)
+ Addedmodule-lookup-amd@8.0.5(transitive)
+ Addednode-source-walk@6.0.2(transitive)
+ Addedprecinct@11.0.5(transitive)
+ Addedresolve-dependency-path@3.0.2(transitive)
+ Addedsass-lookup@5.0.1(transitive)
+ Addedsemver@7.6.0(transitive)
+ Addedstylus-lookup@5.0.1(transitive)
+ Addedtsconfig-paths@4.2.0(transitive)
+ Addedyallist@4.0.0(transitive)
- Removeddetective-amd@^4.0.1
- Removeddetective-cjs@^4.0.0
- Removeddetective-es6@^3.0.0
- Removeddetective-less@^1.0.2
- Removeddetective-postcss@^6.1.0
- Removeddetective-sass@^4.0.1
- Removeddetective-scss@^3.0.0
- Removeddetective-stylus@^2.0.1
- Removeddetective-typescript@^9.0.0
- Removed@dependents/detective-less@3.0.2(transitive)
- Removed@types/json5@0.0.29(transitive)
- Removed@typescript-eslint/types@4.33.0(transitive)
- Removed@typescript-eslint/typescript-estree@4.33.0(transitive)
- Removed@typescript-eslint/visitor-keys@4.33.0(transitive)
- Removedast-module-types@2.7.13.0.04.0.0(transitive)
- Removedcommander@2.20.39.5.0(transitive)
- Removeddependency-tree@9.0.0(transitive)
- Removeddetective-amd@3.1.24.2.0(transitive)
- Removeddetective-cjs@3.1.34.1.0(transitive)
- Removeddetective-es6@2.2.23.0.1(transitive)
- Removeddetective-less@1.0.2(transitive)
- Removeddetective-postcss@4.0.0(transitive)
- Removeddetective-sass@3.0.24.1.3(transitive)
- Removeddetective-scss@2.0.23.1.1(transitive)
- Removeddetective-stylus@1.0.32.0.13.0.0(transitive)
- Removeddetective-typescript@7.0.29.1.1(transitive)
- Removedenhanced-resolve@5.16.1(transitive)
- Removedeslint-visitor-keys@2.1.0(transitive)
- Removedfiling-cabinet@3.3.1(transitive)
- Removedflatten@1.0.3(transitive)
- Removedget-amd-module-type@3.0.24.1.0(transitive)
- Removedindexes-of@1.0.1(transitive)
- Removedjson5@1.0.2(transitive)
- Removedmodule-definition@3.4.04.1.0(transitive)
- Removedmodule-lookup-amd@7.0.1(transitive)
- Removednode-source-walk@4.3.05.0.2(transitive)
- Removedpostcss-values-parser@2.0.1(transitive)
- Removedprecinct@8.3.19.2.1(transitive)
- Removedresolve-dependency-path@2.0.0(transitive)
- Removedsass-lookup@3.0.0(transitive)
- Removedsemver@7.6.2(transitive)
- Removedstylus-lookup@3.0.2(transitive)
- Removedtsconfig-paths@3.15.0(transitive)
- Removedtypescript@3.9.104.9.5(transitive)
- Removeduniq@1.0.1(transitive)
Updatedchalk@^4.1.2
Updateddebug@^4.3.4
Updateddependency-tree@^10.0.9
Updatedprecinct@^11.0.5
Updatedrc@^1.2.8
Updatedts-graphviz@^1.8.1