gardens
gardens copied to clipboard
Bump github.com/beego/beego/v2 from 2.0.1 to 2.0.2
Bumps github.com/beego/beego/v2 from 2.0.1 to 2.0.2.
Release notes
Sourced from github.com/beego/beego/v2's releases.
Release v2.0.2
Incompatible Changes:
We remove the comments router generation function. So you have to run
bee generate routerscommand to generate the routers. Here is the command:bee generate routers [-ctrlDir=/path/to/controller/directory] [-routersFile=/path/to/routers/file.go] [-routersPkg=myPackage] -ctrlDir: the directory contains controllers definition. Bee scans this directory and its subdirectory to generate routers info -routersFile: output file. All generated routers info will be output into this file. If file not found, Bee create new one, or Bee truncates it. The default value is "routers/commentRouters.go" -routersPkg: package declaration.The default value is "routers". When you pass routersFile parameter, youd better pass this parameterRelease v2.0.2-beta.1
We focus on four things:
- Improve code quality;
- Fix bugs;
- Introduce error code for some modules. We will design error code for other modules in the future if we got good feedback;
- Add some convininet functions for web module;
CHANGE LOG
- Add a custom option for whether to escape HTML special characters when processing http request parameters. 4701
- Always set the response status in the CustomAbort function. 4686
- Add template functions eq,lt to support uint and int compare. 4607
- Migrate tests to GitHub Actions. 4663
- Add http client and option func. 4455
- Add: Convenient way to generate mock object 4620
- Infra: use dependabot to update dependencies. 4623
- Lint: use golangci-lint. 4619
- Chore: format code. 4615
- Test on Go v1.15.x & v1.16.x. 4614
- Env: non-empty GOBIN & GOPATH. 4613
- Chore: update dependencies. 4611
- Update orm_test.go/TestInsertOrUpdate with table-driven. 4609
- Add: Resp() method for web.Controller. 4588
- Web mock and test support. 4565 4574
- Error codes definition of cache module. 4493
- Remove generateCommentRoute http hook. Using
bee generate routerscommands instead.4486 bee PR 762- Fix: /abc.html/aaa match /abc/aaa. 4459
- ORM mock. 4407
- Add sonar check and ignore test. 4432 4433
- Update changlog.yml to check every PR to develop branch.4427
- Fix 4396: Add context.param module into adapter. 4398
- Support
RollbackUnlessCommitAPI. 4542- Fix 4503 and 4504: Add
whentoWrite([]byte)method and addprefixtowriteMsg. 4507- Fix 4480: log format incorrect. 4482
- Remove
durationfrom prometheus labels. 4391- Fix
unknown escape sequencein generated code. 4385
... (truncated)
Changelog
Sourced from github.com/beego/beego/v2's changelog.
v2.0.2
See v2.0.2-beta.1
v2.0.2-beta.1
- Add a custom option for whether to escape HTML special characters when processing http request parameters. 4701
- Always set the response status in the CustomAbort function. 4686
- Add template functions eq,lt to support uint and int compare. 4607
- Migrate tests to GitHub Actions. 4663
- Add http client and option func. 4455
- Add: Convenient way to generate mock object 4620
- Infra: use dependabot to update dependencies. 4623
- Lint: use golangci-lint. 4619
- Chore: format code. 4615
- Test on Go v1.15.x & v1.16.x. 4614
- Env: non-empty GOBIN & GOPATH. 4613
- Chore: update dependencies. 4611
- Update orm_test.go/TestInsertOrUpdate with table-driven. 4609
- Add: Resp() method for web.Controller. 4588
- Web mock and test support. 4565 4574
- Error codes definition of cache module. 4493
- Remove generateCommentRoute http hook. Using
bee generate routerscommands instead.4486 bee PR 762- Fix: /abc.html/aaa match /abc/aaa. 4459
- ORM mock. 4407
- Add sonar check and ignore test. 4432 4433
- Update changlog.yml to check every PR to develop branch.4427
- Fix 4396: Add context.param module into adapter. 4398
- Support
RollbackUnlessCommitAPI. 4542- Fix 4503 and 4504: Add
whentoWrite([]byte)method and addprefixtowriteMsg. 4507- Fix 4480: log format incorrect. 4482
- Remove
durationfrom prometheus labels. 4391- Fix
unknown escape sequencein generated code. 4385- Fix 4590: Forget to check URL when FilterChain invoke
next(). 4593- Fix 4727: CSS when request URI is invalid. 4729
- Using fixed name
commentRouter.goas generated file name. 4385- Fix 4383: ORM Adapter produces panic when using orm.RegisterModelWithPrefix. 4386
- Support 4144: Add new api for order by for supporting multiple way to query 4294
- Support session Filter chain. 4404
- Feature issue #4402 finish router get example. 4416
- Implement context.Context support and deprecate
QueryM2MWithCtxandQueryTableWithCtx4424- Finish timeout option for tasks #4441 4441
- Error Module brief design & using httplib module to validate this design. 4453
- Fix 4444: panic when 404 not found. 4446
- Fix 4435: fix panic when controller dir not found. 4452
- Hotfix:reflect.ValueOf(nil) in getFlatParams 4716
- Fix 4456: Fix router method expression 4456
- Remove some
go getlines in.travis.ymlfile 4469- Fix 4451: support QueryExecutor interface. 4461
- Add some testing scripts 4461
- Refactor httplib: Move debug code to a filter 4440
- fix: code quality issues 4513
... (truncated)
Commits
6255e55Merge pull request #4845 from flycash/masterb8cf07ffix bug: etcd should use etcd as adapter name82919a0Merge pull request #4804 from flycash/fix4782fe4b84efix4791: delay to format parameter99d26b0Merge pull request #4797 from flycash/fix47820347cfcfxi4782: must set status before rendering error pageeb2bed7Merge pull request #4796 from flycash/fix-47893981234set default rate and capacity for ratelimit filterc6e84d8Merge pull request #4769 from flycash/v2.0.2-beta.19ced4fdUpdate change log- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
-
@dependabot rebasewill rebase this PR -
@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it -
@dependabot mergewill merge this PR after your CI passes on it -
@dependabot squash and mergewill squash and merge this PR after your CI passes on it -
@dependabot cancel mergewill cancel a previously requested merge and block automerging -
@dependabot reopenwill reopen this PR if it is closed -
@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) -
@dependabot use these labelswill set the current labels as the default for future PRs for this repo and language -
@dependabot use these reviewerswill set the current reviewers as the default for future PRs for this repo and language -
@dependabot use these assigneeswill set the current assignees as the default for future PRs for this repo and language -
@dependabot use this milestonewill set the current milestone as the default for future PRs for this repo and language
You can disable automated security fix PRs for this repo from the Security Alerts page.