JavaScript SDK 3.7.0

javascript-sdkfixedadded

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.

Fixed

  • bring back support for build-time env vars (#691) (c044ac4)
  • raise an error during wizening for async functions given to addEventListener (#689) (e6747a2)

Prior change: JavaScript SDK 3.6.2

Following change: CLI v10.5.0