This implements a new fastly.sdkVersion property as well as an equivalent import { sdkVersion } from 'fastly:experimental' version property.
This is immediately useful in the StarlingMonkey builds to be able to easily inspect if we are in a StarlingMonkey build by checking fastly.sdkVersion === 'starlingmonkey-dev', which allows smoothing over any test handling edge cases more easily.
It's included in the types as a hidden property that is experimental. The engine build for the main runtime is set to the next patch version with a -dev suffix.
We will need to ensure we update this definition for each version release.
This implements a new
fastly.sdkVersion
property as well as an equivalentimport { sdkVersion } from 'fastly:experimental'
version property.This is immediately useful in the StarlingMonkey builds to be able to easily inspect if we are in a StarlingMonkey build by checking
fastly.sdkVersion === 'starlingmonkey-dev'
, which allows smoothing over any test handling edge cases more easily.It's included in the types as a hidden property that is experimental. The engine build for the main runtime is set to the next patch version with a
-dev
suffix.We will need to ensure we update this definition for each version release.
Resolves https://github.com/fastly/js-compute-runtime/issues/775.