Socket
Socket
Sign inDemoInstall

h3

Package Overview
Dependencies
14
Maintainers
1
Versions
96
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
2345
10Next

1.11.1

Diff

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

pi0
published 1.8.0 •

Changelog

Source

v1.8.0

compare changes

🚀 Enhancements

  • router: Expose event.context.matchedRoute (#500)
  • web: Add fromWebHandler (#490)
  • Support fromPlainHandler (bc2ca33)
  • Util getRequestIP (#503)
  • defineRequestMidleware, defineResponseMiddleware and rename object synctax hooks (#507)

🩹 Fixes

  • sanitizeStatusCode: Input is optional (67a4132)
  • sendNoContent: Avoid overriding status code if event is already handled (3f6d99e)
  • router: Use default behavior for no-content handling (e3c9f96)

💅 Refactors

  • app: Use sendNoContent for null handling (a72a4b8)
  • event: Rename event.body to event.rawBody (563313d)
  • Cleanup event interface (#506)
  • Rename beforeResponse to onBeforeResponse (7cebec2)

🏡 Chore

🎨 Styles

  • Format all repo with prettier (ffab809)

❤️ Contributors

pi0
published 1.8.0-rc.3 •

Changelog

Source

v1.8.0-rc.3

compare changes

🚀 Enhancements

  • Object-syntax event handlers (#485)
  • event: Add default stringify with method and url for better dx (#493)
  • Support react pipeable streams (#494)

🩹 Fixes

  • app: Use response.body instead of initial returned val (0434358)
  • Make request and response types explicit (#489)
  • web: Use null for null body responses (#495)

📖 Documentation

  • Fix deleteCookie description (#487)

🏡 Chore

🎨 Styles

❤️ Contributors

2345
10Next
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc