From 9f53c4d971cb8d84c6cddfdeb734440c05baf950 Mon Sep 17 00:00:00 2001 From: Vladimir Mihailenco Date: Sat, 18 Sep 2021 12:00:24 +0300 Subject: [PATCH] chore: release v1.0.8 (release.sh) --- CHANGELOG.md | 12 ++++++++++++ dbfixture/go.mod | 2 +- dialect/mysqldialect/go.mod | 2 +- dialect/pgdialect/go.mod | 2 +- dialect/sqlitedialect/go.mod | 2 +- driver/pgdriver/go.mod | 2 +- example/basic/go.mod | 10 +++++----- example/belongs-to/go.mod | 8 ++++---- example/create-table-index/go.mod | 8 ++++---- example/fixture/go.mod | 10 +++++----- example/has-many/go.mod | 8 ++++---- example/has-one/go.mod | 8 ++++---- example/many-to-many/go.mod | 8 ++++---- example/migrate/go.mod | 8 ++++---- example/model-hooks/go.mod | 10 +++++----- example/opentelemetry/go.mod | 8 ++++---- example/placeholders/go.mod | 8 ++++---- example/trivial/go.mod | 14 +++++++------- example/tx-composition/go.mod | 8 ++++---- extra/bundebug/go.mod | 2 +- extra/bunotel/go.mod | 2 +- internal/dbtest/go.mod | 16 ++++++++-------- package.json | 2 +- version.go | 2 +- 24 files changed, 87 insertions(+), 75 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ad0e01451..5a8f19e20 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,15 @@ +## [1.0.8](https://github.com/uptrace/bun/compare/v1.0.7...v1.0.8) (2021-09-18) + + +### Bug Fixes + +* don't append soft delete where for insert queries with on conflict clause ([27c477c](https://github.com/uptrace/bun/commit/27c477ce071d4c49c99a2531d638ed9f20e33461)) +* improve bun.NullTime to accept string ([73ad6f5](https://github.com/uptrace/bun/commit/73ad6f5640a0a9b09f8df2bc4ab9cb510021c50c)) +* make allowzero work with auto-detected primary keys ([82ca87c](https://github.com/uptrace/bun/commit/82ca87c7c49797d507b31fdaacf8343716d4feff)) +* support soft deletes on nil model ([0556e3c](https://github.com/uptrace/bun/commit/0556e3c63692a7f4e48659d52b55ffd9cca0202a)) + + + ## [1.0.7](https://github.com/uptrace/bun/compare/v1.0.6...v1.0.7) (2021-09-15) diff --git a/dbfixture/go.mod b/dbfixture/go.mod index f2c4f94d2..4f7dafa88 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.7 + github.com/uptrace/bun v1.0.8 gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b ) diff --git a/dialect/mysqldialect/go.mod b/dialect/mysqldialect/go.mod index 66f402414..c67e3f143 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.7 + github.com/uptrace/bun v1.0.8 golang.org/x/mod v0.4.2 ) diff --git a/dialect/pgdialect/go.mod b/dialect/pgdialect/go.mod index 34d63b58b..21d0e78f7 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.7 +require github.com/uptrace/bun v1.0.8 diff --git a/dialect/sqlitedialect/go.mod b/dialect/sqlitedialect/go.mod index 38b29e495..78554e465 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.7 +require github.com/uptrace/bun v1.0.8 diff --git a/driver/pgdriver/go.mod b/driver/pgdriver/go.mod index 08908cfd4..b146971d6 100644 --- a/driver/pgdriver/go.mod +++ b/driver/pgdriver/go.mod @@ -6,6 +6,6 @@ replace github.com/uptrace/bun => ../.. require ( github.com/stretchr/testify v1.7.0 - github.com/uptrace/bun v1.0.7 + github.com/uptrace/bun v1.0.8 mellium.im/sasl v0.2.1 ) diff --git a/example/basic/go.mod b/example/basic/go.mod index 1bf0bdffe..4287a41e1 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.7 - github.com/uptrace/bun/dbfixture v1.0.7 - github.com/uptrace/bun/dialect/sqlitedialect v1.0.7 - github.com/uptrace/bun/driver/sqliteshim v1.0.7 - github.com/uptrace/bun/extra/bundebug v1.0.7 + github.com/uptrace/bun v1.0.8 + github.com/uptrace/bun/dbfixture v1.0.8 + github.com/uptrace/bun/dialect/sqlitedialect v1.0.8 + github.com/uptrace/bun/driver/sqliteshim v1.0.8 + github.com/uptrace/bun/extra/bundebug v1.0.8 ) diff --git a/example/belongs-to/go.mod b/example/belongs-to/go.mod index 67577a674..57713a286 100644 --- a/example/belongs-to/go.mod +++ b/example/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.7 - github.com/uptrace/bun/dialect/sqlitedialect v1.0.7 - github.com/uptrace/bun/driver/sqliteshim v1.0.7 - github.com/uptrace/bun/extra/bundebug v1.0.7 + github.com/uptrace/bun v1.0.8 + github.com/uptrace/bun/dialect/sqlitedialect v1.0.8 + github.com/uptrace/bun/driver/sqliteshim v1.0.8 + github.com/uptrace/bun/extra/bundebug v1.0.8 ) diff --git a/example/create-table-index/go.mod b/example/create-table-index/go.mod index c6493bc9f..c12a17342 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.7 - github.com/uptrace/bun/dialect/sqlitedialect v1.0.7 - github.com/uptrace/bun/driver/sqliteshim v1.0.7 - github.com/uptrace/bun/extra/bundebug v1.0.7 + github.com/uptrace/bun v1.0.8 + github.com/uptrace/bun/dialect/sqlitedialect v1.0.8 + github.com/uptrace/bun/driver/sqliteshim v1.0.8 + github.com/uptrace/bun/extra/bundebug v1.0.8 ) diff --git a/example/fixture/go.mod b/example/fixture/go.mod index c28f50a29..bb9021d7a 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.7 - github.com/uptrace/bun/dbfixture v1.0.7 - github.com/uptrace/bun/dialect/sqlitedialect v1.0.7 - github.com/uptrace/bun/driver/sqliteshim v1.0.7 - github.com/uptrace/bun/extra/bundebug v1.0.7 + github.com/uptrace/bun v1.0.8 + github.com/uptrace/bun/dbfixture v1.0.8 + github.com/uptrace/bun/dialect/sqlitedialect v1.0.8 + github.com/uptrace/bun/driver/sqliteshim v1.0.8 + github.com/uptrace/bun/extra/bundebug v1.0.8 ) diff --git a/example/has-many/go.mod b/example/has-many/go.mod index 884851daa..8fe10c9c3 100644 --- a/example/has-many/go.mod +++ b/example/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.7 - github.com/uptrace/bun/dialect/sqlitedialect v1.0.7 - github.com/uptrace/bun/driver/sqliteshim v1.0.7 - github.com/uptrace/bun/extra/bundebug v1.0.7 + github.com/uptrace/bun v1.0.8 + github.com/uptrace/bun/dialect/sqlitedialect v1.0.8 + github.com/uptrace/bun/driver/sqliteshim v1.0.8 + github.com/uptrace/bun/extra/bundebug v1.0.8 ) diff --git a/example/has-one/go.mod b/example/has-one/go.mod index c68ae12d2..4756a24b4 100644 --- a/example/has-one/go.mod +++ b/example/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.7 - github.com/uptrace/bun/dialect/sqlitedialect v1.0.7 - github.com/uptrace/bun/driver/sqliteshim v1.0.7 - github.com/uptrace/bun/extra/bundebug v1.0.7 + github.com/uptrace/bun v1.0.8 + github.com/uptrace/bun/dialect/sqlitedialect v1.0.8 + github.com/uptrace/bun/driver/sqliteshim v1.0.8 + github.com/uptrace/bun/extra/bundebug v1.0.8 ) diff --git a/example/many-to-many/go.mod b/example/many-to-many/go.mod index c68ae12d2..4756a24b4 100644 --- a/example/many-to-many/go.mod +++ b/example/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.7 - github.com/uptrace/bun/dialect/sqlitedialect v1.0.7 - github.com/uptrace/bun/driver/sqliteshim v1.0.7 - github.com/uptrace/bun/extra/bundebug v1.0.7 + github.com/uptrace/bun v1.0.8 + github.com/uptrace/bun/dialect/sqlitedialect v1.0.8 + github.com/uptrace/bun/driver/sqliteshim v1.0.8 + github.com/uptrace/bun/extra/bundebug v1.0.8 ) diff --git a/example/migrate/go.mod b/example/migrate/go.mod index 66a870c60..b19b9ceda 100644 --- a/example/migrate/go.mod +++ b/example/migrate/go.mod @@ -13,9 +13,9 @@ replace github.com/uptrace/bun/driver/sqliteshim => ../../driver/sqliteshim require ( github.com/cpuguy83/go-md2man/v2 v2.0.0 // indirect github.com/russross/blackfriday/v2 v2.1.0 // indirect - github.com/uptrace/bun v1.0.7 - github.com/uptrace/bun/dialect/sqlitedialect v1.0.7 - github.com/uptrace/bun/driver/sqliteshim v1.0.7 - github.com/uptrace/bun/extra/bundebug v1.0.7 + github.com/uptrace/bun v1.0.8 + github.com/uptrace/bun/dialect/sqlitedialect v1.0.8 + github.com/uptrace/bun/driver/sqliteshim v1.0.8 + github.com/uptrace/bun/extra/bundebug v1.0.8 github.com/urfave/cli/v2 v2.3.0 ) diff --git a/example/model-hooks/go.mod b/example/model-hooks/go.mod index 04a1622cd..ab3980670 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.7 - github.com/uptrace/bun/dbfixture v1.0.7 - github.com/uptrace/bun/dialect/sqlitedialect v1.0.7 - github.com/uptrace/bun/driver/sqliteshim v1.0.7 - github.com/uptrace/bun/extra/bundebug v1.0.7 + github.com/uptrace/bun v1.0.8 + github.com/uptrace/bun/dbfixture v1.0.8 + github.com/uptrace/bun/dialect/sqlitedialect v1.0.8 + github.com/uptrace/bun/driver/sqliteshim v1.0.8 + github.com/uptrace/bun/extra/bundebug v1.0.8 ) diff --git a/example/opentelemetry/go.mod b/example/opentelemetry/go.mod index fbae55d66..c23f8399a 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.7 - github.com/uptrace/bun/dialect/sqlitedialect v1.0.7 - github.com/uptrace/bun/driver/sqliteshim v1.0.7 - github.com/uptrace/bun/extra/bunotel v1.0.7 + github.com/uptrace/bun v1.0.8 + github.com/uptrace/bun/dialect/sqlitedialect v1.0.8 + github.com/uptrace/bun/driver/sqliteshim v1.0.8 + github.com/uptrace/bun/extra/bunotel v1.0.8 go.opentelemetry.io/otel v1.0.0-RC3 go.opentelemetry.io/otel/exporters/stdout/stdouttrace v1.0.0-RC3 go.opentelemetry.io/otel/sdk v1.0.0-RC3 diff --git a/example/placeholders/go.mod b/example/placeholders/go.mod index da7560d0b..bb41a4c62 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.7 - github.com/uptrace/bun/dialect/sqlitedialect v1.0.7 - github.com/uptrace/bun/driver/sqliteshim v1.0.7 - github.com/uptrace/bun/extra/bundebug v1.0.7 + github.com/uptrace/bun v1.0.8 + github.com/uptrace/bun/dialect/sqlitedialect v1.0.8 + github.com/uptrace/bun/driver/sqliteshim v1.0.8 + github.com/uptrace/bun/extra/bundebug v1.0.8 gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect ) diff --git a/example/trivial/go.mod b/example/trivial/go.mod index 4857ef194..7a603af7a 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.7 - github.com/uptrace/bun/dialect/mysqldialect v1.0.7 - github.com/uptrace/bun/dialect/pgdialect v1.0.7 - github.com/uptrace/bun/dialect/sqlitedialect v1.0.7 - github.com/uptrace/bun/driver/pgdriver v1.0.7 - github.com/uptrace/bun/driver/sqliteshim v1.0.7 - github.com/uptrace/bun/extra/bundebug v1.0.7 + github.com/uptrace/bun v1.0.8 + github.com/uptrace/bun/dialect/mysqldialect v1.0.8 + github.com/uptrace/bun/dialect/pgdialect v1.0.8 + github.com/uptrace/bun/dialect/sqlitedialect v1.0.8 + github.com/uptrace/bun/driver/pgdriver v1.0.8 + github.com/uptrace/bun/driver/sqliteshim v1.0.8 + github.com/uptrace/bun/extra/bundebug v1.0.8 ) diff --git a/example/tx-composition/go.mod b/example/tx-composition/go.mod index e9cfb37a1..b4f26af47 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.7 - github.com/uptrace/bun/dialect/sqlitedialect v1.0.7 - github.com/uptrace/bun/driver/sqliteshim v1.0.7 - github.com/uptrace/bun/extra/bundebug v1.0.7 + github.com/uptrace/bun v1.0.8 + github.com/uptrace/bun/dialect/sqlitedialect v1.0.8 + github.com/uptrace/bun/driver/sqliteshim v1.0.8 + github.com/uptrace/bun/extra/bundebug v1.0.8 gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect ) diff --git a/extra/bundebug/go.mod b/extra/bundebug/go.mod index eff818780..ccd44a001 100644 --- a/extra/bundebug/go.mod +++ b/extra/bundebug/go.mod @@ -6,5 +6,5 @@ replace github.com/uptrace/bun => ../.. require ( github.com/fatih/color v1.10.0 - github.com/uptrace/bun v1.0.7 + github.com/uptrace/bun v1.0.8 ) diff --git a/extra/bunotel/go.mod b/extra/bunotel/go.mod index a811a3777..9ece8fc2f 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.7 + github.com/uptrace/bun v1.0.8 go.opentelemetry.io/otel v1.0.0-RC1 go.opentelemetry.io/otel/trace v1.0.0-RC1 ) diff --git a/internal/dbtest/go.mod b/internal/dbtest/go.mod index 96305851e..0f3d14c23 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.7 - github.com/uptrace/bun/dbfixture v1.0.7 - github.com/uptrace/bun/dialect/mysqldialect v1.0.7 - github.com/uptrace/bun/dialect/pgdialect v1.0.7 - github.com/uptrace/bun/dialect/sqlitedialect v1.0.7 - github.com/uptrace/bun/driver/pgdriver v1.0.7 - github.com/uptrace/bun/driver/sqliteshim v1.0.7 - github.com/uptrace/bun/extra/bundebug v1.0.7 + github.com/uptrace/bun v1.0.8 + github.com/uptrace/bun/dbfixture v1.0.8 + github.com/uptrace/bun/dialect/mysqldialect v1.0.8 + github.com/uptrace/bun/dialect/pgdialect v1.0.8 + github.com/uptrace/bun/dialect/sqlitedialect v1.0.8 + github.com/uptrace/bun/driver/pgdriver v1.0.8 + github.com/uptrace/bun/driver/sqliteshim v1.0.8 + github.com/uptrace/bun/extra/bundebug v1.0.8 ) diff --git a/package.json b/package.json index a2ceb2c87..d9b4162e9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bun", - "version": "1.0.7", + "version": "1.0.8", "main": "index.js", "repository": "git@github.com:uptrace/bun.git", "author": "Vladimir Mihailenco ", diff --git a/version.go b/version.go index 8e49427f0..3ce6d6692 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.7" + return "1.0.8" }