Skip to content

deps: bump the gomod group across 1 directory with 3 updates - #16

Closed
dependabot[bot] wants to merge 1 commit into
devfrom
dependabot/go_modules/dev/gomod-d03be1c5cf
Closed

dependabot[bot] wants to merge 1 commit into
devfrom
dependabot/go_modules/dev/gomod-d03be1c5cf

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 10, 2026 •

Copy link
Copy Markdown

Bumps the gomod group with 3 updates in the / directory: github.com/jackc/pgx/v5, github.com/FreshLabDev/tg and golang.org/x/sync.

Updates github.com/jackc/pgx/v5 from 5.10.0 to 5.12.0

Release notes

Sourced from github.com/jackc/pgx/v5's releases.

v5.11.0

This release adds direct PostgreSQL type scanning through database/sql on Go 1.27, improves compatibility with libpq 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

  • stdlib: support Go 1.27's driver.RowsColumnScanner, allowing PostgreSQL types such as arrays and ranges to be scanned directly into Go values without pgtype.Map.SQLScanner. Existing database/sql scalar conversions and sql.Scanner behavior are preserved. The minimum supported Go version remains 1.25.
  • Add Rows.TypeMap to expose the type map used to decode rows, including rows created by RowsFromResultReader that have no underlying Conn. Custom implementations of Rows, including mocks, must add this method.
  • pgconn: add Config.MaxProtocolMessageBodyLen to configure the maximum incoming protocol message body size (carter-ya)
  • pgconn: add ErrReadOnlyConnection, ErrReadWriteConnection, ErrPrimaryConnection, and ErrStandbyConnection sentinel errors for target_session_attrs validation, allowing callers to use errors.Is (Adrian-Stefan Mares)
  • pgxpool: accept pool_ping_timeout in connection strings to configure Config.PingTimeout. The default is zero; zero and negative durations mean no timeout (1991santhu)

Changes

  • Name-based row-to-struct mapping now matches explicit db tags case-insensitively, with exact matches taking precedence 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 $HOME rather than the OS account's home directory (Mohamed MAACHE)

  • pgtype: date, timestamp and timestamptz text values are now parsed and written by a hand-written parser and encoder for PostgreSQL's ISO date/time format instead of time.Parse and time.Format. Go's layout language cannot express 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 timestamp and timestamptz. Bug fixes:

    • timestamp and timestamptz no longer silently move February 29 of a BC leap year to March 1 when encoding. time.Date(-4712, 2, 29, ...) was written as 4713-03-01 BC and is now written as 4713-02-29 BC. This affected ordinary four-digit BC years, not only extended-range ones. date was never affected.
    • timestamp and timestamptz can now scan BC leap days. 4713-02-29 BC previously failed with day out of range. date could already scan them.
    • Years past 9999 can now be scanned. 10000-01-02 03:04:05 previously failed to parse, so timestamp and timestamptz values at the high end of PostgreSQL's range were unreadable over the simple protocol and in any other text-format result.
    • time.Time arguments in the simple protocol now encode BC dates correctly, using the same timestamp encoder.
    • Fractional seconds beyond microsecond precision are rounded the way the server rounds them (round half to even, 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:

    • date now rejects impossible dates instead of normalizing them. 2024-02-30 returned 2024-03-01 and 2024-13-01 returned 2025-01-01; both are now errors. timestamp and timestamptz already rejected them.
    • All three types now reject values outside PostgreSQL's range for that type, in the binary format as well as the text format. PostgreSQL never sends out-of-range dates, so this only affects corrupt or hand-built input; the range

... (truncated)

Changelog

Sourced from github.com/jackc/pgx/v5's changelog.

5.12.0 (October 30, 2026)

This release fixes two security vulnerabilities with narrow triggering conditions but serious impact. Affected applications should upgrade to v5.12.0; see Security Fixes below.

It also adds batched transaction startup, client certificate policy controls, and per-query batch timing, and improves connection pool cancellation and type handling. Custom implementations of BatchResults, including mocks, must add the new Tx method.

Security Fixes

  • SQL injection in simple-protocol batches (GHSA-j38q-h3ph-jjpq, high severity). In pgx v5 before v5.12.0, SendBatch using the non-default simple protocol could allow arbitrary SQL execution with the application's database privileges when a queued query ends in a -- comment without a newline and the next query has an attacker-controlled string argument on its first line. Batched queries are now separated by a newline to end such comments. Extended-protocol modes are unaffected. Reported by Igor Kupczyński (@​igor-kupczynski).
  • Bypass of require_auth and channel_binding=require (GHSA-95fj-3fxw-g62g, high severity). In pgx v5.9.0 through v5.11.0, applications relying on these settings without verifying the server's identity with sslmode=verify-full (or equivalent TLS verification) could accept an impersonating server that skips authentication. The attacker could read queries and parameters and return fabricated results. pgx now enforces authentication completion and required channel binding before accepting the connection. This vulnerability does not bypass TLS server certificate verification. Reported by @​president-xd.

Features

  • Add Batch.BeginTx and BatchResults.Tx to begin a transaction as the first query of a batch, saving the round trip for BeginTx. Call Batch.BeginTx before queuing any queries, consume the begin query's result first, and close the batch before using the transaction. With pgxpool.Pool.SendBatch, the connection remains acquired until the transaction is committed or rolled back. Add FailedBatchResults for wrappers that fail before sending a batch (Timo Furrer)
  • Add TraceBatchQueryData.ReadStartTime and per-query durations to tracelog batch query entries. These measure result consumption, including application time spent reading rows, rather than server execution alone (Yasser-Ameur)
  • pgconn: support the sslcertmode connection parameter, PGSSLCERTMODE environment variable, and Config.SSLCertMode. The default, allow, sends an available client certificate when requested; disable prevents sending one and skips loading certificate/key files; require fails unless the server requests and receives a certificate. require does not guarantee server-side certificate validation, disables TLS session resumption, and stops further host or TLS fallbacks when the certificate requirement fails (k-zshiba)
  • pgtype: add support for PostgreSQL 19's oid8 and oid8[] (k-zshiba)

Changes

  • pgxpool: background attempts to satisfy MinConns and MinIdleConns now have a 60-second timeout, including connection hooks. Initial background connections preserve the constructor context's values but ignore its cancellation and deadline.
  • pgxpool: canceling Acquire during a health-check ping now returns promptly and lets a successful ping return

... (truncated)

Commits
  • b2ef08b Update changelog for v5.12.0
  • 8199015 Merge commit from fork
  • 5b1a6a0 Merge commit from fork
  • 65a4125 Merge pull request #2697 from b84330808/windows-default-servicefile
  • f2701a0 pgconn: only fall back when Windows service file is missing
  • db95468 Merge pull request #2696 from k-zshiba/support-oid8
  • fa2327d Start each query on a new line when joining a simple protocol batch
  • 2283b85 pgconn: read the default service file from %APPDATA%\postgresql on Windows
  • efc0b74 Merge upstream master into support-oid8
  • 5a17450 pgconn: require AuthenticationOk before ReadyForQuery
  • Additional commits viewable in compare view

Updates github.com/FreshLabDev/tg from 0.1.1-alpha.1 to 0.3.0-alpha.1

Release notes

Sourced from github.com/FreshLabDev/tg's releases.

v0.3.0-alpha.1

What vido 3.0.0 needs to send its media: an upload timeout of its own, thumbnails, live photos, audio in albums and album options. Also prepared inline messages, guest mode and rich messages with their own pictures. A bot that calls SendMediaGroup no longer compiles: see Breaking.

Added

  • Prepared inline messages. SavePreparedInlineMessage saves a result for one person, and a Mini App passes its id to shareMessage, so the person sends it to any chat they pick, the bot's or not. PreparedChats names where it may go (AnyChat for all four kinds), and no kind at all is refused before sending. framy shares results this way; maply can drop its own SavePreparedPhoto and SavePreparedAnimation.
  • Inline results by URL. InlineQueryResultVideo and InlineQueryResultMpeg4Gif send a file Telegram fetches, and refuse a card without the URL, the thumbnail or, for a video, the title, which Telegram requires. An empty video MimeType is video/mp4. InlineQueryResultPhoto gained PhotoWidth, PhotoHeight, ShowCaptionAboveMedia and InputMessageContent.
  • Guest mode. Update.GuestMessage is the message that summoned the bot into a chat it is not in, with Message.GuestQueryID and the message it replied to. AnswerGuestQuery answers it once and returns the inline_message_id the EditInlineMessage methods change it by. Message.GuestBotCallerUser and GuestBotCallerChat say who summoned a guest bot's message, and Me.SupportsGuestQueries whether Guest Mode is on. framy answers @framyin_bot in reply to a photo this way.
  • Inline text with a link preview. EditInlineMessageTextWithPreview edits an inline message's text with Telegram's preview of a link that need not be in the text, as SendTextWithPreview sends one. An inline message can show a picture this way and still go back to plain text later, which a media message cannot.
  • Rich messages with their own pictures. SendRich sends a rich message whose <img src="tg://photo?id=…"/> points at a RichMedia item: a file_id, a URL or an upload, which goes as a multipart part of its own. RichOptions carries the topic, the reply (to a message or to an ephemeral one), the ephemeral receiver and the keyboard, as CaptionOptions does for a photo. EditMessageRich and EditEphemeralMessageRich replace the whole message with new HTML and new pictures; "not modified" is success. A media item without an id is refused before sending. framy draws its run preview this way: the card on top, the models and settings in <details> below.
  • A video's cover in an album. InputMediaVideo gained Cover and StartTimestamp, as VideoOptions has them for a video sent alone. An uploaded cover goes as a multipart part of its own, in SendMediaGroup and in EditMessageMedia. framy sends the videos of one press on its site as one album, each with the frame its result card shows.
  • An upload timeout of its own. WithUploadTimeout sets the deadline for a call that carries a file: an upload, or a path on a --local

... (truncated)

Changelog

Sourced from github.com/FreshLabDev/tg's changelog.

v0.3.0-alpha.1 - 2026-11-05

What vido 3.0.0 needs to send its media: an upload timeout of its own, thumbnails, live photos, audio in albums and album options. Also prepared inline messages, guest mode and rich messages with their own pictures. A bot that calls SendMediaGroup no longer compiles: see Breaking.

Added

  • Prepared inline messages. SavePreparedInlineMessage saves a result for one person, and a Mini App passes its id to shareMessage, so the person sends it to any chat they pick, the bot's or not. PreparedChats names where it may go (AnyChat for all four kinds), and no kind at all is refused before sending. framy shares results this way; maply can drop its own SavePreparedPhoto and SavePreparedAnimation.
  • Inline results by URL. InlineQueryResultVideo and InlineQueryResultMpeg4Gif send a file Telegram fetches, and refuse a card without the URL, the thumbnail or, for a video, the title, which Telegram requires. An empty video MimeType is video/mp4. InlineQueryResultPhoto gained PhotoWidth, PhotoHeight, ShowCaptionAboveMedia and InputMessageContent.
  • Guest mode. Update.GuestMessage is the message that summoned the bot into a chat it is not in, with Message.GuestQueryID and the message it replied to. AnswerGuestQuery answers it once and returns the inline_message_id the EditInlineMessage methods change it by. Message.GuestBotCallerUser and GuestBotCallerChat say who summoned a guest bot's message, and Me.SupportsGuestQueries whether Guest Mode is on. framy answers @framyin_bot in reply to a photo this way.
  • Inline text with a link preview. EditInlineMessageTextWithPreview edits an inline message's text with Telegram's preview of a link that need not be in the text, as SendTextWithPreview sends one. An inline message can show a picture this way and still go back to plain text later, which a media message cannot.
  • Rich messages with their own pictures. SendRich sends a rich message whose <img src="tg://photo?id=…"/> points at a RichMedia item: a file_id, a URL or an upload, which goes as a multipart part of its own. RichOptions carries the topic, the reply (to a message or to an ephemeral one), the ephemeral receiver and the keyboard, as CaptionOptions does for a photo. EditMessageRich and EditEphemeralMessageRich replace the whole message with new HTML and new pictures; "not modified" is success. A media item without an id is refused before sending. framy draws its run preview this way: the card on top, the models and settings in <details> below.
  • A video's cover in an album. InputMediaVideo gained Cover and StartTimestamp, as VideoOptions has them for a video sent alone. An uploaded cover goes as a multipart part of its own, in SendMediaGroup and in EditMessageMedia. framy sends the videos of one press on its site as one album, each with the frame its result card shows.
  • An upload timeout of its own. WithUploadTimeout sets the deadline for a call that carries a file: an upload, or a path on a --local

... (truncated)

Commits
  • 152977c release: prepare v0.3.0-alpha.1
  • 771033a Send vido's media: upload timeout, thumbnails, live photos, albums
  • b5a8288 Add the cover and start timestamp to a video in an album
  • 0e76c2b Send and edit rich messages with their own pictures
  • 5e0a6c2 Edit an inline message's text with a link preview
  • bd169f3 Add guest mode: guest_message and answerGuestQuery
  • fe692f2 Add prepared inline messages and inline results by URL
  • a2a3b62 release: prepare v0.2.0-alpha.3
  • 623e16d Add cached inline results, inline edits and drafts with Stop
  • 8a764ea Add the video cover and the send options
  • Additional commits viewable in compare view

Updates golang.org/x/sync from 0.24.0 to 0.25.0

Commits

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore <dependency name> major version will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
  • @dependabot ignore <dependency name> minor version will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
  • @dependabot ignore <dependency name> will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
  • @dependabot unignore <dependency name> will remove all of the ignore conditions of the specified dependency
  • @dependabot unignore <dependency name> <ignore condition> will remove the ignore condition of the specified dependency and ignore conditions

Bumps the gomod group with 3 updates in the / directory: [github.com/jackc/pgx/v5](https://github.com/jackc/pgx), [github.com/FreshLabDev/tg](https://github.com/FreshLabDev/tg) and [golang.org/x/sync](https://github.com/golang/sync).


Updates `github.com/jackc/pgx/v5` from 5.10.0 to 5.12.0
- [Release notes](https://github.com/jackc/pgx/releases)
- [Changelog](https://github.com/jackc/pgx/blob/master/CHANGELOG.md)
- [Commits](jackc/pgx@v5.10.0...v5.12.0)

Updates `github.com/FreshLabDev/tg` from 0.1.1-alpha.1 to 0.3.0-alpha.1
- [Release notes](https://github.com/FreshLabDev/tg/releases)
- [Changelog](https://github.com/FreshLabDev/tg/blob/v0.3.0-alpha.1/CHANGELOG.md)
- [Commits](asterfield-dev/tg@v0.1.1-alpha.1...v0.3.0-alpha.1)

Updates `golang.org/x/sync` from 0.24.0 to 0.25.0
- [Commits](golang/sync@v0.24.0...v0.25.0)

---
updated-dependencies:
- dependency-name: github.com/jackc/pgx/v5
  dependency-version: 5.12.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: gomod
- dependency-name: github.com/FreshLabDev/tg
  dependency-version: 0.3.0-alpha.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: gomod
- dependency-name: golang.org/x/sync
  dependency-version: 0.25.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: gomod
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file go Pull requests that update go code labels Nov 10, 2026
@dependabot @github

dependabot Bot commented on behalf of github Nov 17, 2026

Copy link
Copy Markdown
Author

Looks like these dependencies are updatable in another way, so this is no longer needed.

@dependabot dependabot Bot closed this Nov 17, 2026
@dependabot
dependabot Bot deleted the dependabot/go_modules/dev/gomod-d03be1c5cf branch November 17, 2026 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file go Pull requests that update go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants