Releases: pessoa736/PudimServerAPIs
Releases · pessoa736/PudimServerAPIs
v0.3.0 - Help System & Documentation
What's New
🆕 Interactive Help System
PudimServer.help()— overview with quickstartPudimServer.help('topic')— detailed docs for 10 topics- First-run welcome message with quickstart guide
PudimServer.version()— get current version
📝 LuaDoc Annotations
- Complete
@param/@returnannotations on all public functions - Full IDE/LSP support (autocomplete, hover docs)
🤖 AI Documentation
- Rewritten
copilot-instructions.mdwith complete API reference - Module dependency graph, request flow, and usage patterns
🧪 Tests
- 85 tests total (8 new for help module), all passing
luarocks install PudimServer 0.3.0v0.2.0
What's New
Bug Fixes
- Fix JSON auto-encoding: table body is now correctly encoded to JSON with
Content-Type: application/json - Remove hardcoded SSL middleware that crashed servers without certificates
New Features
- CORS helpers:
server:EnableCors()with configurable origins, methods, headers, credentials and automatic preflight handling - Request/response pipeline:
server:UseHandler()for HTTP-level middleware with short-circuit support (auth, logging, etc.) - In-memory cache: TTL-based response cache with automatic eviction, integrates with pipeline via
Cache.createPipelineHandler()
Tests & Docs
- 77 unit tests with busted
- 5 functional examples in
examples/ - Rewritten README (EN + PT-BR) with documentation for all new features
- Added
.github/copilot-instructions.md
Dependencies
- Added
logluato rockspec dependencies