Releases: lancer-kit/armory
Upgrade required Go version. Replaced sentry hook for logrus
Upgrade required Go version & dependencies. Replaced sentry hook for Logrus.
Improve DB package, cleanup, update documentation
Changelog
BREAKING CHANGES
This update contains a bunch of breaking changes:
-
Changed JSON Tag for the filed for
api/render/result
for Typerender.R
. FieldCode int json:"errcode"
-> nowCode int json:"code"
. -
The package
auth
was removed. -
Removed the
db.SetAsset(...)
anddb.Migration(...)
, please use thedb.MigrateSet(...)
ordb.MigrateMultiSet(...)
. -
Removed deprecated method
(t *db.Table) WithCount()
-
Removed log.Fatal from methods of
initialization.Modules
andinitialization.Module
now they return errors
Add
- CODE_OF_CONDUCT.md
- CONTRIBUTING.md
- Added extended configuration
db.SecureConfig
that supports noble.Secrets; - Added support of patchable migrations and multi-migrations per database;
- Added
log.NConfig
that provides the possibility to pass the LogLevel and SentryDSN using noble.Secrets;
Update
-
README.md and GoDoc for whole repo content;
-
Replaced usage of
log.Default
bylog.Get()
.log.Default
is DEPRECATED; -
Non-critical internal changes as recommended by linter;
-
Extended
render.Page
. FieldTotalRows int64 json:"total_rows"
was added; -
Add links to related godoc.org;
-
Changed the
db.ErrInvalidOrder
anddb.ErrTooBigPage
now is more convenient and go-styled custom errors, not a functions; -
Added
SelectPage(pq *db.PageQuery) ([]{{.TypeName}}, int64, error)
todb/q.tmpl
; -
Fixed
chi/middleware.LogEntry
implementation according to the newest version ofchi
; -
Changed HTTP Request logs from INFO level to DEBUG;
-
Update
ozzo-validation
to v4.
Clean up httpx & improve pagination implementation
Merge pull request #9 from lancer-kit/fix-httpx Clean Up and refactor httpx.Client
Fix invalid structure validation implementations
v1.7.4 Fix invalid structure validation implementations
Add a missed error handler
v1.7.3 Add missed errors handling
Change log level of the database logger
v1.7.2 Change queries log-level from DEBUG to TRACE
Update nats dependency
v1.7.1 Update nats lib
Add new getter of the SQLConn, remove elastic and ApiServer
v1.7.0 Remove: API server and elastic plugin; Add new getter for sqlConn
apI server with context
Merge pull request #8 from lancer-kit/internal_error only code on internal server error
Fix database transaction check
Add new method for SQLConn InTx() bool
, method IsInTx() bool
- now deprecated