Skip to content

Releases: chenglou/freerange

Release list

Freerange 0.0.1

Choose a tag to compare

@chenglou chenglou released this 21 Jul 00:24

Initial public release of @chenglou/freerange.

Added

  • fr reports numeric errors such as definitely invalid function arguments, failed static assertions, division by zero, possible NaN or Infinity, and out-of-bounds array reads.
  • fr --audit prints function requirements, return guarantees, assumptions, successful static assertions, analysis coverage, and concrete refactoring suggestions.
  • Static analysis for a deliberately restricted TypeScript subset, including control flow, loops, same-file function calls, plain records, tagged unions, dense arrays, fixed tuples, and common Math and Number operations.
  • Statically checked console.assert calls for declaring caller requirements and verifying numeric relationships inside functions.
  • TypeScript project integration that respects the project's tsconfig, reports TypeScript errors in the familiar format, and supports project-wide or single-file output.