v0.24.2
Change: remote.NewAllocator rewrites only a bare address of the debugging port of Chrome, such as ws://127.0.0.1:9222/. It asks /json/version only when the address has no query and a path of "", "/", "/json" or "/json/version". It asks over https for wss, and sends no query. If the answer is not 200 OK, it connects to the address as it is. Any other address, such as the complete address of a hosted service with a path or a query of its own, is used as it is. A wss address keeps its host name, so TLS works. A missing webSocketDebuggerUrl is now an error and not a panic, and the error of a failed dial no longer shows the query of the address, which can hold a token. Discussion #1650 reported the case.
Removed: remote.NoModifyURL. No address needs it. Remove it from the call of remote.NewAllocator.
v5.4.0
This release tightens parsing and validation. Tokens that were accepted before may now be rejected:
- Tokens with line breaks (CR or LF) in any segment are now rejected as malformed (#553).
MapClaimswithexpset to0is now treated as expired, not as a missing claim (#509).- An
audclaim of an invalid type inMapClaimsnow returnsErrInvalidType(#511).
- Constants for registered header parameter names, such as
HeaderAlgorithmandHeaderKeyID(#535).
- The token expired error now says how long ago the token expired (#510).
- @TarasHots made their first contribution in https://github.com/golang-jwt/jwt/pull/510
- @c-tonneslan made their first contribution in https://github.com/golang-jwt/jwt/pull/509
- @ultramcu made their first contribution in https://github.com/golang-jwt/jwt/pull/511
Full Changelog: https://github.com/golang-jwt/jwt/compare/v5.3.1...v5.4.0
v5.8.2
lego is an independent, free, and open-source project, if you value it, consider supporting it! ❤️
Everybody thinks that the others will donate, but in the end, nobody does.
So if you think that lego is worth it, please consider donating.
For key updates, see the changelog.
- 35e266037604491fa829a5eb6270e225095982fb dreamhost: use API v1 (#3416)
v0.24.1
Fix: an attach to a target that exists, with WithTargetID, raced with the DOM events of the page. newTarget loaded the document into the nodes of the frame on the goroutine of the caller, while the target read the nodes on its own goroutine without the lock of the frame. The target now reads the nodes only under the lock. arthurdls reported it in discussion #1649, with a test that needs no browser.
Update cdproto to v0.160.12.
v5.8.1
lego is an independent, free, and open-source project, if you value it, consider supporting it! ❤️
Everybody thinks that the others will donate, but in the end, nobody does.
So if you think that lego is worth it, please consider donating.
For key updates, see the changelog.
- 9c0e12bec0b4fb5ebad622532acfd1c3d753769c fix(gandiv5): clean up when existing TXT records (#3412)
v5.8.0
lego is an independent, free, and open-source project, if you value it, consider supporting it! ❤️
Everybody thinks that the others will donate, but in the end, nobody does.
So if you think that lego is worth it, please consider donating.
For key updates, see the changelog.
- 79bdf5f21c503542fb5c344a358b944eb1288143 Add DNS provider for Shellrent v3 (#3407)
- d693115a8b8433441877f441c7568d65db716c4b feat: follow order processing Retry-After (#3399)
- 12e462120738adc0195ef00552abb3cdba03a0d1 fix: RegisterWithExternalAccountBinding error (#3403)
- c9a9246f15b6b41b057e6c35cce91d60bfa5d398 tests: more real data (#3400)
9.24.1
This is a patch release with bug fixes. It also adds one option to redisotel-native (WithClosedPoolSeriesRetention), which has a default and needs no change. Upgrading from 9.24.0 is a drop-in replacement. Note the behavior change of ScanIterator.Vals below (due to a bugfix).
The RESP reader allocated a bulk reply with the length announced in its header. A server or proxy that announced a large length could make the client allocate that much memory before any data arrived. Replies up to 32 MiB are read as before. A larger reply now grows with the data that actually arrives. Above 32 MiB this costs more memory and time than a single allocation (fixes #4324) (#4343) by @PerryLink.
In redisotel-native, the db.client.connection.count and db.client.connection.pending_requests series of a closed client were observed at 0 until the next Shutdown. With clients created and closed over the process lifetime, the observer and each collection grew without limit. A closed pool's series is now observed at 0 for a retention window, so every reader that collects in that window gets the final decrement, and is then dropped. The default window is 5 minutes. Set it with Config.WithClosedPoolSeriesRetention, above your longest export or scrape interval (#4442) by @ndyakov.
Vals started at the first value of the current page each time, so after Next/Val or after a break out of a range over Vals, a new Vals loop returned values again. Vals now shares its position with Next and Val and returns only the remaining values. Code that ranged over Vals a second time to read the same page again now gets nothing for the values already returned (fixes #4427) (#4428) by @xixi-box.
HotKeysStart: nil options returnErrHotKeysNoMetricsinstead of panicking (fixes #4434) (#4437) by @Dazhou-delJSONDebugMemory: implemented with anIntCmd; it panicked before. The key position is set, so a cluster client routes it by key. For JSONPath queries, which return an array, useDo(fixes #4433) (#4436) by @Dazhou-del- TimeSeries range filters: empty
FilterByTSandFilterByValueslices are omitted like nil inTS.RANGE,TS.REVRANGE,TS.MRANGEandTS.MREVRANGE, instead of sending an empty clause (fixes #4432) (#4435) by @Dazhou-del - TimeSeries selected labels: an empty
SelectedLabelsslice no longer sends a bareSELECTED_LABELSinTS.MGET,TS.MRANGEandTS.MREVRANGE(#4425) by @pcbeingused333 - Connection state machine: a transition to the closed state wakes every waiter with
ErrStateMachineClosed, instead of leaving it blocked until its context expires (#4430) by @xgbtxy - Push notifications:
VoidProcessorreturns aReadReplyerror in the middle of a frame, likeProcessor, so the connection is discarded instead of reading the rest of the frame as a reply (#4431) by @xgbtxy - Sentinel: the failover client subscribes to
+slave-reconf-doneagain. An earlier rename to+replica-reconf-donemeant it never received the event, because Sentinel still publishes the old name (#4387) by @ruziba3vich - Cluster replica reads: the replica picker is called once per read and then every replica is tried, so a repeated index can no longer hide a healthy replica (#4394) by @ruziba3vich
- Cluster with a
ClusterSlotsfunction: loopback node addresses are kept as given and no longer rewritten to:port(#4411) by @ruziba3vich RoundRobinPicker: the index stays in range on 32-bit platforms (#4409) by @ruziba3vich- Cluster and Ring
PoolStats: include the per-node Pub/Sub stats,UnusableandPendingRequests, likeClient.PoolStats(#4413) by @ruziba3vich - Maintenance notifications: the delay for a
MOVINGnotification without an endpoint keeps the half second for an oddtimeS(#4393) by @ruziba3vich redisoteltracing: each cluster node gets its own copy of the tracing options, so its spans no longer carry the server attributes of other nodes, and a data race inOnNewNodeis removed (#4412) by @ruziba3vichredisotel-nativeerror types: only a Redis server error is classified by its prefix. Errors such asio.EOFare reported as internal, and a server error wrapped by a hook keeps its prefix (#4395) by @ruziba3vichrediscmd:CmdStringredacts thesentinel-passvalue ofSENTINEL CONFIG SET(#4382) by @ruziba3vich
- Command metadata without CSC: a standalone client with
CommandMetadataPreferLiveand no client-side caching no longer starts a metadata worker or sendsCOMMANDin the background. The metadata store is built only when CSC attaches (#4424) by @wozhenbang2004
We'd like to thank all the contributors who worked on this release!
@Dazhou-del, @ndyakov, @pcbeingused333, @PerryLink, @ruziba3vich, @wozhenbang2004, @xgbtxy, @xixi-box
Full Changelog: https://github.com/redis/go-redis/compare/v9.24.0...v9.24.1
9.24.1
This is a patch release with bug fixes. It also adds one option to redisotel-native (WithClosedPoolSeriesRetention), which has a default and needs no change. Upgrading from 9.24.0 is a drop-in replacement. Note the behavior change of ScanIterator.Vals below (due to a bugfix).
The RESP reader allocated a bulk reply with the length announced in its header. A server or proxy that announced a large length could make the client allocate that much memory before any data arrived. Replies up to 32 MiB are read as before. A larger reply now grows with the data that actually arrives. Above 32 MiB this costs more memory and time than a single allocation (fixes #4324) (#4343) by @PerryLink.
In redisotel-native, the db.client.connection.count and db.client.connection.pending_requests series of a closed client were observed at 0 until the next Shutdown. With clients created and closed over the process lifetime, the observer and each collection grew without limit. A closed pool's series is now observed at 0 for a retention window, so every reader that collects in that window gets the final decrement, and is then dropped. The default window is 5 minutes. Set it with Config.WithClosedPoolSeriesRetention, above your longest export or scrape interval (#4442) by @ndyakov.
Vals started at the first value of the current page each time, so after Next/Val or after a break out of a range over Vals, a new Vals loop returned values again. Vals now shares its position with Next and Val and returns only the remaining values. Code that ranged over Vals a second time to read the same page again now gets nothing for the values already returned (fixes #4427) (#4428) by @xixi-box.
HotKeysStart: nil options returnErrHotKeysNoMetricsinstead of panicking (fixes #4434) (#4437) by @Dazhou-delJSONDebugMemory: implemented with anIntCmd; it panicked before. The key position is set, so a cluster client routes it by key. For JSONPath queries, which return an array, useDo(fixes #4433) (#4436) by @Dazhou-del- TimeSeries range filters: empty
FilterByTSandFilterByValueslices are omitted like nil inTS.RANGE,TS.REVRANGE,TS.MRANGEandTS.MREVRANGE, instead of sending an empty clause (fixes #4432) (#4435) by @Dazhou-del - TimeSeries selected labels: an empty
SelectedLabelsslice no longer sends a bareSELECTED_LABELSinTS.MGET,TS.MRANGEandTS.MREVRANGE(#4425) by @pcbeingused333 - Connection state machine: a transition to the closed state wakes every waiter with
ErrStateMachineClosed, instead of leaving it blocked until its context expires (#4430) by @xgbtxy - Push notifications:
VoidProcessorreturns aReadReplyerror in the middle of a frame, likeProcessor, so the connection is discarded instead of reading the rest of the frame as a reply (#4431) by @xgbtxy - Sentinel: the failover client subscribes to
+slave-reconf-doneagain. An earlier rename to+replica-reconf-donemeant it never received the event, because Sentinel still publishes the old name (#4387) by @ruziba3vich - Cluster replica reads: the replica picker is called once per read and then every replica is tried, so a repeated index can no longer hide a healthy replica (#4394) by @ruziba3vich
- Cluster with a
ClusterSlotsfunction: loopback node addresses are kept as given and no longer rewritten to:port(#4411) by @ruziba3vich RoundRobinPicker: the index stays in range on 32-bit platforms (#4409) by @ruziba3vich- Cluster and Ring
PoolStats: include the per-node Pub/Sub stats,UnusableandPendingRequests, likeClient.PoolStats(#4413) by @ruziba3vich - Maintenance notifications: the delay for a
MOVINGnotification without an endpoint keeps the half second for an oddtimeS(#4393) by @ruziba3vich redisoteltracing: each cluster node gets its own copy of the tracing options, so its spans no longer carry the server attributes of other nodes, and a data race inOnNewNodeis removed (#4412) by @ruziba3vichredisotel-nativeerror types: only a Redis server error is classified by its prefix. Errors such asio.EOFare reported as internal, and a server error wrapped by a hook keeps its prefix (#4395) by @ruziba3vichrediscmd:CmdStringredacts thesentinel-passvalue ofSENTINEL CONFIG SET(#4382) by @ruziba3vich
- Command metadata without CSC: a standalone client with
CommandMetadataPreferLiveand no client-side caching no longer starts a metadata worker or sendsCOMMANDin the background. The metadata store is built only when CSC attaches (#4424) by @wozhenbang2004
We'd like to thank all the contributors who worked on this release!
@Dazhou-del, @ndyakov, @pcbeingused333, @PerryLink, @ruziba3vich, @wozhenbang2004, @xgbtxy, @xixi-box
Full Changelog: https://github.com/redis/go-redis/compare/v9.24.0...v9.24.1
v1.11.0
Changes since v1.10.2.
- The driver now requires Go 1.25 or later. The minimum supported server versions are MySQL 8.0 and MariaDB 10.11. (#1803)
-
Add the
tinyInt1IsBoolDSN parameter andTinyInt1IsBoolfunctional option, disabled by default to preserve numericTINYINTbehavior. When enabled, signed, non-ZEROFILLTINYINT(1)columns reportBOOLEANand scan typesboolorsql.NullBool; zero is returned asfalseand non-zero values astrue. This applies to both text-protocol queries and prepared statements. For non-NULL values, enabling the option makes integer scans fail and string scans return"false"or"true"instead of numeric strings. (#1805, #1845) -
Add a pluggable authentication system with the
AuthPlugininterface,AuthContext, andRegisterAuthPlugin. Custom plugins receive the connection context and an immutable snapshot of the selected credentials, established transport, and configured RSA public key. (#1696) -
Refactor the built-in authentication methods to use the plugin system and support multi-step authentication flows with multiple auth switch requests and continuation packets. Authentication now validates plugin state, rejects unsolicited public keys, preserves errors from plugins, and starts plugins only after the TLS handshake has completed. (#1696)
-
Add OpenID Connect authentication with the
OIDCTokenoption. The driver sends the token over TLS. (#1820) -
Add support for MariaDB PARSEC authentication. (#1827)
-
Add optional zstd protocol compression. Import
github.com/go-sql-driver/mysql/zstdfor side effects and enablecompress=trueto use zstd when the server supports it, with zlib as a fallback. (#1823) -
Preserve the order of DSN system variables when setting them on the server and when calling
FormatDSN. UseAddParamto specify that order when configuring a connection programmatically. (#1807)
-
For text queries, return
BIGINT UNSIGNEDvalues tosql.Scannerasint64when they fit and as decimal bytes for larger values. (#1860) -
Handle omitted column metadata in prepared statement
Execcalls on MariaDB. (#1862) -
Return
ErrMalformPktfor truncated OK, EOF, column definition, and statement prepare response packets. (#1858) -
Pass authentication switch data to plugins unchanged. (#1864)
-
Return the server error when available after a partial write. Discard the connection on SQLSTATE class 08 errors except error 1047. (#1852)
-
Implement
driver.RowsColumnScanneron Go 1.27 and later for both text queries and prepared statements. Reduce allocations when decoding short and empty column values. (#1816, #1846) -
Skip compression for outgoing payloads smaller than 512 bytes. (#1834)
v1.81.0
v1.81.0 tightens request-header termination, fixes content-type handling for encoded responses in fasthttpadaptor, and adds APIs for inspecting hijack behavior and exchanging headers without copying their contents.
- Nonempty request header blocks must end with CRLFCRLF. The parser validates the terminator at the first blank line instead of allowing a later CRLFCRLF sequence to make a malformed boundary appear valid. This keeps request boundaries consistent across fragmented reads and pipelined requests. Bare LF line endings within the block remain accepted when the block itself ends correctly. #2610
- Middleware can inspect whether hijacking suppresses the response.
RequestCtx.HijackNoResponse()returns the setting established byHijackSetNoResponse. Combined withHijacked(), it lets middleware distinguish a connection takeover without an HTTP response from one where fasthttp writes the response first. The setting only takes effect when hijacking is requested; existing hijack behavior is unchanged. #2614 - Headers can be exchanged without copying their contents.
RequestHeader.SwapandResponseHeader.Swapexchange contents, buffers, and settings, including cookies, trailers, and header normalization. Previously obtained byte slices continue to reference the same buffers, which belong to the other header after the swap. This avoids copying header data when moving it between requests or responses. #2615
- Adapted handlers no longer infer a content type from encoded bytes. When a
net/httphandler supplies a nonemptyContent-Encodingbut noContent-Type,fasthttpadaptorskips content sniffing and suppresses fasthttp's default content type. A gzip-compressed response is therefore no longer incorrectly labeledapplication/x-gzipbased on its compressed bytes. Both buffered and flushed responses follow this behavior. #2602
- Require CRLFCRLF at the end of nonempty request header blocks by @erikdubbelboer in https://github.com/valyala/fasthttp/pull/2610
- feat: add RequestCtx.HijackNoResponse by @ReneWerner87 in https://github.com/valyala/fasthttp/pull/2614
- feat: add Swap to exchange two headers without copying by @ReneWerner87 in https://github.com/valyala/fasthttp/pull/2615
- fix(fasthttpadaptor): do not sniff the Content-Type of an encoded body by @ruziba3vich in https://github.com/valyala/fasthttp/pull/2602
- chore(deps): bump golang.org/x/net from 0.62.0 to 0.63.0 by @dependabot[bot] in https://github.com/valyala/fasthttp/pull/2609
- chore(deps): bump github.com/klauspost/compress from 1.20.4 to 1.20.5 by @dependabot[bot] in https://github.com/valyala/fasthttp/pull/2608
Full Changelog: https://github.com/valyala/fasthttp/compare/v1.80.0...v1.81.0