Skip to content

docs: correct outdated README statements - #33

Merged
CodeDredd merged 1 commit into
mainfrom
docs/readme-accuracy
Nov 24, 2026
Merged

CodeDredd merged 1 commit into
mainfrom
docs/readme-accuracy

Conversation

@CodeDredd

Copy link
Copy Markdown
Owner

README review after the v1.2.0 release.

  • Manual Nuxt example: it said binary assets are left untouched, but useCompression compresses any Buffer body regardless of content type — images from public/ included. The suggested guard on response.headers?.['content-type'] doesn't work in beforeResponse either: 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 via getResponseHeader(event, 'content-type'), and the text says where the content type lives in each hook.
  • Node floor: "Node >= 20.11.1, the same floor as h3" — h3 2.x requires >= 20.19 now.
  • h3 v1 usage: the createApp({ onBeforeResponse }) option only exists since h3 1.8.
  • Feature list mentions quality values and Vary; "Releated Projects" → "Related Projects".

npm shows the README from the published tarball, so this lands there with the next release.

- 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.
@CodeDredd
CodeDredd merged commit 5da22da into main Nov 24, 2026
11 of 13 checks passed
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.

1 participant