All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
0.19.0 - 2024-09-09
DurationCounterMetric
logged rate is per second and not anymore per millisecond.- Go 1.23 or newer is required.
0.18.1 - 2024-04-08
- Metrics API works when metrics are nil (e.g., not available in the context). All calls are noop.
0.18.0 - 2024-04-05
GetMetrics
andMustGetMetrics
to access new metrics API through context.- New metrics API supports durations, counters, counters with duration, and multiple durations. #1
Server-Timing
header is now always issued for all metrics as a trailer.
github.com/tozd/go-server-timing
as a dependency. It cannot be used anymore to add metrics. UseGetMetrics
andMustGetMetrics
instead.
0.17.1 - 2024-04-01
- Do not reverse with just
?
for empty query strings.
0.17.0 - 2024-03-27
- Change short CLI argument for development from
-d
to-D
.
0.16.0 - 2024-03-19
- Revert to use
url.Values
for query string values.
0.15.0 - 2024-03-19
- Use encoder interface instead of
url.Values
for query string values.
0.14.0 - 2024-03-19
NotFoundWithError
.
- Add Kong tags on
Site
.
0.13.1 - 2024-03-19
- Add
Validate
onSite
.
0.13.0 - 2024-03-10
- Renamed
Service.Development
toService.ProxyStaticTo
. - Renamed
Server.InDevelopment
toServer.ProxyToInDevelopment
.
0.12.0 - 2024-03-10
developmentModeHelp
Kong variable to customize help message for development flag.
0.11.0 - 2024-03-06
- Make routes definition easier to extend.
0.10.1 - 2024-03-04
- Simplify path traversal for static files.
0.10.0 - 2024-03-01
- Middleware logs its name as a canonical log line message if they fully handle the request.
0.9.2 - 2024-02-26
- Expose HTTP server for use in tests.
0.9.1 - 2024-02-20
- Set
Server.Addr
to the default value when not set.
0.9.0 - 2024-02-16
Service.GetRoute
callsRouter.Get
.
0.8.0 - 2024-02-16
Router.Get
resolves path and method to a route descriptorResolvedRoute
, or returnsMethodNotAllowedError
orErrNotFound
errors.
0.7.0 - 2024-01-28
APICors
andGetCors
onRoute
struct enable CORS handling.
- Race condition with disabled logger. #643
- Do not mark immutable responses as public.
0.6.0 - 2023-12-07
PrepareJSON
prepares JSON response.
0.5.0 - 2023-12-06
WithError
logs error to the canonical log line.
BadRequestWithError
handlescontext.Canceled
andcontext.DeadlineExceeded
specially as well, likeInternalServerErrorWithError
.
NotFoundWithError
: callWithError
first and thenNotFound
.
0.4.0 - 2023-11-28
- Add
RedirectToMainSite
middleware.
0.3.0 - 2023-11-26
- Support additional middleware.
- Remove
TLS.Domain
field and CLI argument.
0.2.0 - 2023-11-24
- Add helper
TemporaryRedirectGetMethod
.
- Rename helper
TemporaryRedirect
toTemporaryRedirectSameMethod
.
0.1.2 - 2023-11-22
- Change default port to (documented) 8080.
0.1.1 - 2023-11-22
- Skip installing middleware for canonical log line logger if the logger is disabled.
- Vite port changed from 3000 to 5173.
0.1.0 - 2023-11-20
- First public release.