Skip to content

BareJS v0.2.9

Choose a tag to compare

@xarhang xarhang released this 01 Dec 10:20
· 62 commits to main since this release

Highlights

Bug Fixes (P0)

  • JIT app.derive() Multi-Route Cleanup: Fixed delete ctx[...] → delete rawCtx[...] in generated _rel(rawCtx, _uaf) helper for apps with 20+ routes.
  • app.macro() Inside app.group(): Fixed _createGroupRouter so grouped & nested routes inherit and enforce all registered macros.
  • Chainable app.setNotFound(): Now returns this for fluent chaining.

New Features

  • Meta Framework Integrations (prefix, .basePath(), safe app.fetch): Direct export const GET = app.fetch support for Next.js App Router, Astro, SvelteKit, Nuxt 3, Remix, and TanStack Start on both BareJS and BareEdge.
  • Official AI Agent Skill (skills/barejs/SKILL.md): Install via bunx skills add xarhang/bareJS / npx skills add xarhang/bareJS.
  • Verified: 511 tests / 6,918 assertions across 38 files passing in CI (Bun, Node.js 20 & 22, Deno 2).