Skip to content

v0.4.0

Compare
Choose a tag to compare
@github-actions github-actions released this 17 Feb 17:27
· 102 commits to main since this release
v0.4.0
95104e9

This release brings in a few exciting changes and improvements to the SDK:

  • The SDK now supports Spin KV allowing for data persistence.
  • A new handler function signature that enables building responses by chaining:
import { Handler, HttpRequest, HttpResponse } from "spin-sdk"

export const handler: Handler = async function (request: HttpRequest, response: ResponseObject): Promise<void> {

    response.status(200).header("content-type", "text/html").body("Chaining works")
}
  • More flexible types on fetch and response allowing for usage of strings.
  • Addition of more cryptography functions:
    • timingSafeEqual
    • crypto.verify
  • Add Redis execute command to allow running arbitrary Redis commands.
  • Addition of setTimeout.

See below for the full list of changes.

What's Changed

New Contributors

Full Changelog: v0.3.0...v0.4.0