v1.14.1

Ironclad/rivetv1.14.1Jan 20, 2024by abrenneke

AI Summary

This is a bug fix and improvement release for Rivet v1.14.1. The release addresses several issues including fixing the Destructure Node to not wrap single-value results in arrays, validating HTTP Call Node URLs before calling them, and improving type inference for Object Nodes to return `object[]` instead of `object` when applicable.

Key Highlights

  • Fix Destructure Node wrapping single-value results in arrays (e.g., `$.path` now returns `"result"` instead of `["result"]` for single matches)
  • Validate HTTP Call Node URLs before calling them
  • Improve Object Node type inference to return `object[]` instead of `object` for object types
  • Improve type coercion for `type: 'object'` values to be treated like `any` for better array-to-string coercion
  • Fix `isSplitSequential` being serialized to project file

Full Release Notes

## Bug Fixes & Improvements

- Fix Destructure Node wrapping single-value results in arrays. If you do `$.path` and it only matches one thing, you will get `"result"` out instead of `["result"]`
- Validate HTTP Call Node URLs before calling them
- Improve Object Node type inference - if the type being returned is an object, it will correctly return `object[]` instead of `object` to improve type coercion in later nodes.
- Improve type coercion for `type: 'object'` values. This is now treated more or less the same as an `any` (the actual type is inferred by the value's type). This improves coercion to string for arrays.
- Fix `isSplitSequential` being serialized to project file.