Skip to content

release: integrate parser bugfixes, bundle cache hash keying, and scan linearity optimizations - #16

Merged
SMOSTAFAH1 merged 5 commits into
mainfrom
develop
Nov 22, 2026
Merged

SMOSTAFAH1 merged 5 commits into
mainfrom
develop

Conversation

@SMOSTAFAH1

Copy link
Copy Markdown
Member

Integration release bringing bug fixes, build cache isolation, and parser performance optimizations from develop into main.

Changes included:

  • Ordered list shortcut parsing: enforce a required space following list delimiters (. or )) to eliminate false-positive list conversions inside decimals and identifier tokens.
  • Bundle cache isolation: key esbuild bundle cache on source tree SHA-256 hash instead of process ID, preventing stale bundles across concurrent test workers and Docker containers.
  • Autolink email verification: replace backtracking regular expression with single-pass linear character validation, guaranteeing O(n) bounds against exponential backtracking.
  • Scan steps performance: make countSteps in production a bare in-place addition, isolating non-negative integer assertions into a test and benchmark harness checking wrapper.

Enforce a required space immediately following the ordered list delimiter (. or ) so decimal numbers and identifier tokens are not converted into numbered lists.
Key the esbuild bundle cache by a SHA-256 hash of the source tree instead of process.pid. Ensures test workers, Docker environments, and deadline workers share valid bundles across processes, and invalidates the cache immediately when any TypeScript source file changes.
Use bundleToDisk() to query the active cache bundle instead of constructing a pid-based path, matching the source-tree hashed cache scheme.
Replace backtracking regular expression with a linear single-pass validation for email autolinks (<user@domain.tld>), ensuring strictly O(n) parsing and preventing catastrophic backtracking.
Make countSteps in production a bare counter addition, relocating validation into a checking wrapper for tests and benchmark harnesses.
@sonarqubecloud

Copy link
Copy Markdown

@SMOSTAFAH1
SMOSTAFAH1 merged commit da50630 into main Nov 22, 2026
6 checks passed
@SMOSTAFAH1
SMOSTAFAH1 deleted the develop branch November 22, 2026 02:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants