Skip to content

Releases: fermyon/spin-js-sdk

v2.3.0

11 Nov 13:24
b25de5c
Compare
Choose a tag to compare

NPM release: https://www.npmjs.com/package/@fermyon/spin-sdk/v/2.3.0

What's Changed

Full Changelog: v2.2.0...v2.3.0

v2.2.0

06 Sep 10:53
b399cc8
Compare
Choose a tag to compare

This release adds the ability to use weval for AoT compilation as an opt-in.

v2.1.0

03 Sep 08:03
4e63a7e
Compare
Choose a tag to compare
bump version number to 2.1.0 (#287)

Signed-off-by: karthik2804 <karthik.ganeshram@fermyon.com>

canary

14 Dec 20:33
c440112
Compare
Choose a tag to compare
canary Pre-release
Pre-release

This is a "canary" release of the most recent commits on our main branch. Canary is not stable.
It is only intended for developers wishing to try out the latest features in spin-js-sdk, some of which may not be fully implemented.

v0.6.1

02 Oct 13:18
v0.6.1
c7d201f
Compare
Choose a tag to compare
Spin JS SDK v0.6.1

v0.6.0

13 Sep 18:51
v0.6.0
39efd1f
Compare
Choose a tag to compare
Spin JS SDK v0.6.0

v0.5.1

18 Jul 16:47
v0.5.1
331bb13
Compare
Choose a tag to compare
Spin JS SDK v0.5.1

v0.5.0

11 Jul 16:49
v0.5.0
f1f15b9
Compare
Choose a tag to compare
Spin JS SDK v0.5.0

v0.4.0

17 Feb 17:27
v0.4.0
95104e9
Compare
Choose a tag to compare

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

v0.3.0

30 Jan 23:42
v0.3.0
3a069cb
Compare
Choose a tag to compare

This release brings in a couple of bugfixes and improvements

  • A new inbuilt router (based on itty-router) to provide easy routing in a single component. The new handleRequest method takes in the HttpRequest
import { HandleRequest, HttpRequest, HttpResponse } from "spin-sdk"

const encoder = new TextEncoder()

let router = utils.Router()

router.get("/", () => {return {status: 200, body: encoder.encode("default route").buffer}})
router.get("/home", () => {return {status: 200, body: encoder.encode("home route").buffer}})

export const handleRequest: HandleRequest = async function (request: HttpRequest): Promise<HttpResponse> {
    
    return await router.handle(request)
}
  • Addition of support for some cryptographic functions
    • crypto.createHash
    • crypto.createHmac
    • crytpo.subtle.digest

See below for the full list of changes.

What's Changed

Full Changelog: v0.2.0...v0.3.0