Repository navigation
chore(deps): update dependency fallow to v3.50.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
renovate
Bot
force-pushed
the
renovate/fallow-3.x-lockfile
branch
from
November 30, 2026 18:00
38a7027 to
4676652
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.50.0Release Notes
fallow-rs/fallow (fallow)
v3.50.0Compare Source
Added
fallow mutation tasks --format jsongives the scope of the run. The newscopeobject has thekindof the run (changed,allorpaths), thebase_refof achangedrun, andfiles: each file with a mutant result in the report, also a file without a task. A consumer can now tell a mutant that a test killed from a mutant that the run did not mutate, and does not need to read the saved report.(Closes #5289)
MCP tools with large results keep them in the conversation. Claude Code saves a tool result over 50,000 characters to a file, and the agent must read that file again. Eighteen tools returned more on large public projects:
analyze,audit,check_architecture,check_changed,check_health,check_runtime_coverage,code_execute,find_dupes,fix_preview,get_blast_radius,get_cleanup_candidates,get_hot_paths,get_importance,get_token_blast_radius,impact_all,project_info,security_candidatesandtrace_file. These tools now declare_meta["anthropic/maxResultSizeChars"]of 200,000 intools/list, so Claude Code keeps a result up to that size inline. A larger result still goes to a file. The server cap (FALLOW_MCP_MAX_OUTPUT_BYTES, default 1,000,000 bytes) and themax_output_bytesparameter do not change. Other clients ignore the field.(Closes #5239)
fix_applyasks the user to confirm before it writes. When the MCP client declares form elicitation,fix_applyfirst shows the dry-run plan in one form: the number of fixes, the number of files, and the fixes per type. The tool writes only after the user confirms. On a decline, a cancel or a timeout, no file changes, and the result hasapplied: falsewith aconfirmationvalue that gives the reason. On protocol2026-07-28the form arrives throughinput_required, and the client calls the tool again with the answer. A client without form elicitation keeps the old behavior. A headless session, such asclaude -p, cancels the form at once, so the call does not hang.(Closes #5238)
A
deep-modulesboundary preset."boundaries": { "preset": "deep-modules" }makes each folder ofsrc/modulesa zone, or each folder ofsrc/featureswhensrc/modulesdoes not exist. Other files may import a module only through its index file (index.{ts,tsx,mts,cts,js,jsx,mjs,cjs}), so an import of an internal file of the module is aboundary-violation. A file such asindex.internal.tsstays internal. The preset also adds anappzone for the rest of the source root, and atestszone fortest/**,tests/**ande2e/**. These two zones come after your own zones, so a zone that you add keeps its files. A test in one of these folders must use the index file, and a test next to the module code may import internal files. Loose files directly under the module root are in amoduleszone without public files. A folder with module folders in it wins over an empty one. When neither folder exists and no zone of yours is namedmodules, the run exits with code 2.fallow list --boundariesnow prints the public files of each zone.(Closes #5254)
Opt-in public files for the
bulletproofandfeature-slicedpresets. With"presetPublicFiles": trueinboundaries, other zones must import a feature (bulletproof) or a slice ofpages,widgets,featuresandentities(feature-sliced) through its index file. The@xfiles of an entity also stay public. Without the key, the findings of these presets do not change. An older fallow version ignores the key and reports the preset without public files. SetminimumVersionto make an older version stop with a message instead.The
narrow-interfaceaction in the JSON output offallow health --shallow-directorieslinks to the new guide "Keep a module deep".The MCP server returns long tool calls as tasks. The server now advertises the MCP tasks extension (
io.modelcontextprotocol/tasks). When atools/callrequest declares the extension in its_metaclient capabilities,audit,mutation_plan,find_similar_codeand type-awareanalyzereturn a task handle at once. The client pollstasks/getfor the status and the result, andtasks/cancelstops the run. A task run has a default deadline of 30 minutes instead of 120 seconds.FALLOW_TIMEOUT_SECSstill sets the deadline. A finished result stays readable for at least one hour. A request without the extension gets the synchronous result as before.(Closes #5237)
Opt-in telemetry now counts MCP tool calls that run in the server process. Most MCP analysis tools run in the server through
fallow-apiand gave no event before, so agent use through MCP was mostly invisible even with telemetry on. After such a call, the server now runs the hiddenfallow telemetry recordcommand, which applies the usual consent rules and records one coarse event withintegration_surface: mcpand the tool name. A call that runs the CLI still gets its events from the CLI. The server does this work after the answer, so telemetry never delays a tool call, and with telemetry off it starts norecordprocess. Seedocs/telemetry.md.MCP
analyzeruns as a task when the environment or the config turns on type-aware analysis. Before,analyzereturned an MCP task only when a parameter asked for type-aware analysis. NowFALLOW_TYPE_AWAREandtypeAware.enabledin the project config count too, when the parameters leave the choice open. A type-aware run can take about a minute on a large repository, and a synchronous call stops at the 120-second default.type_aware: falsekeeps the call synchronous.(Refs #5237)
The MCP server can ask once for telemetry consent. Agent users never saw the telemetry note of the human CLI, so they had no way to opt in except
fallow telemetry enablein a shell. A client that supports MCP form elicitation now gets one form, after the first tool call and only when no call has run for 20 seconds. The form says what a yes turns on, and its checkbox is clear by default. Only a checked box enables telemetry; a clear box or a decline records "no", so nothing asks again. A machine gets the form at most twice, 14 days apart, for all its MCP servers together. The form never appears in CI, withDO_NOT_TRACKorFALLOW_TELEMETRY_DISABLED, or after a recorded decision. SetFALLOW_TELEMETRY_DISABLED=1to keep it off a fleet of machines. Seedocs/telemetry.md.fallow feedbackfiles a report as a GitHub issue. A person or a coding agent can report a false positive, a false negative, a bug, friction, a docs gap or a missing feature. The command takes a note plus--type,--impact,--task,--command,--expected,--actualand--agent, or a JSON report with--input-json <file>(-reads stdin). Without--yes, the command sends nothing: it prints the issue preview and a prefilledissues/newlink. With--yes, the GitHub CLI (gh) creates the issue on fallow-rs/fallow and the command prints the issue URL.--confirm <digest>takes thedigestof the preview, and a report that changed since that preview exits 2 and creates nothing. Whenghis not available, the command prints the link and exits 3. The report holds only the given text, the Fallow version and the operating system.--no-diagnostics,DO_NOT_TRACK=1andFALLOW_TELEMETRY_DISABLED=1leave out the version and the operating system. Home directory paths become~. Common secret shapes (access tokens, JWTs,Bearervalues, URL passwords and PEM private keys) become[redacted].The MCP server has a
submit_feedbacktool. The tool wrapsfallow feedback. It returns the preview by default. It creates the issue only withsubmit: trueandconfirmset to the digest of the preview, after the user approves the preview.Opt-in telemetry of in-process MCP analysis calls now tells whether the analysis found something. Events of
analyze,check_changed,check_architecture,find_dupes,check_healthandauditthat run in the MCP server process now carryfindings_presentand the coarseresult_count_bucket, like the events of the same commands on the CLI. The server reads only the count from the result, and only when telemetry may be on. Seedocs/telemetry.md.Changed
The type-aware companion protocol changes to version 10. Install
fallow-type-awareat the same version asfallow. A companion of an older release does not keep checker reads inside the project, so this release refuses it. What you see depends on how you install the companion:fallowlauncher uses only afallow-type-awarepackage of the same version. A pinned older version is not used, so Fallow finds no companion. Upgrade both packages together, for examplenpm install --save-dev fallow@<version> fallow-type-aware@<version>.fallow type-aware setup: Fallow uses an older install only when it speaks the same protocol, so it skips the installs of earlier releases. Runfallow type-aware setupagain, thenfallow type-aware cleanupto remove the old installs.FALLOW_TYPE_AWARE_BINthat points to an older companion: the companion stops withunsupported protocol_version, and Fallow adds the command to run.The GitHub Action and the GitLab template install the matching companion themselves. While the companion does not match, the type-aware pass does not run. With the default
typeAware.require: best-effort, the run reports the syntactic findings. Withcomplete, the run exits with code 2.The
fallowskill has one CLI reference file per command. The single CLI reference was about 259 KB. A client that read it through the MCP skills extension got the full file in one response, and Claude Code saved a response of more than 50,000 characters to a file. Each command and each shared topic, such as the global flags and the configuration format, now has its own file underreferences/cli/, for examplereferences/cli/audit.md.references/cli-reference.mdis now the command index with a link to each file. No served skill file is larger than 50,000 characters, andskills/listlists each new file with its digest.fallow agent installwrites the new files, andfallow agent uninstallremoves them.(Closes #5301)
The
includeEntryExportsdescription names the enums that a public package entry re-exports. With the option on, fallow checks the members of such an enum. The JSON schema and the config reference now say so.The
usedClassMemberswarning for a scoped rule that matches nothing now names the scope. A rule with"extends": "SceneManager"applies to the subclasses ofSceneManager, not toSceneManageritself. The warning now says so, and it names the suppression for one class:// fallow-ignore-file unused-class-memberin the file of that class. The schema text ofusedClassMembersandextendsgives the same information.fallow dead-codenow reports an exported type that only the signature of another export in the same file uses, when nothing needs that export. An example isexport type ButtonProps = {...}next toexport const Button = (props: ButtonProps) => ..., with no other file that importsButtonProps. Fallow did not report such a type before. Nowunused-typereports it. You can remove theexportkeyword: TypeScript accepts the result, and the declaration emit of the file includes the local type. Fallow still keeps the export in two cases:tsconfig*.jsonhas a config withdeclarationorcompositeand withoutnoEmit, or the nearestpackage.jsonnames a.d.tsfile intypes,typings,typesVersionsor atypesexport condition. Without the export, another module that holds the value with an inferred type can fail with TS4023.private-type-leakrule is on for the file. Without the export, that rule reports the signature.--type-awareturns this rule on when the config does not set it.Projects that do not emit declarations can see more
unused-typefindings after the upgrade. To not report a type that its own file uses, set"ignoreExportsUsedInFile": { "type": true, "interface": true }.fallow dead-code --trace <file>:<Type>now gives the same verdict as the report. When fallow keeps such a type, the trace names the backing exports and the reason, and the JSON has a newkept_by_signatureobject.(Closes #5280)
Thanks @vethman for the report.
The configuration reference of the fallow skill now says that a scoped
usedClassMembersrule skips the named class. A rule with"extends": "Base"applies to the subclasses ofBase, not toBaseitself. To keep all members of one class, put// fallow-ignore-file unused-class-memberin its file.(Refs #5233)
Fixed
untested-exportfollows test paths through decorator metadata. UnderemitDecoratorMetadata, TypeScript emits the parameter and return types of a decorated class member as runtime references. A test that imports such a class now covers the classes that those types name. Fallow follows the TypeScript rules: only decorated members, only the outer name of a generic type (Promise<Dto>does not reachDto), noimport type, and nonullunion understrictNullChecks. Cycle detection now uses the same rules, so an import that the metadata does not read no longer counts as a cycle edge (#5362).fallow fixnow names the diagnostic that holds back a fix, with the step that unblocks it. When a fix rests on a file or folder that the run did not fully analyze, the help said only "Resolve the workspace diagnostics". That list also held diagnostics that hold back no fix, such asundeclared-workspace. Now each held-back entry names the path and the config change, for example "add!.claude/**toignorePatterns". The JSON envelope has a newincomplete_analysis_diagnosticsarray with each blocking diagnostic and itsaction. The human output lists them also with--quiet.fallow workspacesnow shows the diagnostics of the source file walk. It showed only the workspace diagnostics, so a skipped hidden folder with sources (skipped-source-dotdir) was not in the list. The command now runs the file walk and reports the sameworkspace_diagnosticsasfallow list.The
undeclared-workspacehint also namesworkspaces.patternsin the fallow config, for a folder that does not belong inpackage.jsonorpnpm-workspace.yaml.VS Code: an auto-fix run that applies no fix now shows why. The warning shows the reason that held back the most fixes, with its next step.
(Closes #5127)
Thanks @VariableVince for the report.
Windows: a folder of another user above the project no longer widens the read scope. A
.gitentry or a workspace manifest in a folder above the analysis root, such asC:\Users\Publicor the root of a shared drive, gave the shared configs of that folder to every project below it. Now such a folder counts only when the current user or the owner of the analysis root owns it. This is the owner rule that Fallow already uses on Linux and macOS.A write through a symlink into the Git directory of a superproject is now refused. When the project root is in a submodule, the write guard protected only the Git directory of the submodule. A superproject can keep its Git directory outside its work tree (
git init --separate-git-dir), for example in a temp directory. A report path such as--output-file /tmp/r.jsonthat is a link into that directory now fails, the same as a link into.git. A.gitfile that fallow cannot read, or that names no Git directory, now makes each link target count as protected.fallow fixno longer changes a finding that anoverridesentry turnsoff. The reports leave out a finding when anoverridesentry sets its rule toofffor its file, butfixplanned and applied a fix for it. For example, withunused-exportsset tooffforsrc/jobs/**,fallow dead-codereported no export there whilefallow fix --yesremoved theexportkeyword of each unused one.fixnow runs the same rule pass as the reports, so it changes exactly the findings thatfallow dead-codelists. Thanks @marco2216 for the patch in #5258.DO_NOT_TRACKandFALLOW_TELEMETRY_DISABLEDaccept any value as an opt-out. Before, only1,true,yesandondisabled telemetry, soDO_NOT_TRACK=enabledorDO_NOT_TRACK=yleft it on. Now every value except empty,0,false,noandoffdisables telemetry and the update check.A graph cache that a run writes after it reuses the cached import
resolution now keeps the versions of the hoisted Bun packages. Such a
run wrote the cache again without the installed versions that the
resolution had read. A later
bun installthat replaced a hoisted packageunder the same name was then not seen.
An unknown key in the
boundariesconfig now stops the run with exit code 2. The top-level config already rejected an unknown key, butboundaries, its zones, rules,coverageandcallsignored one. A misspelled key such aspublicFile(forpublicFiles) then turned off a check without a message. The error names the key and lists the valid keys. A config with a stale or misspelled key inboundariesthat ran before now fails: correct or remove the key."boundaries": { "enabled": false }is one such config, becauseboundarieshas noenabledkey. Its error tells you to remove theboundariessection to turn the checks off. A key that a later fallow version adds toboundariesnow needsminimumVersion, as a new top-level key does.(Closes #5292)
A member read on a local with the name of a namespace import no longer uses the export of that name. In
catch (e) { e.message }afterimport * as e from './errors', the exportmessagewas reported as used. The same was true for a binding in a static block, and for the formse['message'],e.message.length,e().messageande[0].message. Now a member read uses an export of the import only when its root resolves to the import binding.(Closes #5231)
unused-class-membercredits members that a MobX annotation object names. A static key in the annotation object ofmakeObservable(this, {...})ormakeAutoObservable(this, {...})frommobxnow counts as a use of the member with that name. MobX reads these members when the constructor runs.(Closes #5297)
unused-class-membercredits four more receiver forms whose class the syntax proves. These forms are now credited: a factory whose every return givesnew X()inside a branch and whose body ends inthrow, a factory that returns a subclass without own members, a static method that returnsnew X()through methods that returnthis, and a destructured property of an object factory result (const { ctx } = newService(); ctx.member()).(Closes #5298)
unused-class-memberkeeps the members that an implemented interface inherits. A class that implements an interface now keeps each required member of each interface that the implemented interface extends, also when the parent interface is in another module.(Closes #5299)
unused-enum-memberdoes not report the members of an enum that a public package entry re-exports. A package that is not private can publish an enum from its entry file throughexport *,export { E } fromorexport * as ns. The re-export can also go through more barrels. A consumer of the package can read each member of that enum, so fallow does not report these members. The public entries are the same as for class members: the entries of the root package when it is not private, and the entries of the workspaces thatpublicPackageslists. A workspace package outsidepublicPackagesis internal, so fallow still reports its unused enum members. To publish such a package, add it topublicPackages. UnderincludeEntryExports, fallow checks these members as before.(Closes #5261)
circular-dependencyno longer reports a cycle that closes only through imports of types. TypeScript removes a plainimport { X }whenXis only a type in the target (an interface, a type alias, or a re-export of one). Such an import does not load the target at runtime, so it no longer closes a cycle. The import still counts when the tsconfig of the importer setsverbatimModuleSyntax,preserveValueImports, orimportsNotUsedAsValuestopreserveorerror, because TypeScript then keeps it. A namespace import, a side-effect import and a re-export still count. When a dense group of files loses such an edge, the cycle list of that group can show other cycles that the per-group limit hid before.A local
export { X }of an interface or a type alias, andexport default interface, are now type-only exports. An unused one is now reported asunused-typeinstead ofunused-export.(Closes #5262)
The commit gate of
fallow agent installandfallow hooks installnow audits more forms of a git commit or push. The gate skippedGIT commit,/usr/bin/git push,git.exe commit,git {commit,status},git c{o,}mmit,$G commitandg?t push. It now readsgitin any letter case, with the.exesuffix, and as the last part of a path. A git subcommand with an expansion, a brace or a glob now goes to the audit. A command with an expansion, a brace, a glob or a backquote that also holds acommitorpushword goes to the audit too. A command without such a word still skips the audit, sols -laandecho $HOMEstay as fast as before.The commit gate refuses a helper program from a tree that the command writes to. The gate can run
readlink,jq,mktemporrmbefore it knows the target of the command. When the tree of agit -Ctarget holds one of these programs onPATH, the gate now blocks with exit code 2, as it does forfallow,gitandjq. The gate also looks for thefallowonPATHonly after it knows the targets.fallow dead-codeno longer reports the files of a Kysely migration folder as unused. Kysely'sFileMigrationProvider, imported fromkyselyorkysely/migration, imports each script file of itsmigrationFolder. When that folder is a path below the module directory, such asjoin(import.meta.dirname, '..', 'schema/migrations'), fallow now credits the files directly inside the folder and their exports. Files in a sub-folder and declaration files stay unused, because Kysely does not read them. Theupanddownexports of migration files are no longer reported as duplicate exports. The extraction cache version changes, so the first run after the upgrade parses each file again.(Closes #5294)
fallow dead-codenow finds a React Router app in a package sub-folder. A package script such asreact-router dev --config preview/vite.config.tsnames a Vite config. When that config sets a staticrootbelow the package root, fallow readsreact-router.config.*and the app directory from that root, and credits the root route, the entry files and the routes. This also works when the package does not declare@react-router/devitself.(Closes #5295)
The VS Code status bar and sidebar show the same total. The language server now decides type-aware analysis as the CLI does: the
fallow.typeAware.enabledsetting, thentypeAware.enabledof the config. A type-aware session also turns the opt-inprivate-type-leaksrule on atwarn, as the CLI does, unless the config sets the rule. Before, the status bar left out every private type leak, and a project that turned type-aware analysis on only in its config got no type-aware editor diagnostics.fallow watchandfallow inspectnow apply the same rule default.(Closes #5321)
Thanks @VariableVince for the report.
The VS Code sidebar follows each save. After a language server run, a loaded and visible Fallow sidebar refreshes in the background, with no notification. Before, a save changed the status bar count and left the sidebar on its last count until a manual Analyze.
VS Code counts each finding once. A sidebar category label counts findings, not rows: an unlisted dependency that four files import counts once, as in the total. The prop drilling, thin wrapper and duplicate prop shape categories show
advisory, because the total does not count them. The status bar hover now lists each category that the total counts.The VS Code sidebar ignores the shell variables that the language server ignores.
FALLOW_PRODUCTION,FALLOW_DIFF_FILEandFALLOW_TYPE_AWAREin the environment of VS Code no longer change the sidebar run. Thefallow.productionandfallow.typeAwaresettings decide for both.fallow.typeAware.timeoutSecondsnow also reaches the language server.VS Code counts component health findings at error severity. With
"prop-drilling": "error","thin-wrapper": "error"or"duplicate-prop-shape": "error", the CLI counts these findings in its total and fails the run on them. The VS Code sidebar total, the notification and the status bar now count them too. The sidebar showsadvisoryonly for a category whose findings the total does not count. The status bar hover also says that the Problems panel lists each location of a finding, so its count can be higher than the total.A global install of the runtime coverage add-on now runs. After
npm install -g @fallow-cli/fallow-cov, thePATHsearch found the Node launcher of the package. The launcher has no.sigfile, so fallow stopped with exit code 4. ThePATHsearch now finds the signed binary of the platform package of the same install. This works for global installs with npm, pnpm, Yarn and Bun, and for the install thatfallow coverage setupmakes. The signature check still runs on the binary that fallow starts. When fallow cannot find the signed binary, the error now tells you to setFALLOW_COV_BIN.(Closes #5303)
fallow health --topnow cuts the large-functions list. Before,--topcut the findings, file scores, hotspots and targets, but every large function stayed in the report. On a large project, a bounded MCPcheck_runtime_coveragecall withtop: 20was still more than 250,000 characters, and the MCP client saved it to a file instead of showing it. Now the same call is about 140,000 characters. The report and each--group-bygroup carry the new optional countlarge_functions_omittedwhen--topcut a row. The human output shows the full total.An unknown key in a nested config section now stops the run with exit code 2. The top-level config and
boundariesalready rejected an unknown key. These sections ignored one:duplicates,duplicates.normalization,flags,flags.sdkPatterns,health.ownership,resolve,fix,fix.catalog,audit,regressionand the object form ofignoreExportsUsedInFile. A misspelled key such asminToken(forminTokens) then turned off a setting without a message. A snake_case key such asmin_tokenshad the same effect.regression.baselinestill accepts an unknown key, because a newer fallow can write a count that an older one does not know.minimumVersionin a shared config, as a new top-level key does.An unknown-key error now names the valid key that is closest to the unknown key. For example, the error for
minTokenasks: did you meanminTokens? The error for the object form ofignoreExportsUsedInFilenow names the unknown key.fallow health --cssno longer reports classes that code, a dependency or a theme adds at runtime. Before,unreferenced-css-classreported a class when project markup did not write it, also when other code applied it. Fallow now credits these classes:const ROW_MARKER_CLASS = "table-row-drag-marker"orclasses.push("cell-border-top"). The static head of a template literal in such a statement credits a prefix, for example`cell-edge-${side}`.@docusaurus/preset-classicor@docusaurus/theme-classic.maplibregl-popupformaplibre-gl.Fallow now reads the dependencies of each workspace
package.json, not only the rootpackage.json. A dependency credits a class only in the stylesheets of the workspace that declares it.(Closes #5272)
unused-filenow credits four more framework entry points.email dev,email build,email startoremail exportcommand in a package script or a mise task makes the.js,.jsxand.tsxtemplates of its--dirfolder (defaultemails/) entry points.PascalCasename, such assrc/theme/NavbarItem/ComponentTypes.js, is an entry point. A lowercase helper file in a swizzled folder stays an ordinary module.push,unshiftandsplicecalls add, also in anif, a block or atrystatement. A VitestglobalSetupfile that a condition adds is now a setup file.node ./dist/bin/sync.js, credits the source file through thetsconfigoutDirandrootDirof the task directory.(Closes #5338, #5339, #5340, #5341)
unused-load-data-keyno longer reports the response body of a resource route. A React Router or Remix route module with aloaderand no default export component is a resource route. An HTTP client reads its response, so no component can read the keys. The rule now skips such a route. It also skips the keys of aResponse.json(...)return. The rule text infallow explain, SARIF, CodeClimate, LSP, the GitHub annotations and job summary, and the skill references now describes SvelteKit, React Router and Remix loaders. The parse cache version changes, so the first run after the upgrade parses all files again.(Closes #5264)
The GitHub Action and the GitLab template run the fallow command that npm installed, also when the npm global bin folder is not on
PATH. Node frompnpm/setupputs only the pnpm folders onPATH. The install step then reported "unknown version", and the next step failed withfallow: command not found. The install step now puts the npm global bin folder first onPATHfor the later steps whenfallowis missing fromPATHor is a different file. When npm installed no fallow command, the install step fails with an error that names the folder.(Closes #5242)
Thanks @SarcevicAntonio for the report.
circular-dependencyno longer reports a cycle that closes only through imports that a file uses as types or not at all. TypeScript removes a plainimport { X }when the file never readsXas a value, also whenXis a class. Such an import does not load the target at runtime, so it no longer closes a cycle. The import still counts in three cases: when the file reads the binding as a value, when the importer is a.tsxfile (the binding can be the JSX factory), and in a file with a decorator when the tsconfig setsemitDecoratorMetadata. The tsconfig options that keep each import (verbatimModuleSyntax,preserveValueImports) still apply.(Closes #5309)
The coverage gap rules no longer report the app that a Playwright
webServerstarts for the tests. AwebServer.commandsuch aspnpm start, with astartscriptcd ./app && pnpm run dev, starts a nested package that exists only for the end-to-end tests.untested-fileanduntested-exportreported each file of that app as untested production code. Fallow now follows the command throughcd, the--dir,-C,--prefixand--cwdoptions,webServer.cwdand package scripts. When a command that can start a server runs in a folder below the config folder, and that folder has its ownpackage.json, its runtime entry points become support entry points. A folder that a workspace pattern declares stays production code, and so does an entry that you list inentry. The files of the app stay in use. A file that a production entry point also reaches stays runtime code.(Closes #5270)
fallow mutationkeeps the arguments of compile-time calls as written. A file that callsfeature()frombun:bundlefailed the baseline with "feature() argument must be a string literal", because the instrumented copy replaced the string with a mutant switch. The arguments offeature()frombun:bundle, of a Bun macro call and ofimport.meta.glob()now get no mutant. The condition around the call keeps its mutants. (#5285)fallow dead-codeno longer reports the members of a singleton class that other code calls through an exported instance. Forexport const sm = SceneManager.getInstance(), a callsm.createScene()in another module now counts as a use ofSceneManager.createScene. This works when the class is in the same file or is imported, and when a local constant is exported withexport { sm }. A static getter without a return type annotation also counts as a factory when it returns the instance that a static field holds:return SceneManager.instance,return this.#instance!,return SceneManager.instance ?? (SceneManager.instance = new SceneManager()), orreturn (SceneManager.#instance ??= new SceneManager()). A static method that returns another value, or the class itself (return this), still credits no instance member. When two different factory calls in one file give values to the same name, the export credits no class. The cache version changes, so the first run after the update parses every file again.(Closes #5233)
Thanks @crystalfp for the report.
fallow mutationrunsbun testwith thebunfig.tomlof a workspace package. Bun readsbunfig.tomlonly from its working folder. Fallow ran each test file from the project root, so the[test] preloadof a package never ran and the baseline failed. Fallow now starts each test file in the folder of the nearestbunfig.tomlbetween the test file and the root, ascd <package> && bun testdoes. For the tests of such a package,process.cwd()is the package folder, and Bun loads the.envfiles of the package folder. A project with only a rootbunfig.tomlruns as before. (#5286)A file that an Nx target or a CI command runs without its extension is no longer reported as unused.
node scripts/buildin aproject.jsonnx:run-commandstarget, a Vite+ task or a CI workflow step now creditsscripts/build.js(andscripts/build.prodcreditsscripts/build.prod.js), andtsx scripts/seedcreditsscripts/seed.ts. These commands now resolve a file argument without an extension, aspackage.jsonscripts already did. Only.js,.tsand their module variants are tried, sobash scripts/deploy.shdoes not creditscripts/deploy.ts, andnode scripts/themedoes not creditscripts/theme.css. A directory argument, such asvitest run src/lib/, is a filter and does not make the index file of the directory an entry.(Closes #5325)
Thanks @Bertie690 for the report.
The human and Markdown lines of
unused-load-data-keynow name React Router and Remix loaders. Each line says that the key is returned from a routeload()orloader, and names thedata.<key>,page.data.<key>anduseLoaderData()reads. The line no longer describes a SvelteKit-only rule.(Refs #5264)
untested-exportno longer reports a re-export of a type as an untested runtime export. A re-export without thetypekeyword, for exampleexport { PathValue } from './eager'whereeager.tsdeclaresexport type PathValue = ..., was a value export infallow health --coverage-gaps. TypeScript erases such a re-export, so no test can run it. The rule now follows the re-export chain. It skips the export when the name resolves to a type alias or an interface and to no value. A class, an enum, or aconstwith a type of the same name stays a runtime export. A file that only re-exports types in this way is no longer a runtime file, and thevalue_export_countof an untested file uses the same check.(Closes #5361)
Performance
Extraction skips the call facts when no rule reads them. Only the
constant-parameterrule family and thehealthcommand read the call facts of a file. Other runs now skip the pass that collects them, so a coldfallow dead-coderun does less work per file. The output does not change.A warm run after an edit that keeps the import statements no longer
resolves the imports of the project again. The module graph cache now
holds a second hash for each file, over the facts that import resolution
reads. When the content of a file changed, and no import, re-export,
require()call,import()call or module mock of any file changed ormoved, the run takes the resolved imports from the cache and builds the
graph from the edited modules. An edit above a
require()orimport()call moves that call, so the run resolves again. In the
--performancetable a run that reuses the resolved imports shows
resolve imports: 0.0mstogether with the linegraph cache not reused: at least one file changed. A project with convention auto-imports resolves again aftereach edit, as before. The first run after the upgrade discards the old
graph cache once.
A warm run no longer reads the metadata of each unchanged file a second time. When the parse cache serves a file from its metadata alone, the cache update after the parse keeps the stored entry and makes no new metadata read for that file. Before, the update read the metadata of every file again on one thread, also on a run where no file changed.
The scan of git hook files is fast again. The scan reads a list of
candidate files (husky, lefthook, simple-git-hooks, lint-staged and agent
hook configs) for the project root and for each workspace. The bounded
read of each candidate resolved the path again, and a missing candidate
took several path resolutions. The scan now resolves the read scope once
for each root, and a missing candidate costs one
lstatcall. On acheckout of
vuejs/core, thescript analysisrow of--performancegoes from about 63 ms to about 9 ms. Each bounded read of a missing
project file, for example a missing
tsconfig.json, also takes fewer pathresolutions, and the check of a workspace member
package.jsonthat is aplain file takes two
lstatcalls. A link that leaves the project, adangling link, a file that is not a regular file and a file that is too
large are still refused.
(Closes #5320)
A run without a reader skips the feature flag walk and the component
contract scans. The parse walked each file for feature flags and
collected the component contracts of each file, also when no rule or
report of the run read them. Now only
fallow flags, the HTML output offallow vizand theabsent-component-proprule turn these scans on. Theparse cache records which entries hold the facts, so a later run that reads
them parses only the files whose entry lacks them. The output does not
change.
The fallow binaries use the mimalloc allocator on every platform. Before, only the Linux musl binaries used it. The parallel analysis makes many small allocations, and mimalloc handles them with less CPU time than the system allocators. On macOS, a cold
dead-coderun with all threads used 9% to 29% less CPU time on four public projects. Peak memory rises by a fixed amount of about 12 to 25 MiB on a multi-core machine. On the largest project (about 700 MiB peak), peak memory rose by 5% to 7%. The Linux binaries turn off the eager arena commit of mimalloc, as the musl binaries already did, because it raises peak memory on Linux.The plugin stage is faster on large monorepos. Fallow looks for some plugin config files in folders that the file walk skips, such as hidden folders. It does this in each folder that holds a source file. Before, each of these lookups did a full path check, also when the folder did not exist. Now one
statcall rules out a missing folder first. On next.js, the plugin stage of a colddead-coderun takes about 60% less time, and the full run about 20% less. The results do not change.The Linux x64 musl, Linux arm64 glibc, macOS x64 and Windows x64 binaries now use profile-guided optimization. On the held-out benchmark projects, these binaries need less CPU time than the same builds without it: Linux x64 musl 12.4% less, Linux arm64 glibc 14.2% less, macOS x64 10.2% less, and Windows x64 4.1% less. The Linux x64 glibc and macOS arm64 binaries already used it.
Plugin detection is faster in monorepos with many workspaces. For each workspace, some plugins look for their config file anywhere below the workspace root. Before, each of these checks compared every folder of the project with the workspace root. Now each check reads only the folders of that workspace. On babel (174 workspaces), the plugin stage of a cold
dead-coderun takes about 38% less time. The results do not change.Security
fallow audit,fallow migrate, baselines, snapshots, saved mutation reports, coverage inputs, V8 scripts, plugin config probes, CI workflow, hook and infrastructure readers. A path that you name outside the project stays allowed.fallow ci, the build directory ofcoverage upload-source-mapsand the vendor directory ofci-template gitlab --vendormust not lead out of the working directory or the repository through a link.node_modulesdirectory at or above it, and inside the compiler package. A project config that leads out of the root is dropped. A semantic response path that leads above the root is refused.fallow plugin-checkno longer evaluates the detection of a plugin that fails validation.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).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.