diff --git a/CHANGELOG.md b/CHANGELOG.md index 6b1aace96..5e738f2ea 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,19 @@ +## [1.0.14](https://github.com/uptrace/bun/compare/v1.0.13...v1.0.14) (2021-10-24) + + +### Bug Fixes + +* correct binary serialization for mysql ([#259](https://github.com/uptrace/bun/issues/259)) ([e899f50](https://github.com/uptrace/bun/commit/e899f50b22ef6759ef8c029a6cd3f25f2bde17ef)) +* correctly escape single quotes in pg arrays ([3010847](https://github.com/uptrace/bun/commit/3010847f5c2c50bce1969689a0b77fd8a6fb7e55)) +* use BLOB sql type to encode []byte in MySQL and SQLite ([725ec88](https://github.com/uptrace/bun/commit/725ec8843824a7fc8f4058ead75ab0e62a78192a)) + + +### Features + +* warn when there are args but no placeholders ([06dde21](https://github.com/uptrace/bun/commit/06dde215c8d0bde2b2364597190729a160e536a1)) + + + ## [1.0.13](https://github.com/uptrace/bun/compare/v1.0.12...v1.0.13) (2021-10-17) ### Breaking Change diff --git a/dbfixture/go.mod b/dbfixture/go.mod index 2ee0faa6d..cbf41e167 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.13 + github.com/uptrace/bun v1.0.14 gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b ) diff --git a/dialect/mysqldialect/go.mod b/dialect/mysqldialect/go.mod index fb72dd516..fb09af142 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.13 + github.com/uptrace/bun v1.0.14 golang.org/x/mod v0.5.1 ) diff --git a/dialect/pgdialect/go.mod b/dialect/pgdialect/go.mod index 8abf1985d..3eaa44b31 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.13 +require github.com/uptrace/bun v1.0.14 diff --git a/dialect/sqlitedialect/go.mod b/dialect/sqlitedialect/go.mod index d3c8959c9..879eb9e2a 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.13 +require github.com/uptrace/bun v1.0.14 diff --git a/driver/pgdriver/go.mod b/driver/pgdriver/go.mod index a0d0824b8..d8bf83d4a 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.13 + github.com/uptrace/bun v1.0.14 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 644d18778..3c834fda3 100644 --- a/example/basic/go.mod +++ b/example/basic/go.mod @@ -13,9 +13,9 @@ replace github.com/uptrace/bun/dialect/sqlitedialect => ../../dialect/sqlitedial replace github.com/uptrace/bun/driver/sqliteshim => ../../driver/sqliteshim require ( - github.com/uptrace/bun v1.0.13 - github.com/uptrace/bun/dbfixture v1.0.13 - github.com/uptrace/bun/dialect/sqlitedialect v1.0.13 - github.com/uptrace/bun/driver/sqliteshim v1.0.13 - github.com/uptrace/bun/extra/bundebug v1.0.13 + github.com/uptrace/bun v1.0.14 + github.com/uptrace/bun/dbfixture v1.0.14 + github.com/uptrace/bun/dialect/sqlitedialect v1.0.14 + github.com/uptrace/bun/driver/sqliteshim v1.0.14 + github.com/uptrace/bun/extra/bundebug v1.0.14 ) diff --git a/example/create-table-index/go.mod b/example/create-table-index/go.mod index a82c77b74..efdc84f8b 100644 --- a/example/create-table-index/go.mod +++ b/example/create-table-index/go.mod @@ -11,8 +11,8 @@ replace github.com/uptrace/bun/dialect/sqlitedialect => ../../dialect/sqlitedial replace github.com/uptrace/bun/driver/sqliteshim => ../../driver/sqliteshim require ( - github.com/uptrace/bun v1.0.13 - github.com/uptrace/bun/dialect/sqlitedialect v1.0.13 - github.com/uptrace/bun/driver/sqliteshim v1.0.13 - github.com/uptrace/bun/extra/bundebug v1.0.13 + github.com/uptrace/bun v1.0.14 + github.com/uptrace/bun/dialect/sqlitedialect v1.0.14 + github.com/uptrace/bun/driver/sqliteshim v1.0.14 + github.com/uptrace/bun/extra/bundebug v1.0.14 ) diff --git a/example/fixture/go.mod b/example/fixture/go.mod index 327835dc0..976d7df93 100644 --- a/example/fixture/go.mod +++ b/example/fixture/go.mod @@ -13,9 +13,9 @@ replace github.com/uptrace/bun/driver/sqliteshim => ../../driver/sqliteshim replace github.com/uptrace/bun/dbfixture => ../../dbfixture require ( - github.com/uptrace/bun v1.0.13 - github.com/uptrace/bun/dbfixture v1.0.13 - github.com/uptrace/bun/dialect/sqlitedialect v1.0.13 - github.com/uptrace/bun/driver/sqliteshim v1.0.13 - github.com/uptrace/bun/extra/bundebug v1.0.13 + github.com/uptrace/bun v1.0.14 + github.com/uptrace/bun/dbfixture v1.0.14 + github.com/uptrace/bun/dialect/sqlitedialect v1.0.14 + github.com/uptrace/bun/driver/sqliteshim v1.0.14 + github.com/uptrace/bun/extra/bundebug v1.0.14 ) diff --git a/example/migrate/go.mod b/example/migrate/go.mod index f848fffb7..0ab360597 100644 --- a/example/migrate/go.mod +++ b/example/migrate/go.mod @@ -12,9 +12,9 @@ replace github.com/uptrace/bun/driver/sqliteshim => ../../driver/sqliteshim require ( github.com/cpuguy83/go-md2man/v2 v2.0.1 // indirect - github.com/uptrace/bun v1.0.13 - github.com/uptrace/bun/dialect/sqlitedialect v1.0.13 - github.com/uptrace/bun/driver/sqliteshim v1.0.13 - github.com/uptrace/bun/extra/bundebug v1.0.13 + github.com/uptrace/bun v1.0.14 + github.com/uptrace/bun/dialect/sqlitedialect v1.0.14 + github.com/uptrace/bun/driver/sqliteshim v1.0.14 + github.com/uptrace/bun/extra/bundebug v1.0.14 github.com/urfave/cli/v2 v2.3.0 ) diff --git a/example/model-hooks/go.mod b/example/model-hooks/go.mod index 6931c1188..9fd0bc967 100644 --- a/example/model-hooks/go.mod +++ b/example/model-hooks/go.mod @@ -14,9 +14,9 @@ replace github.com/uptrace/bun/driver/sqliteshim => ../../driver/sqliteshim require ( github.com/davecgh/go-spew v1.1.1 - github.com/uptrace/bun v1.0.13 - github.com/uptrace/bun/dialect/sqlitedialect v1.0.13 - github.com/uptrace/bun/driver/sqliteshim v1.0.13 - github.com/uptrace/bun/extra/bundebug v1.0.13 + github.com/uptrace/bun v1.0.14 + github.com/uptrace/bun/dialect/sqlitedialect v1.0.14 + github.com/uptrace/bun/driver/sqliteshim v1.0.14 + github.com/uptrace/bun/extra/bundebug v1.0.14 gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect ) diff --git a/example/multi-tenant/go.mod b/example/multi-tenant/go.mod index 262ef17df..b4af5fee8 100644 --- a/example/multi-tenant/go.mod +++ b/example/multi-tenant/go.mod @@ -14,9 +14,9 @@ replace github.com/uptrace/bun/driver/sqliteshim => ../../driver/sqliteshim require ( github.com/davecgh/go-spew v1.1.1 - github.com/uptrace/bun v1.0.13 - github.com/uptrace/bun/dbfixture v1.0.13 - github.com/uptrace/bun/dialect/sqlitedialect v1.0.13 - github.com/uptrace/bun/driver/sqliteshim v1.0.13 - github.com/uptrace/bun/extra/bundebug v1.0.13 + github.com/uptrace/bun v1.0.14 + github.com/uptrace/bun/dbfixture v1.0.14 + github.com/uptrace/bun/dialect/sqlitedialect v1.0.14 + github.com/uptrace/bun/driver/sqliteshim v1.0.14 + github.com/uptrace/bun/extra/bundebug v1.0.14 ) diff --git a/example/opentelemetry/go.mod b/example/opentelemetry/go.mod index a100ef8ef..90a07e680 100644 --- a/example/opentelemetry/go.mod +++ b/example/opentelemetry/go.mod @@ -16,10 +16,10 @@ replace github.com/uptrace/bun/driver/sqliteshim => ../../driver/sqliteshim require ( github.com/brianvoe/gofakeit/v5 v5.11.2 - github.com/uptrace/bun v1.0.13 - github.com/uptrace/bun/dialect/sqlitedialect v1.0.13 - github.com/uptrace/bun/driver/sqliteshim v1.0.13 - github.com/uptrace/bun/extra/bunotel v1.0.13 + github.com/uptrace/bun v1.0.14 + github.com/uptrace/bun/dialect/sqlitedialect v1.0.14 + github.com/uptrace/bun/driver/sqliteshim v1.0.14 + github.com/uptrace/bun/extra/bunotel v1.0.14 go.opentelemetry.io/otel v1.0.1 go.opentelemetry.io/otel/exporters/stdout/stdouttrace v1.0.1 go.opentelemetry.io/otel/sdk v1.0.1 diff --git a/example/pg-faceted-search/go.mod b/example/pg-faceted-search/go.mod index 0dd9004d4..c9f063f54 100644 --- a/example/pg-faceted-search/go.mod +++ b/example/pg-faceted-search/go.mod @@ -14,9 +14,9 @@ replace github.com/uptrace/bun/dialect/pgdialect => ../../dialect/pgdialect require ( github.com/davecgh/go-spew v1.1.1 - github.com/uptrace/bun v1.0.13 - github.com/uptrace/bun/dbfixture v1.0.13 - github.com/uptrace/bun/dialect/pgdialect v1.0.13 - github.com/uptrace/bun/driver/pgdriver v1.0.13 - github.com/uptrace/bun/extra/bundebug v1.0.13 + github.com/uptrace/bun v1.0.14 + github.com/uptrace/bun/dbfixture v1.0.14 + github.com/uptrace/bun/dialect/pgdialect v1.0.14 + github.com/uptrace/bun/driver/pgdriver v1.0.14 + github.com/uptrace/bun/extra/bundebug v1.0.14 ) diff --git a/example/placeholders/go.mod b/example/placeholders/go.mod index 9ec9b50ad..bdcd3112d 100644 --- a/example/placeholders/go.mod +++ b/example/placeholders/go.mod @@ -11,9 +11,9 @@ replace github.com/uptrace/bun/dialect/sqlitedialect => ../../dialect/sqlitedial replace github.com/uptrace/bun/driver/sqliteshim => ../../driver/sqliteshim require ( - github.com/uptrace/bun v1.0.13 - github.com/uptrace/bun/dialect/sqlitedialect v1.0.13 - github.com/uptrace/bun/driver/sqliteshim v1.0.13 - github.com/uptrace/bun/extra/bundebug v1.0.13 + github.com/uptrace/bun v1.0.14 + github.com/uptrace/bun/dialect/sqlitedialect v1.0.14 + github.com/uptrace/bun/driver/sqliteshim v1.0.14 + github.com/uptrace/bun/extra/bundebug v1.0.14 gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect ) diff --git a/example/rel-belongs-to/go.mod b/example/rel-belongs-to/go.mod index 068c43308..c9b208a9d 100644 --- a/example/rel-belongs-to/go.mod +++ b/example/rel-belongs-to/go.mod @@ -11,8 +11,8 @@ replace github.com/uptrace/bun/dialect/sqlitedialect => ../../dialect/sqlitedial replace github.com/uptrace/bun/driver/sqliteshim => ../../driver/sqliteshim require ( - github.com/uptrace/bun v1.0.13 - github.com/uptrace/bun/dialect/sqlitedialect v1.0.13 - github.com/uptrace/bun/driver/sqliteshim v1.0.13 - github.com/uptrace/bun/extra/bundebug v1.0.13 + github.com/uptrace/bun v1.0.14 + github.com/uptrace/bun/dialect/sqlitedialect v1.0.14 + github.com/uptrace/bun/driver/sqliteshim v1.0.14 + github.com/uptrace/bun/extra/bundebug v1.0.14 ) diff --git a/example/rel-has-many/go.mod b/example/rel-has-many/go.mod index 28a3a45cc..56839d14e 100644 --- a/example/rel-has-many/go.mod +++ b/example/rel-has-many/go.mod @@ -11,8 +11,8 @@ replace github.com/uptrace/bun/dialect/sqlitedialect => ../../dialect/sqlitedial replace github.com/uptrace/bun/driver/sqliteshim => ../../driver/sqliteshim require ( - github.com/uptrace/bun v1.0.13 - github.com/uptrace/bun/dialect/sqlitedialect v1.0.13 - github.com/uptrace/bun/driver/sqliteshim v1.0.13 - github.com/uptrace/bun/extra/bundebug v1.0.13 + github.com/uptrace/bun v1.0.14 + github.com/uptrace/bun/dialect/sqlitedialect v1.0.14 + github.com/uptrace/bun/driver/sqliteshim v1.0.14 + github.com/uptrace/bun/extra/bundebug v1.0.14 ) diff --git a/example/rel-has-one/go.mod b/example/rel-has-one/go.mod index 944637334..c685bf663 100644 --- a/example/rel-has-one/go.mod +++ b/example/rel-has-one/go.mod @@ -11,8 +11,8 @@ replace github.com/uptrace/bun/dialect/sqlitedialect => ../../dialect/sqlitedial replace github.com/uptrace/bun/driver/sqliteshim => ../../driver/sqliteshim require ( - github.com/uptrace/bun v1.0.13 - github.com/uptrace/bun/dialect/sqlitedialect v1.0.13 - github.com/uptrace/bun/driver/sqliteshim v1.0.13 - github.com/uptrace/bun/extra/bundebug v1.0.13 + github.com/uptrace/bun v1.0.14 + github.com/uptrace/bun/dialect/sqlitedialect v1.0.14 + github.com/uptrace/bun/driver/sqliteshim v1.0.14 + github.com/uptrace/bun/extra/bundebug v1.0.14 ) diff --git a/example/rel-many-to-many/go.mod b/example/rel-many-to-many/go.mod index 944637334..c685bf663 100644 --- a/example/rel-many-to-many/go.mod +++ b/example/rel-many-to-many/go.mod @@ -11,8 +11,8 @@ replace github.com/uptrace/bun/dialect/sqlitedialect => ../../dialect/sqlitedial replace github.com/uptrace/bun/driver/sqliteshim => ../../driver/sqliteshim require ( - github.com/uptrace/bun v1.0.13 - github.com/uptrace/bun/dialect/sqlitedialect v1.0.13 - github.com/uptrace/bun/driver/sqliteshim v1.0.13 - github.com/uptrace/bun/extra/bundebug v1.0.13 + github.com/uptrace/bun v1.0.14 + github.com/uptrace/bun/dialect/sqlitedialect v1.0.14 + github.com/uptrace/bun/driver/sqliteshim v1.0.14 + github.com/uptrace/bun/extra/bundebug v1.0.14 ) diff --git a/example/trivial/go.mod b/example/trivial/go.mod index db4105207..ce3e4677b 100644 --- a/example/trivial/go.mod +++ b/example/trivial/go.mod @@ -18,11 +18,11 @@ replace github.com/uptrace/bun/dialect/mysqldialect => ../../dialect/mysqldialec require ( github.com/go-sql-driver/mysql v1.6.0 - github.com/uptrace/bun v1.0.13 - github.com/uptrace/bun/dialect/mysqldialect v1.0.13 - github.com/uptrace/bun/dialect/pgdialect v1.0.13 - github.com/uptrace/bun/dialect/sqlitedialect v1.0.13 - github.com/uptrace/bun/driver/pgdriver v1.0.13 - github.com/uptrace/bun/driver/sqliteshim v1.0.13 - github.com/uptrace/bun/extra/bundebug v1.0.13 + github.com/uptrace/bun v1.0.14 + github.com/uptrace/bun/dialect/mysqldialect v1.0.14 + github.com/uptrace/bun/dialect/pgdialect v1.0.14 + github.com/uptrace/bun/dialect/sqlitedialect v1.0.14 + github.com/uptrace/bun/driver/pgdriver v1.0.14 + github.com/uptrace/bun/driver/sqliteshim v1.0.14 + github.com/uptrace/bun/extra/bundebug v1.0.14 ) diff --git a/example/tx-composition/go.mod b/example/tx-composition/go.mod index 6838928a0..d9f0f4f6d 100644 --- a/example/tx-composition/go.mod +++ b/example/tx-composition/go.mod @@ -13,9 +13,9 @@ replace github.com/uptrace/bun/dialect/sqlitedialect => ../../dialect/sqlitedial replace github.com/uptrace/bun/driver/sqliteshim => ../../driver/sqliteshim require ( - github.com/uptrace/bun v1.0.13 - github.com/uptrace/bun/dialect/sqlitedialect v1.0.13 - github.com/uptrace/bun/driver/sqliteshim v1.0.13 - github.com/uptrace/bun/extra/bundebug v1.0.13 + github.com/uptrace/bun v1.0.14 + github.com/uptrace/bun/dialect/sqlitedialect v1.0.14 + github.com/uptrace/bun/driver/sqliteshim v1.0.14 + github.com/uptrace/bun/extra/bundebug v1.0.14 gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect ) diff --git a/extra/bundebug/go.mod b/extra/bundebug/go.mod index eb5914ea0..c9d8a2847 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.13 + github.com/uptrace/bun v1.0.14 ) diff --git a/extra/bunotel/go.mod b/extra/bunotel/go.mod index a8b52c967..cddaeb566 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.13 + github.com/uptrace/bun v1.0.14 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 ff8772db2..f658115ea 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.13 - github.com/uptrace/bun/dbfixture v1.0.13 - github.com/uptrace/bun/dialect/mysqldialect v1.0.13 - github.com/uptrace/bun/dialect/pgdialect v1.0.13 - github.com/uptrace/bun/dialect/sqlitedialect v1.0.13 - github.com/uptrace/bun/driver/pgdriver v1.0.13 - github.com/uptrace/bun/driver/sqliteshim v1.0.13 - github.com/uptrace/bun/extra/bundebug v1.0.13 + github.com/uptrace/bun v1.0.14 + github.com/uptrace/bun/dbfixture v1.0.14 + github.com/uptrace/bun/dialect/mysqldialect v1.0.14 + github.com/uptrace/bun/dialect/pgdialect v1.0.14 + github.com/uptrace/bun/dialect/sqlitedialect v1.0.14 + github.com/uptrace/bun/driver/pgdriver v1.0.14 + github.com/uptrace/bun/driver/sqliteshim v1.0.14 + github.com/uptrace/bun/extra/bundebug v1.0.14 ) diff --git a/package.json b/package.json index 5d7fff6de..ba6a00007 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bun", - "version": "1.0.13", + "version": "1.0.14", "main": "index.js", "repository": "git@github.com:uptrace/bun.git", "author": "Vladimir Mihailenco ", diff --git a/version.go b/version.go index d0161538f..f13205b85 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.13" + return "1.0.14" }