Releases: Moro-JS/cli
Releases · Moro-JS/cli
Release v1.1.0: Auth.js integration and enhanced configuration system
Major Features
Auth.js Integration
- Replaced basic JWT with comprehensive Auth.js authentication system
- Support for OAuth providers (Google, GitHub, Discord) and credentials provider
- Built-in JWT sessions, CSRF protection, and role-based access control
- Environment-aware security configuration
Comprehensive Configuration System
- Aligned with MoroJS configuration reference documentation
- Support for standard and MORO_ prefixed environment variables
- Feature-based dynamic configuration generation
- Production-optimized defaults with automatic environment detection
Enhanced Reliability
- Database connection failures no longer crash applications
- Graceful degradation when external services are unavailable
- Improved error handling and logging throughout
Improvements
Developer Experience
- Automatic ES module support (
"type": "module") - Dynamic version fetching for latest framework versions
- Fixed module generation in correct
src/modules/directory - Enhanced project documentation and setup guides
Build System
- Resolved TypeScript compilation issues with CommonJS dependencies
- Fixed database adapter naming and configuration
- Improved template generation with proper imports
Configuration Enhancements
- Compression with configurable levels and thresholds
- Clustering support for Node.js applications
- Redis and memory caching with TTL management
- Rate limiting with skip options
- Service discovery (Consul, Kubernetes)
- External service templates (Stripe, PayPal, SMTP)
Breaking Changes
- Auth middleware updated from basic JWT to Auth.js
- Enhanced configuration structure may require updates for existing projects
- Database connection handling improved with resilient patterns
Installation
npm install -g @morojs/cli@1.1.0Usage
morojs-cli init my-app --runtime=node --database=postgresql --features=auth,cors,compression,cachev1.0.0 - MoroJS CLI - Comprehensive Development Toolkit
MoroJS CLI v1.0.0 - Initial Release
The official command-line interface for the MoroJS framework, providing a complete development toolkit for building modern APIs and microservices.
What's New
Project Management
- Project Initialization - Create new MoroJS projects with intelligent defaults
- Multi-Runtime Support - Deploy to Node.js, Vercel Edge, AWS Lambda, or Cloudflare Workers
- Template System - Choose from API, Full-stack, or Microservice templates
- Automatic Setup - Git initialization and dependency installation
Module Development
- Advanced Module Generation - Create modules with built-in middleware integration
- Database Integration - Support for PostgreSQL, MySQL, SQLite, MongoDB, Redis, and Drizzle ORM
- Authentication Ready - Built-in auth roles and permissions
- Test Generation - Automatic test file creation
- API Documentation - OpenAPI/Swagger documentation generation
Configuration & Database
- Configuration Management - Generate and validate MoroJS configurations
- Environment Templates - Smart .env file generation
- Database Tooling - Setup adapters, run migrations, and seed data
- Multi-Database Support - 6 different database adapters supported
Development Tools
- Development Server - Hot-reload development with file watching
- Build System - Multi-target builds with esbuild and TypeScript
- Code Quality - ESLint and Prettier integration
- Testing Framework - Jest setup with coverage reporting
- Security Scanning - Built-in security audit tools
Deployment & Production
- Multi-Runtime Deployment - One-command deployment to any platform
- Middleware Management - 16 built-in middleware types
- Production Configs - Environment-specific configurations
- Docker Support - Container-ready project generation
Installation
npm install -g @morojs/cliQuick Start
# Create a new project
morojs-cli init my-api --runtime=node --database=postgresql --features=auth,cors,docs
# Generate a module
morojs-cli module create users --features=database,auth,cache --with-tests
# Start development
npm run devCommands
init- Initialize new MoroJS projectsmodule- Create and manage modulesconfig- Configuration managementdatabase- Database setup and migrationsmiddleware- Built-in middleware managementdeploy- Multi-runtime deploymentdev- Development serverbuild- Production buildslint- Code linting and formattingtest- Test runnersecurity:scan- Security analysis
Breaking Changes
This is the initial release, so no breaking changes apply.
Dependencies
- Node.js 18+
- TypeScript 5.3+
- MoroJS Framework (@morojs/moro)
Documentation
Built with ❤️ by the MoroJS Team