Tags: infratographer/x
Tags
fix error marshalling issues (#235) Errors from AuthRelationshipResponse were being marshalled but due to the error interface could not be unmarshalled. This changes the type to be a new Errors type which can handle encoding and decoding errors without resulting in unmarshalling errors. The errors returned implement the error interface however they cannot be directly compared due to the errors being dynamically generated. Signed-off-by: Mike Mason <[email protected]>
fix(deps): update module golang.org/x/oauth2 to v0.19.0 (#216) [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | golang.org/x/oauth2 | `v0.18.0` -> `v0.19.0` | [![age](https://developer.mend.io/api/mc/badges/age/go/golang.org%2fx%2foauth2/v0.19.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/go/golang.org%2fx%2foauth2/v0.19.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/go/golang.org%2fx%2foauth2/v0.18.0/v0.19.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/go/golang.org%2fx%2foauth2/v0.18.0/v0.19.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/infratographer/x). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4yNjkuMiIsInVwZGF0ZWRJblZlciI6IjM3LjI2OS4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
fix(deps): update module github.com/brianvoe/gofakeit/v6 to v7 (#209) [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [github.com/brianvoe/gofakeit/v6](https://togithub.com/brianvoe/gofakeit) | `v6.28.0` -> `v7.0.2` | [![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fbrianvoe%2fgofakeit%2fv6/v7.0.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fbrianvoe%2fgofakeit%2fv6/v7.0.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fbrianvoe%2fgofakeit%2fv6/v6.28.0/v7.0.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fbrianvoe%2fgofakeit%2fv6/v6.28.0/v7.0.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>brianvoe/gofakeit (github.com/brianvoe/gofakeit/v6)</summary> ### [`v7.0.2`](https://togithub.com/brianvoe/gofakeit/compare/v7.0.1...v7.0.2) [Compare Source](https://togithub.com/brianvoe/gofakeit/compare/v7.0.1...v7.0.2) ### [`v7.0.1`](https://togithub.com/brianvoe/gofakeit/compare/v7.0.0...v7.0.1) [Compare Source](https://togithub.com/brianvoe/gofakeit/compare/v7.0.0...v7.0.1) ### [`v7.0.0`](https://togithub.com/brianvoe/gofakeit/releases/tag/v7.0.0): - math/rand/v2 [Compare Source](https://togithub.com/brianvoe/gofakeit/compare/v6.28.0...v7.0.0) ### Gofakeit v7: What's New! #### 🎲 `math/rand/v2` Integration - **Better RNG** 🔒: Now using `math/rand/v2` for a more simplistic implementation and two new source types(pcg, chacha8). - **Simplified `faker`** 🧹: Refined `faker` struct for ease of use, mirroring the simplicity improvements of `math/rand/v2`. #### ✨ Highlights - **New Sources** : math/rand/v2 added PCG and ChaCha8. Gofakeit also added a sub package called [source](https://togithub.com/brianvoe/gofakeit/tree/master/source) with additional sources in it. #### Example New and NewFaker usage ```go import ( "github.com/brianvoe/gofakeit/v7" "github.com/brianvoe/gofakeit/v7/source" "math/rand/v2" ) // Uses math/rand/v2(PCG Pseudo) with mutex locking faker := gofakeit.New(0) // NewFaker takes in a source and whether or not it should be thread safe faker := gofakeit.NewFaker(source rand.Source, threadSafe bool) // PCG Pseudo faker := gofakeit.NewFaker(rand.NewPCG(11, 11), true) // ChaCha8 faker := gofakeit.NewFaker(rand.NewChaCha8([32]byte{0, 1, 2, 3, 4, 5}), true) // Additional from Gofakeit sub package source // JSF(Jenkins Small Fast) faker := gofakeit.NewFaker(source.NewJSF(11), true) // SFC(Simple Fast Counter) faker := gofakeit.NewFaker(source.NewSFC(11), true) // Crypto - Uses crypto/rand faker := gofakeit.NewFaker(source.NewCrypto(), true) // Dumb - simple incrementing number faker := gofakeit.NewFaker(source.NewDumb(11), true) ``` #### 🙏 Acknowledgments A huge shoutout to our contributors and users! Your feedback and support have been invaluable. 🌟 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/infratographer/x). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4yNjkuMiIsInVwZGF0ZWRJblZlciI6IjM3LjI2OS4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9--> --------- Signed-off-by: Nicole Hubbard <[email protected]> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Nicole Hubbard <[email protected]>
fix(deps): update module go.step.sm/crypto to v0.35.1 (#156) [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [go.step.sm/crypto](https://togithub.com/smallstep/crypto) | require | patch | `v0.35.0` -> `v0.35.1` | --- ### Release Notes <details> <summary>smallstep/crypto (go.step.sm/crypto)</summary> ### [`v0.35.1`](https://togithub.com/smallstep/crypto/compare/v0.35.0...v0.35.1) [Compare Source](https://togithub.com/smallstep/crypto/compare/v0.35.0...v0.35.1) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/infratographer/x). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4wLjMiLCJ1cGRhdGVkSW5WZXIiOiIzNy4wLjMiLCJ0YXJnZXRCcmFuY2giOiJtYWluIn0=--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Fix QueueSubscribeSync and backoff errors (#146) Core NATS subscriptions were incorrectly using `SubscribeSync` instead of `QueueSubscribeSync` and both core and JetStream subscriptions were waiting for the backoff period (default 5 seconds) for all iterations of the worker loop, not just error conditions. This PR fixes both issues. --------- Signed-off-by: John Schaeffer <[email protected]>
nats: change default delivery policy (#132) Previously the default was to set the Delivery Policy to all, however if connecting to a consumer which already existed with a different delivery policy, nats returns an error for a mismatch. This change removes the default when no delivery policy is defined, to not specify any delivery policy. Additionally, I've added the remaining delivery policy options. Signed-off-by: Mike Mason <[email protected]>
rewrite events handling to remove watermill (#130) As discussed in the community call, watermill doesn't give us the necessary features we'd like to utilize with the underlying nats message. We decided to switch to using nats directly but still wanted some support for possibly changing this out later. This rewrites events to use our own interfaces to allow for the possibility of a different event driver later. Additionally this switches to using pull subscriptions instead of push, supports Ack, Nak and Term as well as Request/Reply semantics. Due to the Request/Reply semantics, no longer are there separate Publisher and Subscriber configurations as the driver needs to be able to handle both. --------- Signed-off-by: Mike Mason <[email protected]>
PreviousNext