Skip to content

Changelog

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

Features

  • add TypeScript templates and improve CLI experience (c088a76)

Other Changes

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

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

What’s Changed

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.