Skip to content

Version 1.1.0

Choose a tag to compare

@DevNewbie1826 DevNewbie1826 released this 10 Aug 11:35
· 8 commits to main since this release

English

Release v1.1.0

This release focuses on improving the reliability and stability of the httperror middleware. It includes a critical bug fix for the error
handling logic and introduces a comprehensive test suite for the entire library.

✨ Features & Enhancements

  • Greatly Increased Test Coverage: Introduced a comprehensive test suite, bringing the project's test coverage to over 99%. This significantly
    improves the reliability and stability of the library.
  • Added MIT License: The project is now officially licensed under the MIT License.
  • Added Test Coverage Badge: The README.md now includes a Codecov badge to display the current test coverage.

🐛 Bug Fixes

  • Corrected Middleware Behavior: Fixed a critical bug in NewErrorReporterMiddleware where it would fail to set the correct error status code if
    the handler had already written a response (e.g., by calling w.WriteHeader(http.StatusOK)). The middleware now correctly buffers the handler's
    response, ensuring that reported errors are always handled properly and overwrite any response the handler might have attempted to send.

한국어

릴리즈 v1.1.0

이번 릴리즈는 httperror 미들웨어의 신뢰성과 안정성을 향상시키는 데 중점을 두었습니다. 오류 처리 로직의 심각한 버그를 수정하고, 라이브러리
전체에 대한 포괄적인 테스트 스위트를 도입했습니다.

✨ 기능 및 개선 사항

  • 테스트 커버리지 대폭 향상: 포괄적인 테스트 스위트를 도입하여 프로젝트의 테스트 커버리지를 99% 이상으로 끌어올렸습니다. 이를 통해 라이브러리의
    신뢰성과 안정성이 크게 향상되었습니다.
  • MIT 라이선스 추가: 프로젝트에 공식적으로 MIT 라이선스를 적용했습니다.
  • 테스트 커버리지 배지 추가: README.md에 현재 테스트 커버리지를 표시하는 Codecov 배지를 추가했습니다.

🐛 버그 수정

  • 미들웨어 동작 수정: 핸들러가 이미 응답을 작성한 경우(예: w.WriteHeader(http.StatusOK) 호출), NewErrorReporterMiddleware가 올바른 오류 상태
    코드를 설정하지 못하는 심각한 버그를 수정했습니다. 이제 미들웨어는 핸들러의 응답을 올바르게 버퍼링하여, 보고된 오류가 항상 제대로 처리되고
    핸들러가 보내려고 시도했을 수 있는 모든 응답을 덮어쓰도록 보장합니다.