Breaking changes
Removed endpoints
GET /drafts/preview/:id
Updated isolation library used for transition actions
We have updated the library that is used to run the transition actions in an isolated environment. These are the changes:All actions are now synchronous
You no longer have to use theawait when calling certain actions (but it will still be working with it).
Replaced action getFileStream
It is no longer possible to obtain a file stream in the isolated environment. Instead, use a new action getFile(hash) that returns an object with a file buffer.
Updated action callURL
Action callURL(resource, options, isolatedOptions) now accepts three arguments and always returns an object. This action still internally uses a fetch library and the first two arguments are not changed. But instead of returning a fetch “Response” object with functions like .text() or .json(), it will always return a plain object with properties:
body property.
If you need to get the response as a JSON, you can specify json: true as the third argument.
getFile action:
multipart/form-data, you have to specify a custom array body and formdata: true as the third argument (FormData interface is no longer available):
application/x-www-form-urlencoded, you have to specify a custom object body and urlencoded: true as the third argument (URLSearchParams interface is no longer available):