releases.shpreview

Array output returns schema-transformed elements

ai@5.0.199

1 fixThis release1 fixBug fixesAI-tallied from the release notes

Patch Changes

  • 040dc83: fix(ai): return schema-transformed elements in array output mode

    Previously final array output validation checked each element against the schema but returned the raw model output. Array output now returns the validated values so Zod transforms, coercions, defaults, and pipes are applied consistently with object output.

Fetched June 11, 2026