- build(go.mod): update github.com/urfave/negroni from v1 to v3
- feat(middleware): add a middleware to set the
Content-Type
toapplication/json
- feat(errors): add bad request errors
- feat(middleware): add a middleware to reject HTTP request
- feat(middleware): Add secure headers middleware
- feat(router): add profiling router using pprof
- chore(deps): bump github.com/gofrs/uuid from 4.3.0+incompatible to 4.3.1+incompatible
- feat(error_middleware): use RootCtxOrFallback to retrieve ctx and get its logger
- feat(error_middleware): return 401 for invalid token errors
- chore(deps): bump github.com/stretchr/testify from 1.8.0 to 1.8.1
- feat(error_middleware): log at info level for all non-5xx errors
- chore(deps): bump github.com/gofrs/uuid from 4.2.0+incompatible to 4.3.0+incompatible
- chore(deps): bump github.com/Scalingo/go-utils/logger
- chore(deps): bump github.com/sirupsen/logrus from 1.8.1 to 1.9.0
- chore(go): use go 1.17
- Bump github.com/stretchr/testify from 1.7.0 to 1.7.1
- feat(error_middleware): log and error for all 5xx status code
- fix(error_middleware): better detection of JSON Content-Type
- fix(error_middleware): do not write a body if it has already been written
- Bump github.com/gofrs/uuid from 4.1.0+incompatible to 4.2.0+incompatible
- Bump github.com/sirupsen/logrus from 1.7.0 to 1.8.1
- fix(error_middleware): ValidationError shouldn't be logged as Error
- Bump github.com/Scalingo/go-utils/logger from 1.0.0 to 1.1.0
- chore(deps): upgrade github.com/gofrs/uuid from 3.4.0 to 4.1.0
- Don't return an invalid auth error for AuthMiddleware and add the ability to encode the error in json instead of text #27
- Bump github.com/stretchr/testify from 1.5.1 to 1.7.0 #24
- Bump github.com/gorilla/mux from 1.7.4 to 1.8.0 #25
- Bump github.com/gofrs/uuid from 3.2.0+incompatible to 3.4.0+incompatible #26
- Update all dependencies
- Use github.com/gofrs/uuid instead of unsecure github.com/satori/go.uuid
- Change UUID generation lib
- Error middleware handle the case of ValidationErrors
- Accept github.com/Scalingo/go-utils.ErrCtx to pass ctx to error middleware
- Add ability to create logging level filters in the LoggerMiddleware
- Possibility to create a router without any logging middleware
- Accept a logrus.FieldLogger instead of a *logrus.Logger when creating a router
- First tagged version