github beego/beego v2.0.0
Release v2.0.0

latest releases: v2.2.1, v2.2.0, v2.1.6...
3 years ago

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

Don't miss a new beego release

NewReleases is sending notifications on new releases.