fix(deps): update go modules #20
Loading…
Reference in a new issue
No description provided.
Delete branch "renovate/go-modules"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR contains the following updates:
v1.6.0→v1.7.0v1.11.1→v1.12.1v1.47.0→v1.48.0Release Notes
oapi-codegen/runtime (github.com/oapi-codegen/runtime)
v1.7.0: : Extensions for OpenAPI 3.1 parameter bindingCompare Source
This release teaches the parameter binders about OpenAPI 3.1 multi-type unions, and fixes a long-standing panic on the request binding path. As with v1.6.0, new behavior is controlled by explicit settings rather than assumptions: binding stays exactly as it was unless the new options are used.
Notable Changes
Binding OpenAPI 3.1 multi-type union parameters
OpenAPI 3.1 allows a parameter's
typeto be a list, such astype: [string, integer]. Go has no type meaning "one of these", so generated code maps such parameters toany— which the binders previously rejected outright withcan not bind to destination of type: interface, making these parameters unusable.The binder options structs (
BindStyledParameterOptions,BindQueryParameterOptions,BindStringToObjectOptions) gain aTypes []stringfield carrying the union's member list. It is only consulted when the destination is anany; binding into every concrete Go type is completely unchanged. The value binds to the first member that parses, tryingboolean,integer,number, thenstring— most restrictive first, since a string always parses. Member detection follows the JSON number grammar (RFC 8259), so values like007or+1bind as strings rather than being silently reinterpreted as numbers.The bound value's dynamic type is always one of
bool,int64,float64,string, or (withformat: byte)[]byte, so a handler's type switch is stable regardless of what the spec'sformatsays. Applications that wantformat: int32/format: floatto narrow the produced types toint32/float32can opt in via a new package-level setting, following the same pattern asDefaultQueryEncoderfrom v1.6.0:Generator support for emitting
Typesis landing inoapi-codegenseparately; the runtime side ships first so generated code can rely on it. Arrays of unions anddeepObject-style parameters are not covered yet — see theTypesfield documentation for the exact scope.Fix for a panic when binding numeric values into slice destinations
Since v1.2.0, binding a string that happens to parse as an integer into a non-
[]byteslice destination panicked withreflect: call of reflect.Value.OverflowInt on slice Value, instead of returning an error. This was reachable from generated code on the request path: anullable.Nullable[[]string]query parameter using the default form/explode serialization would panic on?p=123while returning a normal binding error on?p=abc. These cases now return a cleancan not bind to destination of type: sliceerror.🚀 New features and improvements
🐛 Bug fixes
✍ Other changes
📦 Dependency updates
6 changes
Sponsors
We would like to thank our sponsors for their support during this release.
stretchr/testify (github.com/stretchr/testify)
v1.12.1Compare Source
This is the first release which has the minimum dependencies practical in testify v1. The last remaining dependencies are github.com/stretchr/objx which itself has no dependencies, and go.yaml.in/yaml/v3. Removing objx would require v2, it cannot be vendored. Removing YAML would require vendoring the yaml library, which would do more harm than good. It's better to become aware of vulnerabilities in the official yaml package than to attempt to maintain our own.
What's Changed
go.yaml.in/yaml/v3by @harryzcy in #1935New Contributors
Full Changelog: https://github.com/stretchr/testify/compare/v1.12.0...v1.12.1
What's Changed
go.yaml.in/yaml/v3by @harryzcy in #1935New Contributors
Full Changelog: https://github.com/stretchr/testify/compare/v1.12.0...v1.12.1
v1.12.0Compare Source
What's Changed
Functional Changes
Fixes
Documentation, Build & CI
New Contributors
Full Changelog: https://github.com/stretchr/testify/compare/v1.11.0...v1.12.0
What's Changed
New Contributors
Full Changelog: https://github.com/stretchr/testify/compare/v1.11.0...v1.12.0
temporalio/sdk-go (go.temporal.io/sdk)
v1.48.0Compare Source
Highlights
Added
workflow.GetRandomStreamfor named deterministic pseudorandom values in workflows.workflow.IsReadOnlyto report whether the workflow context is in a read-only path.client.Options.SdkNameandclient.Options.SdkVersionto override the SDK name and version reported in worker heartbeats.client.WorkflowRun.GetFirstExecutionRunIDto expose the first execution run ID returned by the server when starting a workflow.client.Client.CancelWorkflowWithOptionsandclient.Client.TerminateWorkflowWithOptionsto target a workflow execution chain by its first execution run ID. Cancellation options can also specify a reason.go.temporal.io/sdk/interceptor/tracing, a reworked tracing interceptor with corrected span parenting and span directions for span-kind mapping. It backs the newcontrib/opentelemetry-v2module and is not span-compatible with the tracing interceptor used bycontrib/opentelemetry(v1).Changed
OnceCellimplementation withsync.OnceValuefor lazy workflow run ID lookup.Fixed
BAD_REQUESThandler error. Atemporal.ApplicationErroror anexus.HandlerErroris now propagated to the caller as-is, and any other error is wrapped in aBAD_REQUESTnexus.HandlerErrorthat retains the original error as its cause. As an exception, a non-retryabletemporal.ApplicationErrorwith typePayloadValidationErroris reported as aBAD_REQUESTnexus.HandlerErrorwith the original error as its cause, since it indicates the operation input itself is invalid.TestWorkflowEnvironment.MutableSideEffectnow honors the provided equals function and only updates the recorded value when it changes, matching the real worker. Previously it ignored equals and returned a freshly computed value on every call.client.ExecuteActivity, inbound Nexus request links are forwarded to the activity and the activity link returned by the server is propagated back to the Nexus operation caller.What's Changed
New Contributors
Full Changelog: https://github.com/temporalio/sdk-go/compare/v1.47.0...v1.48.0
Configuration
📅 Schedule: (UTC)
* 0-3 * * 1)🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR has been generated by Mend Renovate.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.