Repository navigation
chore(deps): update dependency fallow to v3.49.0 - #1012
Open
renovate[bot] wants to merge 1 commit into
Open
renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
commit: |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1012 +/- ##
=======================================
Coverage 95.07% 95.07%
=======================================
Files 10 10
Lines 751 751
Branches 235 235
=======================================
Hits 714 714
Misses 34 34
Partials 3 3 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
renovate
Bot
force-pushed
the
renovate/fallow-3.x-lockfile
branch
from
November 27, 2026 02:59
4c308a5 to
473a50c
Compare
renovate
Bot
force-pushed
the
renovate/fallow-3.x-lockfile
branch
from
November 29, 2026 13:21
473a50c to
38a7027
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note
This PR body was truncated due to platform limits.
This PR contains the following updates:
3.46.0→3.49.0Release Notes
fallow-rs/fallow (fallow)
v3.49.0Compare Source
Added
A
vite-pwa-assets-generatorplugin. When@vite-pwa/assets-generatoris a dependency, fallow no longer reportspwa-assets.config.{ts,mts,cts,js,mjs,cjs,json}as an unused file. The tool reads this file from the project root, so fallow credits it only at the project root and at the root of each workspace package. UnderincludeEntryExports, thedefaultexport of the config counts as used.(Closes #5160)
An
mkdocsplugin for MkDocs and Zensical sites. When the project has amkdocs.yml,mkdocs.yamlorzensical.toml, also in a subdirectory such asdocs/, each local file inextra_javascriptandextra_cssis an entry point. fallow no longer reports these files, and the modules that they import, as unused. A path resolves againstdocs_dir(defaultdocs). Zensical reads the keys from the[project]table. A URL entry adds no entry point.(Closes #5161)
Shallow directories in
fallow health. The opt-infallow health --shallow-directorieslists directories whose interface is as large as what they hide.health.shallowDirectories.minInterfaceitems (default 8).health.shallowDirectories.ignorehides a directory that is wide on purpose.fallow/shallow-directory, levelnote), CodeClimate, compact, markdown, human output and the MCPcheck_healthtool (shallow_directories) carry it.(Closes #5195)
A note for an
overrides[].filesglob that matches no file. An override glob that matches no project file has no effect, and fallow said nothing. A common cause is a glob that names an import target, a package or a binary, not the file that has the finding.fallow dead-codenow adds anoverride-files-unmatchedentry toworkspace_diagnosticsfor each such glob, withpattern,files,rulesandreason. The message names the key that works:ignoreUnresolvedImports,ignoreDependencies,ignoreBinaries, or the glob of the file that has the finding. Human output prints aNote:line, Markdown output has a section, SARIF has a configuration notification, and the editor marks the glob in the config file. The check reads every project file, so--changed-since,--workspaceand--productiongive the same answer.(Refs #5227)
Thanks @crystalfp for the report.
The MCP server serves the fallow skills.
fallow-mcpnow supports the MCP skills extension (io.modelcontextprotocol/skills). A client that supports the extension, such as Claude Code 2.1.331 or later, can load thefallowandfallow-setupskills from the server, at the same version as the tools. Each skill is atskill://<name>/SKILL.md, and its manifest lists every file with its SHA-256 digest and byte size. SetFALLOW_MCP_SKILLS=offto stop serving them.fallow agent installalso installs the skills on disk, so it now writesFALLOW_MCP_SKILLS=offinto the MCP entry that it registers, and a client shows each skill once. An older fallow version treats that entry as a user-edited entry and does not replace it without--force.(Closes #5236)
A
test-only-exportrule. It reports an exported value that production code does not use while a test, story, fixture, bench or test-helper file does. In the default mode the tests keep such an export alive, sounused-exportdoes not report it. The finding lists up to fivetest_importersand setscolocated_onlywhen each importer is next to the module. Its actions areremove-export-and-testsandtest-through-interface, both manual, andsuppress-line. The rule isoffby default and runs only in a default-scope run; a--productionrun reports the same export asunused-export. Only values are checked in this version, not types. Turn it on withrules: { "test-only-exports": "warn" }or the--test-only-exportsselector, and readfallow explain test-only-export.(Closes #5252)
Changed
// fallow-ignore-next-line test-only-exportcomment held the token as unknown, so the first run after the upgrade parses each file again.Fixed
fallow trace-errorkeeps scoped package paths in Firefox and Safari frames. An at-sign in a path such asnode_modules/@scope/lib/index.jsno longer splits the function name from the wrong part of the file location.fallow trace-errorresolves development server URLs to project files. It decodes the URL path and ignores the query and fragment when it looks for a source file.fallow trace --calleesstops at side-effect-only imports. A trace of a file that imports./setupfor its side effects used to include the imports of./setupas disconnected hops. Named and star re-exports still connect the barrel to the source module.fallow trace --calleesreports calls to external imports. For example, a call toparsefrom theyamlpackage appears inunresolved_calleeswhen the graph has no edge to the package.fallow trace --pathshows the source line of a re-export. A hop through a barrel file previously pointed to line 1 even when the file declared the re-export further down.--changed-sincefinds changed and renamed files when Git uses relative paths. Runs from a repository subdirectory now use the correct file paths whendiff.relativeis set totrue.A passing gate clears a pending failure in the same worktree. Linked worktrees can have failures pending at the same time.
Impact matches moved findings one for one. A new occurrence can cancel one resolution credit for the same symbol and finding kind in that worktree.
The Impact containment total keeps growing after the event list fills. The project report, digest and cross-project report count events that leave the list. For an older store, counting starts with the events it retained.
fallow explain shared-statedescribes the inventory in each supported format. The command also acceptsfallow/shared-state.License activation help shows how to read a JWT from standard input. Pipe the JWT to
fallow license activate --stdin.Walkthroughs record
--mark-viewedin JSON output as well as in human and Markdown output. Absolute paths and paths with.or..mark the same file as the guide path. A mark that matches no staged file prints a warning on stderr.Migration keeps entry points from
package.jsonwhen a separate file configures duplication or stylesheet rules. Each tool takes settings from its own config file first.migrate --fromdetects duplication and stylesheet configs with custom file names. It recognizesminTokensalongsideignore, and known Stylelint rules on their own. It also recognizes stylesheet settings alongsideextends,plugins,overrides,customSyntax, orignoreFiles.Type coupling now counts each public signature edge when it reports the share of endpoints in the top contributing files. Multiple signatures that connect the same pair of files each contribute to the share.
Watch reloads when a workspace manifest changes or an editor replaces the selected config file, including a config outside the project. This includes
pnpm-workspace.yaml,deno.json, anddeno.jsonc.A scoped file list keeps the file count for each boundary zone in the project. The positional path still limits the file inventory.
fallow dupesreports the full source range and text when clone occurrences overlap on the same lines. A clone fingerprint can change if its source fragment was incomplete.For a group with merged occurrences, the corrected fragment can change its audit key and baseline entry once.
Doctor includes the selected config in its cache repair command. The command rebuilds the parse and graph caches that doctor inspected. Doctor JSON omits
remediationand gives manual steps inmessagewhen the config path contains shell-unsafe characters, the config is outside the project root, or the run overrides the cache directory.Config fix reports list only the ignore rules that Fallow adds. Dry-run and apply print a note on stderr when an existing
ignoreExportsrule prevents a write. The note names the affected file.fallow auditcompares coverage thresholds in the same configuration scope. Adding or moving a per-glob threshold no longer reports a change to the global threshold.The flag retirement report shows separate sites for a Vercel flag definition and a call that tests it later in the same file. Fallow rebuilds the parse cache once to refresh these sites.
CSS health reports count Tailwind utilities on continuation lines of an
@applydirective. A theme token used only on a continuation line now shows its consumer.fallow agent statussuggests--usercommands for skills in the home folder. A stale or foreign skill under~/.claude/skillsor~/.agents/skillsgot the project commandfallow agent install --dry-runor--force, which writes only project files, so the row stayed. Status now adds the next actionsagent-install-user(fallow agent install --user --dry-run) andagent-install-user-force(fallow agent install --user --force) for those rows. The project actions keep their ids and appear only for project rows. (Closes #5067)Thanks @aloneangel45 for the patch in #5102.
An exported
Propstype in a.astrofile is no longer an unused type. Astro reads thePropsexport of a component to typeAstro.props, so no other file imports it. APropsexport in a.tsfile still gets the normal check.A root Vitest
test.includeno longer makes the test files of a workspace unused. The include of the root config no longer replaces the test patterns of a workspace. A workspace keeps its own include or the default test patterns. A Vitest config that is onlyexport { default } from "<module>"now gives the includes of that module, when the module is a sibling file or a package in the project.(Closes #5094)
A dependency that a config requires now counts as used. An Expo app config that sets
userInterfaceStyleneedsexpo-system-ui. Fallow reported the listed package as an unused dependency, and the removed package as unlisted. A listed required dependency is now used. The unlisted finding stays when no manifest lists the package.The
jsPluginsof an imported Oxlint preset are no longer unused devDependencies. An Oxlint config can extend a preset that it imports as a value, for exampleextends: [reactStrict]. fallow now resolves the import, also undernode_modules, and credits thejsPluginsof its default export when that export is a static object. fallow also follows the imported presets of that preset, to a depth limit. A preset that fallow cannot read statically gives no credit and no error.(Closes #5101)
The VS Code fix preview shows the available fixes when the dry run skips a file. Before,
Fallow: Fixshowed only an error whenfallow fix --dry-runexited with code 2 because a file had mixed line endings or changed during the run. The preview now offers the eligible fixes, and a warning explains what the run skipped. (Closes #5126)Thanks @aloneangel45 for the patch in #5128.
Unused class member checks credit
toJSONand paireddisposemethods.JSON.stringifycallstoJSON, so fallow no longer reports it. Adisposemethod is used when its class also declares[Symbol.dispose]or[Symbol.asyncDispose]. Otherdisposemethods still report, andusedClassMembersstays the opt-in for them. Fallow rebuilds the parse and graph caches once to record the pairs.The Electron plugin reads the
buildandrendereritems of the Electron ForgeVitePlugininforge.config.*. Eachconfigpath is an entry and its default export is used, and eachbuildentrypath is an entry.viteis used when the Forge config names@electron-forge/plugin-vite. Before,fallow dead-codereported these Vite configs as unused files andviteas an unused devDependency. (#5097)React Native: a re-export from a platform family now credits the re-exported names on each member of the family, as an import does.
export { default } from "./x"no longer reportsdefaultinx.tsxas unused whenx.ios.tsxexists. This applies to named re-exports and toexport *.A macro import is build time. An import with
with { type: "macro" }runs its target in the bundler, and the output holds only the result. A devDependency that only a macro module imports, or that a macro import runs directly, is no longer a devDependency in production. The macro module and its exports stay used. A module that a runtime import also reaches stays production code. The extraction cache version moves because extraction now records macro imports.A crafted stylesheet with nested color functions can no longer make
fallow dead-codeorfallow health --csshang. The CSS parse time doubles at each level of nested color functions such aslight-dark(light-dark(...)), and it grows with the length of the text inside them. A file with 8 unclosed color functions in front of a long text stayed under the depth limit, but its parse took minutes. Fallow now estimates the parse work of the color functions and skips the structural parse of a stylesheet past that budget. CSS Modules classes in such a file come from the plain class scan, and the file gets no CSS analytics. Real stylesheets are not affected.A package script with a very long command word no longer slows the analysis. For each argument of a script command, fallow copied and hashed the full command word to look up the flags that name a package. A command word of some hundred kilobytes with many arguments took seconds. Fallow now looks up the command once.
A Sass
@useor@forwardof a blank string no longer adds an import.@use " "gave an import with an empty name and a source span whose end was before its start.A crafted TypeScript or MDX file with nested
<and parenthesized patterns can no longer make the analysis hang. The TypeScript parser triesa<as the start of type arguments, and it tries a(before{,[or(as the parameters of an arrow function. Each nestedr<({[thus tripled the parse work, and a few hundred bytes kept the parser busy for minutes while the file stayed under the nesting limit. Fallow now counts such a(as one more nesting level, so the file gets a failed parse instead. Real code stays far below the limit.Vue SFC
<template>complexity units now report the line count of the template block. The synthetic<template>unit received the line count of the entire Vue file. This inflatedvital_signs.functions_over_60_loc_per_k, and short templates in long single-file components showed inlarge_functions. The unit now spans the root<template>block, and only constructs inside that block count toward its complexity, so directives in custom blocks such as<docs>no longer add to it. A file with more than one root<template>keeps the line count of the whole file. The extraction cache version changes, so the first run after the update parses each file again. (Closes #4992)Thanks @1abdala for the patch in #5079.
A stale
fallow-ignore-next-linemarker now names the cause on the next line. When the next line has a finding of another kind, the message names that kind and the marker that suppresses it, for exampleuse fallow-ignore-next-line unused-typeabove a type re-export. When the next line is blank, the message says so: the marker applies only to the line directly after it. JSON output gives the same facts in the newnext_line_kindsandnext_line_blankfields.(Closes #5164)
The docs of
duplicates.thresholdand--thresholdnow say that0turns the gate off. The value0is not zero tolerance. To fail on any clone group, use--fail-on-issues.(Closes #5165)
A misnamed config file such as
fallow.jsoncnow gives a note. Discovery reads only.fallowrc.json,.fallowrc.jsonc,fallow.tomland.fallow.toml. When the project root has none of these but has a near-miss name such asfallow.json,fallow.jsonc,fallow.yamlorfallow.config.json, the run now reports aconfig-file-name-unrecognizedentry inworkspace_diagnosticsand prints aNote:line with the accepted names. The note also appears when discovery loads a config from a parent directory, because fallow still does not read the file in the project root. A run with--configreports nothing. The language server now reads the config file names from one shared list.(Closes #5166)
An expression in an attribute of an Astro
<style>or<script>tag now counts as a use. For example,CSSin<style set:html={CSS}>is no longer reported as an unused export. The body of the block stays out of the scan, as before. The extraction cache version changes, so a warm cache rebuilds.(Closes #5098)
Thanks @aloneangel45 for the patch in #5123.
unused-store-memberno longer reports Pinia state keys that code reads throughstore.$state. A read such asstore.$state.key,store.$state['key']orconst { key } = store.$statecredits that key. When the$stateobject goes to a call, a spread or a local, Fallow treats the whole store as used. A whole writestore.$state = { ... }reads no key.(Closes #5168)
A Vue or Svelte file with many unclosed attribute quotes can no longer slow the analysis to a crawl. Fallow found the
<script>and<style>blocks of a single-file component with regexes. A tag start whose quoted attribute value did not close made each search read far past its block, and the next search read that text again, so the time grew with the square of the file size. A 125 KB file took minutes in a fuzz build. Fallow now finds the blocks with a scan that reads each position a bounded number of times. The blocks that it finds do not change.The release SBOM of each target now lists only the crates of the
fallow-clibuild for that target. Before, each SBOM also listed crates that only other workspace members use, such astime,jiffandcookie. An SBOM scan then reported advisories for crates that are not in the binary. The release job now removes those components, and it fails when a crate of the build has no component.(Closes #5131)
Stale
ignoreExports,duplicates.ignoreandhealth.ignoreentries now give a "has no effect" note. A dead-code run reports anignoreExportsfile glob that matches no file, anignoreExportsname that no file of its glob declares or re-exports, and aduplicates.ignoreorhealth.ignoreglob that matches no file. The newworkspace_diagnosticskinds areignore-exports-file-unmatched,ignore-exports-name-unmatched,duplicates-ignore-unmatchedandhealth-ignore-unmatched. The human output prints one note per setting, SARIF has a configuration notification, and Markdown lists them under "Unmatched config patterns". A file withexport *counts as a file that can declare any name. A--productionrun reports none of these.(Closes #5167)
--trace File.svelte:defaultno longer says UNUSED for a component that a file imports. A.vue,.svelteor.astrofile without an explicitexport defaulthas no export entry, so the trace found no references, while dead-code did not report the component. The trace now lists the files that import the component by its default or by a namespace import. A reachable component file is used, because dead-code reports an unused component as an unused file.(Closes #5172)
SvelteKit shorthand
{data}attributes (<View {data} />) now count as whole-datapasses. Just likedata={data}and{...data}, forwardingdatavia shorthand attribute lets the child component read any key returned byload(), sounused-load-data-keynow abstains for that route (CACHE_VERSIONbumped to invalidate stale parse caches).(Closes #5171)
Thanks @aloneangel45 for the patch in #5179.
More markup forms that pass the whole
dataprop now stop the unused load data key report. A SvelteKit route component that usesbind:data,data="{data}"or a template call argument such as{format(data)}lets a child read any load key. Fallow now counts each of these forms as a use of the wholedataobject. So does any other plain mention ofdatain markup, for example a{data}text node or{#if data}. For such a route, fallow reports no unused load data keys. Adatamention inside script text no longer counts. The extraction cache version changes.(Refs #5171)
The release SBOM of each target now covers every binary of the
fallow-<target>archive. Before, the SBOM covered only thefallowbinary. Crates that onlyfallow-lsp,fallow-mcporfallow-similar-codelink, such astower-lsp-server,rmcp,rquickjsandcandle-core, were not in it. The SBOM also listed thestub_sidecarandfallow-schema-emitbins, which the release does not ship. The release job now merges the SBOMs of the four packages into one file with the same name, and it lists only the crates of their builds.(Closes #5190)
fallow agent installnow refreshes a stale fallow skill under.agents/skills/when it detects only Claude Code. Before, a.claudefolder made the install write only.claude/skills/, sofallow agent statuskept the.agentsrowstaleafter the suggested command. The install now updates each.agentsskill that has the fallow marker, in user scope and in project scope. It does not create an absent.agentsskill, and it does not change a skill without the marker.(Closes #5132)
unused-store-memberno longer reports option-store state keys that a getter or an action reads throughthis.$state. A read such asthis.$state.key,this.$state['key']orconst { key } = this.$statecredits that key. Whenthis.$stategoes to a call or a spread as a whole value, Fallow treats every state key of the store as used. Getters and actions stay checked.(Closes #5203)
fallow dupesandfallow healthnow report aduplicates.ignoreorhealth.ignoreglob that matches no file. Only a dead-code run gave this note, so a CI job that ran only one of these commands never showed the stale entry. Afallow dupesrun addsduplicates-ignore-unmatchedtoworkspace_diagnostics, and afallow healthrun addshealth-ignore-unmatched. The human output prints one note per setting, also in afallow --only dupesorfallow --only healthrun. The combinedfallowrun states each entry once. A--productionrun reports none of these.(Closes #5202)
unused-store-memberno longer reports a store member that code reads through a property typed with an inlineReturnType<typeof useFooStore>. For example,(deps: { store: ReturnType<typeof useFooStore> }) => deps.store.keynow creditskey. Nested, destructured and nullable properties (ReturnType<typeof useFooStore> | null) work the same way.(Closes #5207)
Top-level
returnstatements in.astrofrontmatter no longer trigger parse errors or mark the file as degraded. Astro compiles frontmatter scripts inside the component function body, wherereturn Astro.rewrite(...)andreturn Astro.redirect(...)are valid. Fallow now enablesallow_return_outside_functionfor Astro frontmatter parsing so imports and complexity from those pages count cleanly (CACHE_VERSIONbumped to invalidate stale parse caches).(Closes #5129)
Thanks @aloneangel45 for the patch in #5175, and @Elia97 for the report.
fallow mutationkeeps pruned mutants out of the instrumented copy. Each pruned mutant, for example aframework-configmutant, now keeps its original text in the copy that the runner loads. Before, the Vitest overlay served the copy to each build plugin, and the TanStack Router code splitter failed the baseline withYou must provide a string literal for the codeSplitGroupings. The ids of the other mutants do not change.(Closes #5218)
Thanks @x7ddf74479jn5 for the report.
--type-awarekeeps an exported type that declaration emit of another file needs. No file names the type, but an exported declaration in another file gets it through an inferred type, for example a schema that a library call builds (z.object({ entry: entrySchema })) and a class field that holds it. Without the export,tsc --declarationfails with TS4029. The type-aware pass now walks the inferred types of the exported declarations and credits each interface of another file that declaration emit names. The evidence of the credit names the holding declaration with the reference roledeclaration-emit. The pass does this only in a project that emits declaration files:declarationorcompositein the tsconfig, or atypesentry inpackage.json. A type alias gets no credit, because declaration emit writes the structure of an alias that has no export. A private member gets no credit, because declaration emit writes it without a type.(Closes #4850)
Nx local executors, generators and plugins are no longer unused files. Fallow now reads each
executors.jsonandgenerators.jsoncollection. Theimplementation,batchImplementation,factoryandhasherfiles of each entry are entry points, and eachschemafile counts as used. A local plugin path in thepluginsarray ofnx.jsonis an entry point, together with themainfile of itspackage.json. For a local executor path such as./tools/plugin:build, fallow reads the collections that thepackage.jsonof that folder names. Fallow also no longer credits a local executor path as a package name.(Closes #5201)
Thanks @Bertie690 for the report.
Fallow warns when the parse cache is too small for the project. When
the files of a run do not fit in the parse cache cap, each run parses a
part of an unchanged tree again, and the cache looked broken. Fallow now
prints one warning for each run. The warning names the share of files that
do not fit and a
cache.maxSizeMborFALLOW_CACHE_MAX_SIZEvalue thatholds them.
--quiethides the warning, and JSON and SARIF output onstdout do not change. (Closes #5216)
Thanks @1abdala for the patch in #5222, and @Bertie690 for the report.
A local with the name of a namespace import no longer hides the unused exports of the imported module. In
import * as e from "./errors", a use of a locale(for exampleString(e)incatch (e)) counted as a use of the whole namespace. Fallow then marked each export of./errorsas used. Now only a use that resolves to the import binding gives this credit. The fix also covers a binding in a static block and the name of a named function or class expression.(Closes #5064)
An import of a SvelteKit virtual module now uses
@sveltejs/kit, also withoutsvelte.config.js. An import of$app/*,$env/*,$service-workeror a generated./$typesmodule credits@sveltejs/kitin the manifest of the importing file, in the package where the SvelteKit plugin is active. Before, a project without SvelteKit config evidence got anunused-dev-dependencyfinding for@sveltejs/kit, andfallow fixremoved the package.--trace-dependency @sveltejs/kitreports the credit with the newvirtual-module-importreason, which names the first importing file and the specifier.(Closes #5019)
Thanks @tlq5l for the patch in #5234.
fallow fix --productionno longer breaks tests. A production run leaves out test, story, fixture and bench files, so an export that only these files import is reported unused.fix --productionremoved itsexportkeyword, and the import in the test file then failed. Nowfix --productionkeeps such an export and lists it withskip_reason: "test_importers", counted by the newskipped_test_importersfield. A file that no entry point reaches does not count. Infallow dead-code --production --format json, the finding stays and keepsremove-exportas its first action, withauto_fixable: false, the reason innote, and a newtest_importersfield that lists the importing files. An unused type that a test imports gets the same field and note. The editor no longer offers the quick fix for such an export or type. To find the importers, a production run with unused exports also builds the graph without production mode.(Closes #5251)
fallow mutationfinds Vitest in a Vite+ project. Runner detection now counts an import ofvite-plus/testas a Vitest import, and avite-plusdependency selects Vitest. Before, a Vite+ project with abun.lockgotbun test, and the run failed. When the project root has novitest, the Vitest adapter also looks in each package that the rootpackage.jsonlists, so a Vitest that Vite+ brings under pnpm no longer givesrunner-not-found.(Closes #5199, closes #5174)
dynamic-segment-name-conflictaccepts a dynamic segment next to a catch-all. The Next.js router keeps one slot for a single segment, one for a catch-all and one for an optional catch-all at each position. The rule now reports a position only when one slot holds two parameter names, so[slug]next to[...rest]is valid.(Closes #5169)
A CSS Module default that a barrel re-exports now gets credit. For
export { default as ui } from './ui.module.css', the re-export and the classes that consumers read no longer show as unused.(Closes #5162)
The static properties that React reads are no longer unused class members.
defaultProps,displayName,propTypes,contextTypesandchildContextTypeson a class component now count as used. An instance field with one of these names is still reported.(Closes #5173)
@effect/tsgoprovides the@effect/language-servicetsconfig plugin. A project that lists only@effect/tsgono longer gets@effect/language-serviceas unlisted and@effect/tsgoas an unused devDependency.(Closes #5163)
An
@expected-unusedexport that only tests import is no longer a stale suppression. A default-scope run gave astale-suppressionfinding for it, although production code does not use the export. The tag stays stale when a production file uses the export.(Closes #5252)
The language server no longer runs again for a watched-file event that changes no content. The server compares the content of the file with the content that it saw last. A file watcher can report events for a file that a scanner, a sync client or another tool touches, and each event started a new analysis, so the analysis never came to rest. One editor save also started two runs, because the watched-file event of the save cancelled the run of
didSave. The Output channel now names the files that start a run, and it counts the skipped events.(Closes #5278)
The VS Code status bar count now agrees with the sidebar and the analysis notification. The status bar now counts the same categories as the sidebar, and it leaves out the categories that
fallow.issueTypesturns off. With a workspace scope, the status bar keeps the count of the scoped sidebar analysis. Thefallow/analysisCompletenotification now also sends the counts of policy violations, the React Server Components checks and the route checks.The language server no longer writes INFO progress lines to stderr. VS Code labels each stderr line
[error]in the Output channel. The server now writes only warnings and errors there. SetRUST_LOG(for exampleRUST_LOG=fallow_core=info) in the environment of the editor to see more detail.Security
fallow agent installrun only a fallow that the install recorded or that the install root holds. Before the first program runs, the gate removes empty and relativePATHentries and each entry with anode_modulescomponent.core.fsmonitor=false, so a repository config cannot start a file system monitor program. fallow refuses a project root that a committed link moves out of its checkout, and a directory that holds the home directory..gitdirectory, the Git directory that a.gitfile names, ornode_modules..//, is refused, also inside a brace expansion.Performance
used_exportsrules no longer slow down monorepos with many workspaces. Each workspace gets its own copy of the rules of a plugin such as Next.js, with the workspace path as prefix. Fallow now groups the rules by the literal directory of each pattern. A module is tested only against the rules of its own directory chain, not against the rules of every workspace. The unused-export analysis,--trace,--performanceandaudituse the same index. On a generated monorepo with 75 Next.js workspaces and about 200,000 files, the CPU time offallow dead-codefell by about 40%, and by about half with--performance. The output does not change.(Closes #5196)
Thanks @Bertie690 for the report.
v3.48.0Compare Source
Added
keepExportTagsselects the JSDoc tags that keep an export alive. An export with an@internal,@alphaor@betatag never got anunused-exportfinding, and no option turned this off. A common use of the tag is/** @internal Exported for tests. */: when the last test that used the export went away, the gate stayed silent. The new key lists the tags that keep an export. The default is all four tags (public,internal,alpha,beta), so the behavior does not change. Set"keepExportTags": ["public"]to check@internal,@alphaand@betaexports like untagged exports. A tag that is not in the list also gives no credit to the source of a tagged re-export.fallow dead-code --trace <file>:<export>now names the tag when a tag keeps an export with no consumer, and the JSON trace has the new fieldkept_by_tag.(Closes #5081)
Changed
fixtures/or__fixtures__/an entry point, so fallow never checked its exports. Now, when a module outside the fixture directories imports a name from such a file, fallow checks its exports like those of any other module, and also checks each fixture file that it imports by name. The file stays an entry point, so it is never an unused file, and its default export stays used. A fixture file that no module imports by name, that a dynamic import, an import pattern orrequire()loads, that only a side-effect import loads, whose fixture has its ownpackage.json, or that another entry rule also matches keeps the old behavior. A project can get newunused-exportandunused-typefindings.(Closes #5082)
Fixed
fallow hooks install --target gitwrites the hook where Git runs it. Before, the command always wrote.git/hooks/pre-commit. Withcore.hooksPathset, Git did not run that file, butfallow hooks statusreported the hook as installed. In a linked worktree or a package folder of the repository, the command failed with "No .git directory found". Now install, uninstall and status use the hooks folder of Git: thecore.hooksPathfolder, or the shared hooks folder of a linked worktree. Whencore.hooksPathpoints outside the repository, install stops with an error, because other repositories can share that folder. Uninstall then removes a hook that fallow wrote to.git/hooks/pre-commitbefore.fallow plugin-checkevaluates an external plugin in the package that runs it. The analysis runs external plugins once for the root and once for each workspace. Each run uses the dependencies of that package, plus each root dependency that a workspace script calls, and resolvesmanifestEntriesglobs from its folder. Before,plugin-checkpooled the dependencies of all packages and checked the manifests only at the project root. A plugin that a workspace enables then showed a falsemanifests-matched-nonewarning. Nowplugin-checkchecks each package that activates the plugin, and skips a package without apackage.json, as the analysis does. The JSON addsactive_in, the packages that activate the plugin, and apackagefield on each item ofmanifest_rules. All paths stay relative to the project root.Stale baseline prune advice keeps the analysis mode. When a health or duplication baseline becomes stale, the prune command in the warning and the gate failure now includes
--productionif the baseline was saved in production mode. The advice also includes--rootwhen the project is outside the working directory.Regression baseline errors give the save command for the selected analysis. The command quotes file paths and keeps the selected project, config file, production scope, issue filters and analysis mode. If the type-aware sidecar was unavailable, the error tells you to restore it before saving a baseline. For flag retirement and entry weights, the error tells you to move an incompatible file to a backup before you save a new file.
The regression breakdown compares only counts that the baseline can store. For example, if a Vue project adds one unused file, the breakdown for a config baseline reports that file and omits existing unused component props. The total still includes all issue kinds.
The baseline growth gate ignores scope changes in dead-code baselines. A workspace save now compares only the finding fields. A new occurrence of a finding still fails the gate.
An unchanged health baseline can move from legacy finding keys to counts. During the first comparison, the gate checks how many distinct findings each new bucket requires. A function can exceed both the complexity and CRAP thresholds. The gate reports the limits of the comparison because legacy keys omit category and severity.
Saved health reports render Markdown, GitHub summaries and GitHub annotations outside the original checkout. These formats use the saved report even when the new directory has no CODEOWNERS file or workspace packages.
The health trend error gives a repair command for the current analysis mode. The command keeps the project root and the selected snapshot path. If the path is outside the allowed write directories, the error shows how to save and compare a snapshot in the project.
Sticky comments show errors before warnings in each category. A row limit keeps the errors visible.
CodeClimate clone findings show the owner of their clone group. Separate clone regions in one file can have different owners in both live and saved reports.
CodeClimate gives each flag read on a line its own fingerprint. 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 when it reads merge request metadata. The CI job uses the HTTP status to decide whether to retry.
GitHub Enterprise Server reviews use the API endpoints of the runner. Sticky comments and inline reviews use the REST URL of the runner. Thread lookups and resolutions use its GraphQL endpoint.
The language server watches all source extensions that fallow analyzes. Clients that support file watchers now report external changes to component files, stylesheets, HTML and GraphQL, so diagnostics refresh after edits and branch switches.
A refreshed analysis session reports source skips from the latest file scan. When a file crosses the size limit, the session adds or clears its diagnostic on the next scan.
VS Code shows which fixes the CLI can apply. The preview excludes skipped changes. After an apply run, the editor reports how many fixes the CLI applied and how many it skipped, also when a write fails.
The fix confirmation describes all file changes. It now includes enum and class member removal, dependency catalogs and fallow configuration files.
VS Code detects a CLI upgrade at the same path. After a managed download or a local CLI update, the next command reads the installed version and enables the options that it supports.
Click an expanded folder heading in the import graph to collapse it. This works for both importers and imports.
Folder grouping in the import graph finds modules below a shared directory. A project with large modules under
src/featuresnow shows each module in its own group.The file panel lists duplication for each file in a clone group. The project ranking still links to the group as a whole.
The architecture legend includes package and re-export cycles. The legend and the badge use the same finding total.
Escape closes the More menu and keeps the selected file open. Browser shortcuts and text composition also leave the dashboard selection alone.
The CLI reference keeps the capital R in "React Router". The display label of the
react-router-open-redirectsecurity category is now "React Router open redirect sink". The docs page title uses this label.Security
cookiedependency 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 now build with the fixed version.v3.47.0Compare Source
Added
fallow securityreports a non-literal target of React Routerredirect,redirectDocumentandreplace. The newreact-router-open-redirectcategory (CWE-601) works likenextjs-open-redirect. It is active when the project declaresreact-routeror@react-router/dev. The callee must be the binding of an import fromreact-router, so a local function namedredirectorreplacegives no candidate. Thanks to @cr101 for the report and the reproduction.(Closes #4951)
New rule
namespace-escapesreports namespace imports that hide exports from the unused-export check. When the code usesimport * as Nsas a whole value, fallow cannot see which members it reads. Examples are a cast, an assignment, a call argument, a spread, a computed member read,Object.keys(Ns), and a re-Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.