Repository navigation
·
106 commits
to main
since this release
Immutable
release. Only release title and notes can be modified.
Bug fixes
- The GitHub Action and the GitLab template can baseline health and duplication on the default run. A project with existing complexity can now gate the default
fallowrun with a baseline. Set thehealth-baselineanddupes-baselineinputs of the action, orFALLOW_HEALTH_BASELINEandFALLOW_DUPES_BASELINEin the GitLab template. Create the files withfallow health --save-baselineandfallow dupes --save-baseline. Other commands ignore these inputs. Both integrations report a stale health or duplication baseline, or one that another command saved.fail-on-stale-baseline(FALLOW_FAIL_ON_STALE_BASELINE) judges these baselines too. It also judges a--health-baselineor--dupes-baselineflag that you pass throughargs(FALLOW_ARGS). (#3316) - The action and the GitLab template no longer count health findings that a baseline accepts. With a health baseline, the CLI passed, but the action and the GitLab template failed the job with
fail-on-issues. Afallow healthrun also failed the job. The count now uses the findings that remain after the baseline. (#3316) - The job summary counts health findings after the baseline. With a loaded health baseline,
fallow report --format github-summaryshows the new findings and gives the accepted ones as context, for example "2 new functions exceed thresholds (74 in the baseline)". Without a baseline, the summary does not change. (#3316) fallow --helpnames the baseline flags of the bare run. On barefallow,--baselineand--save-baselinehold the dead-code baseline only. When a bare run gets afallow healthorfallow dupesbaseline through--baseline,fallownow prints a note that tells you to use--health-baselineor--dupes-baseline. (#3316)- The Vitest JSX import source follows the Vitest project model. On Vitest 5, an inline
test.projectsentry inherits the JSX import source of its config unless it setsextends: false. On Vitest 4, it inherits only withextends: true. Fallow reads the Vitest version fromnode_modules/vitest, else from the declared range. Project and baseincludeglobs add up. Fallow also reads a config thatextendsnames. It reads project configs with a custom name, such asvitest.e2e.config.ts, also when a glob entry names them. Fallow no longer reports these files as unused. (#3318) - Fallow reads
test.excludefor the Vitest JSX import source. Whentest.excludeor a negatedtest.includeentry removes a test file, Fallow no longer applies the JSX runtime of its project to that file. Withouttest.exclude, the Vitest default exclude applies. The globs are relative totest.dir,test.rootor the Viterootwhen the config sets one. (#3318) reactis no longer an unused dependency when Vitest test files use JSX with the default runtime. When a Vitest config sets no JSX import source, Vite imports thereactJSX runtime. Fallow now creditsreactwhen a test file of that config has JSX and no@jsxImportSourcepragma. A TypeScript test file gives no credit when its tsconfig setsjsxImportSource, or ajsxmode without the automatic runtime. The credit applies only to the workspace of the test file. Avite.config.*next to avitest.config.*gives no credit, because Vitest does not load it. (#3318)- The source-map warning of
fallow coverage upload-source-mapstries the same paths as Fallow Cloud. The CLI dropped the first segments of a source such aswebpack:///@scope/app/./src/x.ts, and the cloud did not. The warning could then check a path that the cloud never uses. A shared fixture of path cases now keeps the two implementations equal. (#3320)
Full Changelog: v3.33.0...v3.33.1