Repository navigation
chore(deps): update go modules (non-major) - #178
Conversation
ℹ️ Artifact update noticeFile name: go.modIn order to perform the update(s) described in the table above, Renovate ran the
Details:
|
00855ca to
f5826ac
Compare
e0ac6d5 to
2384b3b
Compare
|
Important Review skippedBot user detected. To trigger a single review, invoke the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
e43838e to
6ec1869
Compare
a50f0af to
61dd0c2
Compare
1186808 to
47050ed
Compare
47050ed to
6b67833
Compare
…ins TypeMap - chi v5.3.x changes the route tree the route inventory / offline-routes / jellycompat route manifest tooling reads (TestOfflineRouteSet and TestMediaRouteManifest fail), so chi stays at v5.2.5. huma v2.39.x requires chi >= v5.3, so it is held at v2.38.0 with it. - pgx v5.11 added Rows.TypeMap(); the secret package's test fakes implement it. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Edited/Blocked NotificationRenovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR. You can manually request rebase by checking the rebase/retry box above. |
…kes gain TypeMap - govulncheck flags GO-2026-6443 in grpc v1.84.0, reachable through pluginhost's GRPCBroker; no tagged release fixes it yet (fix is only in a v1.85.0-dev pseudo-version), so grpc stays on v1.83.2 as on main. - watchstate and plugins test fakes implement pgx v5.11's Rows.TypeMap. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This PR contains the following updates:
v1.45.0→v1.47.1v1.20.0→v1.20.6v1.23.0→v1.23.10v1.109.0→v1.113.4v1.28.1→v1.28.2v2.38.0→v2.39.1v5.2.5→v5.3.2v5.10.0→v5.11.0v1.4.2→v1.5.0v1.30.0→v1.32.1v1.20.0→v1.21.0v3.27.3→v3.28.0v0.6.2→v0.6.3v0.21.1→v0.22.0v0.3.22→v0.3.23v0.55.0→v0.57.0v0.45.0→v0.46.0v0.58.0→v0.59.0v0.22.0→v0.23.0v0.47.0→v0.48.0v0.41.0→v0.42.0v0.15.0→v0.16.0v0.48.0→v0.50.0v1.83.2→v1.84.0v1.57.0→v1.60.1Release Notes
aws/aws-sdk-go-v2 (github.com/aws/aws-sdk-go-v2)
v1.47.1Module Highlights
github.com/aws/aws-sdk-go-v2/service/bedrockagentcore: v1.49.0github.com/aws/aws-sdk-go-v2/service/connect: v1.200.0github.com/aws/aws-sdk-go-v2/service/ec2: v1.334.0github.com/aws/aws-sdk-go-v2/service/guardduty: v1.93.0github.com/aws/aws-sdk-go-v2/service/iotwireless: v1.65.0github.com/aws/aws-sdk-go-v2/service/notifications: v1.17.0github.com/aws/aws-sdk-go-v2/service/sesv2: v1.74.0github.com/aws/aws-sdk-go-v2/service/sns: v1.47.1github.com/aws/aws-sdk-go-v2/service/socialmessaging: v1.21.0github.com/aws/aws-sdk-go-v2/service/vpclattice: v1.33.0v1.47.0Module Highlights
github.com/aws/aws-sdk-go-v2/service/backup: v1.60.4github.com/aws/aws-sdk-go-v2/service/bedrockagentcorecontrol: v1.59.0github.com/aws/aws-sdk-go-v2/service/cloudwatch: v1.67.0github.com/aws/aws-sdk-go-v2/service/devicefarm: v1.43.0github.com/aws/aws-sdk-go-v2/service/kinesis: v1.47.0github.com/aws/aws-sdk-go-v2/service/wafv2: v1.77.7v1.46.0Module Highlights
github.com/aws/aws-sdk-go-v2/service/bedrockruntime: v1.46.0github.com/aws/aws-sdk-go-v2/service/computeoptimizer: v1.49.0github.com/aws/aws-sdk-go-v2/service/costoptimizationhub: v1.22.0v1.45.1General Highlights
Module Highlights
github.com/aws/aws-sdk-go-v2/service/elasticache: v1.45.1github.com/aws/aws-sdk-go-v2/service/iotmanagedintegrations: v1.0.0github.com/aws/aws-sdk-go-v2/service/iotsitewise: v1.47.0github.com/aws/aws-sdk-go-v2/service/rds: v1.94.1aws/smithy-go (github.com/aws/smithy-go)
v1.28.2Compare Source
General Highlights
Module Highlights
github.com/aws/smithy-go: v1.28.2danielgtaylor/huma (github.com/danielgtaylor/huma/v2)
v2.39.1Compare Source
v2.39.1
Overview
A patch release: correctness fixes for resolvers, validation, and response handling, plus a dependency refresh.
Response Status Visible to Middleware Again
WithContextcontext propagation in v2.39.0 copied the response status by value, so middleware that calledWithContextand then readStatus()afternext()always saw0instead of the status the handler set, breaking access logging and telemetry. The status is now shared by every context copy across all adapters, restoring the pre-2.39 invariant while keeping context propagation intact. (#1081)Resolvers & Defaults in Arrays and Maps
[2]Item), not just slices (#1076)type Coords [2]float64) no longer panics, and is no longer conflated with a resolver on its element type, which previously ran the element's resolver twice and the collection's never (#1082)reflect: reflect.Value.Set using unaddressable valueand resolver mutations are no longer silently discarded (#1082)Stricter
emailanduriFormatsValidation for two string formats is tighter, so payloads that previously passed may now return
422:email/idn-emailaccept an addr-spec only; full mailbox forms with a display name (Name <user@example.com>) are rejecteduri/irirequire an absolute URI with a non-empty scheme, while relative references remain valid underuri-reference/iri-reference(#1068)Validation Robustness
$refduringValidatenow reportsexpected schema $ref to resolve: ...instead of panicking on a nil dereference, covering discriminators andmap[string]any/map[any]anyvalues (#1065)type IDs []int64) are built with their declared element type and validated with item, length, and uniqueness constraints intact (#1074)Other Fixes
HeadersErrornow contribute their headers to the response, matching the handler error path (#1070)What's Changed
New Contributors
Full Changelog: danielgtaylor/huma@v2.39.0...v2.39.1
v2.39.0Compare Source
v2.39.0
Overview
This release adds a new framework adapter, a handful of developer-facing features, and a large batch of correctness fixes spanning SSE, the Fiber adapter, schema generation, and validation.
Echo v5 Support
The
humaechoadapter now supports Echo v5 alongside the existing versions. (#959)No More Faulty Duplicate-Schema Panics
Registering operations that use inline structs with differing field names (and an empty operation ID) previously panicked at startup on a false-positive duplicate-schema collision. Conflicting names are now auto-incremented deterministically (
Request,Request1,Request2, ...), so the app starts and the generated spec stays readable. (#893)Context Propagation to Adapters
WithContextnow propagates the context directly into the underlying adapter's own context wrapper (bun, chi, echo, fiber, gin, go, httprouter) instead of relying on a generic sub-context, so cancellation and context values flow correctly through the request lifecycle. (#867)SSE Streaming on Fiber / fasthttp
Server-Sent Events (and other streaming responses) previously failed on the Fiber adapters with
unable to flush, since fasthttp doesn't implementhttp.Flusher. SSE now streams correctly on Fiber v2 and v3 via an internal streaming hook, with no new public API andfasthttpremaining an indirect dependency. (#1059)More SSE Improvements
EventSource.onopenfires immediately rather than waiting for the first event (#1038)New Features
Schema.Constfor pinning a schema to a single allowed value (#1004)encoding.TextUnmarshalersupport for slice query parameters, matching the existing behavior for scalar params (#1021)contentType:"application/json"are now unmarshalled and validated (#1060)Validation & Schema Fixes
Application/Jsonno longer returns415(#1052)required: truein the generated spec, per the OpenAPI specification (#1011)uniqueItemsvalidation when array items are unhashable types, now returning422correctly (#1045)json:",inline"tag is now honored for embedding anonymous fields in schemas (#1006)Adapter & Robustness Fixes
EachHeaderiteration (it previously invoked the callback once per byte, breaking cookie reads) and switchedBodyReadertoBody()for automatic request-body decompression (#1058)GETsub-requests back into the generatedPATCHhandler and panicking (#1049)getAPIPrefixwhen server URLs contain template variables like{port}or{version}(#1027)Docs UI & Documentation
allow-downloadsto the Stoplight CSP so the Export button works (#1048)What's Changed
encoding.TextUnmarshalersupport for slice query parameters by @B94715 in #1021New Contributors
Full Changelog: danielgtaylor/huma@v2.38.0...v2.39.0
go-chi/chi (github.com/go-chi/chi/v5)
v5.3.2Compare Source
What's Changed
middleware.NewCompressor(level, "/*")never worked and silently compressed nothing. Instead of turning it into a compress-everything catch-all (as proposed in #868 and #1121), we decided to reject both "/" and "/*" at construction and panic. Compressing every response wastes CPU on already-compressed types (zip, jpeg, png), which is why the middleware keeps a curated default list. Users should pass explicit content types.Full Changelog: go-chi/chi@v5.3.1...v5.3.2
v5.3.1Compare Source
What's Changed
New Contributors
Full Changelog: go-chi/chi@v5.3.0...v5.3.1
v5.3.0Compare Source
What's Changed
New Contributors
SECURITY: middleware.ClientIP, a replacement for middleware.RealIP
PR #967 introduced
middleware.ClientIP, a replacement formiddleware.RealIPthat closes the three open spoofing advisories:RemoteAddrresolution (convto)middleware.RealIP(Saku0512, Critical / 9.3)It also addresses issues outlined at:
middleware.RealIPis deprecated in this PR with pointers to the new API.The deprecation only adds a
// Deprecated:doc comment; the function keeps working for backward compatibility.Why a new middleware (not "fix RealIP in place")
RealIPhas two unfixable design choices: it mutatesr.RemoteAddr, and it tries to be a one-size-fits-all default by walking a hard-coded list of headers any client can supply. Per adam-p's "The perils of the 'real' client IP" (which calls chi out by name on this), there is no safe default — the user must pick their trust source explicitly.The new API
Four middlewares, two accessors. Pick exactly one middleware based on your
infrastructure, read the result with one of the two accessors:
Example usage:
And in your handler or downstream middleware:
Thanks to @adam-p, @c2h5oh, @rezmoss, @Saku0512, @convto, @Dirbaio, @jawnsy, @lrstanley, @mfridman, @n33pm, @pkieltyka for the prior discussions, detailed reviews, advisory reports, and test contributions that shaped this PR.
Full Changelog: go-chi/chi@v5.2.5...v5.3.0
jackc/pgx (github.com/jackc/pgx/v5)
v5.11.0Compare Source
This release adds direct PostgreSQL type scanning through
database/sqlon Go 1.27, improves compatibility withlibpq connection strings and PostgreSQL date/time values, and includes further decoder hardening. See Changes for
connection-string and date/time behavior changes that may affect existing applications.
Features
driver.RowsColumnScanner, allowing PostgreSQL types such as arrays and ranges to bescanned directly into Go values without
pgtype.Map.SQLScanner. Existingdatabase/sqlscalar conversions andsql.Scannerbehavior are preserved. The minimum supported Go version remains 1.25.Rows.TypeMapto expose the type map used to decode rows, including rows created byRowsFromResultReaderthat have no underlying
Conn. Custom implementations ofRows, including mocks, must add this method.Config.MaxProtocolMessageBodyLento configure the maximum incoming protocol message body size(carter-ya)
ErrReadOnlyConnection,ErrReadWriteConnection,ErrPrimaryConnection, andErrStandbyConnectionsentinel errors for
target_session_attrsvalidation, allowing callers to useerrors.Is(Adrian-Stefan Mares)pool_ping_timeoutin connection strings to configureConfig.PingTimeout. The default is zero;zero and negative durations mean no timeout (1991santhu)
Changes
Name-based row-to-struct mapping now matches explicit
dbtags case-insensitively, with exact matches takingprecedence so tags can still distinguish quoted column names that differ only by case (AlisinaDevelo)
pgconn: resolve the OS user account only when no user is supplied by the connection string, environment, or service
file, avoiding unnecessary account lookups and crashes in some restricted container environments. Home-directory
defaults for password, service, and TLS files remain available independently of the account lookup. On Unix these
now use
$HOMErather than the OS account's home directory (Mohamed MAACHE)pgtype:
date,timestampandtimestamptztext values are now parsed and written by a hand-written parser andencoder for PostgreSQL's ISO date/time format instead of
time.Parseandtime.Format. Go's layout language cannotexpress a variable-width year or the BC era, which is the root of the bugs below. The text scan path is roughly 2.5x
faster for
timestampandtimestamptz. Bug fixes:timestampandtimestamptzno longer silently move February 29 of a BC leap year to March 1 when encoding.time.Date(-4712, 2, 29, ...)was written as4713-03-01 BCand is now written as4713-02-29 BC. Thisaffected ordinary four-digit BC years, not only extended-range ones.
datewas never affected.timestampandtimestamptzcan now scan BC leap days.4713-02-29 BCpreviously failed withday out of range.datecould already scan them.10000-01-02 03:04:05previously failed to parse, sotimestampandtimestamptzvalues at the high end of PostgreSQL's range were unreadable over the simple protocol and in anyother text-format result.
time.Timearguments in the simple protocol now encode BC dates correctly, using the same timestamp encoder.carrying into the rest of the value) instead of being kept at full precision. PostgreSQL never sends more than six
fractional digits, so this only affects values from other sources.
Behavior changes:
datenow rejects impossible dates instead of normalizing them.2024-02-30returned2024-03-01and2024-13-01returned2025-01-01; both are now errors.timestampandtimestamptzalready rejected them.text format. PostgreSQL never sends out-of-range dates, so this only affects corrupt or hand-built input; the range
is checked in both formats so that whether a value is accepted does not depend on
QueryExecMode.timestamptzalso rejects time zone displacements outside PostgreSQL's signed 32-bit seconds range, while acceptingthe wider offsets emitted for POSIX time zones, such as
+16.timestamptzvalues scanned from the text format are now returned intime.Local, or inScanLocationwhen it isset, matching what the binary format has always returned. Previously the text path kept whatever location
time.Parsederived from the offset the server sent, so the same value scanned in the two formats could report adifferent
Location()andZone(). The instant is unchanged, but everything that renders the location changeswith it:
Timestamptz.MarshalJSONnow writes the client's offset rather than the server's, so a value the serversent as
+05:30marshals as2024-01-01T13:34:05-08:00on a UTC-8 client instead of2024-01-02T03:04:05+05:30,and
DecodeDatabaseSQLValuehandsdatabase/sqlatime.Timein that same location. Set the codec'sScanLocationtotime.UTCto pin the location regardless of the client's zone.pgconn: connection URIs (
postgres://...) are now parsed by a new parser designed to exactly match libpq's URIparser behavior instead of
net/url,making pgx accept and reject exactly the same URIs as libpq (verified by differential fuzzing against libpq itself).
Most connection strings are unaffected. Edge-case behavior changes, all matching libpq:
+in query values is literal, no longer decoded as a space.%00is rejected.%20).#is ordinary data, not a fragment delimiter.@before any/(previously the last@).ssl=trueis accepted as an alias forsslmode=requirein URIs (JDBC compatibility). A repeatedsslkeyfollows the same last-occurrence-wins rule as other repeated parameters, even across the rewrite to
sslmode. Ifthe final
sslvalue is nottrue, an independent explicitsslmoderemains in effect.postgres://h1,h2:5433/dbnow means h1:5432 andh2:5433 (previously both hosts got port 5433). A port list that is neither a single port nor exactly one port per
host is an error (
could not match N port numbers to M hosts), also for keyword/value connection strings.postgres://::1/dbwas previously accepted as host::1; it is now read as an empty host followed by port:1and fails with an invalid port error. Write it aspostgres://[::1]/db.h1,,h2) get the default host instead of being dropped. Likewise, an empty host ina keyword/value string (
host=) now means the default host -- typically the Unix socket directory -- where itpreviously meant a TCP connection to an empty hostname.
?port=in a URI orport=in a keyword/value string) now means the default port 5432 for theaffected hosts; previously it was an invalid port error. Like any connection-string port, a present-but-empty port
takes precedence over
PGPORT.net/urlrejected any URI containing one. The exception is a literal NUL byte, which is still rejected, as
net/urldid.(libpq never sees one -- C strings end at the first NUL -- but in Go a raw NUL could otherwise pass through into
the NUL-delimited startup message and inject extra parameters.)
Unlike libpq, unrecognized URI query parameters are still accepted (they become runtime parameters or pgx-specific
options). Parse error messages avoid quoting the unredacted connection string and redact recognizable password
fields on a best-effort basis. Invalid connection strings can be structurally ambiguous, so password redaction
cannot be guaranteed for every malformed input.
pgconn: keyword/value connection strings (
host=... user=...) now match libpq's parser exactly, the same treatmentthe URI parser received above and verified the same way, by differential fuzzing against libpq itself. Most
connection strings are unaffected. Behavior changes, all matching libpq:
\\and\'wereunescaped and every other backslash was kept. A value containing a backslash must now escape it, as libpq
requires:
sslcert=C:\path\to\certreads asC:pathtocertand has to be writtensslcert=C:\\path\\to\\cert.This mainly affects Windows certificate and key paths, which previously came through intact without doubling.
there; it was previously rejected with
invalid backslash. Inside a quoted value the escaped terminator leavesthe string unterminated, which is still an error.
missing "=" after "us" in connection info string) instead of becomingpart of the key. Whitespace around the
=is unaffected. This most often shows up with an unquoted valuecontaining a space:
application_name=my app host=xpreviously set neither parameter and sentapp hostto theserver as a runtime parameter, and now fails to parse.
As with URIs, unrecognized keywords are still accepted where libpq rejects them, and an empty
user=is stilldropped so that
PGUSERand the OS user still apply.Fixes
BeginorBeginTx(Victor Alejandro Sanz Ararat)
TraceQueryEndwhenExecfails while deallocating invalidated cached statements (Chris Bandy)completed, avoiding leaked prepared statements and unnecessary cleanup errors (Eliran Ben-Zikri)
LoadTypesoverwriting scalar codecs such asboxandpointwith an incorrectArrayCodec(Arsen Ozhetov)FETCHstatements,including batch and pipeline execution (water)
Batch.ExecStatementis mixed with other batch commands; preserve field descriptions for empty resultsand return a nil result from
Pipeline.GetResultson errorConfiguration
📅 Schedule: (in timezone UTC)
* 0-3 * * 1)🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ 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 was generated by Mend Renovate. View the repository job log.