Resonate v0.6.1
Overview
- This release brings user defined resources to the Resonate SDK along with minor bug fixes and improvements.
User defined resources
User defined resources, allows the users to defined their own resources in a specific resonate context and use it in all
its children contexts. Some examples of resources include database connections, file handles, sockets, etc.
With the introduction of Resources it was necessary to include a way to handle their lifecycle. Inspired by languages like go and zig,
the Resonate now has finalizers
, a finalizer is a function that gets executed at the end of the current context, it should be used
mostly for cleanup of resources but it is flexible for other use cases.
What's Changed
- Add user resources (dependency injection) and finalizers by @avillega in #135
- Extract runFunc into a stand alone function to reduce repetition by @avillega in #136
- Reintroduce
resonate.options
andctx.options
functions by @avillega in #137
Full Changelog: v0.6.0...v0.6.1