Update content/post/release-of-1.22.0-rc1.md

This commit is contained in:
Lunny Xiao 2024-04-29 15:05:03 +00:00
parent b30bb7d257
commit 078631a91c
1 changed files with 29 additions and 8 deletions

View File

@ -13,10 +13,29 @@ Note: Since 1.22-rc0 has many bugs which have been merged into main branch, it's
## Major Breaking changes
- Require MySQL 8.0, PostgreSQL 12, MSSQL 2012 (#27337) and Recommend/convert to use case-sensitive collation for MySQL/MSSQL (#28662)
- Always enable caches (#28527)
- Require MySQL 8.0, PostgreSQL 12, MSSQL 2012 ([#27337](https://github.com/go-gitea/gitea/pull/27337)) and Recommend/convert to use case-sensitive collation for MySQL/MSSQL (#28662).
Support for MySQL 5.7, PostgreSQL 10 and 11, and MSSQL 2008 is dropped. You are encouraged to upgrade to supported versions. And for MySQL/MSSQL which is default case insensitive, it caused some bugs when searching. So moving to a case-sensitive collation is recommanded.
* Ref: https://endoflife.date/mysql
* Ref: https://endoflife.date/postgresql
* Ref: https://endoflife.date/mssqlserver
- Breaking summary for template refactoring ([#29395](https://github.com/go-gitea/gitea/pull/29395))
The template system have been refactored, some template functions maybe changed or removed.
* `Safe` is renamed to `SafeHTML`, and in most cases it shouldn't be used.
* `Escape` is renamed to `HTMLEscape`, and in most cases it shouldn't be used. The template should escape most variables automatically.
* `Str2html` is renamed to `SanitizeHTML`, only use it when necessary, it only "sanitizes" the input by pre-defined rules, but it doesn't "render" or "convert" the content.
* Use `HTMLFormat` instead of `printf` when processing HTML related contents.
If you are using custom templates (including "mail" templates and "website" templates), after you upgrade to Gitea 1.22, you should extract the templates from Gitea like before.
- Rename the default themes to gitea-light, gitea-dark, gitea-auto (#27419)
- Support storage base path as prefix (#27827)
- Rename the default themes to gitea-light, gitea-dark, gitea-auto (#27419)
- Always enable caches (#28527)
## Major features
@ -24,7 +43,7 @@ Note: Since 1.22-rc0 has many bugs which have been merged into main branch, it's
From this version, Gitea introduced tailwind & HTMLX
- Renamed the default themes and improved dark theme (#27419)
- Renamed the default themes and improved dark theme (#27419) colorblindness-friendly theme
- Add support for sha256 repositories (#23894)
- Implement contributors graph (#27882)
- Implement code frequency graph (#29191)
@ -39,10 +58,12 @@ From this version, Gitea introduced tailwind & HTMLX
- Support pasting URLs over markdown text (#29566)
- Show latest commit for file (#28067)
- Support for forking single branch (#25821)
- Edit file on pull request files directly
- everyone readable/writable wiki,
### Actions features
Since v1.19, Gitea introduced Actions.
Since v1.19, Gitea introduced Actions. It becomes more and more welcome. We are continue improving Gitea Actions. In this release, you can now use the official runner images https://gitea.com/gitea/runner-images and more features listed below.
- Actions Artifacts v4 backend (#28965)
- Implement actions badge svgs (#28102)
@ -60,9 +81,9 @@ Since v1.19, Gitea introduced Actions.
### Improved performance
- The loading performance of commit status from repository's default branch
- The branch list page divergence loading
- The issues and pulls
- Dashboard
- The branch list page divergence loading improvements for those repositories with over thousands branches
- The issues and pulls page loading performance
- Dashboard loading performance improvements
The full change log can be visit from https://github.com/go-gitea/gitea/releases/tag/v1.22.0-rc1.