Sourced from github.com/go-sql-driver/mysql's releases.
v1.8.0
What's Changed
Major changes
Use
SET NAMES charset COLLATE collation
. by@methane
in go-sql-driver/mysql#1437
- Older go-mysql-driver used
collation_id
in the handshake packet. But it caused collation mismatch in some situation.- If you don't specify charset nor collation, go-mysql-driver sends
SET NAMES utf8mb4
for new connection. This uses server's default collation for utf8mb4.- If you specify charset, go-mysql-driver sends
SET NAMES <charset>
. This uses the server's default collation for<charset>
.- If you specify collation and/or charset, go-mysql-driver sends
SET NAMES charset COLLATE collation
.PathEscape dbname in DSN. by
@methane
in go-sql-driver/mysql#1432
- This is backward incompatible in rare case. Check your DSN.
Drop Go 1.13-17 support by
@methane
in go-sql-driver/mysql#1420
- Use Go 1.18+
Parse numbers on text protocol too by
@methane
in go-sql-driver/mysql#1452
- When text protocol is used, go-mysql-driver passed bare
[]byte
to database/sql for avoid unnecessary allocation and conversion.- If user specified
*any
toScan()
, database/sql passed the[]byte
into the target variabe.- This confused users because most user doesn't know when text/binary protocol used.
- go-mysql-driver 1.8 converts integer/float values into int64/double even in text protocol. This doesn't increase allocation compared to
[]byte
and conversion cost is negilible.New options start using the Functional Option Pattern to avoid increasing technical debt in the Config object. Future version may introduce Functional Option for existing options, but not for now.
- Make TimeTruncate functional option by
@methane
in go-sql-driver/mysql#1552- Add BeforeConnect callback to configuration object by
@ItalyPaleAle
in go-sql-driver/mysql#1469Other changes
Adding DeregisterDialContext to prevent memory leaks with dialers we don't need anymore by
@jypelle
in go-sql-driver/mysql#1422Make logger configurable per connection by
@frozenbonito
in go-sql-driver/mysql#1408Fix ColumnType.DatabaseTypeName for mediumint unsigned by
@evanelias
in go-sql-driver/mysql#1428Add connection attributes by
@Daemonxiao
in go-sql-driver/mysql#1389Stop
ColumnTypeScanType()
from returningsql.RawBytes
by@methane
in go-sql-driver/mysql#1424Exec() now provides access to status of multiple statements. by
@mherr-google
in go-sql-driver/mysql#1309Allow to change (or disable) the default driver name for registration by
@dolmen
in go-sql-driver/mysql#1499Add default connection attribute '_server_host' by
@oblitorum
in go-sql-driver/mysql#1506QueryUnescape DSN ConnectionAttribute value by
@zhangyangyu
in go-sql-driver/mysql#1470Add client_ed25519 authentication by
@Gusted
in go-sql-driver/mysql#1518Reduced allocation on connection.go by
@EPuncker
in go-sql-driver/mysql#1421Avoid panic in TestRowsColumnTypes by
@wayyoungboy
in go-sql-driver/mysql#1426Add benchmark to receive massive rows. by
@methane
in go-sql-driver/mysql#1415README: Update multistatement by
@methane
in go-sql-driver/mysql#1431
... (truncated)
33b7747
Add BeforeConnect callback to configuration object (#1469)6964272
Make TimeTruncate functional option (#1552)097fe6e
Update workflows (#1547)f019727
add TiDB support in README.md (#1333)743e263
Introduce timeTruncate
parameter for time.Time
arguments (#1541)c48c0e7
Fix unsigned int overflow (#1530)0004702
Parallelize test (#1525)d4517c5
Support ENUM and SET type in DatabaseTypeName() (#1520)2cdf624
Fix sql.RawBytes corruption issue (#1523)fc589cb
Add client_ed25519 authentication (#1518)Sourced from github.com/stretchr/testify's releases.
v1.9.0
What's Changed
- Fix Go modules version by
@SuperQ
in stretchr/testify#1394- Document that require is not safe to call in created goroutines by
@programmer04
in stretchr/testify#1392- Remove myself from MAINTAINERS.md by
@mvdkleijn
in stretchr/testify#1367- Correct spelling/grammar by
@echarrod
in stretchr/testify#1389- docs: Update URLs in README by
@davidjb
in stretchr/testify#1349- Update mockery link to Github Pages in README by
@LandonTClipp
in stretchr/testify#1346- docs: Fix typos in tests and comments by
@alexandear
in stretchr/testify#1410- CI: tests from go1.17 by
@SuperQ
in stretchr/testify#1409- Fix adding ? when no values passed by
@lesichkovm
in stretchr/testify#1320- codegen: use standard header for generated files by
@dolmen
in stretchr/testify#1406- mock: AssertExpectations log reason only on failure by
@hikyaru-suzuki
in stretchr/testify#1360- assert: fix flaky TestNeverTrue by
@dolmen
in stretchr/testify#1417- README: fix typos "set up" vs "setup" by
@ossan-dev
in stretchr/testify#1428- mock: move regexp compilation outside of
Called
by@aud10slave
in stretchr/testify#631- assert: refactor internal func getLen() by
@dolmen
in stretchr/testify#1445- mock: deprecate type AnythingOfTypeArgument (#1434) by
@dolmen
in stretchr/testify#1441- Remove no longer needed assert.canConvert by
@alexandear
in stretchr/testify#1470- assert: ObjectsAreEqual: use time.Equal for time.Time types by
@tscales
in stretchr/testify#1464- Bump actions/checkout from 3 to 4 by
@dependabot
in stretchr/testify#1466- Bump actions/setup-go from 3.2.0 to 4.1.0 by
@dependabot
in stretchr/testify#1451- fix: make EventuallyWithT concurrency safe by
@czeslavo
in stretchr/testify#1395- assert: fix httpCode and HTTPBody occur panic when http.Handler read Body by
@hidu
in stretchr/testify#1484- assert.EqualExportedValues: fix handling of arrays by
@zrbecker
in stretchr/testify#1473- .github: use latest Go versions by
@kevinburkesegment
in stretchr/testify#1489- assert: Deprecate EqualExportedValues by
@HaraldNordgren
in stretchr/testify#1488- suite: refactor test assertions by
@alexandear
in stretchr/testify#1474- suite: fix SetupSubTest and TearDownSubTest execution order by
@linusbarth
in stretchr/testify#1471- docs: Fix deprecation comments for http package by
@alexandear
in stretchr/testify#1335- Add map support doc comments to Subset and NotSubset by
@jedevc
in stretchr/testify#1306- TestErrorIs/TestNotErrorIs: check error message contents by
@craig65535
in stretchr/testify#1435- suite: fix subtest names (fix #1501) by
@dolmen
in stretchr/testify#1504- assert: improve unsafe.Pointer tests by
@dolmen
in stretchr/testify#1505- assert: simplify isNil implementation by
@dolmen
in stretchr/testify#1506- assert.InEpsilonSlice: fix expected/actual order and other improvements by
@dolmen
in stretchr/testify#1483- Fix dependency cycle with objx #1292 by
@dolmen
in stretchr/testify#1453- mock: refactor TestIsArgsEqual by
@dolmen
in stretchr/testify#1444- mock: optimize argument matching checks by
@dolmen
in stretchr/testify#1416- assert: fix TestEventuallyTimeout by
@dolmen
in stretchr/testify#1412- CI: add go 1.21 in GitHub Actions by
@dolmen
in stretchr/testify#1450- suite: fix recoverAndFailOnPanic to report test failure at the right location by
@dolmen
in stretchr/testify#1502- Update maintainers by
@brackendawson
in stretchr/testify#1533- assert: Fix EqualValues to handle overflow/underflow by
@arjunmahishi
in stretchr/testify#1531- assert: better formatting for Len() error by
@kevinburkesegment
in stretchr/testify#1485- Ensure AssertExpectations does not fail in skipped tests by
@ianrose14
in stretchr/testify#1331- suite: fix deadlock in suite.Require()/Assert() by
@arjunmahishi
in stretchr/testify#1535- Revert "assert: ObjectsAreEqual: use time.Equal for time.Time type" by
@brackendawson
in stretchr/testify#1537- [chore] Add issue templates by
@arjunmahishi
in stretchr/testify#1538- Update the build status badge by
@brackendawson
in stretchr/testify#1540
... (truncated)
bb548d0
Merge pull request #1552
from stretchr/dependabot/go_modules/github.com/stret...814075f
build(deps): bump github.com/stretchr/objx from 0.5.1 to 0.5.2e045612
Merge pull request #1339
from bogdandrutu/uintptr5b6926d
Merge pull request #1385
from hslatman/not-implements9f97d67
Merge pull request #1550
from stretchr/release-notesbcb0d3f
Include the auto-release notes in releasesfb770f8
Merge pull request #1247
from ccoVeille/typos85d8bb6
fix typos in comments, tests and github templatese2741fa
Merge pull request #1548
from arjunmahishi/msgAndArgs6e59f20
http_assertions: assert that the msgAndArgs actually works in testsSourced from google.golang.org/grpc's releases.
Release 1.62.1
Bug Fixes
- xds: fix a bug that results in
no matching virtual host found
RPC errors due to a difference between the target and LDS resource names (#6997)- server: fixed stats handler data
InPayload.Length
for unary RPC calls (#6766)
- Special Thanks:
@hueypark
- grpc: the experimental
RecvBufferPool
DialOption
andServerOption
are now active during unary RPCs with compression (#6766)
- Special Thanks:
@hueypark
- grpc: trim whitespaces in
accept-encoding
header before determining compressors
- Special Thanks:
@sercand
Release 1.62.0
New Features
- grpc: Add StaticMethod CallOption as a signal to stats handler that a method is safe to use as an instrument key (#6986)
Behavior Changes
- grpc: Return canonical target string from ClientConn.Target() and resolver.Address.String() (#6923)
Bug Fixes
- server: wait to close connection until incoming socket is drained (with timeout) to prevent data loss on client-side (#6977)
- Special Thanks:
@s-matyukevich
for discovering the root causePerformance Improvements
- *: Allow building without
x/net/trace
by usinggrpcnotrace
to enable dead code elimination (#6954)
- Special Thanks:
@hugelgupf
- rand: improve performance and simplify implementation of
grpcrand
by adoptingmath/rand
's top-level functions for go version 1.21.0 and newer. (#6925)
- Special Thanks:
@kmirzavaziri
Dependencies
- *: Use google.golang.org/protobuf/proto instead of github.com/golang/protobuf. (#6919)
- Special Thanks:
@Clement-Jean
[!NOTE] The above change in proto library usage introduces a minor behavior change within those libraries. The old
github.com/golang/protobuf
library would error if given anil
message toMarshal
, while the newgoogle.golang.org/protobuf
library will successfully output zero bytes in this case. This means server method handlers that didreturn nil, nil
will now return an empty message and no error, while it used to return an error. This also affects the client side, where clients sendingnil
messages used to fail without sending the RPC, and now they will send an empty message.Release 1.61.1
Bug Fixes
- server: wait to close connection until incoming socket is drained (with timeout) to prevent data loss on client-side (#6977)
- Special Thanks:
@s-matyukevich
for discovering the root cause
... (truncated)
9952aa8
Change version to 1.62.1 (#7020)d7334c4
fix enabling compression by trimming whitespaces in accept encoding
header (#...d076e14
rpc_util: Fix RecvBufferPool deactivation issues (#6766)9d981b0
cherry-pick #6997 to
1.62.x release branch (#6979)
(#7018)7c4b553
Switch version to 1.62.1-dev (#6995)d715b2e
Change version to 1.62.0 (#6994)d706a42
cherry-pick #6926 to
1.62 release branch (#6986)8a4ca0c
cherry-pick #6977 to
1.62.x release branch (#6979)d41b01d
encoding: fix typo (#6966)c2b50ee
deps: fix backwards compatibility with encoding (#6965)