Skip to content

feat: next#2284

Open
alexander-akait wants to merge 13 commits intomainfrom
next
Open

feat: next#2284
alexander-akait wants to merge 13 commits intomainfrom
next

Conversation

@alexander-akait
Copy link
Member

Summary

No squash when merging

What kind of change does this PR introduce?

Did you add tests for your changes?

Does this PR introduce a breaking change?

If relevant, what needs to be documented once your changes are merged or what have you already documented?

Use of AI

bjohansebas and others added 9 commits March 11, 2026 16:08
* feat: enable cacheImmutable by default

* fix: thoses files shouldn't immutable

* fix: update cache control logic

becauses undefined !== false (true)

* test: add tests for cacheControl option behavior with cacheImmutable set to false

* refactor: normalize cacheControl handling in response headers

* refactor: simplify maxAge calculation in cacheControl handling
…ddleware (#2259)

* feat: add `forwardError` option to enable error forwarding to next middleware

* feat: add error middleware support in frameworkFactory for improved error handling

* feat: enhance error handling by removing response headers before forwarding errors

* feat: remove error middleware option from frameworkFactory for cleaner middleware setup

* test: update middleware tests to reflect changes in error handling with forwardError option

* test: update middleware tests to handle error forwarding for hapi framework

* feat: implement error forwarding in koa middleware and update tests accordingly

* feat: add error forwarding support in hono middleware and update tests accordingly

* feat: add forwardError option to README with usage example
@codecov
Copy link

codecov bot commented Mar 11, 2026

Codecov Report

❌ Patch coverage is 96.15385% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 96.92%. Comparing base (1169465) to head (6cfc4f1).

Files with missing lines Patch % Lines
src/index.js 96.92% 2 Missing ⚠️
src/utils/setupHooks.js 93.33% 2 Missing ⚠️
src/middleware.js 97.67% 1 Missing ⚠️
src/utils/getFilenameFromUrl.js 94.44% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2284      +/-   ##
==========================================
+ Coverage   95.88%   96.92%   +1.03%     
==========================================
  Files          13       13              
  Lines         900      942      +42     
  Branches      270      274       +4     
==========================================
+ Hits          863      913      +50     
+ Misses         37       29       -8     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@alexander-akait
Copy link
Member Author

Sometimes hono is unstable when writeToDisk: true with TypeError: Invalid state: ReadableStream is already closed, investigating

@alexander-akait
Copy link
Member Author

@bjohansebas I will make a webpack-cli release and focus on it, there are three things left:

I will take care about them, so you can focus on webpack-dev-server more

@bjohansebas
Copy link
Member

Okay, but for compile.validate, we need webpack to release that support. The PR was already merged in webpack, but it’s not officially published on npm yet, so it can’t be updated yet to include that support

@alexander-akait
Copy link
Member Author

@bjohansebas Yeah, I just want to add this check for future

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.

2 participants