Skip to content

ast-guard@2.0.0

Choose a tag to compare

@github-actions github-actions released this 06 Jan 02:17
· 47 commits to main since this release
8c67fb9

ast-guard v2.0.0

📦 npm: ast-guard@2.0.0


Added

  • for/while/do-while loops are now transformed with injected iteration counters that enforce the runtime __maxIterations limit instead of being rejected outright.
  • Agentscript preset now allows the __maxIterations global and ships a new InfiniteLoopRule that flags obvious infinite-loop syntax.

Changed

  • Loop guards throw a string error when the iteration ceiling is exceeded, so host runtimes must expose __maxIterations for transformed scripts to run.