22 hours ago
chromedp

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.

2 days ago
jwt

v5.4.0

Behavior changes

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).
  • MapClaims with exp set to 0 is now treated as expired, not as a missing claim (#509).
  • An aud claim of an invalid type in MapClaims now returns ErrInvalidType (#511).

New API

  • Constants for registered header parameter names, such as HeaderAlgorithm and HeaderKeyID (#535).

Other changes

  • The token expired error now says how long ago the token expired (#510).

New Contributors

Full Changelog: https://github.com/golang-jwt/jwt/compare/v5.3.1...v5.4.0

2 days ago
lego

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.

Changelog

  • 35e266037604491fa829a5eb6270e225095982fb dreamhost: use API v1 (#3416)
2 days ago
chromedp

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.

4 days ago
lego

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.

Changelog

  • 9c0e12bec0b4fb5ebad622532acfd1c3d753769c fix(gandiv5): clean up when existing TXT records (#3412)
5 days ago
lego

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.

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)
5 days ago
redis

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).

🚀 Highlights

Large reply announcements no longer allocate up front

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.

Closed pools are dropped from the connection metrics

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.

ScanIterator.Vals resumes from the iterator position

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.

🐛 Bug Fixes

  • HotKeysStart: nil options return ErrHotKeysNoMetrics instead of panicking (fixes #4434) (#4437) by @Dazhou-del
  • JSONDebugMemory: implemented with an IntCmd; it panicked before. The key position is set, so a cluster client routes it by key. For JSONPath queries, which return an array, use Do (fixes #4433) (#4436) by @Dazhou-del
  • TimeSeries range filters: empty FilterByTS and FilterByValue slices are omitted like nil in TS.RANGE, TS.REVRANGE, TS.MRANGE and TS.MREVRANGE, instead of sending an empty clause (fixes #4432) (#4435) by @Dazhou-del
  • TimeSeries selected labels: an empty SelectedLabels slice no longer sends a bare SELECTED_LABELS in TS.MGET, TS.MRANGE and TS.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: VoidProcessor returns a ReadReply error in the middle of a frame, like Processor, 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-done again. An earlier rename to +replica-reconf-done meant 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 ClusterSlots function: 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, Unusable and PendingRequests, like Client.PoolStats (#4413) by @ruziba3vich
  • Maintenance notifications: the delay for a MOVING notification without an endpoint keeps the half second for an odd timeS (#4393) by @ruziba3vich
  • redisotel tracing: 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 in OnNewNode is removed (#4412) by @ruziba3vich
  • redisotel-native error types: only a Redis server error is classified by its prefix. Errors such as io.EOF are reported as internal, and a server error wrapped by a hook keeps its prefix (#4395) by @ruziba3vich
  • rediscmd: CmdString redacts the sentinel-pass value of SENTINEL CONFIG SET (#4382) by @ruziba3vich

⚡ Performance

  • Command metadata without CSC: a standalone client with CommandMetadataPreferLive and no client-side caching no longer starts a metadata worker or sends COMMAND in the background. The metadata store is built only when CSC attaches (#4424) by @wozhenbang2004

👥 Contributors

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

5 days ago
go-redis

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).

🚀 Highlights

Large reply announcements no longer allocate up front

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.

Closed pools are dropped from the connection metrics

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.

ScanIterator.Vals resumes from the iterator position

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.

🐛 Bug Fixes

  • HotKeysStart: nil options return ErrHotKeysNoMetrics instead of panicking (fixes #4434) (#4437) by @Dazhou-del
  • JSONDebugMemory: implemented with an IntCmd; it panicked before. The key position is set, so a cluster client routes it by key. For JSONPath queries, which return an array, use Do (fixes #4433) (#4436) by @Dazhou-del
  • TimeSeries range filters: empty FilterByTS and FilterByValue slices are omitted like nil in TS.RANGE, TS.REVRANGE, TS.MRANGE and TS.MREVRANGE, instead of sending an empty clause (fixes #4432) (#4435) by @Dazhou-del
  • TimeSeries selected labels: an empty SelectedLabels slice no longer sends a bare SELECTED_LABELS in TS.MGET, TS.MRANGE and TS.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: VoidProcessor returns a ReadReply error in the middle of a frame, like Processor, 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-done again. An earlier rename to +replica-reconf-done meant 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 ClusterSlots function: 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, Unusable and PendingRequests, like Client.PoolStats (#4413) by @ruziba3vich
  • Maintenance notifications: the delay for a MOVING notification without an endpoint keeps the half second for an odd timeS (#4393) by @ruziba3vich
  • redisotel tracing: 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 in OnNewNode is removed (#4412) by @ruziba3vich
  • redisotel-native error types: only a Redis server error is classified by its prefix. Errors such as io.EOF are reported as internal, and a server error wrapped by a hook keeps its prefix (#4395) by @ruziba3vich
  • rediscmd: CmdString redacts the sentinel-pass value of SENTINEL CONFIG SET (#4382) by @ruziba3vich

⚡ Performance

  • Command metadata without CSC: a standalone client with CommandMetadataPreferLive and no client-side caching no longer starts a metadata worker or sends COMMAND in the background. The metadata store is built only when CSC attaches (#4424) by @wozhenbang2004

👥 Contributors

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

5 days ago
mysql

v1.11.0

Changes since v1.10.2.

Requirements

  • The driver now requires Go 1.25 or later. The minimum supported server versions are MySQL 8.0 and MariaDB 10.11. (#1803)

New features

  • Add the tinyInt1IsBool DSN parameter and TinyInt1IsBool functional option, disabled by default to preserve numeric TINYINT behavior. When enabled, signed, non-ZEROFILL TINYINT(1) columns report BOOLEAN and scan types bool or sql.NullBool; zero is returned as false and non-zero values as true. 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 AuthPlugin interface, AuthContext, and RegisterAuthPlugin. 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 OIDCToken option. 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/zstd for side effects and enable compress=true to 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. Use AddParam to specify that order when configuring a connection programmatically. (#1807)

Bugfixes

  • For text queries, return BIGINT UNSIGNED values to sql.Scanner as int64 when they fit and as decimal bytes for larger values. (#1860)

  • Handle omitted column metadata in prepared statement Exec calls on MariaDB. (#1862)

  • Return ErrMalformPkt for 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)

Performance

  • Implement driver.RowsColumnScanner on 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)

5 days ago
fasthttp

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.

Security fixes and hardening

  • 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

Features

  • Middleware can inspect whether hijacking suppresses the response. RequestCtx.HijackNoResponse() returns the setting established by HijackSetNoResponse. Combined with Hijacked(), 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.Swap and ResponseHeader.Swap exchange 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

HTTP compatibility

  • Adapted handlers no longer infer a content type from encoded bytes. When a net/http handler supplies a nonempty Content-Encoding but no Content-Type, fasthttpadaptor skips content sniffing and suppresses fasthttp's default content type. A gzip-compressed response is therefore no longer incorrectly labeled application/x-gzip based on its compressed bytes. Both buffered and flushed responses follow this behavior. #2602

What's Changed

Security and hardening

Features

Fixes

Dependency updates

Full Changelog: https://github.com/valyala/fasthttp/compare/v1.80.0...v1.81.0