diff --git a/CHANGELOG.md b/CHANGELOG.md index 8b822f93e..da68dff60 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,24 @@ +## [1.0.12](https://github.com/uptrace/bun/compare/v1.0.11...v1.0.12) (2021-10-14) + + +### Bug Fixes + +* add InsertQuery.ColumnExpr to specify columns ([60ffe29](https://github.com/uptrace/bun/commit/60ffe293b37912d95f28e69734ff51edf4b27da7)) +* **bundebug:** change WithVerbose to accept a bool flag ([b2f8b91](https://github.com/uptrace/bun/commit/b2f8b912de1dc29f40c79066de1e9d6379db666c)) +* **pgdialect:** fix bytea[] handling ([a5ca013](https://github.com/uptrace/bun/commit/a5ca013742c5a2e947b43d13f9c2fc0cf6a65d9c)) +* **pgdriver:** rename DriverOption to Option ([51c1702](https://github.com/uptrace/bun/commit/51c1702431787d7369904b2624e346bf3e59c330)) +* support allowzero on the soft delete field ([d0abec7](https://github.com/uptrace/bun/commit/d0abec71a9a546472a83bd70ed4e6a7357659a9b)) + + +### Features + +* **bundebug:** allow to configure the hook using env var, for example, BUNDEBUG={0,1,2} ([ce92852](https://github.com/uptrace/bun/commit/ce928524cab9a83395f3772ae9dd5d7732af281d)) +* **bunotel:** report DBStats metrics ([b9b1575](https://github.com/uptrace/bun/commit/b9b15750f405cdbd345b776f5a56c6f742bc7361)) +* **pgdriver:** add Error.StatementTimeout ([8a7934d](https://github.com/uptrace/bun/commit/8a7934dd788057828bb2b0983732b4394b74e960)) +* **pgdriver:** allow setting Network in config ([b24b5d8](https://github.com/uptrace/bun/commit/b24b5d8014195a56ad7a4c634c10681038e6044d)) + + + ## [1.0.11](https://github.com/uptrace/bun/compare/v1.0.10...v1.0.11) (2021-10-05) diff --git a/dbfixture/go.mod b/dbfixture/go.mod index f843afb72..84faf5180 100644 --- a/dbfixture/go.mod +++ b/dbfixture/go.mod @@ -5,6 +5,6 @@ go 1.16 replace github.com/uptrace/bun => ../ require ( - github.com/uptrace/bun v1.0.11 + github.com/uptrace/bun v1.0.12 gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b ) diff --git a/dialect/mysqldialect/go.mod b/dialect/mysqldialect/go.mod index 698ce6712..721c3fe37 100644 --- a/dialect/mysqldialect/go.mod +++ b/dialect/mysqldialect/go.mod @@ -5,6 +5,6 @@ go 1.16 replace github.com/uptrace/bun => ../.. require ( - github.com/uptrace/bun v1.0.11 + github.com/uptrace/bun v1.0.12 golang.org/x/mod v0.5.1 ) diff --git a/dialect/pgdialect/go.mod b/dialect/pgdialect/go.mod index ea162836f..83dc245d3 100644 --- a/dialect/pgdialect/go.mod +++ b/dialect/pgdialect/go.mod @@ -4,4 +4,4 @@ go 1.16 replace github.com/uptrace/bun => ../.. -require github.com/uptrace/bun v1.0.11 +require github.com/uptrace/bun v1.0.12 diff --git a/dialect/sqlitedialect/go.mod b/dialect/sqlitedialect/go.mod index 9a8ff54e1..e5dc79ab0 100644 --- a/dialect/sqlitedialect/go.mod +++ b/dialect/sqlitedialect/go.mod @@ -4,4 +4,4 @@ go 1.16 replace github.com/uptrace/bun => ../.. -require github.com/uptrace/bun v1.0.11 +require github.com/uptrace/bun v1.0.12 diff --git a/driver/pgdriver/go.mod b/driver/pgdriver/go.mod index ae01f8c3f..5052f10d0 100644 --- a/driver/pgdriver/go.mod +++ b/driver/pgdriver/go.mod @@ -6,7 +6,7 @@ replace github.com/uptrace/bun => ../.. require ( github.com/stretchr/testify v1.7.0 - github.com/uptrace/bun v1.0.11 + github.com/uptrace/bun v1.0.12 golang.org/x/crypto v0.0.0-20210921155107-089bfa567519 // indirect mellium.im/sasl v0.2.1 ) diff --git a/example/basic/go.mod b/example/basic/go.mod index 00f2f6621..e105040bd 100644 --- a/example/basic/go.mod +++ b/example/basic/go.mod @@ -13,10 +13,9 @@ replace github.com/uptrace/bun/dialect/sqlitedialect => ../../dialect/sqlitedial replace github.com/uptrace/bun/driver/sqliteshim => ../../driver/sqliteshim require ( - github.com/mattn/go-colorable v0.1.11 // indirect - github.com/uptrace/bun v1.0.11 - github.com/uptrace/bun/dbfixture v1.0.11 - github.com/uptrace/bun/dialect/sqlitedialect v1.0.11 - github.com/uptrace/bun/driver/sqliteshim v1.0.11 - github.com/uptrace/bun/extra/bundebug v1.0.11 + github.com/uptrace/bun v1.0.12 + github.com/uptrace/bun/dbfixture v1.0.12 + github.com/uptrace/bun/dialect/sqlitedialect v1.0.12 + github.com/uptrace/bun/driver/sqliteshim v1.0.12 + github.com/uptrace/bun/extra/bundebug v1.0.12 ) diff --git a/example/basic/go.sum b/example/basic/go.sum index cf57eaf95..16b73e6e9 100644 --- a/example/basic/go.sum +++ b/example/basic/go.sum @@ -12,7 +12,6 @@ github.com/jinzhu/inflection v1.0.0/go.mod h1:h+uFLlag+Qp1Va5pdKtLDYj+kHp5pxUVkr github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 h1:Z9n2FFNUXsshfwJMBgNA0RU6/i7WVaAegv3PtuIHPMs= github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51/go.mod h1:CzGEWj7cYgsdH8dAjBGEr58BoE7ScuLd+fwFZ44+/x8= github.com/mattn/go-colorable v0.1.9/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= -github.com/mattn/go-colorable v0.1.10/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= github.com/mattn/go-colorable v0.1.11 h1:nQ+aFkoE2TMGc0b68U2OKSexC+eq46+XwZzWXHRmPYs= github.com/mattn/go-colorable v0.1.11/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4= github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= diff --git a/example/belongs-to/go.mod b/example/belongs-to/go.mod index 9d2abe435..6eeacc1de 100644 --- a/example/belongs-to/go.mod +++ b/example/belongs-to/go.mod @@ -11,9 +11,8 @@ replace github.com/uptrace/bun/dialect/sqlitedialect => ../../dialect/sqlitedial replace github.com/uptrace/bun/driver/sqliteshim => ../../driver/sqliteshim require ( - github.com/mattn/go-colorable v0.1.11 // indirect - github.com/uptrace/bun v1.0.11 - github.com/uptrace/bun/dialect/sqlitedialect v1.0.11 - github.com/uptrace/bun/driver/sqliteshim v1.0.11 - github.com/uptrace/bun/extra/bundebug v1.0.11 + github.com/uptrace/bun v1.0.12 + github.com/uptrace/bun/dialect/sqlitedialect v1.0.12 + github.com/uptrace/bun/driver/sqliteshim v1.0.12 + github.com/uptrace/bun/extra/bundebug v1.0.12 ) diff --git a/example/belongs-to/go.sum b/example/belongs-to/go.sum index a544d28ab..547ffd109 100644 --- a/example/belongs-to/go.sum +++ b/example/belongs-to/go.sum @@ -12,7 +12,6 @@ github.com/jinzhu/inflection v1.0.0/go.mod h1:h+uFLlag+Qp1Va5pdKtLDYj+kHp5pxUVkr github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 h1:Z9n2FFNUXsshfwJMBgNA0RU6/i7WVaAegv3PtuIHPMs= github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51/go.mod h1:CzGEWj7cYgsdH8dAjBGEr58BoE7ScuLd+fwFZ44+/x8= github.com/mattn/go-colorable v0.1.9/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= -github.com/mattn/go-colorable v0.1.10/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= github.com/mattn/go-colorable v0.1.11 h1:nQ+aFkoE2TMGc0b68U2OKSexC+eq46+XwZzWXHRmPYs= github.com/mattn/go-colorable v0.1.11/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4= github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= diff --git a/example/create-table-index/go.mod b/example/create-table-index/go.mod index 100e31a4f..cd2f7af6e 100644 --- a/example/create-table-index/go.mod +++ b/example/create-table-index/go.mod @@ -11,9 +11,8 @@ replace github.com/uptrace/bun/dialect/sqlitedialect => ../../dialect/sqlitedial replace github.com/uptrace/bun/driver/sqliteshim => ../../driver/sqliteshim require ( - github.com/mattn/go-colorable v0.1.11 // indirect - github.com/uptrace/bun v1.0.11 - github.com/uptrace/bun/dialect/sqlitedialect v1.0.11 - github.com/uptrace/bun/driver/sqliteshim v1.0.11 - github.com/uptrace/bun/extra/bundebug v1.0.11 + github.com/uptrace/bun v1.0.12 + github.com/uptrace/bun/dialect/sqlitedialect v1.0.12 + github.com/uptrace/bun/driver/sqliteshim v1.0.12 + github.com/uptrace/bun/extra/bundebug v1.0.12 ) diff --git a/example/create-table-index/go.sum b/example/create-table-index/go.sum index a544d28ab..547ffd109 100644 --- a/example/create-table-index/go.sum +++ b/example/create-table-index/go.sum @@ -12,7 +12,6 @@ github.com/jinzhu/inflection v1.0.0/go.mod h1:h+uFLlag+Qp1Va5pdKtLDYj+kHp5pxUVkr github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 h1:Z9n2FFNUXsshfwJMBgNA0RU6/i7WVaAegv3PtuIHPMs= github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51/go.mod h1:CzGEWj7cYgsdH8dAjBGEr58BoE7ScuLd+fwFZ44+/x8= github.com/mattn/go-colorable v0.1.9/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= -github.com/mattn/go-colorable v0.1.10/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= github.com/mattn/go-colorable v0.1.11 h1:nQ+aFkoE2TMGc0b68U2OKSexC+eq46+XwZzWXHRmPYs= github.com/mattn/go-colorable v0.1.11/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4= github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= diff --git a/example/fixture/go.mod b/example/fixture/go.mod index 9f7b99d37..8b88776ec 100644 --- a/example/fixture/go.mod +++ b/example/fixture/go.mod @@ -13,10 +13,9 @@ replace github.com/uptrace/bun/driver/sqliteshim => ../../driver/sqliteshim replace github.com/uptrace/bun/dbfixture => ../../dbfixture require ( - github.com/mattn/go-colorable v0.1.11 // indirect - github.com/uptrace/bun v1.0.11 - github.com/uptrace/bun/dbfixture v1.0.11 - github.com/uptrace/bun/dialect/sqlitedialect v1.0.11 - github.com/uptrace/bun/driver/sqliteshim v1.0.11 - github.com/uptrace/bun/extra/bundebug v1.0.11 + github.com/uptrace/bun v1.0.12 + github.com/uptrace/bun/dbfixture v1.0.12 + github.com/uptrace/bun/dialect/sqlitedialect v1.0.12 + github.com/uptrace/bun/driver/sqliteshim v1.0.12 + github.com/uptrace/bun/extra/bundebug v1.0.12 ) diff --git a/example/fixture/go.sum b/example/fixture/go.sum index cf57eaf95..16b73e6e9 100644 --- a/example/fixture/go.sum +++ b/example/fixture/go.sum @@ -12,7 +12,6 @@ github.com/jinzhu/inflection v1.0.0/go.mod h1:h+uFLlag+Qp1Va5pdKtLDYj+kHp5pxUVkr github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 h1:Z9n2FFNUXsshfwJMBgNA0RU6/i7WVaAegv3PtuIHPMs= github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51/go.mod h1:CzGEWj7cYgsdH8dAjBGEr58BoE7ScuLd+fwFZ44+/x8= github.com/mattn/go-colorable v0.1.9/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= -github.com/mattn/go-colorable v0.1.10/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= github.com/mattn/go-colorable v0.1.11 h1:nQ+aFkoE2TMGc0b68U2OKSexC+eq46+XwZzWXHRmPYs= github.com/mattn/go-colorable v0.1.11/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4= github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= diff --git a/example/has-many/go.mod b/example/has-many/go.mod index d5bb5000d..cb5092c22 100644 --- a/example/has-many/go.mod +++ b/example/has-many/go.mod @@ -11,9 +11,8 @@ replace github.com/uptrace/bun/dialect/sqlitedialect => ../../dialect/sqlitedial replace github.com/uptrace/bun/driver/sqliteshim => ../../driver/sqliteshim require ( - github.com/mattn/go-colorable v0.1.11 // indirect - github.com/uptrace/bun v1.0.11 - github.com/uptrace/bun/dialect/sqlitedialect v1.0.11 - github.com/uptrace/bun/driver/sqliteshim v1.0.11 - github.com/uptrace/bun/extra/bundebug v1.0.11 + github.com/uptrace/bun v1.0.12 + github.com/uptrace/bun/dialect/sqlitedialect v1.0.12 + github.com/uptrace/bun/driver/sqliteshim v1.0.12 + github.com/uptrace/bun/extra/bundebug v1.0.12 ) diff --git a/example/has-many/go.sum b/example/has-many/go.sum index a544d28ab..547ffd109 100644 --- a/example/has-many/go.sum +++ b/example/has-many/go.sum @@ -12,7 +12,6 @@ github.com/jinzhu/inflection v1.0.0/go.mod h1:h+uFLlag+Qp1Va5pdKtLDYj+kHp5pxUVkr github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 h1:Z9n2FFNUXsshfwJMBgNA0RU6/i7WVaAegv3PtuIHPMs= github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51/go.mod h1:CzGEWj7cYgsdH8dAjBGEr58BoE7ScuLd+fwFZ44+/x8= github.com/mattn/go-colorable v0.1.9/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= -github.com/mattn/go-colorable v0.1.10/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= github.com/mattn/go-colorable v0.1.11 h1:nQ+aFkoE2TMGc0b68U2OKSexC+eq46+XwZzWXHRmPYs= github.com/mattn/go-colorable v0.1.11/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4= github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= diff --git a/example/has-one/go.mod b/example/has-one/go.mod index adb591edd..203f1e64e 100644 --- a/example/has-one/go.mod +++ b/example/has-one/go.mod @@ -11,9 +11,8 @@ replace github.com/uptrace/bun/dialect/sqlitedialect => ../../dialect/sqlitedial replace github.com/uptrace/bun/driver/sqliteshim => ../../driver/sqliteshim require ( - github.com/mattn/go-colorable v0.1.11 // indirect - github.com/uptrace/bun v1.0.11 - github.com/uptrace/bun/dialect/sqlitedialect v1.0.11 - github.com/uptrace/bun/driver/sqliteshim v1.0.11 - github.com/uptrace/bun/extra/bundebug v1.0.11 + github.com/uptrace/bun v1.0.12 + github.com/uptrace/bun/dialect/sqlitedialect v1.0.12 + github.com/uptrace/bun/driver/sqliteshim v1.0.12 + github.com/uptrace/bun/extra/bundebug v1.0.12 ) diff --git a/example/has-one/go.sum b/example/has-one/go.sum index a544d28ab..547ffd109 100644 --- a/example/has-one/go.sum +++ b/example/has-one/go.sum @@ -12,7 +12,6 @@ github.com/jinzhu/inflection v1.0.0/go.mod h1:h+uFLlag+Qp1Va5pdKtLDYj+kHp5pxUVkr github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 h1:Z9n2FFNUXsshfwJMBgNA0RU6/i7WVaAegv3PtuIHPMs= github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51/go.mod h1:CzGEWj7cYgsdH8dAjBGEr58BoE7ScuLd+fwFZ44+/x8= github.com/mattn/go-colorable v0.1.9/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= -github.com/mattn/go-colorable v0.1.10/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= github.com/mattn/go-colorable v0.1.11 h1:nQ+aFkoE2TMGc0b68U2OKSexC+eq46+XwZzWXHRmPYs= github.com/mattn/go-colorable v0.1.11/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4= github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= diff --git a/example/many-to-many/go.mod b/example/many-to-many/go.mod index adb591edd..203f1e64e 100644 --- a/example/many-to-many/go.mod +++ b/example/many-to-many/go.mod @@ -11,9 +11,8 @@ replace github.com/uptrace/bun/dialect/sqlitedialect => ../../dialect/sqlitedial replace github.com/uptrace/bun/driver/sqliteshim => ../../driver/sqliteshim require ( - github.com/mattn/go-colorable v0.1.11 // indirect - github.com/uptrace/bun v1.0.11 - github.com/uptrace/bun/dialect/sqlitedialect v1.0.11 - github.com/uptrace/bun/driver/sqliteshim v1.0.11 - github.com/uptrace/bun/extra/bundebug v1.0.11 + github.com/uptrace/bun v1.0.12 + github.com/uptrace/bun/dialect/sqlitedialect v1.0.12 + github.com/uptrace/bun/driver/sqliteshim v1.0.12 + github.com/uptrace/bun/extra/bundebug v1.0.12 ) diff --git a/example/many-to-many/go.sum b/example/many-to-many/go.sum index a544d28ab..547ffd109 100644 --- a/example/many-to-many/go.sum +++ b/example/many-to-many/go.sum @@ -12,7 +12,6 @@ github.com/jinzhu/inflection v1.0.0/go.mod h1:h+uFLlag+Qp1Va5pdKtLDYj+kHp5pxUVkr github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 h1:Z9n2FFNUXsshfwJMBgNA0RU6/i7WVaAegv3PtuIHPMs= github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51/go.mod h1:CzGEWj7cYgsdH8dAjBGEr58BoE7ScuLd+fwFZ44+/x8= github.com/mattn/go-colorable v0.1.9/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= -github.com/mattn/go-colorable v0.1.10/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= github.com/mattn/go-colorable v0.1.11 h1:nQ+aFkoE2TMGc0b68U2OKSexC+eq46+XwZzWXHRmPYs= github.com/mattn/go-colorable v0.1.11/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4= github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= diff --git a/example/migrate/go.mod b/example/migrate/go.mod index 45e845849..3f108ce81 100644 --- a/example/migrate/go.mod +++ b/example/migrate/go.mod @@ -12,10 +12,9 @@ replace github.com/uptrace/bun/driver/sqliteshim => ../../driver/sqliteshim require ( github.com/cpuguy83/go-md2man/v2 v2.0.1 // indirect - github.com/mattn/go-colorable v0.1.11 // indirect - github.com/uptrace/bun v1.0.11 - github.com/uptrace/bun/dialect/sqlitedialect v1.0.11 - github.com/uptrace/bun/driver/sqliteshim v1.0.11 - github.com/uptrace/bun/extra/bundebug v1.0.11 + github.com/uptrace/bun v1.0.12 + github.com/uptrace/bun/dialect/sqlitedialect v1.0.12 + github.com/uptrace/bun/driver/sqliteshim v1.0.12 + github.com/uptrace/bun/extra/bundebug v1.0.12 github.com/urfave/cli/v2 v2.3.0 ) diff --git a/example/migrate/go.sum b/example/migrate/go.sum index 8661024d6..6f625e2b3 100644 --- a/example/migrate/go.sum +++ b/example/migrate/go.sum @@ -16,7 +16,6 @@ github.com/jinzhu/inflection v1.0.0/go.mod h1:h+uFLlag+Qp1Va5pdKtLDYj+kHp5pxUVkr github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 h1:Z9n2FFNUXsshfwJMBgNA0RU6/i7WVaAegv3PtuIHPMs= github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51/go.mod h1:CzGEWj7cYgsdH8dAjBGEr58BoE7ScuLd+fwFZ44+/x8= github.com/mattn/go-colorable v0.1.9/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= -github.com/mattn/go-colorable v0.1.10/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= github.com/mattn/go-colorable v0.1.11 h1:nQ+aFkoE2TMGc0b68U2OKSexC+eq46+XwZzWXHRmPYs= github.com/mattn/go-colorable v0.1.11/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4= github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= diff --git a/example/model-hooks/go.mod b/example/model-hooks/go.mod index ff8235c6e..0e8200921 100644 --- a/example/model-hooks/go.mod +++ b/example/model-hooks/go.mod @@ -14,10 +14,9 @@ replace github.com/uptrace/bun/driver/sqliteshim => ../../driver/sqliteshim require ( github.com/davecgh/go-spew v1.1.1 - github.com/mattn/go-colorable v0.1.11 // indirect - github.com/uptrace/bun v1.0.11 - github.com/uptrace/bun/dbfixture v1.0.11 - github.com/uptrace/bun/dialect/sqlitedialect v1.0.11 - github.com/uptrace/bun/driver/sqliteshim v1.0.11 - github.com/uptrace/bun/extra/bundebug v1.0.11 + github.com/uptrace/bun v1.0.12 + github.com/uptrace/bun/dbfixture v1.0.12 + github.com/uptrace/bun/dialect/sqlitedialect v1.0.12 + github.com/uptrace/bun/driver/sqliteshim v1.0.12 + github.com/uptrace/bun/extra/bundebug v1.0.12 ) diff --git a/example/model-hooks/go.sum b/example/model-hooks/go.sum index cf57eaf95..16b73e6e9 100644 --- a/example/model-hooks/go.sum +++ b/example/model-hooks/go.sum @@ -12,7 +12,6 @@ github.com/jinzhu/inflection v1.0.0/go.mod h1:h+uFLlag+Qp1Va5pdKtLDYj+kHp5pxUVkr github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 h1:Z9n2FFNUXsshfwJMBgNA0RU6/i7WVaAegv3PtuIHPMs= github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51/go.mod h1:CzGEWj7cYgsdH8dAjBGEr58BoE7ScuLd+fwFZ44+/x8= github.com/mattn/go-colorable v0.1.9/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= -github.com/mattn/go-colorable v0.1.10/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= github.com/mattn/go-colorable v0.1.11 h1:nQ+aFkoE2TMGc0b68U2OKSexC+eq46+XwZzWXHRmPYs= github.com/mattn/go-colorable v0.1.11/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4= github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= diff --git a/example/opentelemetry/go.mod b/example/opentelemetry/go.mod index 1d12b5644..990c39f4f 100644 --- a/example/opentelemetry/go.mod +++ b/example/opentelemetry/go.mod @@ -16,13 +16,12 @@ replace github.com/uptrace/bun/driver/sqliteshim => ../../driver/sqliteshim require ( github.com/brianvoe/gofakeit/v5 v5.11.2 - github.com/uptrace/bun v1.0.11 - github.com/uptrace/bun/dialect/sqlitedialect v1.0.11 - github.com/uptrace/bun/driver/sqliteshim v1.0.11 - github.com/uptrace/bun/extra/bunotel v1.0.11 + github.com/uptrace/bun v1.0.12 + github.com/uptrace/bun/dialect/sqlitedialect v1.0.12 + github.com/uptrace/bun/driver/sqliteshim v1.0.12 + github.com/uptrace/bun/extra/bunotel v1.0.12 go.opentelemetry.io/otel v1.0.1 go.opentelemetry.io/otel/exporters/stdout/stdouttrace v1.0.1 - go.opentelemetry.io/otel/internal/metric v0.24.0 // indirect go.opentelemetry.io/otel/sdk v1.0.1 gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect ) diff --git a/example/opentelemetry/go.sum b/example/opentelemetry/go.sum index 49f2585fe..39ee255b7 100644 --- a/example/opentelemetry/go.sum +++ b/example/opentelemetry/go.sum @@ -33,22 +33,16 @@ github.com/vmihailenco/tagparser/v2 v2.0.0 h1:y09buUbR+b5aycVFQs/g70pqKVZNBmxwAh github.com/vmihailenco/tagparser/v2 v2.0.0/go.mod h1:Wri+At7QHww0WTrCBeu4J6bNtoV6mEfg5OIWRZA9qds= github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.4.0/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= -go.opentelemetry.io/otel v1.0.0-RC3/go.mod h1:Ka5j3ua8tZs4Rkq4Ex3hwgBgOchyPVq5S6P2lz//nKQ= -go.opentelemetry.io/otel v1.0.0/go.mod h1:AjRVh9A5/5DE7S+mZtTR6t8vpKKryam+0lREnfmS4cg= go.opentelemetry.io/otel v1.0.1 h1:4XKyXmfqJLOQ7feyV5DB6gsBFZ0ltB8vLtp6pj4JIcc= go.opentelemetry.io/otel v1.0.1/go.mod h1:OPEOD4jIT2SlZPMmwT6FqZz2C0ZNdQqiWcoK6M0SNFU= go.opentelemetry.io/otel/exporters/stdout/stdouttrace v1.0.1 h1:QaXn87hD37gomnr0W9OVju7ouaijrT7+92uurmn2zvQ= go.opentelemetry.io/otel/exporters/stdout/stdouttrace v1.0.1/go.mod h1:B1r9v/IqMtkB0lIGbbayqT6f2awSH0EDZya1Yu4p1pU= -go.opentelemetry.io/otel/internal/metric v0.23.0/go.mod h1:z+RPiDJe30YnCrOhFGivwBS+DU1JU/PiLKkk4re2DNY= go.opentelemetry.io/otel/internal/metric v0.24.0 h1:O5lFy6kAl0LMWBjzy3k//M8VjEaTDWL9DPJuqZmWIAA= go.opentelemetry.io/otel/internal/metric v0.24.0/go.mod h1:PSkQG+KuApZjBpC6ea6082ZrWUUy/w132tJ/LOU3TXk= -go.opentelemetry.io/otel/metric v0.23.0/go.mod h1:G/Nn9InyNnIv7J6YVkQfpc0JCfKBNJaERBGw08nqmVQ= go.opentelemetry.io/otel/metric v0.24.0 h1:Rg4UYHS6JKR1Sw1TxnI13z7q/0p/XAbgIqUTagvLJuU= go.opentelemetry.io/otel/metric v0.24.0/go.mod h1:tpMFnCD9t+BEGiWY2bWF5+AwjuAdM0lSowQ4SBA3/K4= go.opentelemetry.io/otel/sdk v1.0.1 h1:wXxFEWGo7XfXupPwVJvTBOaPBC9FEg0wB8hMNrKk+cA= go.opentelemetry.io/otel/sdk v1.0.1/go.mod h1:HrdXne+BiwsOHYYkBE5ysIcv2bvdZstxzmCQhxTcZkI= -go.opentelemetry.io/otel/trace v1.0.0-RC3/go.mod h1:VUt2TUYd8S2/ZRX09ZDFZQwn2RqfMB5MzO17jBojGxo= -go.opentelemetry.io/otel/trace v1.0.0/go.mod h1:PXTWqayeFUlJV1YDNhsJYB184+IvAH814St6o6ajzIs= go.opentelemetry.io/otel/trace v1.0.1 h1:StTeIH6Q3G4r0Fiw34LTokUFESZgIDUr0qIJ7mKmAfw= go.opentelemetry.io/otel/trace v1.0.1/go.mod h1:5g4i4fKLaX2BQpSBsxw8YYcgKpMMSW3x7ZTuYBr3sUk= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= diff --git a/example/pg-faceted-search/go.mod b/example/pg-faceted-search/go.mod index 47e2181b3..4d7cdc014 100644 --- a/example/pg-faceted-search/go.mod +++ b/example/pg-faceted-search/go.mod @@ -14,10 +14,9 @@ replace github.com/uptrace/bun/dialect/pgdialect => ../../dialect/pgdialect require ( github.com/davecgh/go-spew v1.1.1 - github.com/mattn/go-colorable v0.1.11 // indirect - github.com/uptrace/bun v1.0.11 - github.com/uptrace/bun/dbfixture v1.0.11 - github.com/uptrace/bun/dialect/pgdialect v1.0.11 - github.com/uptrace/bun/driver/pgdriver v1.0.11 - github.com/uptrace/bun/extra/bundebug v1.0.11 + github.com/uptrace/bun v1.0.12 + github.com/uptrace/bun/dbfixture v1.0.12 + github.com/uptrace/bun/dialect/pgdialect v1.0.12 + github.com/uptrace/bun/driver/pgdriver v1.0.12 + github.com/uptrace/bun/extra/bundebug v1.0.12 ) diff --git a/example/pg-faceted-search/go.sum b/example/pg-faceted-search/go.sum index 54db1283a..227dfacd2 100644 --- a/example/pg-faceted-search/go.sum +++ b/example/pg-faceted-search/go.sum @@ -6,7 +6,6 @@ github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYF github.com/jinzhu/inflection v1.0.0 h1:K317FqzuhWc8YvSVlFMCCUb36O/S9MCKRDI7QkRKD/E= github.com/jinzhu/inflection v1.0.0/go.mod h1:h+uFLlag+Qp1Va5pdKtLDYj+kHp5pxUVkryuEj+Srlc= github.com/mattn/go-colorable v0.1.9/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= -github.com/mattn/go-colorable v0.1.10/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= github.com/mattn/go-colorable v0.1.11 h1:nQ+aFkoE2TMGc0b68U2OKSexC+eq46+XwZzWXHRmPYs= github.com/mattn/go-colorable v0.1.11/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4= github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= diff --git a/example/placeholders/go.mod b/example/placeholders/go.mod index 4b8c6fd75..583538728 100644 --- a/example/placeholders/go.mod +++ b/example/placeholders/go.mod @@ -11,10 +11,9 @@ replace github.com/uptrace/bun/dialect/sqlitedialect => ../../dialect/sqlitedial replace github.com/uptrace/bun/driver/sqliteshim => ../../driver/sqliteshim require ( - github.com/mattn/go-colorable v0.1.11 // indirect - github.com/uptrace/bun v1.0.11 - github.com/uptrace/bun/dialect/sqlitedialect v1.0.11 - github.com/uptrace/bun/driver/sqliteshim v1.0.11 - github.com/uptrace/bun/extra/bundebug v1.0.11 + github.com/uptrace/bun v1.0.12 + github.com/uptrace/bun/dialect/sqlitedialect v1.0.12 + github.com/uptrace/bun/driver/sqliteshim v1.0.12 + github.com/uptrace/bun/extra/bundebug v1.0.12 gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect ) diff --git a/example/placeholders/go.sum b/example/placeholders/go.sum index 4db911dd3..9e22fde8a 100644 --- a/example/placeholders/go.sum +++ b/example/placeholders/go.sum @@ -12,7 +12,6 @@ github.com/jinzhu/inflection v1.0.0/go.mod h1:h+uFLlag+Qp1Va5pdKtLDYj+kHp5pxUVkr github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 h1:Z9n2FFNUXsshfwJMBgNA0RU6/i7WVaAegv3PtuIHPMs= github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51/go.mod h1:CzGEWj7cYgsdH8dAjBGEr58BoE7ScuLd+fwFZ44+/x8= github.com/mattn/go-colorable v0.1.9/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= -github.com/mattn/go-colorable v0.1.10/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= github.com/mattn/go-colorable v0.1.11 h1:nQ+aFkoE2TMGc0b68U2OKSexC+eq46+XwZzWXHRmPYs= github.com/mattn/go-colorable v0.1.11/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4= github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= diff --git a/example/trivial/go.mod b/example/trivial/go.mod index c1eacec96..5b49f8d88 100644 --- a/example/trivial/go.mod +++ b/example/trivial/go.mod @@ -18,12 +18,11 @@ replace github.com/uptrace/bun/dialect/mysqldialect => ../../dialect/mysqldialec require ( github.com/go-sql-driver/mysql v1.6.0 - github.com/mattn/go-colorable v0.1.11 // indirect - github.com/uptrace/bun v1.0.11 - github.com/uptrace/bun/dialect/mysqldialect v1.0.11 - github.com/uptrace/bun/dialect/pgdialect v1.0.11 - github.com/uptrace/bun/dialect/sqlitedialect v1.0.11 - github.com/uptrace/bun/driver/pgdriver v1.0.11 - github.com/uptrace/bun/driver/sqliteshim v1.0.11 - github.com/uptrace/bun/extra/bundebug v1.0.11 + github.com/uptrace/bun v1.0.12 + github.com/uptrace/bun/dialect/mysqldialect v1.0.12 + github.com/uptrace/bun/dialect/pgdialect v1.0.12 + github.com/uptrace/bun/dialect/sqlitedialect v1.0.12 + github.com/uptrace/bun/driver/pgdriver v1.0.12 + github.com/uptrace/bun/driver/sqliteshim v1.0.12 + github.com/uptrace/bun/extra/bundebug v1.0.12 ) diff --git a/example/trivial/go.sum b/example/trivial/go.sum index f023a203f..2037a3f7f 100644 --- a/example/trivial/go.sum +++ b/example/trivial/go.sum @@ -14,7 +14,6 @@ github.com/jinzhu/inflection v1.0.0/go.mod h1:h+uFLlag+Qp1Va5pdKtLDYj+kHp5pxUVkr github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 h1:Z9n2FFNUXsshfwJMBgNA0RU6/i7WVaAegv3PtuIHPMs= github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51/go.mod h1:CzGEWj7cYgsdH8dAjBGEr58BoE7ScuLd+fwFZ44+/x8= github.com/mattn/go-colorable v0.1.9/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= -github.com/mattn/go-colorable v0.1.10/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= github.com/mattn/go-colorable v0.1.11 h1:nQ+aFkoE2TMGc0b68U2OKSexC+eq46+XwZzWXHRmPYs= github.com/mattn/go-colorable v0.1.11/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4= github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= diff --git a/example/tx-composition/go.mod b/example/tx-composition/go.mod index 24902321d..7112382df 100644 --- a/example/tx-composition/go.mod +++ b/example/tx-composition/go.mod @@ -13,10 +13,9 @@ replace github.com/uptrace/bun/dialect/sqlitedialect => ../../dialect/sqlitedial replace github.com/uptrace/bun/driver/sqliteshim => ../../driver/sqliteshim require ( - github.com/mattn/go-colorable v0.1.11 // indirect - github.com/uptrace/bun v1.0.11 - github.com/uptrace/bun/dialect/sqlitedialect v1.0.11 - github.com/uptrace/bun/driver/sqliteshim v1.0.11 - github.com/uptrace/bun/extra/bundebug v1.0.11 + github.com/uptrace/bun v1.0.12 + github.com/uptrace/bun/dialect/sqlitedialect v1.0.12 + github.com/uptrace/bun/driver/sqliteshim v1.0.12 + github.com/uptrace/bun/extra/bundebug v1.0.12 gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect ) diff --git a/example/tx-composition/go.sum b/example/tx-composition/go.sum index 4db911dd3..9e22fde8a 100644 --- a/example/tx-composition/go.sum +++ b/example/tx-composition/go.sum @@ -12,7 +12,6 @@ github.com/jinzhu/inflection v1.0.0/go.mod h1:h+uFLlag+Qp1Va5pdKtLDYj+kHp5pxUVkr github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 h1:Z9n2FFNUXsshfwJMBgNA0RU6/i7WVaAegv3PtuIHPMs= github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51/go.mod h1:CzGEWj7cYgsdH8dAjBGEr58BoE7ScuLd+fwFZ44+/x8= github.com/mattn/go-colorable v0.1.9/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= -github.com/mattn/go-colorable v0.1.10/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= github.com/mattn/go-colorable v0.1.11 h1:nQ+aFkoE2TMGc0b68U2OKSexC+eq46+XwZzWXHRmPYs= github.com/mattn/go-colorable v0.1.11/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4= github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= diff --git a/extra/bundebug/go.mod b/extra/bundebug/go.mod index bc419dbed..3347af790 100644 --- a/extra/bundebug/go.mod +++ b/extra/bundebug/go.mod @@ -7,5 +7,5 @@ replace github.com/uptrace/bun => ../.. require ( github.com/fatih/color v1.13.0 github.com/mattn/go-colorable v0.1.11 // indirect - github.com/uptrace/bun v1.0.11 + github.com/uptrace/bun v1.0.12 ) diff --git a/extra/bunotel/go.mod b/extra/bunotel/go.mod index 4a24e1a7c..7826c6ee5 100644 --- a/extra/bunotel/go.mod +++ b/extra/bunotel/go.mod @@ -5,7 +5,7 @@ go 1.16 replace github.com/uptrace/bun => ../.. require ( - github.com/uptrace/bun v1.0.11 + github.com/uptrace/bun v1.0.12 go.opentelemetry.io/otel v1.0.1 go.opentelemetry.io/otel/metric v0.24.0 go.opentelemetry.io/otel/trace v1.0.1 diff --git a/internal/dbtest/go.mod b/internal/dbtest/go.mod index f70e0827d..885662e29 100644 --- a/internal/dbtest/go.mod +++ b/internal/dbtest/go.mod @@ -25,12 +25,12 @@ require ( github.com/google/uuid v1.0.0 github.com/jackc/pgx/v4 v4.11.0 github.com/stretchr/testify v1.7.0 - github.com/uptrace/bun v1.0.11 - github.com/uptrace/bun/dbfixture v1.0.11 - github.com/uptrace/bun/dialect/mysqldialect v1.0.11 - github.com/uptrace/bun/dialect/pgdialect v1.0.11 - github.com/uptrace/bun/dialect/sqlitedialect v1.0.11 - github.com/uptrace/bun/driver/pgdriver v1.0.11 - github.com/uptrace/bun/driver/sqliteshim v1.0.11 - github.com/uptrace/bun/extra/bundebug v1.0.11 + github.com/uptrace/bun v1.0.12 + github.com/uptrace/bun/dbfixture v1.0.12 + github.com/uptrace/bun/dialect/mysqldialect v1.0.12 + github.com/uptrace/bun/dialect/pgdialect v1.0.12 + github.com/uptrace/bun/dialect/sqlitedialect v1.0.12 + github.com/uptrace/bun/driver/pgdriver v1.0.12 + github.com/uptrace/bun/driver/sqliteshim v1.0.12 + github.com/uptrace/bun/extra/bundebug v1.0.12 ) diff --git a/package.json b/package.json index 459885e55..860f66512 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bun", - "version": "1.0.11", + "version": "1.0.12", "main": "index.js", "repository": "git@github.com:uptrace/bun.git", "author": "Vladimir Mihailenco ", diff --git a/version.go b/version.go index 765e79b5b..237758913 100644 --- a/version.go +++ b/version.go @@ -2,5 +2,5 @@ package bun // Version is the current release version. func Version() string { - return "1.0.11" + return "1.0.12" }