Skip to content

v3.48.0: keepExportTags and checked fixture exports

Latest

Choose a tag to compare

@BartWaardenburg BartWaardenburg released this 24 Nov 07:42
· 78 commits to main since this release
Immutable release. Only release title and notes can be modified.
v3.48.0
003cc8a

Features

  • keepExportTags selects the JSDoc tags that keep an export. Before, an export with an @internal, @alpha or @beta tag never got an unused-export finding, and no option changed that. The new config key lists the tags that keep an export. The default is public, internal, alpha and beta, so nothing changes without a config change. Set "keepExportTags": ["public"] to check @internal, @alpha and @beta exports like untagged exports. A common case is a test helper with /** @internal Exported for tests. */. fallow dead-code --trace <file>:<export> names the tag when a tag keeps an export with no consumer. The JSON trace has the new field kept_by_tag. (#5081)

Changed

  • Fallow checks the exports of a fixture file that a test imports by name. The Vitest, Jest and Playwright plugins make each file below fixtures/ or __fixtures__/ an entry point, so fallow never checked its exports. When a module outside the fixture directories imports a name from such a file, fallow now checks the exports of that fixture file like those of other modules. It also checks each fixture file that such a file imports by name. The file stays an entry point, and its default export stays used. These fixture files keep the old behavior:

    • a file that no module imports by name;
    • a file that a dynamic import, an import pattern, require() or only a side-effect import loads;
    • a file in a fixture with its own package.json;
    • a file that another entry rule also matches.

    A project can get new unused-export and unused-type findings. (#5082)

Bug fixes

  • fallow hooks install --target git writes the hook where Git runs it. Install, uninstall and status now use the core.hooksPath folder, or the shared hooks folder of a linked worktree. The command also works from a linked worktree or a package folder. When core.hooksPath points outside the repository, install stops with an error.
  • fallow plugin-check evaluates an external plugin in each package that runs it. Each check uses the dependencies of that package, plus each root dependency that a workspace script calls. It resolves the manifestEntries globs from the folder of that package. It skips a package without a package.json, as the analysis does. plugin-check no longer shows a false manifests-matched-none warning for a plugin that a workspace enables. The JSON output has the new field active_in (the packages that activate the plugin) and a package field on each item of manifest_rules.
  • Baseline commands in warnings and errors keep the analysis mode. The prune command for a stale health or duplication baseline includes --production if the baseline was saved in production mode. It includes --root when the project is outside the working directory. Regression baseline errors give a save command that keeps the selected project, config file, production scope, issue filters and analysis mode.
  • The health trend error gives a repair command for the current analysis mode. The command keeps the project root and the selected snapshot path.
  • Baseline gates handle stored counts, scope changes and legacy keys. The regression breakdown compares only counts that the baseline can store. The growth gate ignores scope changes in dead-code baselines. An unchanged health baseline can move from legacy finding keys to counts.
  • Saved health reports render outside the original checkout. Markdown, GitHub summaries and GitHub annotations use the saved report even when the new directory has no CODEOWNERS file or workspace packages.
  • CI reports keep finding order, ownership and fingerprints. Sticky comments show errors before warnings in each category. CodeClimate clone findings show the owner of their clone group. CodeClimate gives each flag read on a line its own fingerprint, and a single read keeps its existing fingerprint.
  • The health badge and the terminal round the score the same way. Both use the same grade and display precision.
  • GitLab retries temporary errors, and GitHub Enterprise Server reviews use the runner endpoints. The GitLab job retries when it reads merge request metadata. GitHub Enterprise Server reviews use the REST and GraphQL endpoints of the runner.
  • The language server watches all source extensions that fallow analyzes. Clients that support file watchers report external changes to component files, stylesheets, HTML and GraphQL, so diagnostics refresh.
  • The language server updates the size-limit diagnostic on each scan. When a file crosses the size limit, the language server adds or clears the diagnostic of that file on the next scan.
  • VS Code shows fix results and detects CLI upgrades. The fix preview excludes skipped changes. After an apply run, the editor reports how many fixes the CLI applied and skipped, also when a write fails. The fix confirmation describes all file changes. After a CLI update at the same path, the next command enables the options of the new version.
  • Import graph folders collapse on click and group nested modules. Click an expanded folder heading to collapse it. Folder grouping finds modules below a shared directory.
  • The dashboard shows more duplication and cycle detail. The file panel lists duplication for each file in a clone group. The architecture legend includes package and re-export cycles.
  • Escape closes the More menu and keeps the selected file open. Browser shortcuts and text composition also do not change the dashboard selection.
  • The CLI reference keeps the capital R in "React Router". The label of the react-router-open-redirect security category is now "React Router open redirect sink".

Security

  • The cookie dependency is at 0.18.3 for RUSTSEC-2026-0594. Version 0.18.2 can repeat the nonces of private cookies in a process that forks. The release binaries build with the fixed version.

Upgrade notes

  • Projects with fixture files that tests import by name can get new unused-export and unused-type findings.
  • To check @internal, @alpha and @beta exports, add "keepExportTags": ["public"] to the fallow config.

Full Changelog: v3.47.0...v3.48.0