You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+23-5Lines changed: 23 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,11 +5,28 @@ How to release a new version:
5
5
6
6
## [Unreleased]
7
7
8
-
## [0.6.2] - 2022-06-27
8
+
## [0.7.0] - 2024-03-11
9
+
### Changed
10
+
- Logging interface changes to `log/slog`.
11
+
12
+
NOTE: This is version presents a BREAKING CHANGE in the server's logger interface. The server now accepts a `slog.Logger` instead of a custom `ServerLogger`.
13
+
- Change in the logging middleware. The middleware now nests request specific data under the "request" group.
14
+
- Updated from Go 1.20 to Go 1.22.
15
+
- Updated packages:
16
+
```diff
17
+
- github.com/go-chi/chi/v5 v5.0.8
18
+
- github.com/google/uuid v1.3.0
19
+
- github.com/stretchr/testify v1.8.0
20
+
+ github.com/go-chi/chi/v5 v5.0.12
21
+
+ github.com/google/uuid v1.6.0
22
+
+ github.com/stretchr/testify v1.9.0
23
+
```
24
+
25
+
## [0.6.2] - 2023-06-27
9
26
### Fixed
10
27
- Error logging when terminating HTTP server.
11
28
12
-
## [0.6.1] - 2022-03-28
29
+
## [0.6.1] - 2023-03-28
13
30
### Changed
14
31
- package `http/param` does not zero the field if not tagged with any relevant tags
15
32
@@ -18,15 +35,15 @@ How to release a new version:
18
35
- package `http/signature` to simplify defining http handler functions
19
36
- package `http/param` to simplify parsing http path and query parameters
20
37
21
-
## [0.5.0] - 2022-01-20
38
+
## [0.5.0] - 2023-01-20
22
39
### Added
23
40
-`ErrorResponseOptions` contains public error message.
Copy file name to clipboardExpand all lines: README.md
+13-7Lines changed: 13 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,16 +11,13 @@ Go package facilitating writing API applications in a fast and easy manner.
11
11
### errors
12
12
Definition of common errors.
13
13
14
-
### logger
15
-
Interface `ServerLogger` implements common logging methods.
16
-
17
14
### net
18
15
Common functionality that comes in handy regardless of the used API architecture. `net` currently supports generating request IDs with some helper methods.
19
16
20
17
### http
21
18
Wrapper around the Go native http server. `http` defines the `Server` that can be configured by the `ServerConfig`. Implemented features:
22
19
- Started http server can be easily stopped by cancelling the context that is passed by the `Run` method.
23
-
- The `Server` can be configured with a logger for logging important information during starting/ending of the server.
20
+
- The `Server` can be configured with a slog.Logger for logging important information during starting/ending of the server.
24
21
- The `Server` listens for `SIGINT` and `SIGTERM` signals so it can be stopped by firing the signal.
25
22
- By the `ServerConfig` can be configured functions to be called before the `Server` ends.
0 commit comments