Skip to content

Releases: BackendStack21/0http-bun

v1.3.1

Choose a tag to compare

@cursor cursor released this 05 Sep 12:21
7383b58

What's Changed

Follow-up hardening after the v1.3.0 security pass (#14).

Security

  • Resolve . / .. after URI decoding so routing and excludePaths share one canonical path
  • Write-once Symbol.for('0http.canonicalPath') — security middleware does not trust mutable req.path
  • Logger and Prometheus excludePaths use exact/boundary matching (/health no longer skips /healthcheck)
  • CORS: Vary: Origin on string-origin preflights; reject Origin: null for all non-wildcard configs
  • Logger: sanitize request IDs; redact Set-Cookie / Authorization / Cookie / X-Api-Key
  • MemoryStore and sliding window: maxKeys with fail-closed admission for new keys

Performance

  • Skip path decode/collapse/dot work when unnecessary; reuse frozen empty query
  • Middleware uses canonical path instead of new URL() per request
  • JSON nesting scan short-circuits; custom jsonTypes parsers are cached

Ergonomics

  • Types include req.path, req.body, req.files, logger options, errorHandler(err, req), maxKeys
  • CI runs bun run lint instead of format

Full Changelog: v1.3.0...v1.3.1

npm publish was left for the maintainer.

v1.3.0

Choose a tag to compare

@jkyberneees jkyberneees released this 07 Feb 20:00
f9255e9

What's Changed

Full Changelog: v1.2.2...v1.3.0

v1.2.2

Choose a tag to compare

@jkyberneees jkyberneees released this 15 Jun 13:05

What's Changed

Full Changelog: v1.2.1...v1.2.2

v1.2.1

Choose a tag to compare

@jkyberneees jkyberneees released this 13 Jun 18:53

Changes:

  • Fixing rate-limit error handling
  • Updating rate-limit middleware documentation

Full Changelog: v1.2.0...v1.2.1

v1.2.0

Choose a tag to compare

@jkyberneees jkyberneees released this 11 Jun 17:28

What's Changed

Full Changelog: v1.1.3...v1.2.0

v1.1.3

Choose a tag to compare

@jkyberneees jkyberneees released this 09 Jun 12:42

Changes:

  • Updating README.md

Full Changelog: v1.1.2...v1.1.3

v1.1.2

Choose a tag to compare

@jkyberneees jkyberneees released this 08 Jun 13:53
33c8b0f

What's Changed

Full Changelog: v1.1.1...v1.1.2

v1.1.1

Choose a tag to compare

@jkyberneees jkyberneees released this 22 Mar 09:39

What's Changed

  • refactor: apply consistent formatting and update dependencies by @jkyberneees in #7

Full Changelog: v1.1.0...v1.1.1

v1.1.0

Choose a tag to compare

@jkyberneees jkyberneees released this 26 Jan 10:17

Full Changelog: v1.0.4...v1.1.0

Adding TypeScript types

Choose a tag to compare

@jkyberneees jkyberneees released this 20 May 13:08

What's Changed

Full Changelog: v1.0.3...v1.0.4