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)
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)
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)
make kaelum() the default export and remove the 1.x API (#95)
the default export now creates a 2.0 app (kaelum()), replacing the 1.x factory and its setConfig/ddRoute/piRoute API. createKaelum is renamed to kaelum. The kaelum/validate and kaelum/test subpaths are removed (use the endpoint schemas and kaelum/testing). .env files are no longer loaded on import, and ejs is no longer a dependency.