Releases: fastly/js-compute-runtime
Releases · fastly/js-compute-runtime
v3.8.1
v3.8.0
3.8.0 (2024-01-11)
Added
- Add
manualFramingHeaders
onRequestInit
andResponseInit
, and addRequest.prototype.setManualFramingHeaders
andResponse.prototype.setManualFramingHeaders
(#705) - Add
Request.prototype.backend
getter to return the name of the backend assigned to the request (9c750e5) - Allow URL as input on fetch() on TypeScript typings for compat with Node.js (#707) (4f39943)
v3.7.3
v3.7.2
v3.7.1
v3.7.0
3.7.0 (2023-10-14)
Added
This release of @fastly/js-compute
includes 4 new methods to the Backend class, which enable the Fastly Service to retrieve information about any backend, this is particularly useful for checking if the backend is “healthy”. (#523) (08f816a)
The new methods are:
- Backend.exists(name) - Check whether a backend with the given name exists for the Fastly Service.
- Backend.fromName(name) - Check whether a backend with the given name exists for the Fastly Service and if it does, then returns an instance of Backend for the given name.
- Backend.health(name) - Returns the health of the backend with the given name.
- Backend.prototype.toName() - Return the name for the Backend instance.