Skip to content

Releases: beego/beego

Release v2.0.1

14 Dec 08:59
c0d9d88
Compare
Choose a tag to compare

When we release v2.0.0, something wrong and then we re-release v2.0.0.

But the checksum in sum.golang.cn is immutable, so we release this version

Release v2.0.0

14 Dec 07:19
a1b1248
Compare
Choose a tag to compare

Refactor

  1. Support the new project structure. We split the whole framework into four parts:
    1.1 server: including web module.
    1.2 client: including ORM, cache, httplib modules.
    1.3 task: supporting timed tasks and other cyclic tasks.
    1.4 core: including validation, config, logs and admin modules.
  2. Add adapter module which is used to reduce the effort of upgrading Beego from v1.x to v2.x
  3. Add context.Context for cache, httplib, session, task, ORM modules' API.
  4. Add error as a return value for cache, httplib, session, task. Now users are able to know more info about what happen inside Beego.
  5. Decouple modules from each other. All modules only depend on core package.
  6. Support tracing, metrics in ORM, web, httplib modules.
  7. Introduce filter-chain patter to support AOP.

Feature:

  1. Allow Healthcheck endpoint return JSON for Kubernetes. 4055
  2. Support ClientAuth for TLS. 4116
  3. orm.RawSeter supports orm.Fielder. 4191
  4. Add a new MySQL operator for strict case-sensitive query. 4198
  5. Using filter-chain pattern in orm module. Support opentracing and prometheus by using filter. 4141
  6. Support prometheus filter for httplib module. 4145
  7. Add additional options to redis session prov. 4137
  8. Support default value filter for orm module. 4156
  9. Add methods Unmarshaler, Sub, OnChange for Configer module. 4175
  10. Custom Log Formatter. 4174, 4179, 4188
  11. Support the time precision for time.Time type. 4186
  12. Support etcd in Config module. 4195
  13. Optimize rawSet.QueryRows to avoid many unnecessary calls to parseStructTag. 4210
  14. Allow users to ignore some table when run ORM commands. 4211
  15. PostgresQueryBuilder 4205
  16. Provides a powerful LogFormatter implementation PatternLogFormatter.4229
  17. Support custom ES index name. 4233
  18. Support multiple web servers. 4234
  19. Support toml config. 4262
  20. Using unmarshaler to parse config in web module. 4266
  21. Add MaxUploadFile to provide more safety uploading control. 4275
  22. Support using json string to init session. 4277
  23. Support global instance for config module. 4278

Fix:

  1. Fix reconnection bug in logs/conn.go. 4056
  2. Return 413 when request payload too large. 4058
  3. Fix index out of range in session module when len(sid) < 2. 4068
  4. Fix concurrent issue of context/input Query method. 4066
  5. Allow using environment variable to specific the config file. 4111
  6. XSRF add secure and http only flag. 4126
  7. Fix temporary create failed on Windows 4244
  8. Fix:return error after inserting data when primary key is string. 4150
  9. Fix the bug that Fielder's SetRaw is not called when calling orm.Raw() to query from database. 4160
  10. Fix: return error when calling InsertOrUpdate is successful with string primary key. 4158
  11. Fix the problem that the nested structure of queryRow() cannot assign values 4173
  12. Empty field in validator.Error when label struct tag is not declared. 4225
  13. Fix deadlock in task module. 4246
  14. Fix: form entity too large casue run out of memory. 4272

Doc:

  1. Fix typo. 4251, 4135, 4107

v2.0.0-beta

07 Nov 14:32
fb12e1f
Compare
Choose a tag to compare
v2.0.0-beta Pre-release
Pre-release

Refactor

  1. Support the new project structure.
  2. Add adapter module which is used to adapt v1.x to v2.x.
  3. Add context.Context for cache, httplib, session, task, orm modules' API.
  4. Add error as a return value for cache, httplib, session, task.
  5. Decouple modules from each other. All modules only depend on core package.

Feature:

  1. Allow Healthcheck endpoint return JSON for Kubernetes (Experimental). 4055
  2. Support ClientAuth for TLS. 4116
  3. orm.RawSeter support orm.Fielder. 4191
  4. Add a new MySQL operator for strict case sensitive query. 4198
  5. Using filter-chain pattern in orm module. Support opentracing and prometheus by using filter. 4141
  6. Support prometheus filter for httplib module. 4145
  7. Add additional options to redis session prov. 4137
  8. Support default value filter for orm module. 4156
  9. Add methods Unmarshaler, Sub, OnChange for Configer module. 4175
  10. Custom Log Formatter. 4174, 4179, 4188
  11. Implement the time precison for time.Time type. 4186
  12. Support etcd. 4195
  13. Optimize rawSet.QueryRows to avoid many unnecessary calls to parseStructTag. 4210
  14. Allow users to ignore some table when run orm commands. 4211
  15. PostgresQueryBuilder 4205
  16. Provides a quick format method by PatternLogFormatter struct. 4229
  17. Support custom ES index name. 4233
    18 Support multiple web server. 4234
  18. Support toml config. 4262
  19. Using unmarshaler to parse config in web module. 4266
  20. Add MaxUploadFile to provide more safety uploading control. 4275
  21. Support using json string to init session. 4277
  22. Support global instance for config module. 4278

Fix:

  1. Fix reconnection bug in logs/conn.go. 4056
  2. Return 403 when request payload too large. 4058
  3. Fix race condition for Prepare Statement cache. 4061
  4. Fix index out of range in session module when len(sid) < 2. 4068
  5. Fix concurrent issue of context/input Query method. 4066
  6. Allow using environment variable to specific the config file. 4111
  7. XSRF add secure and http only flag. 4126
  8. Fix temporary create failed on Windows 4244
  9. Session: adds CookieSameSite to ManagerConfig. 4226
  10. Make stmt cache smaller to avoid too many statement error. 4261
  11. Fix:return error after inserting data when primary key is string. 4150
    12.Fix the bug that Fielder's SetRaw is not called when calling orm.Raw() to query from database. 4160
  12. Fix: return error when calling InsertOrUpdate is successful with string primary key. 4158
  13. Fix the problem that the nested structure of queryRow() cannot assign values 4173
  14. Empty field in validator.Error when label struct tag is not declared. 4225
  15. Fix deadlock in task module. 4246
  16. Fix: form entity too large casue run out of memory. 4272

Doc:

  1. Fix typo. 4251, 4135, 4107

v1.12.3

05 Nov 13:58
cbbb6bf
Compare
Choose a tag to compare

Feature:

  1. Allow Healthcheck endpoint return JSON for Kubernetes. 4055
  2. Support ClientAuth for TLS. 4116
  3. orm.RawSeter support orm.Fielder. 4191
  4. Add a new MySQL operator for strict case sensitive query. 4198

Fix:

  1. Fix reconnection bug in logs/conn.go. 4056
  2. Return 403 when request payload too large. 4058
  3. Fix race condition for Prepare Statement cache. 4061
  4. Fix index out of range in session module when len(sid) < 2. 4068
  5. Fix concurrent issue of context/input Query method. 4066
  6. Allow using environment variable to specific the config file. 4111
  7. XSRF add secure and http only flag. 4126
  8. Fix temporary create failed on Windows 4244
  9. Session: adds CookieSameSite to ManagerConfig. 4226
  10. Make stmt cache smaller to avoid too many statement error. 4261

Doc:

  1. Fix typo. 4251

v1.12.2

01 Jul 01:33
8ef8fd2
Compare
Choose a tag to compare
  • Fix old process didn't exist when graceful restart in beego 1.12.0 #4005
  • Enhance: Print stack while orm abnormally exit #3743
  • Enhance: Replacing lock with read lock in GetMapData #3803
  • Fix: Get the real location of the log directory if the path is symbolic path #3818
  • Fix: Cache, context, session: add lock to fix inconsistent field protection #3922
  • Fix: Encoded url(with slash) router mismatch problem #3943
  • Fix: genRouterCode method generate wrong codes #3981
  • Enhance: Using LRU algorithm, ignoring big file and using max cache size to reduce the memory usage of file cache #3984
  • Fix: Set max DB connections #3985
  • Fix: SQLite don't support SELECT ... FOR UPDATE #3992
  • Enhance: Add Transfer-Encoding header in httplib's PostFile method #3993
  • Enhance: Support bit operation in ORM #3994
  • Fix: net/http Middleware set via RunWithMiddleware or App.Run(middleware) doesn't work when "BConfig.Listen.Graceful" is set to true #3995
  • Fix: Empty field in validator.Error when label struct tag is not declared #4001
  • Fix: panic: send on closed channel after closing logger #4004
  • Enhance: Store RouterPattern before filter execute #4007
  • Fix: Using HTMLEscapeString in adminui.go to avoid XSS attack #4018
  • Fix: Process not closed when graceful set to true #4005
  • Enhance: Use scan instead of keys in redis #4016
  • Feature: Support prometheus #4021
  • Fix: Can't create more than max_prepared_stmt_count statements #4025
  • Enhance: Support more mobile number pattern #4027
  • Fix: Can't set section name #4027
  • Fix: strings.Repeat panic in orm/db.go #4032
  • Enhance: Make redis client idle timeout configurable #4033

v1.12.1

07 Feb 08:26
Compare
Choose a tag to compare
version 1.12.1

v1.10.0

21 Jul 09:17
a09bafb
Compare
Choose a tag to compare
  • Update log.go add GetLevel Function to Log #2970
  • Fix a typo "conflict" #2971
  • Bug on private fields #2978
  • Fix access log console unexpected '\n' at end of each log. #2976
  • Fix Documentation for HTTP status codes descriptions. #2992
  • Redis cache: make MaxIdle configurable #3004
  • Update: Fix migration generate SQL #3017
  • Handle pointer validation #3046
  • Fix the issue TaseCase TestFormatHeader_0 is failed #3066
  • Fix BEEGO_RUNMODE #3064
  • Swagger: Allow example values with different types, allow example for enum. #3085
  • Fix the bug: unable to add column with ALTER TABLE #2999
  • Set default Beego RunMode to production #3076
  • Fix typo #3103
  • In dev mode, template parse error cause program lock #3126
  • Amend a very minor typo in a variable name #3115
  • When log maxSize set big int,FileWrite Init fail #3109
  • Change github.com/garyburd/redigo to newest branch github.com/gomodul… #3100
  • ExecElem.FieldByName as local variable #3039
  • Allow log prefix #3145
  • Refactor yaml config for support multilevel #3127
  • Create redis_cluster.go #3175
  • Add field comment on create table #3190
  • Update: use PathEscape replace QueryEscape #3200
  • Update gofmt #3206
  • Update: Htmlquote Htmlunquote #3202
  • Add 'FOR UPDATE' support for querySet #3208
  • Debug stringsToJSON #3171
  • Fix defaut value bug, and add config for maxfiles #3185
  • Fix: correct MaxIdleConnsPerHost value to net/http default 100. #3230
  • Fix: When multiply comment routers on one func #3217
  • Send ErrNoRows if the query returns zero rows ... in method orm_query… #3247
  • Fix typo #3245
  • Add session redis IdleTimeout config #3239
  • Fix the wrong status code in prod #3226
  • Add method to set the data depending on the accepted #3182
  • Fix Unexpected EOF bug in staticfile #3152
  • Add code style for logs README #3146
  • Fix response http code #3142
  • Improve access log #3141
  • Auto create log dir #3105
  • Html escape before display path, avoid xss #3022
  • Acquire lock when access config data #3250
  • Fix orm fields SetRaw function error judge problem #2985
  • Fix template rendering with automatic mapped parameters (see #2979) #2981
  • Fix the model can not be registered correctly on Ubuntu 32bit #2997
  • Feature/yaml #3181
  • Feature/autocert #3249

v1.9.2

06 Dec 15:39
bf5c562
Compare
Choose a tag to compare
Merge pull request #2943 from astaxie/develop

1.9.2

v1.9.0

24 Aug 10:58
Compare
Choose a tag to compare
  1. Fix the new repo address for casbin #2654
  2. Fix cache/memory fatal error: concurrent map iteration and map write #2726
  3. AddAPPStartHook func modify #2724
  4. Fix panic: sync: negative WaitGroup counter #2717
  5. incorrect error rendering (wrong status) #2712
  6. validation: support int64 int32 int16 and int8 type #2728
  7. validation: support required option for some struct tag valids #2741
  8. Fix big form parse issue #2725
  9. File log add RotatePerm #2683
  10. Fix Oracle placehold #2749
  11. Supported gzip for req.Header has Content-Encoding: gzip #2754
  12. Add new Database Migrations #2744
  13. Beego auto generate sort ControllerComments #2766
  14. added statusCode and pattern to FilterMonitorFunc #2692
  15. fix the bugs in the "ParseBool" function in the file of config.go #2740

v1.8.3

19 May 13:23
Compare
Choose a tag to compare
  1. Trim required string. #2365
  2. Add an authorization plugin that supports ACL, RBAC based on casbin #2620
  3. Fix sqllite delete filter #2636
  4. Swagger support security setting #2640
  5. Automatic param router #2586
  6. Allow o.Raw(sql).QueryRows(&container) nested #2637
  7. Fix form parse timestamp format #2652
  8. Fix for xsrf panic error #2315