Skip to content

Changelog

1.9.3

Features

  • add request body, query, and params validation middleware (60809e5)

1.9.2

Features

  • add group routing functionality with middleware support for modular route organization (4395856)

1.9.1

Features

  • add semantic response helper methods to Express response object (e1f42b9)

1.9.0

Features

  • add requestId and timing middleware for request observability (55ffbc1)

1.8.9

Refactoring

  • normalize default views path with path.resolve The views directory was set as a bare relative string ‘./views’, which depends on process.cwd() implicitly and could resolve incorrectly. Now uses path.resolve(process.cwd(), ‘views’), consistent with the static middleware pattern. (949d9f4)

Other Changes

  • update and pin all dependencies to exact versions (e92b0ae)

1.8.8

Features

  • support env-specific .env files (.env.production, etc) (cecc30e)

Bug Fixes

  • remove app.listen alias, preserve Express native method (3757096)

1.8.7

Features

  • add app.listen() as alias for app.start() Most Express users expect app.listen() by convention. This adds a simple alias so both methods work identically. Updated index.d.ts with the listen type signature and healthCheck(path, options) overload. (cf28fb1)
  • support two-argument overload (path, options) Previously, calling healthCheck with a string path meant you couldn’t also pass options like include or readinessCheck. Now supports: app.healthCheck(‘/status’, { include: { metrics: true } }) The string path is merged into options, with the path taking priority. The createApp wrapper now forwards both arguments to registerHealth. (c1aa5d7)

1.8.6

Bug Fixes

  • expose removeMiddleware() and getMiddleware() on app These methods were documented but never wired up in createApp.js. Users had no public API to remove tracked middleware or list registered entries. - app.removeMiddleware([path]) — delegates to setMiddleware.remove() - app.getMiddleware() — returns app.locals._kaelum_middlewares - Updated index.d.ts with corresponding type definitions - Added head/options to RouteHandlers interface (0f85d44)
  • add HEAD and OPTIONS to supported HTTP methods The supportedMethods array only included get, post, put, delete, patch, and all. Users attempting to register head or options handlers via addRoute received an ‘Unsupported key’ error, even though Express supports these methods natively. Added ‘head’ and ‘options’ to the array. (b687204)

1.8.5

Bug Fixes

  • modernize TypeScript templates with proper imports - Convert all require() calls to ESM import syntax across 6 files - Remove broken ../../package.json reference in API routes template - Templates now align with TypeScript best practices (esModuleInterop) Affected: ts/api (app.ts, routes.ts), ts/web (app.ts, routes.ts, pagesController.ts) (c3b0506)

1.8.4

Bug Fixes

  • add missing apiRoute type overloads for handler and crud shorthand (c56a371)
  • respect user-provided morgan format in setConfig logs option (f7ef35e)