Skip to content

Releases: antoine-coulon/skott

[email protected]

22 Nov 13:05
a8cb43b
Compare
Choose a tag to compare

Patch Changes

[email protected]

22 Nov 13:05
a8cb43b
Compare
Choose a tag to compare

Minor Changes

[email protected]

03 Sep 18:07
f4a5107
Compare
Choose a tag to compare

Patch Changes

  • #173 bc13f35 Thanks @aniravi24! - Avoid attempting to resolve TypeScript path aliases when no tsconfig is found in the working directory when not providing any entrypoint. This also allows the terminal to not be polluted when using CLI --verbose mode with tsconfig irrelevant resolution errors when not being in a TypeScript workspace.

[email protected]

10 Jul 22:26
f052d35
Compare
Choose a tag to compare

Minor Changes

  • #164 c2b127c Thanks @antoine-coulon! - Introduce Groups visualization feature based on granularity configuration that can either be module or group.

    When using group granularity, the application does not render irrelevant features for an higher-level granularity e.g. File Explorer and File Summary are disabled.

    The granularity of the web application rendering can't be modified through the CLI and is still module by default. The only way to alter that configuration is to use the rendering API introduced in 0.34.0 and to provide a meta configuration with the selected granularity.

[email protected]

23 Jun 12:53
36c36df
Compare
Choose a tag to compare

Patch Changes

[email protected]

15 Jun 16:47
f382079
Compare
Choose a tag to compare

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 new collectUnusedFiles 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 single ignorePattern (breaking change).

Patch Changes

[email protected]

15 Jun 16:47
f382079
Compare
Choose a tag to compare

Patch Changes

[email protected]

11 Jun 11:12
65f879a
Compare
Choose a tag to compare

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,
    });

[email protected]

15 Mar 09:45
Compare
Choose a tag to compare

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.

[email protected]

13 Mar 08:40
e0e3ba1
Compare
Choose a tag to compare

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.