Releases: sergei-startsev/deps-walker
Releases · sergei-startsev/deps-walker
v3.0.0
v2.0.1
What's Changed
- deps: bump dependecies
- chore: use Node v20 in the pipelines
Full Changelog: v2.0.0...v2.0.1
v2.0.0
What's Changed
- BREAKING CHANGES: Drop support of unmaintained Node.js versions. Node.js >= 16 is supported now.
- feat:
walk
function returns an array of modules with their dependencies:
const graph = await walk(
path.join(__dirname, 'examples/base/entry.js'),
() => {}
);
console.log(graph);
/*
[
{
"filePath": "./test/examples/base/entry.js",
"dependencies": [
"./test/examples/base/a.js",
"./test/examples/base/b.js",
],
},
{
"filePath": "./test/examples/base/a.js",
"dependencies": [
"./test/examples/base/b.js",
"./test/examples/base/c.js",
"./test/examples/base/d.js",
],
}
...
]
*/