From 5f2b342f3a10d86c03f138ba8bbdb228e57ae7e7 Mon Sep 17 00:00:00 2001 From: Nicolas Lepage <19571875+nlepage@users.noreply.github.com> Date: Sun, 19 Jan 2025 11:15:30 +0100 Subject: [PATCH] chore: v2.1.0 --- README.md | 4 ++-- docs/hello-sse/sw.js | 2 +- docs/hello-state/sw.js | 2 +- docs/hello/sw.js | 2 +- docs/tinygo/sw.js | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 468a8ac..9834dd3 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ - [Hello example with state and keepalive](https://nlepage.github.io/go-wasm-http-server/hello-state-keepalive) ([sources](https://github.com/nlepage/go-wasm-http-server/tree/master/docs/hello-state-keepalive)) - [😺 Catption generator example](https://nlepage.github.io/catption/wasm) ([sources](https://github.com/nlepage/catption/tree/wasm)) - [Random password generator web server](https://nlepage.github.io/random-password-please/) ([sources](https://github.com/nlepage/random-password-please) forked from [jbarham/random-password-please](https://github.com/jbarham/random-password-please)) - - [Server fallbacks, and compiling with TinyGo](https://github.com/nlepage/go-wasm-http-server/tree/master/docs/tinygo) (runs locally; see [sources & readme](https://github.com/nlepage/go-wasm-http-server/tree/master/docs/tinygo#README) for how to run this example) + - [Server fallbacks, and compiling with TinyGo](https://nlepage.github.io/go-wasm-http-server/tinygo/) (runs locally; see [sources & readme](https://github.com/nlepage/go-wasm-http-server/tree/master/docs/tinygo#readme) for how to run this example) ## How? @@ -119,7 +119,7 @@ importScripts('https://cdn.jsdelivr.net/gh/golang/go@go1.23.4/misc/wasm/wasm_exe // If you compiled with TinyGo then, similarly, use: importScripts('https://cdn.jsdelivr.net/gh/tinygo-org/tinygo@0.35.0/targets/wasm_exec.js') -importScripts('https://cdn.jsdelivr.net/gh/nlepage/go-wasm-http-server@v2.0.5/sw.js') +importScripts('https://cdn.jsdelivr.net/gh/nlepage/go-wasm-http-server@v2.1.0/sw.js') registerWasmHTTPListener('path/to/server.wasm') ``` diff --git a/docs/hello-sse/sw.js b/docs/hello-sse/sw.js index a07b179..fd2c8af 100644 --- a/docs/hello-sse/sw.js +++ b/docs/hello-sse/sw.js @@ -1,5 +1,5 @@ importScripts('https://cdn.jsdelivr.net/gh/golang/go@go1.23.1/misc/wasm/wasm_exec.js') -importScripts('https://cdn.jsdelivr.net/gh/nlepage/go-wasm-http-server@v2.0.5/sw.js') +importScripts('https://cdn.jsdelivr.net/gh/nlepage/go-wasm-http-server@v2.1.0/sw.js') const wasm = 'api.wasm' diff --git a/docs/hello-state/sw.js b/docs/hello-state/sw.js index 0ba7a81..0b26e7b 100644 --- a/docs/hello-state/sw.js +++ b/docs/hello-state/sw.js @@ -1,5 +1,5 @@ importScripts('https://cdn.jsdelivr.net/gh/golang/go@go1.23.1/misc/wasm/wasm_exec.js') -importScripts('https://cdn.jsdelivr.net/gh/nlepage/go-wasm-http-server@v2.0.5/sw.js') +importScripts('https://cdn.jsdelivr.net/gh/nlepage/go-wasm-http-server@v2.1.0/sw.js') const wasm = 'api.wasm' diff --git a/docs/hello/sw.js b/docs/hello/sw.js index a07b179..fd2c8af 100644 --- a/docs/hello/sw.js +++ b/docs/hello/sw.js @@ -1,5 +1,5 @@ importScripts('https://cdn.jsdelivr.net/gh/golang/go@go1.23.1/misc/wasm/wasm_exec.js') -importScripts('https://cdn.jsdelivr.net/gh/nlepage/go-wasm-http-server@v2.0.5/sw.js') +importScripts('https://cdn.jsdelivr.net/gh/nlepage/go-wasm-http-server@v2.1.0/sw.js') const wasm = 'api.wasm' diff --git a/docs/tinygo/sw.js b/docs/tinygo/sw.js index 9e351e3..bbb28aa 100644 --- a/docs/tinygo/sw.js +++ b/docs/tinygo/sw.js @@ -1,5 +1,5 @@ importScripts('https://cdn.jsdelivr.net/gh/tinygo-org/tinygo@0.35.0/targets/wasm_exec.js') -importScripts('https://cdn.jsdelivr.net/gh/nlepage/go-wasm-http-server@v2.0.5/sw.js') +importScripts('https://cdn.jsdelivr.net/gh/nlepage/go-wasm-http-server@v2.1.0/sw.js') const wasm = 'api.wasm'