Releases: fermyon/spin-js-sdk
Releases · fermyon/spin-js-sdk
v2.3.0
NPM release: https://www.npmjs.com/package/@fermyon/spin-sdk/v/2.3.0
What's Changed
- add spin 3 interfaces and bump version number by @karthik2804 in #291
- fix kv serialization and bump package version by @karthik2804 in #292
- bump js sdk to version 2.3 by @karthik2804 in #294
Full Changelog: v2.2.0...v2.3.0
v2.2.0
v2.1.0
bump version number to 2.1.0 (#287) Signed-off-by: karthik2804 <karthik.ganeshram@fermyon.com>
canary
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
Spin JS SDK v0.6.1
v0.6.0
Spin JS SDK v0.6.0
v0.5.1
Spin JS SDK v0.5.1
v0.5.0
Spin JS SDK v0.5.0
v0.4.0
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
- add note to update templates by @karthik2804 in #109
- Make JS/TS templates match main repo. by @calebschoepp in #111
- add minimal
setTimeout
implementation by @dicej in #112 - Add string and uint8array to fetch body by @karthik2804 in #113
- make return type flexible by @karthik2804 in #115
- Add the toJson method URL and allow usage in fetch by @karthik2804 in #117
- add crypto.verify and timingSafeEqual by @karthik2804 in #120
- fix ci for checksum job by @karthik2804 in #121
- add new handler signature
handler(req, res)
by @karthik2804 in #116 - use canary spin to run tests by @karthik2804 in #124
- add support for Spin KV by @karthik2804 in #125
- Add support for redis
execute
by @karthik2804 in #123 - add .spin to gitignore in templates by @karthik2804 in #126
- version bump to v0.4.0 by @karthik2804 in #127
- bump template versions by @karthik2804 in #128
New Contributors
- @calebschoepp made their first contribution in #111
Full Changelog: v0.3.0...v0.4.0
v0.3.0
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 theHttpRequest
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
- add entries method to URLSearchParams by @karthik2804 in #91
- remove workarounds for
quickjs-wasm-rs
case conversion by @dicej in #81 - rename build action to release by @karthik2804 in #93
- typed options for fetch by @karthik2804 in #95
- Bump json5 from 2.2.1 to 2.2.3 in /examples/javascript/simple_ssr by @dependabot in #94
- fix URLSearchParams.entries and add iterator by @karthik2804 in #92
- make headers optional for http response by @karthik2804 in #89
- add release process by @karthik2804 in #96
- add some cli output while building the js module by @karthik2804 in #98
- add router to the SDK by @karthik2804 in #99
- add test action by @karthik2804 in #97
- add sha256 and sha512 digests by @karthik2804 in #101
- add createHmac method by @karthik2804 in #102
- enable
Wizer::wasm_bulk_memory
by @dicej in #105 - update spin to v0.7.1 in tests by @karthik2804 in #104
- use user input in
package.json
when usingspin new
by @karthik2804 in #106 - prepare for v0.3.0 by @karthik2804 in #107
- bump spin sdk version for release by @karthik2804 in #108
Full Changelog: v0.2.0...v0.3.0