Update Go modules (major) #679
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
v6.10.1->v11.3.1v4.3.0->v5.0.2v0.0.0-20210604223624-c1acbc6ec984->v1.0.4v0.0.4->v1.0.0v1.3.7->v2.2.2v2.2.12->v3.0.6v2.2.10->v3.0.7v1.8.2-0.20201028100903-3245b3267b24->v2.35.0-retractv2.27.2->v3.2.0v4.12.0->v5.9.11v2.4.0->v3.0.1v4.6.0->v6.0.0Release Notes
caarlos0/env (github.com/caarlos0/env/v6)
v11.3.1Compare Source
Changelog
Bug fixes
f329e88: fix: Options.Environment: Do not merge with default env (#353) (@oxzi)9bf044a: fix: retract 11.3.0 (@caarlos0)Other work
4ebfdad: ci: fix gitignore (@caarlos0)Released with GoReleaser Pro!
v11.3.0Compare Source
Changelog
New Features
59284e4: feat: implement interface { Unwrap() []error } for AggregateError to be compatibility with std errors.Join go1.20 without any breaking change (#336) (@itsabgr-raika)17fdb91: feat: set custom tag name for envDefault (#324) (@dnovikoff)1cb1967: feat: set custom tag name for envPrefix (#332) (@sv-kozlov)0136931: feat: supporttime.Location(#326) (@BorzdeG)4ab8b37: feat: support ignored value "-" for env tag (#338) (@sv-kozlov)Bug fixes
6f3a5c0: fix: better handle envDefault, refactor merge options (#349) (@astak16)3afa723: fix: improve errors (#329) (@caarlos0)0cbf40b: fix: map value with : in it (@caarlos0)e55230b: fix: parsing into ptr fields with value (#340) (@hypnoglow)Documentation updates
84c7739: docs: DefaultValueTagName example (@caarlos0)0847ba1: docs: add installation instructions to README.md (#330) (@eduardolat)76faca5: docs: project state (@caarlos0)Other work
b76caa9: ci: add EditorConfig (#327) (@BorzdeG)1f955b7: ci: update (@caarlos0)f68d1dc: refactor: enable gocritic linter and fix lint issues (#342) (@alexandear)52e7186: refactor: modify the init logic for env tag options to make it more reasonable (#347) (@astak16)Released with GoReleaser Pro!
v11.2.2Compare Source
Changelog
Documentation updates
aa50469: docs: duplicated headline (@caarlos0)Released with GoReleaser Pro!
v11.2.1Compare Source
Changelog
Bug fixes
2683e95: fix: do not init empty arrays (#321) (@caarlos0)Documentation updates
fac6114: docs: cleanup readme (#322) (@caarlos0)5d7eb0c: docs: fix bad example (@caarlos0)19de57d: docs: more examples (@caarlos0)be1c262: docs: more examples (@caarlos0)fb84246: docs: more examples (@caarlos0)1282042: docs: more examples (@caarlos0)3d8627f: docs: typos (@caarlos0)d7efb64: docs: update license year range (@caarlos0)Released with GoReleaser Pro!
v11.2.0Compare Source
Changelog
New Features
68793c0: feat: mapping slice of complex struct (#312) (@Rancbar)Documentation updates
33920af: docs: added a logo (@caarlos0)0de9383: docs: update (@caarlos0)Released with GoReleaser Pro!
v11.1.0Compare Source
Changelog
Bug fixes
432567c: fix: retract v11.0.1, gate init nil pointers (#318) (@caarlos0)Other work
de7a9cc: ci: update goreleaser configs (@caarlos0)Released with GoReleaser Pro!
v11.0.1Compare Source
Changelog
Bug fixes
0f77fef: fix: add logic to handle nil pointer structs (#306) (@NithinGudla)Documentation updates
1e2d9e1: docs: better explain UseFieldNameByDefault (@caarlos0)b436dff: docs: document generics (@caarlos0)Released with GoReleaser Pro!
v11.0.0Compare Source
Changelog
Breaking changes
New Features
8aee119: feat: ParseAs, ParseAsWithOptions, Must (#300) (@caarlos0)Bug fixes
c0ca5e0: fix: UseFieldNameByDefault when uppercased word in name (#297) (@caarlos0)Documentation updates
b400510: docs: add related projects (#290) (@g4s8)5235aff: docs: add used and supported by section to readme (#289) (@caarlos0)506c331: docs: update (@caarlos0)af0d375: docs: update caution banner (@caarlos0)8cddcf2: docs: update readme (@caarlos0)fa32ef4: docs: update readme (@caarlos0)Other work
4723331: feat!: prepare for release (@caarlos0)Released with GoReleaser Pro!
v10.0.0Compare Source
Changelog
Breaking changes
62b4ae1: feat!: ParseWithOptions: add the ability to override default opt.FuncMap keys (#272) (@Daniel538)New Features
e7e49c4: feat: GetFieldParams and GetFieldParamsWithOptions functions (#261) (@saturn4er)92df8c4: feat: adds public ToMap function (#275) (@maxfilov)13ac655: feat: custom key value separator (#284) (@ruslan944)3f90e4a: enhancement: Expand with default values (#285) (@gabrielcipriano)Documentation updates
6723663: docs: add map usage (#282) (@rfyiamcool)Other work
6061c47: release: v10 (@caarlos0)Released with GoReleaser Pro!
v9.0.0Compare Source
Changelog
New Features
7a25c17: feat!: accept expand as an option to the env tag (#263) (@caarlos0)4f6bb22: feat!: v9 (@caarlos0)9124b0a: feat: add support Web Assembly (#265) (@BorzdeG)Bug fixes
0f07b7f: fix: invalid environment variable (#271) (@aymanbagabas)0b4d8a6: fix: skip fields without env key in onSet (#266) (@aymanbagabas)Documentation updates
390412e: docs: clarify custom parser funcs and required fields (@caarlos0)3f7d8cf: docs: fix examples in readme for v8.0.0 (#264) (@Mattias-)Migrating from v8
Replace
envExpand:"true"with,expand, e.g.:Released with GoReleaser Pro!
v8.0.0Compare Source
Changelog
Other work
224d85f: build: fix goreleaser flags (@caarlos0)fac0414: build: test on go stable and oldstable (#259) (@caarlos0)4e0f915: feat!: refactor parse and parse with options (#256) (@caarlos0)Updating from v7
env.Parsewith no options, no change is required.env.Parsewith oneOptions{}, callenv.ParseWithOptionsinstead.env.Parsewith options, and pass more than oneOptions{}, merge them into a single one, and useenv.ParseWithOptionsinstead.env.ParseWithFuncs, useenv.ParseWithOptionsinstead, and put your parsers intoOptions{ FuncMap: <here> }.Released with GoReleaser Pro!
v7.1.0Compare Source
Changelog
New Features
b135bbd: feat: error types (#240) (@akutuev)17f0a63: feat: implement Is on AggregateError (#254) (@caarlos0)266f68b: feat: support map kind env (#244) (@ken8203)c08b0f9: feat: use field name by default (#253) (@caarlos0)Bug fixes
dfd68b2: fix: improve map handling, coverage (@caarlos0)e5472ec: fix: remove untested behavior (@caarlos0)Documentation updates
65ba2db: docs: caveats (@caarlos0)f434e98: docs: document how to handle error (@caarlos0)2d26ce1: docs: fix examples (@caarlos0)91e69e8: docs: maps (@caarlos0)850c2d8: docs: update to v7 (#249) (@alexandear)Released with GoReleaser Pro!
v7.0.0Compare Source
Changelog
Breaking changes
c687f95: feat!: set default if var is set but empty (#248) (@caarlos0)155f0a6: feat!: update to v7 (@caarlos0)Documentation updates
23c6da1: docs: fix badge (@caarlos0)8e8e099: docs: fix typo (#243) (@braindev)877e1bf: docs: improve warning (@caarlos0)Other work
ff86282: build: fix lint workflow (@caarlos0)0b725c8: build: fix workflows (@caarlos0)da848aa: build: remove deprecated lint option (@caarlos0)Released with GoReleaser Pro!
cenkalti/backoff (github.com/cenkalti/backoff/v4)
v5.0.2Compare Source
v5.0.1Compare Source
v5.0.0Compare Source
cenkalti/rpc2 (github.com/cenkalti/rpc2)
v1.0.4Compare Source
v1.0.3Compare Source
v1.0.2Compare Source
v1.0.1Compare Source
golang/snappy (github.com/golang/snappy)
v1.0.0Compare Source
Latest stable version, as of March 2025.
netsampler/goflow2 (github.com/netsampler/goflow2)
v2.2.2Compare Source
v2.2.1Compare Source
v2.2.0Compare Source
v2.1.5Compare Source
v2.1.4Compare Source
v2.1.3Compare Source
v2.1.2Compare Source
v2.1.1Compare Source
v2.1.0Compare Source
v2.0.0Compare Source
pion/dtls (github.com/pion/dtls/v2)
v3.0.6Compare Source
What's Changed
Full Changelog: pion/dtls@v3.0.5...v3.0.6
v3.0.5Compare Source
Changelog
fbc7baeUpdate docker.io/library/golang Docker tag to v1.24 (#694)13b929bUpdate module golang.org/x/net to v0.37.0 (#697)3a0f50aUse crypto.Signer whenever possible (#681)16d6306Update module golang.org/x/net to v0.34.0 (#693)8eb9a91Upgrade golangci-lint, more linters1c0df61Update module github.com/pion/logging to v0.2.3 (#691)1e4ae60Update module golang.org/x/net to v0.33.0 [SECURITY]ceb8458Update module golang.org/x/crypto to v0.31.0 [SECURITY]4e34db5Update module golang.org/x/net to v0.31.002434c7Update module golang.org/x/crypto to v0.29.0v3.0.4Compare Source
Changelog
b3e02c4Update module golang.org/x/net to v0.30.03f61fd2Fix RSA signature verification issued796437Improve fuzzingv3.0.3Compare Source
Changelog
98a05d6Fix incorrect client retransmissionsd7f5feeUpdate module golang.org/x/net to v0.29.00be603aUpdate module golang.org/x/crypto to v0.27.00790369Update module golang.org/x/net to v0.28.0f13eec1Update module golang.org/x/crypto to v0.26.0e193dc2Update go.mod version to 1.20v3.0.2Compare Source
Changelog
1a02350Fix race between Conn.Close and Conn.Handshake032d60cUpdate CI configs to v0.11.15f6ecbc2Update docker.io/library/golang Docker tag to v1.23fd18984Fix pkg.go.dev linkv3.0.1Compare Source
Changelog
e20b162Fix multiple calls to Handshakef3e8a9eFix segfault in State::serialize method5a72b12Update module github.com/pion/transport/v3 to v3.0.7c5ab822Update module golang.org/x/net to v0.27.023674bdUpdate module golang.org/x/crypto to v0.25.07ab74fbAdd support for MKI in use_srtp7139e0eFix time units in example2ed7caaUpdate module github.com/pion/transport/v3 to v3.0.6v3.0.0Compare Source
Pion DTLS v3.0.0 is now available. Pion DTLS is a Go implementation of DTLS. It allows for secure communication over UDP. It is commonly used for VPNs, WebRTC and other real-time protocols.
This release includes 115 commits from 17 authors. This release added Connection Identifiers, concurrent handshaking when Accepting inbound connections, Censorship Circumvention and better resilience against packet loss during handshaking.
A special thank you to kevmo314 and hasheddan for all their hard work on making this release happen.
This release contains breaking changes. Please read the following carefully, the breakage can't be caught at compile time. Each change will have a linked commit. Looking at
examples/in the linked commit should show what code you need to change in your application.Breaking Changes
Before
/v2Pion DTLS would handshake on Server or Client creation. This design caused theAcceptimplementation to be blocking. A new connection couldn't be accept until the previous one had finished.This design also doesn't match the
crypto/tlsimplementation in stdlib. This mismatch would cause frustration/confusion for users.Now the handshaking only occurs when
Read,WriteorHandshakeis called. In most cases users shouldn't notice a difference.If you do want a Handshake performed without a
ReadorWritethis is the change needed.Before
After
This change was made in e4064683
New Features
Connection IDs
Connection IDs is a new feature added to the DTLS protocol itself. This change allows for clients to change IPs/Ports during a session. This allows for devices to roam (like phones) or for low power devices to shut down and reconnect without losing their DTLS session!
Connection ID generation is pluggable via the dtls.Config structure, and a random CID generator with a static size is provided for convenience. A new example has been added to demonstrate this functionality.
For those interested in digging deeper into the full set of changes, the majority of work was done in #570.
Censorship Circumvention
Software that is used to circumvent censorship like snowflake uses Pion. To block this (and other) software goverments have looked for patterns and differences in Pion DTLS and blocked it.
This new release contains hooks that allows users to randomize and circumvent these blocks. Users can modify ClientHello, ServerHello and CertificateRequest. Users can also smuggle information in a ServerHello/ClientHello RandomBytes.
You can see them all here here
Changelog
The complete log between v2.2.7 and v3.0.0:
0a8d838Prepare /v3b6fd38eUpdate module github.com/pion/transport/v3 to v3.0.5e406468Perform handshake on first read/write6178064Mark NULL and AES256CM SRTP ciphers as supportedbc3159aAdded DTLS-SRTP IDs for NULL and AES256CM ciphersd013d0cOn Read Retransmit send FSM to SENDINGec76652Retransmit last flight when in finished602dc71Make localConnectionID thread safe0a1b73aRespect disableRetransmitBackoffa6d9640Add OnConnectionAttempt to Config48d6748Implement retransmit backoff according to 4.2.4.145e16a0Update module golang.org/x/net to v0.26.0a5d1facFlight3: respect curves configuration61b3466Add ability to select cert based on ch rand byteseddca22Update module golang.org/x/crypto to v0.24.0edc7ad0Limit size of encrypted packet queuefbbdf66Update module golang.org/x/net to v0.25.0efd6737Add test for PSK and Identitycb62aacFix typo in test494c1a3Remove testify dependencyadec94aUpdate golang Docker tag to v1.228738ce1Add handshake hooking2c36d63Update module golang.org/x/net to v0.24.0d606c79Update module golang.org/x/crypto to v0.22.0f6f666eUpdate module golang.org/x/net to v0.23.0 [SECURITY]e008bc4Update CI configs to v0.11.123e667b0Update go.mod version to 1.19ae51db9Update CI configs to v0.11.78244c45Update CI configs to v0.11.40ad9cfdUpdate module github.com/pion/transport/v3 to v3.0.28a93e0eFix TestErrorsTemporary38e39e4Update module golang.org/x/net to v0.22.0a245727Update module golang.org/x/crypto to v0.21.05e95b5cUpdate module github.com/stretchr/testify to v1.9.035a00d3Fix linter errors96b8c29Fix linter errors2597464Update module golang.org/x/net to v0.20.042b6772Update module golang.org/x/crypto to v0.18.0bb54a30If not found in the cache return nil3427819Format code798b32aFix flight1parse processing exceptionba72fbaUpdate CI configs to v0.11.3520d84cUpdate CI configs to v0.11.0cfa868cRemove 'AUTHORS.txt' from README.mdb4a403cRemove 'Generate Authors' workflow9ffd96cDrop invalid record silently during handshake3e8a7d7Update module golang.org/x/crypto to v0.17.0 [SECURITY]dc751e3Update module golang.org/x/net to v0.19.03f3d833Update module golang.org/x/crypto to v0.16.0a8f7062Use atomic to avoid stale SRTP protection profile9cc3df9Respect Algorithm value in CertificateRequest7faf25fUpdate module golang.org/x/net to v0.17.0 [SECURITY]c864545Update module golang.org/x/net to v0.15.028431d9Export CipherSuiteID in connection State8401874Update module golang.org/x/crypto to v0.13.0744e27aUpdate actions/checkout action to v42b584afSpecifying underlying type of conn ID atomic.Value70caf30Use atomic.Value to maintain Go 1.13 compatibility60064c6Update module github.com/pion/transport/v3 to v3.0.1ef50d6bUpdate AUTHORS.txt7e5003aUpdate AUTHORS.txtdbc7fd9Update module github.com/pion/transport/v3 to v3.0.0a681f67Correctly identify client and server with PSK IDe85f106Update module github.com/pion/transport/v2 to v2.2.27bf18f8Update module golang.org/x/net to v0.14.0609e5beClear CIDs on potential session resumptione142ee1Serialize CIDs in state37fbc04Add CID send only client example6df50a6Add CID listener examplef5875c1Set UDP routing if CID is enablede663309Add CID routing unit tests9db84b5Add CID based datagram routinga8998afAdd UDP net.PacketListener unit tests71db42bIntroduce UDP net.PacketListener3afeb7dAdd PacketBuffer unit testseb305b1Introduce net PacketBuffer703da0cConsume net package in tests4f53ce1Introduce net packagef1d8b0aWrap Alerts when CID is negotiated3082313Convert nil CIDs to empty byte slice83b1254Fix name of cipher suite initialization function818feb8Set timeout to 10 minutes on e2e workflowd29c6f0Add basic connection ID generators2f2bc8dAdd e2e CID testsee04141Update tests to wrap net.Connf960a37Wrap net.Conn in DTLS listenerafb61f1Update DTLS Conn to use PacketConn and CIDd082911Add Conn to PacketConn utilitye5420deUpdate handshaker to handle CID extension8922879Update ciphersuites to support CIDs8ba47cbImplement AEAD additional data with CID27fd131Add local and remote CID to state9a37bfdImplement AddUint48 utility1ce6f27Add CID content type6af61b1Allow packets to specify CID wrappedb7b1e44Add support for CID related generators2005135Add support for parsing CID records9e4a4e7Add DTLS connection ID extensione9b3ce0Update pion/transport to latesta1d270fUpdate module golang.org/x/crypto to v0.12.0a6eca6cUpdate CI configs to v0.10.11eb34e7dUpdate module golang.org/x/net to v0.13.0c9eb5f2Update module golang.org/x/net to v0.12.0b033847Clean up unneccessary nested logic7307f62Fix return of nil alertErrorsb905606Add unmarshal unit tests for extensions0736d45Fix parsing supported EC point formats93704b3Add Daniel Mangum to AUTHORS.txtcabe5b8Enable Supported Signature Algorithms265bf11Enable Elliptic Curve Supported Point Formatsd7303d0Wait for OpenSSL server shutdown in e2e test159122fUpdate e2e Go image to 1.208a11cf2Remove extraneous error checks in handshaker4fc3d8fUpdate module golang.org/x/net to v0.11.04b76abfUpdate module golang.org/x/crypto to v0.10.0pion/transport (github.com/pion/transport/v2)
v3.0.7Compare Source
What's Changed
Full Changelog: pion/transport@v3.0.6...v3.0.7
v3.0.6Compare Source
What's Changed
Full Changelog: pion/transport@v3.0.5...v3.0.6
v3.0.5Compare Source
What's Changed
Full Changelog: pion/transport@v3.0.4...v3.0.5
v3.0.4Compare Source
What's Changed
Full Changelog: pion/transport@v3.0.3...v3.0.4
v3.0.3Compare Source
What's Changed
New Contributors
Full Changelog: pion/transport@v3.0.2...v3.0.3
v3.0.2Compare Source
What's Changed
Configuration
📅 Schedule: Branch creation - "after 5am on sunday" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
To execute skipped test pipelines write comment
/ok-to-test.This PR has been generated by MintMaker (powered by Renovate Bot).