Skip to content

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

Merged
merged 72 commits into from
Apr 25, 2025
Merged

Release > Main as 2.6.0 #397

merged 72 commits into from
Apr 25, 2025

Conversation

StewEucen
Copy link
Contributor

Why

How

  • Merge to main after publish

StewEucen and others added 30 commits April 23, 2025 21:52
…-for-ResponseFlusher-structure

⚒️ Enhance `RestfulApiResponse` for `ResponseFlusher` structure
…ulApiResponse

🧩 Fix types concerning `RestfulApiResponse`
StewEucen and others added 18 commits April 25, 2025 20:00
…estfulApiResponseFlusher

⚒️ Enhance `BaseRenderer` with `RestfulApiResponseFlusher`
…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`
Copy link

@Copilot Copilot AI left a 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

@StewEucen StewEucen marked this pull request as ready for review April 25, 2025 13:56
Copy link
Member

@hecticme hecticme left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧑‍🚀

Copy link

@arbredoux arbredoux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@StewEucen StewEucen merged commit 45fe242 into main Apr 25, 2025
2 checks passed
@StewEucen StewEucen deleted the release/2.6.0 branch April 25, 2025 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

⚙️ Merge to main as 2.6.0
3 participants