Releases: knqyf263/go-plugin
v0.8.0
go-plugin v0.8.0 improves safety and performance of host functions that unmarshal a result from the guest. This change centers around freeing memory and was introduced by @lburgazzoli and optimized by @dmvolod. Thanks very much for keeping the project performing.
This also updates dependencies. Notably now that TinyGo 0.28.1 is out, we no longer test 0.25.0. Regardless, TinyGo only supports the most recent version.
v0.7.0
v0.6.1
v0.6.0
v0.5.0
v0.4.0
v0.4.0 fixes a bug where a plugin returned no result when it should have. Thanks @anxuanzi for the investigation and @mathetake for the fix. This also updates to the latest wazero 1.0.0-pre.4 release thanks to @codefromthecrypt. You should re-generate your source to take advantage of these improvements.
v0.3.0
go-plugin supports TinyGo 0.26.0 and also adds the ability to close a plugin.
Thanks to @anxuanzi for noticing the problem with TinyGo 0.26.0 and @mathetake for fixing it.
You do not need to do anything except upgrade and re-generate your source with protoc.
You should now defer closing a plugin after creating one. For example:
p, err := greeting.NewGreeterPlugin(ctx, greeting.GreeterPluginOption{})
if err != nil {...}
defer p.Close(ctx) // <-- here
Thanks to @codefromthecrypt and @mathetake for implementing Close.
v0.2.0
Changelog
- 708a56d Merge pull request #6 from codefromthecrypt/reflection-free
- 5ac6117 Changes generator to not use reflection for host functions
- 145881b dep: updates wazero to 1.0.0-pre.3 (#5)
- 522c85e dep: updates wazero to the latest (#3)
- a375473 Merge pull request #1 from mathetake/wazerobeta
- 431d064 Update wazero to the latest
v0.1.0
Changelog
- c844c5a Fix variable name
- 5683c2a remove cruft
- 23bbaa7 Update README
- 63282cf Add a logging tip
- 4f7c8cb Add a icon
- 54e10cd Add a note about host functions
- b2f5321 Update README
- 245644b Add Tips
- 1f76554 Add logging to host functions
- f38e79f Add test utils
- f5b4dae Bump version and re-generate files
- 1609e04 Add a test for host functions
- c574c7b Add README for examples
- f014fa7 Add tests for examples
- 4f102d0 Add a workflow for releasing binaries
- 3140fd5 Get go version from go.mod
- fb5b917 refactor
- a94b38d Add a workflow for unit tests
- 28d07b0 Add "test" target
- 1009601 rename test to tests
- 0415fb5 Add API version check
- 98c76f9 Update README
- 1ebeeca Add Makefile
- ada9224 Update the field test
- 8128310 Update README
- 8545d00 Add a example for well-known types
- 26e461b Add a WASI example
- 7f974c5 Add a test for importing proto files
- a5182a4 Add a test for well-known types
- 1feeaa1 Add a host-functions example
- c014c65 Add .clang-format
- ae174de Fix host functions
- b0f5731 Add utils
- ce45ec7 Add durationpb
- f14db52 Add sourcecontextpb
- 6b13d6c Add structpb
- 8eaee10 Add typepb
- 5ecac57 Add wrapperspb
- f0896d1 Add anypb
- 7e6c6ef Add timestamppb
- bcfe6dd Update emptypb
- 9933b5c Rename basic to helloworld
- c99ca86 Add field tests
- 61ccfed Support enum
- 11de1c6 Add emptypb
- a6e9184 Do not generate unneeded files
- efb7b91 Add an example for host functions
- addf172 Add empty.proto
- b9411a5 Add basic example
- dc77217 Add timestamppb
- 7a7a2c3 initial commit
- febab6c Initial commit