Skip to content

v0.7.0

Choose a tag to compare

@github-actions github-actions released this 17 Nov 06:02
· 85 commits to main since this release
v0.7.0
b2a21d3

Breaking changes

  • The npm package is @polylint/skif: its platform packages are @polylint/skif-<platform>, and skif-cli and
    skif-<platform> on npm are deprecated and receive no new versions. The command stays skif, and Windows x64 and
    arm64 now install from npm (ADR 0015).
  • skif moved to the polylint organization (ADR 0015): the
    repository is polylint/skif, the documentation is at https://polylint.github.io/skif/, the Action is
    polylint/skif@v0.M, Homebrew is brew install polylint/tap/skif and Scoop is
    scoop bucket add polylint https://github.com/polylint/scoop-bucket. skif init and skif migrate write the
    #:schema URL of polylint/skif, and SARIF output names it as the tool's information URI.

Added

  • --performance, --debug and SKIF_TIMINGS=1 split the time of the typed programs into config parse, program
    creation and bind, report the project files parsed against the distinct ones, and time the query build, the config
    hints, the ambient modules, the judged patterns and each JS rule. Timing lines are buffered and written once when
    the run ends, so printing them no longer serialises the threads of a recursive run.

Changed

  • Faster runs: the module graph parses the files it reaches ahead of its rounds and reuses each file's parse when it is
    built again, ** workspace globs are expanded in parallel, the pnpm lockfile parser skips the sections no rule
    reads, and child_process command analysis is built only when a command needs it. skif -r lints nested roots
    alongside their enclosing roots, with the same report. A typed run asks the checker only for escapes that can reach
    an asked declaration and for the ancestors only of classes with heritage, and reuses its parsed config for each
    program's own config. The programs of a typed run share each project source they read instead of parsing it once
    per program, which cuts babel's typed run by about a third. Release builds use fat LTO.
  • The Homebrew formula is bottled for macOS arm64 and Linux x86_64 and arm64.
  • The GitHub Action and the pre-commit launcher verify build attestations against polylint/skif, and still accept a
    release up to v0.6.0 attested by Goldziher/skif, the repository before the move.

Fixed

  • A webpack or rspack config built in a function that changes the config after its literal (config.module.rules.unshift(…)
    under a test) credits the loaders of the literal and of the change again, instead of reporting every loader as an
    unused dependency. A rule the evaluator cannot see leaves the package unjudged; one unknown
    entry in a known loader list (MiniCssExtractPlugin.loader) does not (#248).
  • @polylint/skif is never reported as an unused dependency.
  • A bundler alias or paths target in the build output of a workspace package (../lib/dist/index.js) stands for
    the source that output is built from whether or not the output exists, so the verdicts no longer depend on a local
    build (#251).
  • With SKIF_TIMINGS or --performance, --watch, skif lsp and skif mcp write the phase timings after each run
    or request, instead of holding them until the process exits, which an interrupted watcher never reached.
  • A webpack or rspack rule whose whole use or loader is computed (use: cssLoaders()), or a module the
    evaluator cannot read, leaves the package unjudged instead of judged without the loaders it may name. A use that
    is one of several known loaders credits each.