Skip to content

BareJS v0.2.10

Choose a tag to compare

@xarhang xarhang released this 03 Dec 04:49
· 42 commits to main since this release

Security & Bug Fixes

  • Zero-dependency barejs/edge bundle (~35 KB, zero zod/@sinclair/typebox imports)
  • P0 cache() prePipeline ordering (never bypasses bareAuth/cors/rateLimit) & skips caching Set-Cookie/private/no-store
  • P0 Bun/uWS native route anti-shadowing for auth-protected routes
  • P0 uWS Tier 1 abort safety, Set-Cookie deduplication, and 400 Bad Request guard on malformed Host/URL across Node, uWS, and AWS Lambda
  • P1/P2 fixes across CSRF CIDR allowlist, tracing()/serverTiming(), jsx RAW_BRAND & nested <Suspense>, BareEdge plugins/headers/trailing-slash, compress() binary MIME filter, etag() 304 CORS retention, ctx.sse() cleanup, app.docs() prefix, group() WS merge, toSSG() traversal guard, and .d.ts fixes

Performance

  • Hot-path optimizations across Core, BareEdge, bareAuth HS256, rateLimit, cors, validators, etag (Bun.hash), cache, compress, and logger (+5% to +95% faster across production workloads)

Quality & CI

  • Added typecheck, test:docs, test:consumer (clean tarball + strict tsc --noEmit + live full-system E2E), upgraded CI to Node 22/24 & actions/*@v7, and enabled npm OIDC Trusted Publishing (520 tests / 6,963 assertions).