beego 1.6.0
New features:
-
log
supports rotating files likexx.2013-01-01.2.log
#1265 -
context.response
supports Flush, Hijack, CloseNotify - ORM supports Distinct #1276
-
map_get
template method #1305 - ORM supports tidb engine #1366
- httplib request supports []string #1308
- ORM
querySeter
addedGroupBy
method #1345 - Session’s MySQL engine supports custom table name #1348
- Performance of log’s file engine improved 30%; Supports set log file’s permission #1560
- Get session by query #1507
- Cache module supports multiple Cache objects.
- validation supports custom validation functions
bugfix:
-
bind
method incontext
caused crash when parameter is empty. #1245 - manytomany in ORM reverse error #671
- http: multiple response.WriteHeader calls #1329
- ParseForm uses local timezone while parsing date #1343
- Emails sent by log’s SMTP engine can’t be authorised
- Fixed some issues in router:
/topic/:id/?:auth
,/topic/:id/?:auth:int
#1349 - Fixed the crash caused by nil while parsing comment documentation. #1367
- Can’t read
index.html
in static folder -
dbBase.Update
doesn’t return err if failed #1384 -
Required
invalidation
only works for int but not for int64 - orm: Fix handling of rel(fk) to model with string pk #1379
- graceful error while both http and https enabled #1414
- If ListenTCP4 enabled and httpaddr is empty, it still listens TCP6
- migration doesn’t support postgres #1434
- Default values of ORM text, bool will cause error while creating tables.
- graceful panic: negative WaitGroup counter
Improvement:
- Moved example to samples
- Passed golint
- Rewrote router, improved performance by 3 times.
- Used
sync.Pool
forcontext
to improve performance - Improved template compiling speed. #1298
- Improved config
- Refactored whole codebase for readability and maintainability
- Moved all init code into
AddAPPStartHook
- Removed
middleware
. Will only useplugins
- Refactored
Error
handling.