Wails v3.2.0-nightly.20261123
Nightly preview of the upcoming v3.2.0.
- sync timestamp_server description with published field reference in PR by @taliesin-ai
🤖 This is an automated nightly pre-release generated from the latest changes on master. It is not selected by @latest; install it by its exact tag.
Installation:
go install github.com/wailsapp/wails/v3/cmd/wails3@v3.2.0-nightly.20261123
Tip: always pin an exact version (e.g. @v3.2.0-nightly.20261123) in go.mod and CI rather than @latest.
v1.80.0
v1.80.0 fixes client connection desynchronization when skipping response bodies and preserves cache variation headers during compression. It also adds helper APIs for downstream frameworks, makes parser errors matchable, and improves redirects, compression negotiation, and repeated-header handling.
- Skipping a response body no longer desynchronizes later requests. Reusing a
Responseafter HEAD no longer makes subsequent requests skip their bodies. When a caller explicitly skips a potentially present body,ClientandHostClientclose the connection instead of pooling it with unread bytes.PipelineClientreads and discards the body so the next pipelined response starts at the correct boundary. The caller'sSkipBodysetting is preserved. #2533 - Compression preserves every
Varyline. AddingAccept-Encodingno longer removes laterVaryfields, such asVary: Cookie. This fixes a regression that could let a shared cache reuse a response without considering all of its original variation criteria. BothCompressHandlerand compressed static-file serving are covered. #2598 - Unsigned float parsing rejects non-finite values and negative zero.
ParseUfloatand the argument getters that use it now reject NaN, infinity, and-0. Finite formats accepted bystrconv.ParseFloat, including a leading+, digit separators, and hexadecimal floats, remain supported. #2546
- Bounded decompression helpers work directly on byte slices.
AppendGunzipBytesWithLimit,AppendInflateBytesWithLimit,AppendUnbrotliBytesWithLimit, andAppendUnzstdBytesWithLimitappend decoded data while enforcing a limit on newly decoded bytes. Existing data in the destination does not count toward the limit. Exceeding the limit returnsErrBodyTooLarge; a non-positive limit leaves output unlimited. The zstd helper also limits decoder window size when a positive limit is supplied. #2520 - Frameworks can inspect header normalization and reuse redirect helpers.
RequestHeader.NormalizingDisabled()andResponseHeader.NormalizingDisabled()expose the current setting.HasNonHTTPSchemeWithoutAuthorityidentifies locations such asmailto:and native-app callbacks, andDefaultMaxRedirectsCountexports the existing default of 16.DoRedirectscontinues to use the count explicitly supplied by its caller. #2520 - Unsupported methods and unknown transfer codings have matchable errors.
errors.Iscan identifyErrUnsupportedRequestMethodregardless ofSecureErrorLogMessage. The newErrUnknownTransferCodingdistinguishes a well-formed but unsupported transfer coding from malformed framing and also matchesErrUnsupportedTransferEncoding. Custom error handlers can use these distinctions to choose between 501 and 400 responses; malformed request fields and targets still take precedence over an unknown coding. #2594
- Compression negotiation checks all supplied encodings.
HasAcceptEncodingscans everyAccept-Encodingheader line and continues after a matchingq=0member, so a later acceptable occurrence is considered. Compressible media types are also recognized case-insensitively. #2600, #2590, #2606 - Directory redirects preserve the client-facing path. For ordinary origin-form request targets,
FSadds the trailing slash to the original encoded path and retains the query string. Prefix stripping and virtual-host rewriting no longer expose the internal filesystem lookup path in the redirect. #2551 DoRedirectspreserves URL credentials on the initial request. Relative redirects retain URI credentials, while absolute redirects use only their own userinfo. An explicitAuthorizationheader still takes precedence and follows the existing host-based forwarding rules. #2531- URI updates separate queries from fragments. Updating a URI with
?next=2#newnow storesnext=2as the query andnewas the fragment, keeping the fragment out of the HTTP request line. Explicit empty query delimiters are preserved, including a redirect target ending in?. Hosts with an empty port, such asexample.com:or[::1]:, now receive the scheme's default port when dialing. #2592, #2603 - Repeated cookies and suppressed content types retain their meaning.
ResponseHeader.PeekAll("Set-Cookie")returns each cookie separately instead of joining them into one value;Peekis unchanged. Adaptednet/httphandlers that setContent-Typeto nil or empty now send no default content type, on both buffered and flushed responses. #2599, #2556
This release also adds a WebSocket README, reorganizes its tests, addresses intermittent CI failures, and clarifies retry callback eligibility and fragmented input to Request.Read.
- fix(client): don't let SkipBody desync reused responses and connections by @waw666waw666 in https://github.com/valyala/fasthttp/pull/2533
- fix: don't drop later Vary lines when adding Accept-Encoding by @waw666waw666 in https://github.com/valyala/fasthttp/pull/2598
- fix: reject NaN, infinity and negative zero in ParseUfloat by @Kernel-Hunter in https://github.com/valyala/fasthttp/pull/2546
- feat: add helper APIs for downstream frameworks by @gaby in https://github.com/valyala/fasthttp/pull/2520
- feat: make the unsupported method and unknown transfer coding errors matchable by @gaby in https://github.com/valyala/fasthttp/pull/2594
- fix(header): keep scanning Accept-Encoding after a q=0 member by @CJstate in https://github.com/valyala/fasthttp/pull/2590
- fix(fs): redirect a directory request to the path the client sent by @Dv2Corn in https://github.com/valyala/fasthttp/pull/2551
- fix: don't drop the URI userinfo in DoRedirects by @LuisFigueroaG in https://github.com/valyala/fasthttp/pull/2531
- fix(client): add the default port to a host with an empty port by @ruziba3vich in https://github.com/valyala/fasthttp/pull/2603
- fix(header): read every Accept-Encoding line in HasAcceptEncoding by @ruziba3vich in https://github.com/valyala/fasthttp/pull/2600
- fix: separate fragments in query-only URI updates by @anishpentyala in https://github.com/valyala/fasthttp/pull/2592
- fix(header): return each Set-Cookie value from ResponseHeader.PeekAll by @ruziba3vich in https://github.com/valyala/fasthttp/pull/2599
- fasthttpadaptor: send no Content-Type when the handler sets it to nil by @jaeminbird in https://github.com/valyala/fasthttp/pull/2556
- fix: recognize compressible media types case-insensitively by @Twiink in https://github.com/valyala/fasthttp/pull/2606
- websocket: sort the tests by file, tidy names and comments, add a README by @h2zi in https://github.com/valyala/fasthttp/pull/2558
- websocket: skip the tests that are flaky on Windows by @h2zi in https://github.com/valyala/fasthttp/pull/2587
- Fix five tests that fail intermittently in CI by @h2zi in https://github.com/valyala/fasthttp/pull/2589
- Fix typos in test comments by @ninglinLiu in https://github.com/valyala/fasthttp/pull/2596
- docs: clarify retry callback eligibility by @wozhenbang2004 in https://github.com/valyala/fasthttp/pull/2604
- docs: explain fragmented input to Request.Read by @wozhenbang2004 in https://github.com/valyala/fasthttp/pull/2605
- chore(deps): bump golang.org/x/crypto from 0.58.0 to 0.59.0 by @dependabot[bot] in https://github.com/valyala/fasthttp/pull/2588
- @waw666waw666 made their first contribution in https://github.com/valyala/fasthttp/pull/2533
- @Kernel-Hunter made their first contribution in https://github.com/valyala/fasthttp/pull/2546
- @ninglinLiu made their first contribution in https://github.com/valyala/fasthttp/pull/2596
- @ruziba3vich made their first contribution in https://github.com/valyala/fasthttp/pull/2603
- @anishpentyala made their first contribution in https://github.com/valyala/fasthttp/pull/2592
- @wozhenbang2004 made their first contribution in https://github.com/valyala/fasthttp/pull/2604
- @Twiink made their first contribution in https://github.com/valyala/fasthttp/pull/2606
Full Changelog: https://github.com/valyala/fasthttp/compare/v1.79.0...v1.80.0
v5.7.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.
- 54679098948d4bae957fafc02ea1ee4621bf1242 Add DNS provider for Com Laude (#2886)
- bdad9af7b385246c27dbe483e3390c9c7845f693 Add DNS provider for Domain Chief (#3352)
- edac9cfbe87b3ecf8b5f5da685498f2ac5a0763e Add DNS provider for DonDominio/MrDomain (#3342)
- 20bf264d164d0cbde17193f1d6d6bd15adaec00b Add DNS provider for EdgeCDN-X (#3381)
- 2a69b7a3376bc5ef055a06e8b3d20edb45d32024 Add DNS provider for Gyro (#3370)
- 0f98a6d0091e57aa9e9688ffd4ffe9761cddf9fa Add DNS provider for NameOcean (#3376)
- 31cfb9d482f3793304921e4251d95b8a597797a4 curanet: rewrite tests related to oauth (#3336)
- e4545633ce536831472271c3cbac9c352b431a09 feat(cli): randomize the dynamic renewal period (#3386)
- 94c6728f1f8d80c08a4016f1c14e492fa848564c feat: Add DNS provider for TotalUptime (#3383)
- 168b9636e7b34a632a5556b9072296015079c9b6 feat: improve ACME server errors management (#3360)
- 0b28569a827205c0ad3ca7b865d66dd9accec2ce feat: support ML-DSA (#3365)
- 7c6c47714184a82bf019823eacab08805214df73 fix: malformed Forwarded header (#3374)
- b3392aad70bba9874d22d3e19d4b9fc20be12021 fix: retries nonce based on number of calls (#3343)
- 2c2e50c536e92b460162e1f0a5f0452a3c24dba7 gandiv5: remove useless lock (#3394)
- d7ae1324e9de568429172e17ced073e2a5f49eee gandiv5: use verification record endpoint (#3391)
- c41c7a892054f2f606fc2ea52a67380204a553cd katapult: fix cleanup (#3397)
- 62aaeb35ebd5a4ba2482440fbbe35bcb9d7aa298 mythicbeasts: rewrite token management (#3337)
- 5b554546cb3294178a079b5ac55b9245b69d5aea namecheap: improve clean up value (#3395)
- cf784c26d026c30ee9aaee7b7d48a7c5d2f1dcda netcupv1: fix subdomain parsing (#3367)
- d53b6993cedea1a585db6326cee3457bb5e3e8f7 openprovider: migrate from v1beta to v1 (#3349)
- d28153077f0f6fe5145ba5e77a9f707414af9a5d tests: add more tests on certcrypto (#3377)
- 9ea516c317b826b675fdb8846d71f7989833054f versio: provider deprecation (#3359)
v5.4.7
Security
- Proxy middleware: after routing, a
.or..path segment (also encoded as%2e) was resolved byRewrite/RegexRewriteor by the upstream into a path the router never matched.GET /api/x/../admin/usersmatched an unprotected/api/*proxy group but reached the upstream as/admin/users, skipping middleware such as authentication on/api/admin. After routing, Proxy now returns400 Bad Requestfor such paths, and rewrite targets in Proxy and the Rewrite middleware are applied literally instead of being resolved; a target with a dot segment or a leading//is rejected. Fixes GHSA-w5j2-g3fc-pwr6. Reported by AndyAnh174. - Static files:
Static,StaticFS,Group.StaticandGroup.StaticFSwith a prefix without a trailing slash registeredprefix*, so/assetsadmin/private.txtwas served from<root>/admin/private.txtfore.Static("/assets", root), bypassing a guard on/assets/admin. They now registerprefix/*, plusprefixfor the redirect toprefix/. Fixes GHSA-76qj-xf66-r429. Reported by AndyAnh174. - Static middleware on a group: documented that
middleware.Staticattached withGroup#Useis not protected by guards on routes inside the group or on nested groups, and thatGroup#Staticshould be used for files behind such guards. See GHSA-5hp7-4fcm-57f9. Reported by AndyAnh174.
Fixes
- Map binding: binding path, query, header or form data into a map whose value type is not
string,[]stringoranyreturns an error instead of skipping the values, and named string types no longer panic. Fixes #3235 in #3238. - Gzip middleware:
Accept-Encodingquality values are honored (gzip;q=0refuses gzip,x-gzipis accepted, substrings such asnotgzipno longer match), and responses that already have aContent-Encoding, for example from a reverse proxy, are passed through instead of compressed twice. Also fixesWritereporting more bytes than given at theMinLengththreshold, a truncated stream when a handler only flushes, and staleContent-LengthandContent-Encodingheaders. Fixes #3232 and #2788 in #3239. - Response:
Flushcommits an uncommitted response,WriteHeaderpasses 1xx informational codes (such as103 Early Hints) through without committing, and the built-in error handlers removeContent-Encoding,Content-LengthandContent-Dispositionbefore writing the error body. Fixes #3240, #3241 and #3242 in #3243.
Behavior changes
- After routing, Proxy rejects paths with
./..segments, and a Rewrite middleware attached after routing (onEcho#Use, a group or a route) applies its targets literally: relative targets and absolute URLs are rejected.Echo#Preis unchanged. StaticandStaticFSreturn theRouteInfoofprefix/*instead ofprefix*, and file names that only start with the prefix (for example/img-logo.pngfore.Static("/img-", dir)) are no longer served.- Binding into an unsupported map type returns
400 Bad Request. - A handler that sets
Content-Encodingitself is assumed to have encoded the body; the Gzip middleware no longer compresses it. - Custom
HTTPErrorHandlers still need to clear staleContent-Encoding,Content-LengthandContent-Dispositionthemselves.
No dependency or minimum Go-version changes.
v4.16.6
Security
- Proxy middleware: after routing, a
.or..path segment (also encoded as%2e) was resolved byRewrite/RegexRewriteor by the upstream into a path the router never matched, bypassing route and group middleware such as authentication. After routing, Proxy now returns400 Bad Requestfor such paths, and rewrite targets in Proxy and the Rewrite middleware are applied literally instead of being resolved; a target with a dot segment or a leading//is rejected. Fixes GHSA-w5j2-g3fc-pwr6. Reported by AndyAnh174. - Static files:
Static,StaticFS,Group.StaticandGroup.StaticFSwith a prefix without a trailing slash registeredprefix*, so/assetsadmin/private.txtwas served from<root>/admin/private.txtfore.Static("/assets", root), bypassing a guard on/assets/admin. They now registerprefix/*, plusprefixfor the redirect toprefix/. Fixes GHSA-76qj-xf66-r429. Reported by AndyAnh174. - Static middleware on a group: documented that
middleware.Staticattached withGroup#Useis not protected by guards on routes inside the group or on nested groups, and thatGroup#Staticshould be used for files behind such guards. See GHSA-5hp7-4fcm-57f9. Reported by AndyAnh174.
Behavior changes
- After routing, Proxy rejects paths with
./..segments, and a Rewrite middleware attached after routing applies its targets literally: relative targets and absolute URLs are rejected.Echo#Preis unchanged. StaticandStaticFSreturn the route forprefix/*instead ofprefix*, and file names that only start with the prefix are no longer served.
No public API, dependency or minimum Go-version changes; Go 1.26 or later remains required.
9.24.0-beta.2
This is a beta release. It follows 9.24.0-beta.1 with bug fixes, the ACLGetUser command and one change to retry behavior. Read the behavior changes before you upgrade.
- Command retries no longer replay a failed dial sequence: for clients without a custom
Dialer(single commands, pipelines,Watch,ConnandTx, the Sentinel client, Ring shards and cluster nodes),MaxRetriesno longer starts a newDialerRetriessequence on an endpoint where one has already failed. With default options a refused connection is now reported after about 0.4s, where it took about 1.7s before. Attempts on other cluster nodes or Ring shards are kept, and a customDialerkeeps its previous retry behavior.DialTimeoutstill applies to each attempt, so a dial that hangs is still bounded byDialTimeouttimesDialerRetries. A command that reaches an exhausted node or shard skips that address and keeps its bounded retries for the others, and a cluster client asks for a topology reload, so a replacement can be reached in the same call. An unpinnedSCANthat exhausts a node also falls back to the replicas thatReadOnlyrouting allows (#4304, #4331) by @xixi-box, issue #4329. - Negative
pool_size:ParseURL,ParseClusterURLandParseFailoverURLreject a negativepool_size, where they used to panic, and a negativePoolSizein the options structs selects the default (#4325) by @ump45nose. LimitOffsetwithoutLimitreturns a page of 10: a search that setsLimitOffsetand leavesLimitat 0 now returns up to 10 documents from that offset. On Redis 7 it returned an empty page before, so code that relied on the empty page now gets documents. On Redis 8 it was an error (#4285) by @kevin9327.Cmd.Uint64of a negative integer: it now returns an error, as it does for other out-of-range values, where it returned the wrapped value (for exampleDECRgiving 18446744073709551615). Callers that read a signed 64-bit reply as unsigned, for exampleBITFIELD GET i64throughUint64Slice, now get an error (#4369) by @ruziba3vichFT.HYBRIDCOMBINE LINEARsendsWINDOW:FTHybridWithArgssendsWINDOWforLINEARas well as forRRF. Before, aWindowset together withLINEARwas silently ignored. It now takes effect (#4379) by @ruziba3vich
ACLGetUser: returns anACLUserwith the flags, passwords, command, key and channel rules and the selectors of a user, for Redis 7.0 and later. A missing user returnsredis.Nil.CmdablegainsACLGetUser, so a custom implementation such as a mock must add it (#4357) by @ruziba3vich- Idle connection reaper:
ConnMaxLifetimeReapInterval(onOptions,ClusterOptions,FailoverOptions,RingOptionsandUniversalOptions, andconn_max_lifetime_reap_intervalin URLs) starts a background goroutine that closes idle connections pastConnMaxLifetimeorConnMaxIdleTimeand refills the pool towardMinIdleConns, so expired connections are closed off the request path. It is off by default. When it is on, it also closes connections that were idle longer thanConnMaxIdleTime, 30 minutes by default. Connections in use, and connections that a re-auth or handoff worker owns, are skipped, and a refill towardMinIdleConnsadds dials at low concurrency (#4334, #4340) by @ndyakov ClusterSlotStatsandClusterSlotStatsOrderBy:CLUSTER SLOT-STATSwith a slot range orORDERBY, for Redis 8.2 and later. On aClusterClient,MultiDBClientandAutoPipelinerthe call asks every master and merges the replies, so the result covers the whole cluster and the top slots are global, as withDBSize. A pipeline still sends the command to one node. The slot metrics beyond the key count needcluster-slot-stats-enabled yeson the servers.ClusterCmdablegains the two methods, so a custom implementation such as a mock must add them (#4358) by @ruziba3vich
- Credential rotation with
MaxActiveConns: at theMaxActiveConnscap,Getnow waits withinPoolTimeoutfor an idle connection that is re-authenticating, and does not fail withErrPoolExhausted. Without a cap, or with room under it, the behavior is unchanged (#4313) by @xixi-box, issue #4311. A race at the cap, where the only connection finished re-authentication just before the capacity check, is closed by the same release (#4333) by @Tidehyc, issue #4332 ContextDeadlineError: a read timeout that arrives together with data no longer reaches the next command, and a socket timeout that fires slightly before the context deadline is still reported ascontext.DeadlineExceeded. This follows #4263 from 9.24.0-beta.1 (#4306) by @PerryLink, issue #4305- Search:
LimitOffsetwithoutLimitinFT.SEARCHandFT.HYBRIDoptions now uses the default page of 10. On Redis 8 the command was rejected withSEARCH_LIMIT_OVER(#4285) by @kevin9327, issue #4284 GEOSEARCHwithoutWITHflags:GeoSearchLocationno longer fails with a parse error when the query sets none ofWithCoord,WithDistandWithHash. The locations come back with onlyNameset (#4335) by @ruziba3vichBF.INFOof a non-scaling filter:BFInfoandBFInfoExpansionno longer fail withredis: nilfor a filter created withNONSCALING.ExpansionRateis 0 (#4336) by @ruziba3vich- JSON replies to a legacy path:
JSONObjLen,JSONStrLen,JSONStrAppendandJSONToggleno longer fail when the path does not start with$, and neither doesJSONTypewith RESP2. Before,JSON.STRAPPENDandJSON.TOGGLEhad already changed the document when the error was reported (#4337) by @ruziba3vich JSONNumIncrBywith RESP3: a path that matches values that are not numbers no longer fails withredis: nil.Val()returns the same string as with RESP2, for example[null,7], so code that usedredis.Nilto mean "no numeric match" now gets[null](#4338) by @ruziba3vich- Cluster redirects to an IPv6 address with a dotted quad: a
MOVEDorASKreply that points to an IPv6 address ending in a dotted quad, such as::ffff:10.0.0.1, is now dialable. The address is bracketed like any other IPv6 address (#4350) by @ruziba3vich HELLOpassword in traces and logs:rediscmd.CmdStringnow redacts theHELLOpassword whenAUTHcomes afterSETNAME. Before, aHELLOsent throughDoin that order showed the password in clear text in tracing and logging hooks built onrediscmd(#4348) by @ruziba3vichFT.HYBRIDwithShardKRatio:SHARD_K_RATIOis now counted in theKNNargument block, so the server accepts the command and no longer answersUnknown argument(#4353) by @ruziba3vichFT.HYBRIDCOMBINE LINEARweights: setting onlyAlphaor onlyBetano longer fails withMissing value for BETA. Both are sent when either is set, the unset one as 0 (#4354) by @ruziba3vich- Empty
Paramsmap in search:FTSearchWithArgs,FTAggregateWithArgs,FTSearchQueryandFTAggregateQueryno longer sendPARAMS 0for an empty, non-nil map, which the server rejected (#4355) by @ruziba3vich - Ring shards that share an address:
SetAddrsno longer leaks a client on each call when two shard names point to the same address. Every shard is now reused or closed (#4356) by @ruziba3vich MAXTEXTFIELDSinFT.CREATE:FTCreatewithMaxTextFieldsset now sendsMAXTEXTFIELDSas a bare flag, so the server accepts it and no longer answersUnknown argument(#4344) by @ruziba3vich- Disabled cluster options: a
-1retry backoff set onClusterOptionsnow reaches the node clients (#4345), and reusing one*ClusterOptionsfor a second client no longer turns disabled options (MaxRedirects, timeouts, retry backoff) back into their defaults (#4360) by @ruziba3vich FT.INFOon RESP2:FTInforeadsindex_definitionby key, soDefaultScoreand the other definition fields are correct and a short array no longer panics (#4347) by @ruziba3vich- JSON array commands on a legacy path:
JSONArrLen,JSONArrAppend,JSONArrIndex,JSONArrInsert,JSONArrTrimandJSONArrPopno longer fail to parse when the path does not start with$, and one such reply no longer shifts the replies of the commands after it in a pipeline (#4359) by @ruziba3vich JSONArrTrimarguments: the command is now sent with bothstartandstop, defaults 0 and -1, which keep the whole array. Before, the server rejected every call with a wrong number of arguments (#4361) by @ruziba3vichnet.IPfields in struct scan:HGetAll(...).ScanandHMGet(...).Scanread anet.IPthatHSetstored as raw bytes, where they failed withinvalid IP address. Text is tried first, so values that scanned before scan the same, and a 4 or 16 byte value that is not IP text now scans as a raw IP (#4362) by @ruziba3vich- Pointer arguments in command strings:
Cmd.String()andrediscmd.CmdStringprint the value of a pointer argument to a predeclared type ortime.Time, where they printed an address. The redaction of secrets such asCONFIG SET requirepassnow also covers a keyword or password passed behind a pointer or as a named string (#4363) by @ruziba3vich MaxRetriesorMaxRedirectsbelow -1: any negative value now means one attempt with no retries, the same as -1. Before, a value such as -2 skipped the retry loop, so aClientpipeline or transaction, aRingcommand, and aClusterClientcommand, pipeline or transaction were never sent and the call returned a nil error (#4349) by @ruziba3vichCF.SCANDUMPlast chunk:CFScanDumpno longer fails withredis: nilon its last call, where the server returns iterator 0 and a null chunk (#4366) by @ruziba3vichBF.INFOwith an option: a single-optionBF.INFO(capacity, size, items, filters, expansion) no longer fails withunexpected key, whatever case the server uses for the field name (#4368) by @ruziba3vichFT.SEARCHnull field on RESP2: a returned field that is a stored JSON null no longer fails the whole search withinvalid field value format. RESP2 now behaves like RESP3 (#4370) by @ruziba3vichFT.INFOTAG separator on RESP2: a TAG field with the separatormorMno longer swallows the next flag, soSortableandCaseSensitiveare kept (#4371) by @ruziba3vich- Cluster
max number of clientserror:shouldRetryandIsMaxClientsErroralso match the cluster wordingmax number of clients + cluster connections reached(#4367) by @ruziba3vich FCallwith slice arguments:FCallandFCallROexpand a[]stringor[]interface{}argument into separate function arguments, where they failed with a marshal error. A lonenilis still sent as one empty argument (#4365) by @ruziba3vichCloneof finished commands:XInfoStreamFullCmd.Clonekeeps all fields, including the idempotency fields, and no longer shares the pending storage of its groups and consumers (#4372). The vector set slice commands copy their result slice instead of sharing it with the original (#4373). Empty results stay empty.FunctionStatsCmd.Clonealso copies the command of the running script instead of sharing it (#4378). Clones ofXMessageSliceCmd,XStreamSliceCmd,XInfoStreamCmd,ClientInfoCmd,ACLLogCmdandFTSearchCmdkeep every field of the value, such as theXREADGROUPclaim fields, the idempotency fields, theClientInfonetwork and command totals andDocument.Error, where they dropped them before (#4346). By @ruziba3vich- Slice arguments in Bloom, Cuckoo and Count-Min commands:
BFInsert,BFMAdd,BFMExists,CFInsert,CFInsertNX,CFMExistsandCMSQueryexpand a single[]stringor[]interface{}of elements, where they failed with a marshal error. Other arguments, including[]byteandnil, are sent as before (#4377) by @ruziba3vich
- Documentation: doc link definitions in the set and search command comments now render as links on pkg.go.dev (#4328) by @farisbasha
- End-to-end failure scenarios: the e2e suites cover connection failures (dropped, refused, timed out) for regular, pub/sub, blocking and mixed workloads,
MultiDBClientfailover on member outage and on slow responses, and standalone topology changes. The fault-injector client gainsproxy_failure, BDB-scopednetwork_latencyand the/topology-change-standaloneroutes (#4352)
We'd like to thank all the contributors who worked on this release!
@farisbasha, @kevin9327, @PerryLink, @ruziba3vich, @Tidehyc, @ump45nose, @xixi-box
Full Changelog: https://github.com/redis/go-redis/compare/v9.24.0-beta.1...v9.24.0-beta.2
9.24.0-beta.2
This is a beta release. It follows 9.24.0-beta.1 with bug fixes, the ACLGetUser command and one change to retry behavior. Read the behavior changes before you upgrade.
- Command retries no longer replay a failed dial sequence: for clients without a custom
Dialer(single commands, pipelines,Watch,ConnandTx, the Sentinel client, Ring shards and cluster nodes),MaxRetriesno longer starts a newDialerRetriessequence on an endpoint where one has already failed. With default options a refused connection is now reported after about 0.4s, where it took about 1.7s before. Attempts on other cluster nodes or Ring shards are kept, and a customDialerkeeps its previous retry behavior.DialTimeoutstill applies to each attempt, so a dial that hangs is still bounded byDialTimeouttimesDialerRetries. A command that reaches an exhausted node or shard skips that address and keeps its bounded retries for the others, and a cluster client asks for a topology reload, so a replacement can be reached in the same call. An unpinnedSCANthat exhausts a node also falls back to the replicas thatReadOnlyrouting allows (#4304, #4331) by @xixi-box, issue #4329. - Negative
pool_size:ParseURL,ParseClusterURLandParseFailoverURLreject a negativepool_size, where they used to panic, and a negativePoolSizein the options structs selects the default (#4325) by @ump45nose. LimitOffsetwithoutLimitreturns a page of 10: a search that setsLimitOffsetand leavesLimitat 0 now returns up to 10 documents from that offset. On Redis 7 it returned an empty page before, so code that relied on the empty page now gets documents. On Redis 8 it was an error (#4285) by @kevin9327.Cmd.Uint64of a negative integer: it now returns an error, as it does for other out-of-range values, where it returned the wrapped value (for exampleDECRgiving 18446744073709551615). Callers that read a signed 64-bit reply as unsigned, for exampleBITFIELD GET i64throughUint64Slice, now get an error (#4369) by @ruziba3vichFT.HYBRIDCOMBINE LINEARsendsWINDOW:FTHybridWithArgssendsWINDOWforLINEARas well as forRRF. Before, aWindowset together withLINEARwas silently ignored. It now takes effect (#4379) by @ruziba3vich
ACLGetUser: returns anACLUserwith the flags, passwords, command, key and channel rules and the selectors of a user, for Redis 7.0 and later. A missing user returnsredis.Nil.CmdablegainsACLGetUser, so a custom implementation such as a mock must add it (#4357) by @ruziba3vich- Idle connection reaper:
ConnMaxLifetimeReapInterval(onOptions,ClusterOptions,FailoverOptions,RingOptionsandUniversalOptions, andconn_max_lifetime_reap_intervalin URLs) starts a background goroutine that closes idle connections pastConnMaxLifetimeorConnMaxIdleTimeand refills the pool towardMinIdleConns, so expired connections are closed off the request path. It is off by default. When it is on, it also closes connections that were idle longer thanConnMaxIdleTime, 30 minutes by default. Connections in use, and connections that a re-auth or handoff worker owns, are skipped, and a refill towardMinIdleConnsadds dials at low concurrency (#4334, #4340) by @ndyakov ClusterSlotStatsandClusterSlotStatsOrderBy:CLUSTER SLOT-STATSwith a slot range orORDERBY, for Redis 8.2 and later. On aClusterClient,MultiDBClientandAutoPipelinerthe call asks every master and merges the replies, so the result covers the whole cluster and the top slots are global, as withDBSize. A pipeline still sends the command to one node. The slot metrics beyond the key count needcluster-slot-stats-enabled yeson the servers.ClusterCmdablegains the two methods, so a custom implementation such as a mock must add them (#4358) by @ruziba3vich
- Credential rotation with
MaxActiveConns: at theMaxActiveConnscap,Getnow waits withinPoolTimeoutfor an idle connection that is re-authenticating, and does not fail withErrPoolExhausted. Without a cap, or with room under it, the behavior is unchanged (#4313) by @xixi-box, issue #4311. A race at the cap, where the only connection finished re-authentication just before the capacity check, is closed by the same release (#4333) by @Tidehyc, issue #4332 ContextDeadlineError: a read timeout that arrives together with data no longer reaches the next command, and a socket timeout that fires slightly before the context deadline is still reported ascontext.DeadlineExceeded. This follows #4263 from 9.24.0-beta.1 (#4306) by @PerryLink, issue #4305- Search:
LimitOffsetwithoutLimitinFT.SEARCHandFT.HYBRIDoptions now uses the default page of 10. On Redis 8 the command was rejected withSEARCH_LIMIT_OVER(#4285) by @kevin9327, issue #4284 GEOSEARCHwithoutWITHflags:GeoSearchLocationno longer fails with a parse error when the query sets none ofWithCoord,WithDistandWithHash. The locations come back with onlyNameset (#4335) by @ruziba3vichBF.INFOof a non-scaling filter:BFInfoandBFInfoExpansionno longer fail withredis: nilfor a filter created withNONSCALING.ExpansionRateis 0 (#4336) by @ruziba3vich- JSON replies to a legacy path:
JSONObjLen,JSONStrLen,JSONStrAppendandJSONToggleno longer fail when the path does not start with$, and neither doesJSONTypewith RESP2. Before,JSON.STRAPPENDandJSON.TOGGLEhad already changed the document when the error was reported (#4337) by @ruziba3vich JSONNumIncrBywith RESP3: a path that matches values that are not numbers no longer fails withredis: nil.Val()returns the same string as with RESP2, for example[null,7], so code that usedredis.Nilto mean "no numeric match" now gets[null](#4338) by @ruziba3vich- Cluster redirects to an IPv6 address with a dotted quad: a
MOVEDorASKreply that points to an IPv6 address ending in a dotted quad, such as::ffff:10.0.0.1, is now dialable. The address is bracketed like any other IPv6 address (#4350) by @ruziba3vich HELLOpassword in traces and logs:rediscmd.CmdStringnow redacts theHELLOpassword whenAUTHcomes afterSETNAME. Before, aHELLOsent throughDoin that order showed the password in clear text in tracing and logging hooks built onrediscmd(#4348) by @ruziba3vichFT.HYBRIDwithShardKRatio:SHARD_K_RATIOis now counted in theKNNargument block, so the server accepts the command and no longer answersUnknown argument(#4353) by @ruziba3vichFT.HYBRIDCOMBINE LINEARweights: setting onlyAlphaor onlyBetano longer fails withMissing value for BETA. Both are sent when either is set, the unset one as 0 (#4354) by @ruziba3vich- Empty
Paramsmap in search:FTSearchWithArgs,FTAggregateWithArgs,FTSearchQueryandFTAggregateQueryno longer sendPARAMS 0for an empty, non-nil map, which the server rejected (#4355) by @ruziba3vich - Ring shards that share an address:
SetAddrsno longer leaks a client on each call when two shard names point to the same address. Every shard is now reused or closed (#4356) by @ruziba3vich MAXTEXTFIELDSinFT.CREATE:FTCreatewithMaxTextFieldsset now sendsMAXTEXTFIELDSas a bare flag, so the server accepts it and no longer answersUnknown argument(#4344) by @ruziba3vich- Disabled cluster options: a
-1retry backoff set onClusterOptionsnow reaches the node clients (#4345), and reusing one*ClusterOptionsfor a second client no longer turns disabled options (MaxRedirects, timeouts, retry backoff) back into their defaults (#4360) by @ruziba3vich FT.INFOon RESP2:FTInforeadsindex_definitionby key, soDefaultScoreand the other definition fields are correct and a short array no longer panics (#4347) by @ruziba3vich- JSON array commands on a legacy path:
JSONArrLen,JSONArrAppend,JSONArrIndex,JSONArrInsert,JSONArrTrimandJSONArrPopno longer fail to parse when the path does not start with$, and one such reply no longer shifts the replies of the commands after it in a pipeline (#4359) by @ruziba3vich JSONArrTrimarguments: the command is now sent with bothstartandstop, defaults 0 and -1, which keep the whole array. Before, the server rejected every call with a wrong number of arguments (#4361) by @ruziba3vichnet.IPfields in struct scan:HGetAll(...).ScanandHMGet(...).Scanread anet.IPthatHSetstored as raw bytes, where they failed withinvalid IP address. Text is tried first, so values that scanned before scan the same, and a 4 or 16 byte value that is not IP text now scans as a raw IP (#4362) by @ruziba3vich- Pointer arguments in command strings:
Cmd.String()andrediscmd.CmdStringprint the value of a pointer argument to a predeclared type ortime.Time, where they printed an address. The redaction of secrets such asCONFIG SET requirepassnow also covers a keyword or password passed behind a pointer or as a named string (#4363) by @ruziba3vich MaxRetriesorMaxRedirectsbelow -1: any negative value now means one attempt with no retries, the same as -1. Before, a value such as -2 skipped the retry loop, so aClientpipeline or transaction, aRingcommand, and aClusterClientcommand, pipeline or transaction were never sent and the call returned a nil error (#4349) by @ruziba3vichCF.SCANDUMPlast chunk:CFScanDumpno longer fails withredis: nilon its last call, where the server returns iterator 0 and a null chunk (#4366) by @ruziba3vichBF.INFOwith an option: a single-optionBF.INFO(capacity, size, items, filters, expansion) no longer fails withunexpected key, whatever case the server uses for the field name (#4368) by @ruziba3vichFT.SEARCHnull field on RESP2: a returned field that is a stored JSON null no longer fails the whole search withinvalid field value format. RESP2 now behaves like RESP3 (#4370) by @ruziba3vichFT.INFOTAG separator on RESP2: a TAG field with the separatormorMno longer swallows the next flag, soSortableandCaseSensitiveare kept (#4371) by @ruziba3vich- Cluster
max number of clientserror:shouldRetryandIsMaxClientsErroralso match the cluster wordingmax number of clients + cluster connections reached(#4367) by @ruziba3vich FCallwith slice arguments:FCallandFCallROexpand a[]stringor[]interface{}argument into separate function arguments, where they failed with a marshal error. A lonenilis still sent as one empty argument (#4365) by @ruziba3vichCloneof finished commands:XInfoStreamFullCmd.Clonekeeps all fields, including the idempotency fields, and no longer shares the pending storage of its groups and consumers (#4372). The vector set slice commands copy their result slice instead of sharing it with the original (#4373). Empty results stay empty.FunctionStatsCmd.Clonealso copies the command of the running script instead of sharing it (#4378). Clones ofXMessageSliceCmd,XStreamSliceCmd,XInfoStreamCmd,ClientInfoCmd,ACLLogCmdandFTSearchCmdkeep every field of the value, such as theXREADGROUPclaim fields, the idempotency fields, theClientInfonetwork and command totals andDocument.Error, where they dropped them before (#4346). By @ruziba3vich- Slice arguments in Bloom, Cuckoo and Count-Min commands:
BFInsert,BFMAdd,BFMExists,CFInsert,CFInsertNX,CFMExistsandCMSQueryexpand a single[]stringor[]interface{}of elements, where they failed with a marshal error. Other arguments, including[]byteandnil, are sent as before (#4377) by @ruziba3vich
- Documentation: doc link definitions in the set and search command comments now render as links on pkg.go.dev (#4328) by @farisbasha
- End-to-end failure scenarios: the e2e suites cover connection failures (dropped, refused, timed out) for regular, pub/sub, blocking and mixed workloads,
MultiDBClientfailover on member outage and on slow responses, and standalone topology changes. The fault-injector client gainsproxy_failure, BDB-scopednetwork_latencyand the/topology-change-standaloneroutes (#4352)
We'd like to thank all the contributors who worked on this release!
@farisbasha, @kevin9327, @PerryLink, @ruziba3vich, @Tidehyc, @ump45nose, @xixi-box
Full Changelog: https://github.com/redis/go-redis/compare/v9.24.0-beta.1...v9.24.0-beta.2
Version 1.62.0 (2026-11-20)
[!IMPORTANT] If you build a
MetadataRequestyourself, an empty non-nilTopics(such as[]string{}) at version 1 or above now asks for no topics, returning only the brokers and controller, as the Kafka protocol defines. SetTopicstonilto fetch all topics.NewMetadataRequeststill treats an empty list as all topics. See #3810.
- feat(producer): add context aware SyncProducer sends by @FireBurn in https://github.com/IBM/sarama/pull/3844
- feat(protocol): support KIP-890 TRANSACTION_ABORTABLE by @dnwe in https://github.com/IBM/sarama/pull/3855
- fix(broker): validate ApiVersions response header by @dnwe in https://github.com/IBM/sarama/pull/3803
- fix(admin): refresh controller before each retry by @dnwe in https://github.com/IBM/sarama/pull/3793
- fix(admin): retry group calls while coordinator loads by @dnwe in https://github.com/IBM/sarama/pull/3794
- fix(offset): let PartitionOffsetManager.Close return by @dnwe in https://github.com/IBM/sarama/pull/3808
- fix(consumer): don't exhaust Retry.Max on a switch by @dnwe in https://github.com/IBM/sarama/pull/3796
- fix(admin): open brokers under the client lock by @dnwe in https://github.com/IBM/sarama/pull/3795
- fix(admin): retry DeleteRecords like Java by @dnwe in https://github.com/IBM/sarama/pull/3797
- fix(protocol): don't send an unclean election as ElectLeaders v0 by @hsdfat in https://github.com/IBM/sarama/pull/3852
- fix(admin): retry DescribeConsumerGroups like Java by @dnwe in https://github.com/IBM/sarama/pull/3798
- fix(admin): return ErrClosedClient from list calls by @dnwe in https://github.com/IBM/sarama/pull/3799
- fix(producer): flush partial batches on Close by @dnwe in https://github.com/IBM/sarama/pull/3800
- fix(producer): keep flushing batch ahead on retry by @dnwe in https://github.com/IBM/sarama/pull/3801
- fix(producer): don't use up a retry after recovery by @dnwe in https://github.com/IBM/sarama/pull/3802
- fix(offset): keep a reset made during two commits by @dnwe in https://github.com/IBM/sarama/pull/3807
- fix(offset): back off between final commit attempts by @dnwe in https://github.com/IBM/sarama/pull/3806
- fix(client): don't join an all-topics refresh by name by @dnwe in https://github.com/IBM/sarama/pull/3811
- fix(client): don't let leader epochs go backwards by @dnwe in https://github.com/IBM/sarama/pull/3812
- fix(offset): build commit requests in one place by @dnwe in https://github.com/IBM/sarama/pull/3809
- fix(client): find the controller with no topics by @dnwe in https://github.com/IBM/sarama/pull/3810
- fix(consumer): report joined generation in user data by @dnwe in https://github.com/IBM/sarama/pull/3816
- fix(consumer): skip topics the cluster lacks in balance by @dnwe in https://github.com/IBM/sarama/pull/3817
- fix(protocol): add missing ConfigSource values by @sebxt in https://github.com/IBM/sarama/pull/3842
- fix(admin): add KIP-373 ACL operations and User resource type by @sebxt in https://github.com/IBM/sarama/pull/3846
- fix: make broker throttle waits interruptible on close by @liuzengh in https://github.com/IBM/sarama/pull/3711
- fix(producer): only refresh metadata before a retry when it is stale by @omkar619-dev in https://github.com/IBM/sarama/pull/3849
- fix(admin): surface the ListGroups error code in ListConsumerGroups by @fadiroot in https://github.com/IBM/sarama/pull/3819
- fix(protocol): require Kafka 2.2 for ElectLeaders by @dnwe in https://github.com/IBM/sarama/pull/3854
- fix: resolve gohawk lock and race findings by @dnwe in https://github.com/IBM/sarama/pull/3853
- fix(protocol): decode compressed batches with more records than bytes by @hsdfat in https://github.com/IBM/sarama/pull/3851
- fix(offset): avoid deadlock when closing during a blocked commit by @hsdfat in https://github.com/IBM/sarama/pull/3753
- chore(deps): bump github.com/klauspost/compress from 1.20.1 to 1.20.4 by @dependabot[bot] in https://github.com/IBM/sarama/pull/3862
- chore(deps): bump github.com/xdg-go/scram from 1.2.0 to 1.4.0 in /examples/sasl_scram_client by @dependabot[bot] in https://github.com/IBM/sarama/pull/3860
- fix(deps): update module golang.org/x/sync to v0.25.0 by @renovate[bot] in https://github.com/IBM/sarama/pull/3832
- chore(deps): update dependency golangci/golangci-lint to v2.15.0 by @renovate[bot] in https://github.com/IBM/sarama/pull/3863
- chore(deps): update docker/bake-action action to v7.5.0 by @renovate[bot] in https://github.com/IBM/sarama/pull/3870
- chore(deps): bump the golang-x group across 1 directory with 2 updates by @dependabot[bot] in https://github.com/IBM/sarama/pull/3864
- chore(deps): update module golang.org/x/crypto to v0.59.0 by @renovate[bot] in https://github.com/IBM/sarama/pull/3871
- chore(deps): update ossf/scorecard-action action to v2.5.0 by @renovate[bot] in https://github.com/IBM/sarama/pull/3872
- examples: bump deps for compliance by @dnwe in https://github.com/IBM/sarama/pull/3874
- fix(deps): update module golang.org/x/net to v0.63.0 by @renovate[bot] in https://github.com/IBM/sarama/pull/3831
- chore(deps): bump github.com/pierrec/lz4/v4 from 4.1.31 to 4.1.33 by @dependabot[bot] in https://github.com/IBM/sarama/pull/3830
- chore(deps): update ossf/scorecard-action action to v2.6.0 by @renovate[bot] in https://github.com/IBM/sarama/pull/3882
- chore: apply errorsastype modernizer by @dnwe in https://github.com/IBM/sarama/pull/3804
- chore: refresh examples go.mod and go mod tidy by @dnwe in https://github.com/IBM/sarama/pull/3840
- chore(ci): update Staticcheck for Go 1.27 export data by @DCjanus in https://github.com/IBM/sarama/pull/3847
- test: update gzip fixtures for zero modification time by @DCjanus in https://github.com/IBM/sarama/pull/3867
- ci: label pull requests by change size by @DCjanus in https://github.com/IBM/sarama/pull/3868
- ci: adjust pr-size boundaries by @dnwe in https://github.com/IBM/sarama/pull/3869
- chore(docs): fix typos in examples and changelog by @dnwe in https://github.com/IBM/sarama/pull/3878
- test: answer on every mock broker by @dnwe in https://github.com/IBM/sarama/pull/3879
- test(offset): check Close commits marked offsets by @dnwe in https://github.com/IBM/sarama/pull/3814
- test(functional): cover a failed sync under a Java leader by @dnwe in https://github.com/IBM/sarama/pull/3823
- test(producer): make retry shutdown test deterministic by @JamesMGreene in https://github.com/IBM/sarama/pull/3857
- chore(docs): update changelog for 1.62.0 by @dnwe in https://github.com/IBM/sarama/pull/3883
- @sebxt made their first contribution in https://github.com/IBM/sarama/pull/3842
- @liuzengh made their first contribution in https://github.com/IBM/sarama/pull/3711
- @omkar619-dev made their first contribution in https://github.com/IBM/sarama/pull/3849
- @fadiroot made their first contribution in https://github.com/IBM/sarama/pull/3819
- @FireBurn made their first contribution in https://github.com/IBM/sarama/pull/3844
- @JamesMGreene made their first contribution in https://github.com/IBM/sarama/pull/3857
Full Changelog: https://github.com/IBM/sarama/compare/v1.61.1...v1.62.0