Repository navigation
docs: correct outdated README statements - #33
Merged
Merged
Conversation
- The manual Nuxt example claimed binary assets are left untouched, but `useCompression` compresses any `Buffer` body regardless of content type, and the suggested `response.headers` guard does not work in `beforeResponse`, where the content type is on the event. The example now guards via `getResponseHeader` and the text explains where to look. - h3 v2 needs Node >= 20.19, so "the same floor as h3" no longer holds. - The h3 v1 usage relies on the `onBeforeResponse` app option, which exists since h3 1.8. - The feature list mentions quality values and `Vary`; "Releated" typo.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
README review after the v1.2.0 release.
useCompressioncompresses anyBufferbody regardless of content type — images frompublic/included. The suggested guard onresponse.headers?.['content-type']doesn't work inbeforeResponseeither: that hook hands over no header record, the content type is on the event (the same thing fix(nuxt): read the content type from the node response on h3 v1 #32 fixed in the module). The example now guards viagetResponseHeader(event, 'content-type'), and the text says where the content type lives in each hook.createApp({ onBeforeResponse })option only exists since h3 1.8.Vary; "Releated Projects" → "Related Projects".npm shows the README from the published tarball, so this lands there with the next release.