Releases: bots-garden/capsule
v0.2.2 🦋 [butterfly]
v0.2.2 🦋 [butterfly] is like v0.2.1 🐌 [snail] the "NATS" release / but with the modules publication fixed
This release brings you NATS support (1st stage). You can start Capsule as a NATS subscriber to listen to a specific subject and then reply.
This NATS integration is effortless (it could evolve in the future):
1- Start Capsule in the "NATS" mode:
capsule \
-wasm=../wasm_modules/capsule-nats-subscriber/hello.wasm \
-mode=nats \
-natssrv=nats.devsecops.fun:4222 \
-subject=ping
2- Write your NATS subscriber WASM module:
package main
import (
hf "github.com/bots-garden/capsule/capsulemodule/hostfunctions"
)
func main() {
hf.OnNatsMessage(Handle) // listening and trigger the Handle function at every message
}
func Handle(params []string) {
hf.Log("👋 on subject: " + hf.NatsGetSubject() + ", 🎉 message" + params[0])
// reply on another subject
_, err := hf.NatsPublish("notify", "it's a wasm module here")
if err != nil {
hf.Log("😡 ouch something bad is happening")
hf.Log(err.Error())
}
}
New host functions:
OnNatsMessage
NatsPublish
NatsConnectPublish
NatsConnectPublish
NatsGetSubject
NatsGetServer
👀 at the
README.md
file for more details: https://github.com/bots-garden/capsule#first-nats-function
v0.2.1 🐌 [snail] the "NATS" release
This release brings you NATS support (1st stage). You can start Capsule as a NATS subscriber to listen to a specific subject and then reply.
This NATS integration is effortless (it could evolve in the future):
1- Start Capsule in the "NATS" mode:
capsule \
-wasm=../wasm_modules/capsule-nats-subscriber/hello.wasm \
-mode=nats \
-natssrv=nats.devsecops.fun:4222 \
-subject=ping
2- Write your NATS subscriber WASM module:
package main
import (
hf "github.com/bots-garden/capsule/capsulemodule/hostfunctions"
)
func main() {
hf.OnNatsMessage(Handle) // listening and trigger the Handle function at every message
}
func Handle(params []string) {
hf.Log("👋 on subject: " + hf.NatsGetSubject() + ", 🎉 message" + params[0])
// reply on another subject
_, err := hf.NatsPublish("notify", "it's a wasm module here")
if err != nil {
hf.Log("😡 ouch something bad is happening")
hf.Log(err.Error())
}
}
New host functions:
OnNatsMessage
NatsPublish
NatsConnectPublish
NatsConnectPublish
NatsGetSubject
NatsGetServer
👀 at the
README.md
file for more details: https://github.com/bots-garden/capsule#first-nats-function
v0.2.0 🪲 [beetle]
OnLoad
&OnExit
functions- Memory cache host functions (
MemorySet
,MemoryGet
,MemoryKeys
)
v0.1.9 🐞[ladybug]
- Response
- Request
v0.1.8 🐙[octopus]
- #116 Wazero dependencies update 🙏 thank you to @codefromthecrypt
- #118 Redis host functions: add the KEYS command
- 🐛 fix: install scripts
v0.1.7 🦑[squid]
- PR from @codefromthecrypt #113 🙏
- Various bug fixes #111 #
🦞 lobster (rename the CLI: caps + case non sensitive headers)
- Rename the CLI to caps
- Try to fix the case-sensitive issues with the headers (when using ADMIN_TOKEN with registry, reverse-proxy, worker)
🦐 Shrimp (big gardening 🌺)
0.1.5 📦 release 🚀 v0.1.5 🦐
🐡 BlowFish (temporary release for tests on Pi A3+)
0.1.4 📦 release almost ready for release
🐠 Tropical Fish (with worker for other OS/fix)
0.1.3 📦 release prep pub 0.1.3