Socket
Socket
Sign inDemoInstall

madge

Package Overview
Dependencies
146
Maintainers
2
Versions
76
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 6.1.0 to 7.0.0

.github/workflows/nodejs.yml

4

bin/cli.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc