Skip to content

Changelog

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