1.164.0 - 2026-05-26
### Added
- Dart: typed metavariables (
$X as T) andmetavariable-type,
metavariable binding inside string interpolations, and function-definition
patterns that match Dart function definitions. (gh-11678)
### Changed
- The default memory limit for Pro interfile scans on Linux now adapts to the container's cgroup memory limit (90% of it) instead of the previous fixed 5 GiB, with an 8 GiB fallback when no cgroup limit is detected. (ENGINE-2568)
- Lower the glibc contraint from
>=2.35to>=2.34, allowing users on distros
that ship glibc 2.34 (e.g RHEL 9 & AL2023) to install the semgrep wheel. (gh-11622)
### Fixed
-
Baseline diff scans (
semgrep ciand--baseline-commit) no longer treat every finding on a file as newly introduced when rule(s) failed during the baseline run.Per-rule failures (for example a timeout for a single rule) on baseline analysis now hide only that rule's matches on that file from the "new vs baseline" comparison.
Other rules on the same file are still taken in comparison for the "new vs baseline" comparison.Per-file, rule-independent failures now hide all findings on that file from the "new vs baseline" comparison. (LANG-515)
-
Fixed a yarn.lock parse error on Yarn Berry entries written
in YAML explicit-key form. Affected lockfiles previously failed to parse. (SC-3479) -
The (beta) SBT resolver with
--allow-local-buildsnow correctly identifies dependencies as part of the Maven ecosystem. (SC-3522) -
Fix
--sarif-outputand--sarifcausing nosemgrep-suppressed findings to be reported in CLI scan output and to block scans. Suppressed findings are now correctly excluded from terminal text output, the scan-summary count, and the CLI's exit code. (engine-1824) -
Fixed a bug that could cause unreliable target filtering in parallel scans. (gh-6313)
-
Dart: improved parser fidelity for Dart 3 grammar features and routed
pattern parsing for statements beginning withawait,rethrow, and other
statement keywords. Eliminates a large class ofPartialParsingerrors on
real-world pub.dev packages. (gh-11678)
### Infra/Release Changes
- pro: macOS: Fixed dynamic library lookup for
semgrep-core-proprietaryso the binary works whensemgrep install-semgrep-prois invoked, andsemgrepis installed via Homebrew. (pro-binary-homebrew) - Pro: Added optional
<case>.named_ast.expectgolden files fortests/intrafile/maturity/fixtures, exercised byUnit_maturity_named_asts. (LANG-287)