github unkn0wn-root/resterm v0.36.3

4 hours ago

What's Added

  • Source aware errors for RTS pre-request scripts. Errors now point to the real .http or included .rts source line with a caret and stack info.

Example:

# @rts pre-request
> request.setHeader("X", missing.value)
GET https://example.com

Now shows location:

error[script]: undefined name "missing"
--> sample.http:2:26
2 | > request.setHeader("X", missing.value)
  |                         ^

What's Changed

  • HTTP responses in statusbar now color the status based on the actual status code instead of treating every completed request as successful.
    - 2xx responses show as success.
    - 4xx responses show as warning.
    - 5xx, redirects and other non-success statuses show as error-level.
  • Status bar warnings now use a dedicated warning color instead of reusing the context label color.

Fixed

  • RTS errors from included .rts files now report the included file location, not just the parent request.
  • Query mutations preserve templated URLs.

Don't miss a new resterm release

NewReleases is sending notifications on new releases.