Changelog

What's new

All notable changes to Zapix. View releases on GitHub

Unreleased

Added
  • Planned features and improvements

v0.1.9

Added
  • Global middleware support
  • Updated documentation with usage examples of global middleware.

v0.1.8

Added
  • Improved `Response()` utility — automatically detects success vs error based on the parameters.
  • Supports strings, JS `Error` instances, arrays of validation errors, and generic objects.
  • Updated documentation with usage examples.
Changed
  • Improved type safety and developer experience for `Response()`.

v0.1.7

Added
  • Global error handler: `router.useError` for centralized error handling, similar to Express.js.
  • Express.js-like middleware chaining — validation, authentication, etc. can be chained before controllers.
  • `safeJsonParse` utility for safe JSON parsing.
  • `Response` utility for consistent HTTP responses.
Changed
  • Improved documentation with detailed usage examples for middleware, error handling, and utilities.
  • Enhanced type safety and developer experience.
Fixed
  • Minor internal improvements and bug fixes.

v0.1.6

Added
  • Initial public release of Zapix — lightweight router for AWS Lambda.
  • Built-in TypeScript support with full type safety and IntelliSense.
  • Minimal router with `get`, `post`, `put`, `patch`, `delete`, `options`, `all` methods.
  • Middleware + handler chaining support.
  • Strongly typed `RequestHandler`, `RouteHandler`, and `RouteMiddleware`.
  • Distributed with bundled `.d.ts` files for npm type support.
  • Works seamlessly with AWS Lambda event/response objects.