Skip to content

All versions since 1.3.3

1.3.3

Highlights

  • ✅ Official documentation site published (VitePress) and deployed to GitHub Pages: https://matheuscampagnolo.github.io/kaelum/

  • ✅ CI workflow added to build docs and publish the static output to gh-pages automatically when main is updated.

  • ✅ Packaging improvements

    • .npmignore updated (excluded .github, docs, and other non-shipping files).
    • package.json metadata improved for npm readiness.
    • Project version bumped to v1.3.3.

CLI

  • npx kaelum create — interactive project generator with templates:
    • web template (static + views + middleware scaffold)
    • api template (REST scaffold with controllers and middleware)

Core helpers (CommonJS usage)

const kaelum = require('kaelum');
const app = kaelum();

Key functions:

  • app.setConfig(options) — configure built-in features:

    • { cors, helmet, static, bodyParser, logs, port }
  • app.start(port, callback) — starts the HTTP server (port fallback to config or default)

  • app.addRoute(path, handlers) — register routes; accepts:

    • a single handler (assumed GET), or
    • an object with HTTP methods { get, post, put, delete, ... }
  • app.apiRoute(resource, handlers) — build RESTy resource trees with nested subpaths (e.g. /:id)

  • app.setMiddleware(...) — register middleware(s), arrays or mount under a path

  • app.redirect(from, to, status) — helper to register redirects

  • app.healthCheck(path = '/health') — standard health endpoint

  • app.useErrorHandler(options) — attaches Kaelum’s JSON error handler


Notable fixes & changes in v1.3.3

  • ci(docs): Added GitHub Actions workflow to build docs and publish the static site to the gh-pages branch.
  • chore: Added .npmignore entries to exclude .github, docs and other non-shipping files from npm package.
  • fix(docs): Added dependency override and regenerated docs/package-lock.json to avoid a broken debug@4.4.2 resolved URL in CI.
  • docs: Updated README with badges and link to the hosted documentation.

Post-release notes & next steps

  • Expand setConfig in a future release (e.g., add logging configuration, extended static options).
  • Add a CI job to publish GitHub Release artifacts automatically (optional).
  • Consider publishing prebuilt templates / starters as separate packages or templates repo.

Thanks to everyone who contributed and tested the docs build. Feedback and PRs are welcome — see the docs for contribution pointers.

1.4.0

What’s Changed

1.6.0

Features

  • add graceful shutdown with app.close() and app.onShutdown() (2abee37)
  • Introduce a plugin system with pp.plugin and pp.getPlugins methods for extending Kaelum applications. (fc938cf)

Other Changes

  • Revert version to 1.5.0 in package.json and package-lock.json (f29b3c8)
  • Delete CHANGELOG.md (f94d422)
  • ci: replace release-please with tag-based changelog release (5cd3ab7)
  • Revert version to 1.5.0 in manifests and changelog (3022c3f)
  • release 1.7.0 (6b7af84)
  • ci: merge publish into release workflow (d71bc29)
  • release 1.6.0 (0aae76b)
  • ci: use PAT for release-please to create pull requests (b8af262)
  • ci: use trusted publisher (OIDC) for npm publish (7b67eaf)

1.7.0

Features

  • add zero-dependency rate limiting toggle - Introduce core/rateLimit.js with MemoryStore and createRateLimiter factory - Add rateLimit option to setConfig (true ( object )

1.8.0

Features

  • add TypeScript templates and improve CLI experience (c088a76)

Other Changes

  • generate package-lock.json for project dependencies (4567789)

1.8.1

Bug Fixes

  • remove redundant try/catch re-throws in start module (f005d0c)
  • log warning on setConfig fallback and add JSDoc to wrapper methods (bd4a459)
  • remove stale comment and harden express require in setConfig (20db7dd)
  • remove redundant try/catch re-throws in start module (c8317d2)

Refactoring

  • flatten double-nested try in errorHandler onError hook (ff0e99c)

1.8.2

Bug Fixes

  • read version dynamically from package.json in template meta endpoints (30a51ff)
  • replace Portuguese sample names with English in template controllers (3d0491f)

1.8.3

Bug Fixes

  • remove hardcoded version from template HTML footers (6d06f62)

Documentation

  • add explanatory comment for process.cwd() usage in TS pagesController (fdeb448)
  • update README with TypeScript templates, new CLI commands, and missing features (48894ba)

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)

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.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.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.8

Features

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

Bug Fixes

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

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.9.0

Features

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

1.9.1

Features

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

1.9.2

Features

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

1.9.3

Features

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

1.9.4

Features

  • add testApp utility for testing Kaelum applications via supertest (36a06ac)
  • add test-utils package for HTTP integration testing via supertest (bbc6b9d)

1.10.0

Features

  • add CSRF protection support with origin checking and double-submit cookie strategies (790035e)

1.10.1

Features

  • add centralized configuration helper and etag support (662ed5d)

1.10.2

Features

  • add 404 Not Found and 405 Method Not Allowed core handlers and application methods (c5a89ec)

Other Changes

  • add tests for app.notFound and app.useMethodNotAllowed functionality (de985b0)

1.10.3

Features

  • add core features for ip restriction, pretty json, set config, and trailing slash middleware (e2e7830)

Other Changes

  • add unit tests for ipRestriction, prettyJson, and trailingSlash core features (87a2ed9)
  • add typings for PrettyJsonMode, TrimTrailingSlashOptions, IpRestrictionOptions (509e5e4)

1.10.4

Features

  • update Node.js version requirement and enhance API response handling with new middleware (e1c62d9)

2.0.0-alpha.0

⚠ BREAKING CHANGES

  • upgrade to Express 5 and drop dotenv and morgan
  • convert kaelum to TypeScript and ESM, switch to Vitest
  • move project scaffolding to the create-kaelum package

Features

  • docs: rebuild docs on stock Starlight with AI-ready output (3558f27)
  • docs: rebuild docs on stock Starlight with AI-ready output (e44d7d8)
  • move project scaffolding to the create-kaelum package (b32ee17)
  • upgrade to Express 5 and drop dotenv and morgan (d05832a)

Code Refactoring

  • convert kaelum to TypeScript and ESM, switch to Vitest (62f7456)

2.0.0-alpha.1

Features

  • add app options with production-ready defaults (f0cb3a3)
  • add app options with production-ready defaults (#91) (f1a313d)
  • add rate limit, CSRF, IP restriction and timing options (e6aa89b)
  • add rate limit, CSRF, IP restriction and timing options (#92) (e43a5a1)
  • add the k schema builder (9cef147)
  • add the k schema builder (#90) (04f952f)
  • add the Kaelum class, Context and typed route trees (b35856d)
  • add the Kaelum class, Context and typed route trees (c1f474f)
  • validate and type endpoint input with Standard Schema (ff234c7)
  • validate and type endpoint input with Standard Schema (#89) (23f9606)

2.0.0-alpha.2

⚠ BREAKING CHANGES

  • 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.

Features

  • add resource routes, plugins, graceful shutdown, logger and testing client (7e44516)
  • add resource routes, plugins, graceful shutdown, logger and testing client (#93) (9685b35)
  • make kaelum() the default export and remove the 1.x API (bd90d85)
  • make kaelum() the default export and remove the 1.x API (#95) (295fc32)
  • move the create-kaelum templates to the 2.0 API (8a88413)
  • move the create-kaelum templates to the 2.0 API (#96) (c0c21c5)

2.0.0-alpha.3 Latest

⚠ BREAKING CHANGES

  • defineRoutes is removed; put routes in a function that receives the app and calls app.route. app.route takes only (path, tree).
  • single-file templates, testApp from the app file, remove defineRoutes

Features

  • add static, views, port, etag, pretty JSON, redirects, notFound and onError options (975c7ec)
  • add static, views, port, etag, pretty JSON, redirects, notFound and onError options (#104) (63ebfcd)
  • load .env when kaelum is imported and use a static home page in the web templates (94b4f42)
  • load .env when kaelum is imported and use a static home page in the web templates (#106) (8db1c17)
  • single-file templates, testApp from the app file, remove defineRoutes (8eaf6d2)
  • single-file templates, testApp from the app file, remove defineRoutes (#105) (67bf49c)