Releases: serverlessworkflow/sdk-go
Serverless Workflow Go SDK v2.2.1
Minor patch release to fix CVE-2022-32149.
What's Changed
- Fix CVE-2022-32149 by @ricardozanini in #133
Full Changelog: v2.2.0...v2.2.1
Serverless Workflow Go SDK v2.2.0
Big changes! Now the Go SDK officially supports the specification version 0.8. If you have problems, please don't hesitate to open an issue. You can find us at the serverless-workflow-sdk
channel on CNCF Slack.
What's Changed
- test(*): fix unittest assert.NoError checks and msg by @lsytj0413 in #67
- refactor(model): remove unnecessary code for slice length check by @lsytj0413 in #68
- fix(*): update auth type to array or string by @lsytj0413 in #71
- fix(44): add validate for ISO8601 time duration field by @lsytj0413 in #72
- feat(*): change test resources expression to jq by @lsytj0413 in #73
- fix(*): validate failed when transition is missing by @lsytj0413 in #75
- fix(*): validate stateExecTimeout iso8601 by @lsytj0413 in #76
- refactor(*): add iso8601duration validate tag by @lsytj0413 in #78
- feat(*): add v0.8 event data filter's useData field by @lsytj0413 in #79
- v08 spec alignment - Support custom function type definition by @spolti in #80
- feat(*): add v0.8 action data filter's useResults field by @lsytj0413 in #82
- feat(*): add v0.8 action data filter's condition field by @brlala in #83
- v08 spec alignment - Workflow name no longer a required property by @spolti in #81
- v08 spec alignment - Workflow start no longer a required property by @spolti in #84
- v08 spec alignment - ForEach state iterationParam no longer a require… by @spolti in #85
- Refactor table test by @brlala in #89
- v08 spec aligment - Added resultEventTimeout for action eventref by @spolti in #90
- Remove pointer map used to get AuthProperties by @calvinmclean in #87
- fix useResults no default value bug by @brlala in #91
- feat(action): add invoke/onParentComplete/Id field by @lsytj0413 in #93
- fix(ut): use filename for %s by @lsytj0413 in #94
- feat(*): add InvokeKind enum by @lsytj0413 in #97
- v08 - fix ContinueAs data field assignment by @spolti in #92
- feat(eventState): add default value
sequential
for OnEvents.ActionMode by @lsytj0413 in #96 - feat(*): add event default dataOnly & kind field value by @lsytj0413 in #101
- fix(*): continueAs doesn't have invoke & onParentComplete field by @lsytj0413 in #102
- fix nill state timeouts and enhance v08 test by @spolti in #104
- fix(103): support refs to yaml format file by @lsytj0413 in #105
- refactor(*): cleanup unused commented code by @lsytj0413 in #116
- feat(*): sync examples to v0.8 spec by @lsytj0413 in #100
- fix(*): parallelState with completeType defaults to allOf by @lsytj0413 in #106
- fix(109): split foreach state to separate file by @lsytj0413 in #118
- fix(121): split operation state to separate file by @lsytj0413 in #124
- fix(117): split callback state to separate file by @lsytj0413 in #119
- chore(*): add prow & labeler by @lsytj0413 in #128
- allow empty auth definitions in parser by @spolti in #111
- fix(121): split inject state to separate file by @lsytj0413 in #123
- fix(122): split switch state to separate file by @lsytj0413 in #127
- feat(114): support IncludePath option to define directory for non-absolute import files by @lsytj0413 in #130
- first iteration - deepcopy by @spolti in #131
New Contributors
- @lsytj0413 made their first contribution in #67
- @spolti made their first contribution in #80
- @brlala made their first contribution in #83
- @calvinmclean made their first contribution in #87
Full Changelog: v2.1.2...v2.2.0
Serverless Workflow Go SDK v2.1.2
A few infrastructure changes, dependencies, and Go runtime upgrades.
What's Changed
- Update golang lint in CI to 1.43.0 by @ricardozanini in #57
- Support multiple Auths by @davidesalerno in #56
- Configure WhiteSource Bolt for GitHub by @mend-bolt-for-github in #58
- Changed Retry.Multiplier, OnError.Transition, OnError.End to pointer by @globalflea in #49
- Fixes #63 - Upgrade dependencies and go version by @ricardozanini in #66
- Fixes workflow event states unmarshalling methods by @andresmijares in #65
New Contributors
- @davidesalerno made their first contribution in #56
- @mend-bolt-for-github made their first contribution in #58
- @globalflea made their first contribution in #49
- @andresmijares made their first contribution in #65
Full Changelog: v2.1.1...v2.1.2
Serverless Workflow Go SDK v2.1.1
Patch to correct minor bugs for the specification version 0.7.
What's Changed
- Fix EventState Exclusive parsing interface{} to *bool error by @VicNgu in #52
- Fixed Auth not setting properties field by @VicNgu in #54
New Contributors
Full Changelog: v2.1.0...v2.1.1
Serverless Workflow Go SDK v2.1.0
In this release, we upgrade the SDK to align with the Serverless Workflow specification v0.7.
Fixed Issues
#31 Update SDK with specification 0.7 version (@ricardozanini)
Serverless Workflow Go SDK v2.0.1
In this release, we fixed some bugs for the v0.6 specification model. Also, we fixed the dependency issue with the new 2.x version. Please update your go.mod
file to:
github.com/serverlessworkflow/sdk-go/v2 v2.0.1
Fixed Issues
#34 Go get does not get latest version of SDK (@ricardozanini)
#35 Parse funcRef refName correctly (@jjrodenburg)
#36 Retry Multiplier and Jitter should be float or string (@ricardozanini)
#37 remove subflow State type, add subFlowRef to Action (@mattgarmon)
#38 add graphql function type and selectionSet to functionRef (@mattgarmon)
#39 fix missing unmarshal for FunctionRef.SelectionSet (@mattgarmon)
Thank you all for the contributions!
Serverless Workflow Go SDK v2.0.0
In this release, we updated the SDK with the v0.6 release of the specification. The model API has been modified, so you will need to update your codebase to reflect these new changes.
Fixed Issues
- #16 - Switch types custom UnmarshalJSON only partially implemented.
- #17 - Eventstate does not default the 'exclusive' field to true.
- #18 - Add Workflow Compensation support
- #25 - Align SDK with specification 0.6
If you have any questions or requests, please open a new issue.
v1.0.0
On the behalf of the Serverless Workflow community, I'm pleased to announce that we're releasing Serverless Workflow Go SDK v1.0.0.
This is the first release of the SDK and conforms to the Serverless Workflow specification 0.5 release.
This release includes the ability to parse workflow JSON/YAML definitions to Go types.
For more information and how to use features of this release please look at the readme of the release branch for this release version.
Happy hacking!