From e5cf9b10b05ba059bc7b923d269fa8bfdd215d1b Mon Sep 17 00:00:00 2001 From: Vladimir Mihailenco Date: Fri, 29 Oct 2021 09:24:18 +0300 Subject: [PATCH] chore: release v1.0.15 (release.sh) --- CHANGELOG.md | 16 ++++++++++++++++ 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/create-table-index/go.mod | 8 ++++---- example/fixture/go.mod | 10 +++++----- example/migrate/go.mod | 8 ++++---- example/model-hooks/go.mod | 8 ++++---- example/multi-tenant/go.mod | 10 +++++----- example/opentelemetry/go.mod | 8 ++++---- example/pg-faceted-search/go.mod | 10 +++++----- example/placeholders/go.mod | 8 ++++---- example/rel-belongs-to/go.mod | 8 ++++---- example/rel-has-many/go.mod | 8 ++++---- example/rel-has-one/go.mod | 8 ++++---- example/rel-many-to-many-self/go.mod | 8 ++++---- example/rel-many-to-many/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 +- 27 files changed, 104 insertions(+), 88 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5e738f2ea..93b07e730 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,19 @@ +## [1.0.15](https://github.com/uptrace/bun/compare/v1.0.14...v1.0.15) (2021-10-29) + + +### Bug Fixes + +* fixed bug creating table when model has no columns ([042c50b](https://github.com/uptrace/bun/commit/042c50bfe41caaa6e279e02c887c3a84a3acd84f)) +* init table with dialect once ([9a1ce1e](https://github.com/uptrace/bun/commit/9a1ce1e492602742bb2f587e9ed24e50d7d07cad)) + + +### Features + +* accept columns in WherePK ([b3e7035](https://github.com/uptrace/bun/commit/b3e70356db1aa4891115a10902316090fccbc8bf)) +* support ADD COLUMN IF NOT EXISTS ([ca7357c](https://github.com/uptrace/bun/commit/ca7357cdfe283e2f0b94eb638372e18401c486e9)) + + + ## [1.0.14](https://github.com/uptrace/bun/compare/v1.0.13...v1.0.14) (2021-10-24) diff --git a/dbfixture/go.mod b/dbfixture/go.mod index cbf41e167..74b4aad61 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.14 + github.com/uptrace/bun v1.0.15 gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b ) diff --git a/dialect/mysqldialect/go.mod b/dialect/mysqldialect/go.mod index fb09af142..f146155b7 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.14 + github.com/uptrace/bun v1.0.15 golang.org/x/mod v0.5.1 ) diff --git a/dialect/pgdialect/go.mod b/dialect/pgdialect/go.mod index 3eaa44b31..8636ae2c5 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.14 +require github.com/uptrace/bun v1.0.15 diff --git a/dialect/sqlitedialect/go.mod b/dialect/sqlitedialect/go.mod index 879eb9e2a..b5a3e1a6c 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.14 +require github.com/uptrace/bun v1.0.15 diff --git a/driver/pgdriver/go.mod b/driver/pgdriver/go.mod index d8bf83d4a..914302aa0 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.14 + github.com/uptrace/bun v1.0.15 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 3c834fda3..ed427130e 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.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 + github.com/uptrace/bun v1.0.15 + github.com/uptrace/bun/dbfixture v1.0.15 + github.com/uptrace/bun/dialect/sqlitedialect v1.0.15 + github.com/uptrace/bun/driver/sqliteshim v1.0.15 + github.com/uptrace/bun/extra/bundebug v1.0.15 ) diff --git a/example/create-table-index/go.mod b/example/create-table-index/go.mod index efdc84f8b..e81236ec4 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.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/uptrace/bun v1.0.15 + github.com/uptrace/bun/dialect/sqlitedialect v1.0.15 + github.com/uptrace/bun/driver/sqliteshim v1.0.15 + github.com/uptrace/bun/extra/bundebug v1.0.15 ) diff --git a/example/fixture/go.mod b/example/fixture/go.mod index 976d7df93..fefe21ed9 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.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 + github.com/uptrace/bun v1.0.15 + github.com/uptrace/bun/dbfixture v1.0.15 + github.com/uptrace/bun/dialect/sqlitedialect v1.0.15 + github.com/uptrace/bun/driver/sqliteshim v1.0.15 + github.com/uptrace/bun/extra/bundebug v1.0.15 ) diff --git a/example/migrate/go.mod b/example/migrate/go.mod index 0ab360597..fe0f761d1 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.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/uptrace/bun v1.0.15 + github.com/uptrace/bun/dialect/sqlitedialect v1.0.15 + github.com/uptrace/bun/driver/sqliteshim v1.0.15 + github.com/uptrace/bun/extra/bundebug v1.0.15 github.com/urfave/cli/v2 v2.3.0 ) diff --git a/example/model-hooks/go.mod b/example/model-hooks/go.mod index 9fd0bc967..4ea8f4dbd 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.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/uptrace/bun v1.0.15 + github.com/uptrace/bun/dialect/sqlitedialect v1.0.15 + github.com/uptrace/bun/driver/sqliteshim v1.0.15 + github.com/uptrace/bun/extra/bundebug v1.0.15 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 b4af5fee8..7c66e8768 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.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 + github.com/uptrace/bun v1.0.15 + github.com/uptrace/bun/dbfixture v1.0.15 + github.com/uptrace/bun/dialect/sqlitedialect v1.0.15 + github.com/uptrace/bun/driver/sqliteshim v1.0.15 + github.com/uptrace/bun/extra/bundebug v1.0.15 ) diff --git a/example/opentelemetry/go.mod b/example/opentelemetry/go.mod index 90a07e680..d3ca8d49f 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.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 + github.com/uptrace/bun v1.0.15 + github.com/uptrace/bun/dialect/sqlitedialect v1.0.15 + github.com/uptrace/bun/driver/sqliteshim v1.0.15 + github.com/uptrace/bun/extra/bunotel v1.0.15 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 c9f063f54..1b979e893 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.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 + github.com/uptrace/bun v1.0.15 + github.com/uptrace/bun/dbfixture v1.0.15 + github.com/uptrace/bun/dialect/pgdialect v1.0.15 + github.com/uptrace/bun/driver/pgdriver v1.0.15 + github.com/uptrace/bun/extra/bundebug v1.0.15 ) diff --git a/example/placeholders/go.mod b/example/placeholders/go.mod index bdcd3112d..a7f18f574 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.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/uptrace/bun v1.0.15 + github.com/uptrace/bun/dialect/sqlitedialect v1.0.15 + github.com/uptrace/bun/driver/sqliteshim v1.0.15 + github.com/uptrace/bun/extra/bundebug v1.0.15 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 c9b208a9d..21c2ef00a 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.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/uptrace/bun v1.0.15 + github.com/uptrace/bun/dialect/sqlitedialect v1.0.15 + github.com/uptrace/bun/driver/sqliteshim v1.0.15 + github.com/uptrace/bun/extra/bundebug v1.0.15 ) diff --git a/example/rel-has-many/go.mod b/example/rel-has-many/go.mod index 56839d14e..13992a0d1 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.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/uptrace/bun v1.0.15 + github.com/uptrace/bun/dialect/sqlitedialect v1.0.15 + github.com/uptrace/bun/driver/sqliteshim v1.0.15 + github.com/uptrace/bun/extra/bundebug v1.0.15 ) diff --git a/example/rel-has-one/go.mod b/example/rel-has-one/go.mod index c685bf663..5002f551d 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.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/uptrace/bun v1.0.15 + github.com/uptrace/bun/dialect/sqlitedialect v1.0.15 + github.com/uptrace/bun/driver/sqliteshim v1.0.15 + github.com/uptrace/bun/extra/bundebug v1.0.15 ) diff --git a/example/rel-many-to-many-self/go.mod b/example/rel-many-to-many-self/go.mod index 5e7c0ea48..7e9cc08cd 100644 --- a/example/rel-many-to-many-self/go.mod +++ b/example/rel-many-to-many-self/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.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/uptrace/bun v1.0.15 + github.com/uptrace/bun/dialect/sqlitedialect v1.0.15 + github.com/uptrace/bun/driver/sqliteshim v1.0.15 + github.com/uptrace/bun/extra/bundebug v1.0.15 ) diff --git a/example/rel-many-to-many/go.mod b/example/rel-many-to-many/go.mod index ec9a0cf12..2b87be551 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.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/uptrace/bun v1.0.15 + github.com/uptrace/bun/dialect/sqlitedialect v1.0.15 + github.com/uptrace/bun/driver/sqliteshim v1.0.15 + github.com/uptrace/bun/extra/bundebug v1.0.15 ) diff --git a/example/trivial/go.mod b/example/trivial/go.mod index ce3e4677b..c2dec62ce 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.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 + github.com/uptrace/bun v1.0.15 + github.com/uptrace/bun/dialect/mysqldialect v1.0.15 + github.com/uptrace/bun/dialect/pgdialect v1.0.15 + github.com/uptrace/bun/dialect/sqlitedialect v1.0.15 + github.com/uptrace/bun/driver/pgdriver v1.0.15 + github.com/uptrace/bun/driver/sqliteshim v1.0.15 + github.com/uptrace/bun/extra/bundebug v1.0.15 ) diff --git a/example/tx-composition/go.mod b/example/tx-composition/go.mod index d9f0f4f6d..25f15cac6 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.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/uptrace/bun v1.0.15 + github.com/uptrace/bun/dialect/sqlitedialect v1.0.15 + github.com/uptrace/bun/driver/sqliteshim v1.0.15 + github.com/uptrace/bun/extra/bundebug v1.0.15 gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect ) diff --git a/extra/bundebug/go.mod b/extra/bundebug/go.mod index c9d8a2847..5d28156cc 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.14 + github.com/uptrace/bun v1.0.15 ) diff --git a/extra/bunotel/go.mod b/extra/bunotel/go.mod index cddaeb566..82a9617ff 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.14 + github.com/uptrace/bun v1.0.15 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 f658115ea..1949ce0b5 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.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 + github.com/uptrace/bun v1.0.15 + github.com/uptrace/bun/dbfixture v1.0.15 + github.com/uptrace/bun/dialect/mysqldialect v1.0.15 + github.com/uptrace/bun/dialect/pgdialect v1.0.15 + github.com/uptrace/bun/dialect/sqlitedialect v1.0.15 + github.com/uptrace/bun/driver/pgdriver v1.0.15 + github.com/uptrace/bun/driver/sqliteshim v1.0.15 + github.com/uptrace/bun/extra/bundebug v1.0.15 ) diff --git a/package.json b/package.json index ba6a00007..5f8c800d7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bun", - "version": "1.0.14", + "version": "1.0.15", "main": "index.js", "repository": "git@github.com:uptrace/bun.git", "author": "Vladimir Mihailenco ", diff --git a/version.go b/version.go index f13205b85..caa3d4ab3 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.14" + return "1.0.15" }