Releases: antoine-coulon/skott
skott@0.35.0
Minor Changes
-
#162
b13d3c9
Thanks @antoine-coulon! - Allow unused files to be tracked and reported. From the CLI,--showUnusedFiles
can be used to report unused files. From the API, a newcollectUnusedFiles
method is accessible through the graph API:import skott from "skott"; const instance = await skott(); const unusedFiles = instance.useGraph().collectUnusedFiles();
This version also includes a fix for a bug related to
--trackBuiltinDependencies
and--trackThirdPartyDependencies
that were not propagated anymore (since 0.34.0) when being provided from the CLI. -
#161
4d19c97
Thanks @antoine-coulon! - Add support for multiple ignore patterns:- the CLI can now accumulate multiple ignore patterns such as
skott --ignorePattern=X --ignorePattern=Y
- the API configuration now takes a
ignorePatterns
property instead of a singleignorePattern
(breaking change).
- the CLI can now accumulate multiple ignore patterns such as
Patch Changes
-
#163
efb106a
Thanks @antoine-coulon! - Upgrade to Effect v3 -
#159
8cb4f1c
Thanks @antoine-coulon! - Fix skott performance timing in the CLI
remote-tarball-fetcher@0.1.1
Patch Changes
- #163
efb106a
Thanks @antoine-coulon! - Upgrade to Effect v3
skott@0.34.0
Minor Changes
-
#157
0871131
Thanks @antoine-coulon! - Expose a new rendering module providing a programmatic access to terminal and web visualizations through skott's API.This is equivalent to use the CLI such as
skott --displayMode=webapp
but offers more flexibility for the runtime configuration which suffers from limitations when only using the CLI (some configurations are nearly impossible to represent using strings e.g. providing custom functions), this is why often authors tend to introduce runtime configuration files that CLIs can pick up automatically, thing that we want to avoid with skott, by unifying it's usage either coming from the API or CLI.Using the rendering module
import { defaultConfig } from "skott"; import { Web, Terminal } from "skott/rendering"; await Web.renderWebApplication( // skott runtime config defaultConfig, // application config { visualization: { granularity: "module", }, watch: true, port: 1111, onListen: (port) => console.log(`Listening on port ${port}`), open: true, onOpenError: () => console.log(`Error when opening the browser`), }, ); await Terminal.renderTerminalApplication(defaultConfig, { displayMode: "graph", exitCodeOnCircularDependencies: 1, showCircularDependencies: true, showUnusedDependencies: true, watch: true, });
remote-tarball-fetcher@0.1.0
Minor Changes
-
#145
2c00723
Thanks @antoine-coulon! - Add GitHub tarball fetcher to be able to pull public repositories as.zip
(used in skott's benchmark).Switch to an Effect-based API.
skott@0.33.2
Patch Changes
- #152
9d43673
Thanks @antoine-coulon! - Remove @typescript-eslint/typescript-estree warning occurring when an incompatible version of TypeScript is found by ensuring fixed compatible versions from the manifest.
skott@0.33.1
Patch Changes
-
#150
04fe22d
Thanks @antoine-coulon! - This patch fixes the eager evaluation ofcwd
default value from the config preventing process.chdir
to work as expected when used before invoking skott's API.process.chdir("/tmp/somewhere"); // skott is now being executed at the root of "/tmp/somewhere" const instance = await skott();
Note: regarding the generated graph relationships, this is pretty much equivalent as doing
skott({ cwd: "/tmp/somewhere" })
, even though
node paths will be relative and won't have the same values as the later still executes skott from the script location
and not from/tmp/somewhere
. In other words, usingcwd
parameter will have node paths being relative to skott's script location, while using
process.chdir
will make skott execute the script from the provided directory.You can find a real example of the difference between node paths using
process.chdir
andcwd
: #149 (comment)
by @mattkindy.
skott@0.33.0
What's Changed
- refactor: migrate to latest effect by @antoine-coulon in #136
- The
groupBy
feature by @AlexandrHoroshih in #146
New Contributors
- @AlexandrHoroshih made their first contribution in #146. Thanks!
Full Changelog: v0.32.0...0.33.0
skott-webapp@2.1.1
Patch Changes
- #138
4a3bd27
Thanks @pedrolamas! - Fixes high severity vulnerability in lodash.* dependency by replacing it with lodash-es
skott@0.32.0
Minor Changes
-
#131
777998c
Thanks @antoine-coulon! - Add watch mode through--watch
cli option that can be used with all display modes:- using with
--displayMode=webapp
(default)
Changes will fully re-render the graph with its new content. Changes are not atomic yet, meaning that even if only one file is changed, the graph is being re-rendered anyway. Note that this might be improved in the future.
- using with
--displayMode=file-tree
or--displayMode=graph
Changes will clear the terminal and output the new computed graph with other information depending on selected options (
--showCircularDependencies
etc).- using with
--displayMode=raw
Changes will clear the terminal and output the new information depending on selected options (
--showCircularDependencies
, etc). As usual withraw
mode, the graph is not rendered.Few breaking changes:
- using
--showCircularDependencies
and--showUnusedDependencies
together with--displayMode=webapp
will throw error. This is because these options were thought to be used in the context of cli output which is not very useful when using thewebapp
.
Note that the web application has an option to show circular dependencies without the need for the
--showCircularDependencies
to be provided. The same for--showUnusedDependencies
will be done in the next versions, for now showing unused dependencies is only supported usingraw
,file-tree
orgraph
display modes. - using with
Patch Changes
- Updated dependencies [
777998c
]:- skott-webapp@2.1.0
fs-tree-structure@0.0.4
Patch Changes
- #128
8c76a8c
Thanks @antoine-coulon! - Get rid of OS specific path separator by only considering unix-like file paths