Skip to content

docs: update README and examples to reflect current API#41

Merged
Nadhila-dot merged 2 commits intomainfrom
copilot/update-wiki-with-new-data
Apr 1, 2026
Merged

docs: update README and examples to reflect current API#41
Nadhila-dot merged 2 commits intomainfrom
copilot/update-wiki-with-new-data

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 1, 2026

Docs were referencing removed/deprecated features and missing documentation for recently shipped ones.

README

  • Fixed CORS import — was shown as default import (import cors from ...), it's a named export (import { cors } from ...)
  • Added missing sections: Middleware (CORS + Sessions), Route Grouping, Validation, Static Routes (app.static(), added in chore: add express so we can make fun of it #40), Native Response Cache (res.ncache()), TLS/HTTPS
  • Expanded Imports section to include all available sub-packages

Examples

Replaced deprecated app.onError()app.error() across all four examples that used the old API:

  • error-handling/server.js
  • middleware/server.js
  • validation/server.js
  • rest-api/server.js

Also updated the examples README.md table description to match.

// Before (deprecated)
app.onError((err, req, res) => { ... });

// After
app.error((err, req, res) => { ... });

Copilot AI changed the title [WIP] Update wiki documentation to reflect current features docs: update README and examples to reflect current API Apr 1, 2026
@Nadhila-dot
Copy link
Copy Markdown
Collaborator

Told AI to handle these automatically since its a readme and examples

Copilot AI requested a review from Nadhila-dot April 1, 2026 13:54
@Nadhila-dot Nadhila-dot marked this pull request as ready for review April 1, 2026 13:54
@Nadhila-dot Nadhila-dot merged commit 68b98ae into main Apr 1, 2026
@Nadhila-dot Nadhila-dot deleted the copilot/update-wiki-with-new-data branch April 1, 2026 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants