Skip to content

Releases: bots-garden/capsule

v0.2.2 🦋 [butterfly]

18 Sep 19:02
Compare
Choose a tag to compare
Pre-release

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

18 Sep 15:37
8da3975
Compare
Choose a tag to compare
Pre-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]

06 Sep 15:41
Compare
Choose a tag to compare
v0.2.0 🪲 [beetle] Pre-release
Pre-release
  • OnLoad & OnExit functions
  • Memory cache host functions (MemorySet, MemoryGet, MemoryKeys)

v0.1.9 🐞[ladybug]

03 Sep 20:59
dd90b15
Compare
Choose a tag to compare
v0.1.9 🐞[ladybug] Pre-release
Pre-release
  • Response
  • Request

v0.1.8 🐙[octopus]

03 Sep 11:00
e833f3d
Compare
Choose a tag to compare
v0.1.8 🐙[octopus] Pre-release
Pre-release
  • #116 Wazero dependencies update 🙏 thank you to @codefromthecrypt
  • #118 Redis host functions: add the KEYS command
  • 🐛 fix: install scripts

v0.1.7 🦑[squid]

30 Aug 11:19
200d778
Compare
Choose a tag to compare
v0.1.7 🦑[squid] Pre-release
Pre-release

🦞 lobster (rename the CLI: caps + case non sensitive headers)

21 Aug 06:40
Compare
Choose a tag to compare
  • 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 🌺)

15 Aug 13:30
Compare
Choose a tag to compare
Pre-release
0.1.5

📦 release 🚀 v0.1.5 🦐

🐡 BlowFish (temporary release for tests on Pi A3+)

14 Aug 15:28
Compare
Choose a tag to compare
0.1.4

📦 release almost ready for release

🐠 Tropical Fish (with worker for other OS/fix)

11 Aug 13:05
Compare
Choose a tag to compare
0.1.3

📦 release prep pub 0.1.3