Releases: tarampampam/error-pages
Releases · tarampampam/error-pages
v3.3.1
What's Changed
📦 Dependency updates
- build(deps): bump github.com/tdewolff/minify/v2 from 2.20.35 to 2.20.37 in the gomod group by @dependabot in #308
- build(deps): bump library/golang from 1.22-bookworm to 1.23-bookworm in the docker group by @dependabot in #309
- build(deps): bump the gomod group with 2 updates by @dependabot in #313
- build(deps): bump the gomod group across 1 directory with 5 updates by @dependabot in #318
- build(deps): bump github.com/urfave/cli/v3 from 3.0.0-alpha9.2 to 3.0.0-beta1 in the gomod group by @dependabot in #320
- build(deps): bump library/alpine from 3.20 to 3.21 in the docker group by @dependabot in #319
Other Changes
- templates: use "word-break: keep-all" by @NavyStack in #302
Full Changelog: v3.3.0...v3.3.1
v3.3.0
What's Changed
🚀 Features
- (l10n): Add Korean translation by @NavyStack in #301
New Contributors
- @NavyStack made their first contribution in #301
Full Changelog: v3.2.0...v3.3.0
v3.2.0
What's Changed
🚀 Features
- Added support for the environment variable
ADD_TEMPLATE
(replacing the--add-template
flag) (#295) - Set the log format to
json
by default in the Docker image (#295)
Full Changelog: v3.1.0...v3.2.0
v3.1.0
What's Changed
🚀 Features
- Added HTML/CSS/JS minification on the fly in #293 (the HTML output size was reduced by ~25%, with performance decreasing by ~4% - from 196k RPS to 188k)
Before | After |
---|---|
Full Changelog: v3.0.1...v3.1.0
v3.0.1
What's Changed
🛠 Fixes
- Forgot to include the SSL certificates in the Docker image in #292
Full Changelog: v3.0.0...v3.0.1
v3.0.0
What's Changed
Warning
This is a major update! Please read the notes below and a readme file to identify what changes you need to make to your current charts for the upgrade.
🚀 Added
- You can override the default XML, JSON, or PlainText response formats using the flags
--xml-format
,--json-format
, or--plaintext-format
respectively (or their environment variables) - Support for any HTTP request method to get the error page (previously limited to the
GET
method only) - The CLI flag
--send-same-http-code
to respond with the same HTTP code as the requested error page code - The CLI flag
--disable-template
to disable certain templates (useful when using automatic template rotation to exclude some from the available templates list) - Ability to define custom HTTP codes using placeholders like
4**
. Refer to the documentation for more information about--add-http-code
🛠 Changed
- Users can provide custom templates (themes) using the flag
--add-template
- Templates are now built into the binary file
- To change the template automatically, use the new flag
--rotation-mode
instead of the previous "magic" template names likei-said-random
orrandom-hourly
- Error pages can now be accessed using the following URLs:
/{code}
,/{code}.html
, and/{code}.htm
- The default content type is now PlainText. This means that when you curl an error page, you will receive more readable content without tons of HTML tags
- Merged the
l7-dark
andl7-light
templates (themes) into a singlel7
theme - Templates no longer download resources from external sources; everything is now embedded, including the localization script, which is now inlined into the page. Custom fonts have also been removed
- The default value for
--proxy-headers
is nowX-Request-Id,X-Trace-Id,X-Amzn-Trace-Id
- CLI flags and environment variables are now well documented, and the readme file automatically syncs with them
- The default logs level is
warn
for Docker image (due to performance reasons), set it toinfo
to get the access logs, if you need
🪦 Removed
- Configuration file is no longer needed or used. Everything is now managed using CLI flags and environment variables (the
--config-file
flag was removed) - The
matrix
template (theme) - The
/metrics
endpoint - The
--default-http-code
flag (+ env variableDEFAULT_HTTP_CODE
) - The
--catch-all
flag (+env variableCATCH_ALL
)
Full Changelog: v2.27.0...v3.0.0
v3.0.0-beta-2
Pre-release test
v3.0.0-beta-1
The initial beta test of v3 is now available (please do not use this version in production)
v3.0.0-alpha-3
Template caching is back!
v3.0.0-alpha-2
fasthttp
is back!