Skip to content

v2.7.1: JSON-stringified array tolerance

Choose a tag to compare

@cyanheads cyanheads released this 14 Jun 08:11
v2.7.1
be52960

JSON-stringified array tolerance

Internal input-normalization robustness for LLM callers that serialize array arguments as JSON strings.

Changed:

  • toArray (query-helpers) parses a [-leading string that JSON.parses to an all-string array into that array; anything else falls through to the prior scalar-wrap. Overloads keep required call sites typed string[]. (#75)
  • get_field_values fields and get_study_results nctIds normalize through toArray. (#75)

Fixed:

  • get_field_values fields no longer wraps a JSON-stringified array into a single bogus element that fails downstream with an opaque upstream error. (#75)

Dependency bumps:

  • @biomejs/biome ^2.4.16 → ^2.5.0
  • @cloudflare/workers-types 4.20260611.1 → 4.20260613.1

513 tests pass; bun run devcheck clean.