Bump github.com/beego/beego/v2 from 2.0.1 to 2.0.4
Bumps github.com/beego/beego/v2 from 2.0.1 to 2.0.4.
Release notes
Sourced from github.com/beego/beego/v2's releases.
Release v2.0.4
Note: now we force the web admin service serving HTTP only.
- Fix issue 4961,
leafInfo.match()usepath.join()to deal withwildcardValues, which may lead to cross directory risk- Fix 4975: graceful server listen the specific address
- Fix 4976: make admin serve HTTP only
Release v2.0.3
The most important change in this release is fix issue 4946 CVE-2022-31259. This is a security problem, so we have to publish this release.
- upgrade redisgo to v1.8.8
- fix prometheus CVE-2022-21698
- upgrade to Go 1.18
- make
PatternLogFormatterhandling the arguments- [Add httplib OpenTelemetry Filter](beego/beego#4888, beego/beego#4915)
- Support NewBeegoRequestWithCtx in httplib
- Support lifecycle callback
- Append column comments to create table sentence when using postgres
- logs: multiFileLogWriter uses incorrect formatter
- fix issue 4946 CVE-2022-31259
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
... (truncated)
Changelog
Sourced from github.com/beego/beego/v2's changelog.
v2.0.4
Note: now we force the web admin service serving HTTP only.
- Fix issue 4961,
leafInfo.match()usepath.join()to deal withwildcardValues, which may lead to cross directory risk- Fix 4975: graceful server listen the specific address
- Fix 4976: make admin serve HTTP only
v2.0.3
- upgrade redisgo to v1.8.8
- fix prometheus CVE-2022-21698
- upgrade to Go 1.18
- make
PatternLogFormatterhandling the arguments- [Add httplib OpenTelemetry Filter](beego/beego#4888, beego/beego#4915)
- Add orm OpenTelemetry Filter
- Support NewBeegoRequestWithCtx in httplib
- Support lifecycle callback
- Append column comments to create table sentence when using postgres
- logs: multiFileLogWriter uses incorrect formatter
- fix issue 4946 CVE-2022-31259
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
... (truncated)
Commits
0b8b87cMerge pull request #4982 from flycash/dev9d27055Release v2.0.4 change logfd15b20Merge pull request #4981 from beego/developa6779b4Merge pull request #4980 from flycash/dev41cc57dfix 4976: make admin serve HTTP onlyaf271bcMerge pull request #4979 from flycash/dev79abec4fix 4975: graceful server listen the specific address5a873eaMerge pull request #4950 from Dokiys/feature/orm_otel_filterf2c28befeat: add orm opentelemetry filter809c0b4Merge pull request #4964 from runner361/develop- 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.