microcosm-cc / bluemonday

bluemonday: a fast golang HTML sanitizer (inspired by the OWASP Java HTML Sanitizer) to scrub user generated content of XSS
https://github.com/microcosm-cc/bluemonday
BSD 3-Clause "New" or "Revised" License
3.16k stars 175 forks source link

Revert dependency on Go 1.21 #195

Closed twpayne closed 11 months ago

twpayne commented 11 months ago

https://github.com/microcosm-cc/bluemonday/commit/a50ca5f2e53d33247f60655e1ed76803fc61d26d updated go.mod to specify the minimum Go version to be Go 1.21. This is not necessary (the module compiles with earlier versions of Go) and has the unwanted side-effect of setting the minimum version of Go to 1.21 for all projects that depend on this module, directly or indirectly.

Since Go 1.21 is not actually required, this PR reverts the minimum Go version to 1.19.

omercnet commented 9 months ago

please tag a release otherwise we can't use this version and stuck with having to use 1.21