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/resultfor Typerender.R. FieldCode int json:"errcode"-> nowCode int json:"code". -
The package
authwas 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.Modulesandinitialization.Modulenow they return errors
Add
- CODE_OF_CONDUCT.md
- CONTRIBUTING.md
- Added extended configuration
db.SecureConfigthat supports noble.Secrets; - Added support of patchable migrations and multi-migrations per database;
- Added
log.NConfigthat 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.Defaultbylog.Get().log.Defaultis 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.ErrInvalidOrderanddb.ErrTooBigPagenow 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.LogEntryimplementation according to the newest version ofchi; -
Changed HTTP Request logs from INFO level to DEBUG;
-
Update
ozzo-validationto 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