-
Notifications
You must be signed in to change notification settings - Fork 0
Release > Main as 2.6.0
#397
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…dler() with ExpressType.NextFunction
…oxyRender() with ExpressType.Request
🧩 Tidy up types for `Express`
…-for-ResponseFlusher-structure ⚒️ Enhance `RestfulApiResponse` for `ResponseFlusher` structure
…ulApiResponse 🧩 Fix types concerning `RestfulApiResponse`
…estfulApiResponseFlusher ⚒️ Enhance `BaseRenderer` with `RestfulApiResponseFlusher`
…seFlusher structure
…dler-of-RestfulApiRoutesBuilder 💪 Update `RestfulApiRoutesBuilder#generateRendererHandler()` with `ResponseFlusher` structure
…estfulApiRoutesBuilder 🦵 Kick out `RestfulApiRoutesBuilder#flushResponse()`
…piResponse 🦵 Kick out `RestfulApiResponse#toJson()`
…g-structure ✅️ Retake RESTful API flushing structure
…ing-ResponseFlusher-of-RESTful-API ⚒️ Export family of `RestfulApiResponseFlusher` via `main-exports`
…2.6.0 ⚙️ Update package version to `2.6.0`
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR prepares the 2.6.0 release by merging the latest changes to main, which include closing issue #395. Key changes involve updates and additions to tests that verify the new response flusher implementations (JSON, HTML, CSV), enhancements to header handling in the RestfulApiResponse and related classes, and refactoring of BaseRenderer to use the new flusher constructors.
Reviewed Changes
Copilot reviewed 20 out of 21 changed files in this pull request and generated no comments.
Show a summary per file
File | Description |
---|---|
tests/stubs/StubExpressRequest.js | Removed an unnecessary typedef import for ExpressRequest. |
tests/tests/server/restfulapi/renderers/BaseRenderer.js | Added tests validating the new FlusherCtor getter and createResponseFlusher method as well as flushResponse. |
tests/tests/server/restfulapi/interfaces/RestfulApiResponse.js | Included tests for header handling in RestfulApiResponse with updated default behavior. |
tests/tests/server/restfulapi/flushers/** | Added comprehensive tests for Json, Html, and Csv response flushers. |
tests/tests/server/restfulapi/RestfulApiRoutesBuilder.js | Updated test expectations to account for the new renderResponse naming and the refactored flushResponse call. |
index.js & main-exports.js | Exported the new flusher classes for broader module integration. |
lib/server/restfulapi/** | Updated RestfulApiResponse to support headers, and refactored BaseRenderer and flushers to integrate with the new header logic. |
Files not reviewed (1)
- package.json: Language not supported
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧑🚀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
⭐
Why
main
as2.6.0
#395How
main
after publish