Files
Dragan Spiridonov f9d7fcba46 fix: parameterize LIMIT/OFFSET SQL and replace @faker-js/faker in generators
- witness-chain.ts: LIMIT/OFFSET now use parameterized ? bindings instead
  of string interpolation (SQL injection fix). Handle offset-without-limit
  via LIMIT -1, and limit=0 correctly returns zero rows.
- Replace @faker-js/faker imports in 7 generator files with lightweight
  test-value-helpers.ts using only node:crypto — eliminates ~6MB runtime
  dependency for npm consumers.
- Add range guards in test-value-helpers (int/float swap on inverted range).
- Add 17 unit tests for test-value-helpers and 3 pagination edge case tests.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-31 10:48:21 +00:00
..