Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

h3

Package Overview
Dependencies
Maintainers
1
Versions
98
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

h3 - npm Package Versions

23
10

1.13.0

Diff

pi0
published 1.12.0 •

Changelog

Source

v1.12.0

compare changes

🚀 Enhancements

  • Improve typed headers (#625)
  • Export event-stream types (112fa33)

🩹 Fixes

  • getRequestUrl: Forward opts to getRequestProtocol (#776)
  • readRawBody: Read chunked body (#652)
  • proxy: Better error when upstream proxy fails (#746)
  • node: Make sure onBeforeResponse and onAfterResponse are called with error code (#756)
  • sse: Prevent onClosed from firing twice in EventStream (#704)
  • plain: Avoid import from unenv internals (#781)

💅 Refactors

  • session: Remove unnecessary async for clear (#729)
  • Update unenv import (76736ea)

📖 Documentation

  • Fix typo (#699)
  • Fix typo (#707)
  • Fix typo (#712)
  • Fix typo (#730)
  • Fix typo (#732)
  • Remove extra space (#718)
  • Add semi (#710)
  • event-handler: Fix typo (#684)
  • Add jsdoc examples for response utils (#677)
  • Add note for getRequestIP return value (#726)
  • Fix session example (#702)
  • Add jsdoc examples for request utils (#680)
  • Fix typo (#734)
  • Correct zod validation example (#735)
  • Fix typos (#738)
  • Fix typo (#758)
  • Add usage example for handleCors (#747)
  • Fix typo for text/html content-type (#764)
  • Update mogen example to use combined log format (#771)
  • Fix typo for plain adapter example (#766)
  • examples: Add cors example (#700)
  • Fix respondWith event object (#775)
  • Provide async for request body (#777)
  • error-handling: Add string vs object errors and update createError jsdoc (#762)

🏡 Chore

🤖 CI

  • Remove node 16 from test matrix (458cfac)

❤️ Contributors

pi0
published 1.11.1 •

Changelog

Source

v1.11.1

compare changes

🩹 Fixes

  • ws: Resolve pathname for matching (4f211f8)

📖 Documentation

🏡 Chore

❤️ Contributors

pi0
published 1.11.0 •

Changelog

Source

v1.11.0

compare changes

🚀 Enhancements

  • Add utilities for server sent events (#586)
  • response: Add sendIterable util (#655)
  • Handler resolver (#669)
  • Websocket support (#671)

🩹 Fixes

  • serveStatic: Ensure etag header is set before sending 304 response (#653)

📖 Documentation

  • Add basic jsdocs for utils (c8aa150)
  • Fix typo (#668)
  • Fix typos (#665)
  • Fix typo (#662)
  • Fix typos (#661)
  • Fix import name (#658)
  • examples/from-expressjs-to-h3: Add node middleware usage (#663)
  • Refine function usages (#667)
  • Remove unwanted console.log (#675)
  • Add jsdoc examples (#672)
  • Update jsdocs example for route utils (#673)

🏡 Chore

❤️ Contributors

pi0
published 1.10.2 •

Changelog

Source

v1.10.2

compare changes

🩹 Fixes

  • proxy: Ignore incoming accept header (#646)

❤️ Contributors

pi0
published 1.10.1 •

Changelog

Source

v1.10.1

compare changes

🩹 Fixes

  • setResponseHeaders: Fix types to allow partial header names (#607)
  • setCookie: Allow cookies with the same name but different options (#606)
  • getRequestWebStream: Reuse buffered body if available (#616)
  • getSession: Use semaphore lock for unseal operation (#612)
  • getRequestIP: Use first address of x-forwarded-for header (#618)
  • Avoid setting default content-type for responses with 304 status (#641)

💅 Refactors

  • Use H3Event.node.res for internal types (#626)

📖 Documentation

  • Fix getRequestHeaders signuture (#613)
  • Fix typo in examples (#631)

🏡 Chore

✅ Tests

❤️ Contributors

pi0
published 1.10.0 •

Changelog

Source

v1.10.0

compare changes

🚀 Enhancements

  • validate: Provide validate error in data (#594)

🩹 Fixes

  • readRawBody: Check req.rawBody before req.body (#604)

📖 Documentation

  • Add h3-compression to community packages (#524)
  • Add examples (#539)

🌊 Types

  • Add generics to isError and update DataT default generic param (#582)
  • setResponseHeaders: Add autocompletion for header names (#601)

🏡 Chore

🤖 CI

  • Fix nightly release job conditional (#587)

❤️ Contributors

pi0
published 1.9.0 •

Changelog

Source

v1.9.0

compare changes

🚀 Enhancements

  • Support auto complete for http header names (#542)
  • Add getValidatedRouterParams util (#573)
  • decode option for getRouterParam (#556)
  • Add getRequestFingerprint util (#564)

🩹 Fixes

  • sendNoContent: Preserve custom status code if already set (#577)

📖 Documentation

  • Add @intlify/h3 to community packages (#559)
  • Improve jsdocs (#574)
  • Add package pronunciation (#569)

🌊 Types

  • Add generics to H3Error data and createError (#566)

🏡 Chore

❤️ Contributors

pi0
published 1.8.2 •

Changelog

Source

v1.8.2

compare changes

🩹 Fixes

  • getRequestProtocol: Conditionally check connection?.encrypted (#532)

🏡 Chore

❤️ Contributors

  • Pooya Parsa (@pi0)
  • Michael J. Roberts
pi0
published 1.8.1 •

Changelog

Source

v1.8.1

compare changes

🩹 Fixes

  • Use safe property checks (#521)

💅 Refactors

  • Use native Headers and Response for legacy polyfills (#523)

📖 Documentation

  • Typo for getValidatedQuery (164f68e)

🏡 Chore

✅ Tests

  • proxy: Add additional test to make sure json response is sent as is (#512)

❤️ Contributors

23
10
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc