Skip to content

Releases: Moro-JS/cli

v1.3.4: Better-Auth Integration

13 Nov 17:57

Choose a tag to compare

This release migrates the authentication system from Auth.js to better-auth, providing a more robust and feature-rich authentication solution.

Key Changes:

  • Migrated to better-auth v1.3.34
  • Updated environment variable from JWT_SECRET to AUTH_SECRET
  • Enhanced authentication middleware with JWT support
  • Added comprehensive auth endpoints (login, logout, status, profile, admin)
  • Improved security with HTTP-only cookies and Bearer token support
  • Role-based access control examples

New Features:

  • better-auth integration through @morojs/moro
  • Cookie-based and Bearer token authentication
  • JWT token management with configurable expiry
  • Enhanced authentication middleware

Dependencies:

  • better-auth: ^1.3.34
  • bcryptjs: ^2.4.3
  • jsonwebtoken: ^9.0.2

Breaking Changes:

  • AUTH_SECRET environment variable replaces JWT_SECRET

v1.3.3: Ensure generated projects are ESM-compatible

09 Oct 22:50

Choose a tag to compare

feat: ensure generated projects are ESM-compatible

  • Update tsconfig.json generation to use ESM-compatible settings
  • Use moduleResolution: 'bundler' and verbatimModuleSyntax: true
  • Ensure generated projects work with ESM-only Moro framework
  • Version bump to 1.3.3

v1.3.2: Add new server configuration options

19 Sep 03:47

Choose a tag to compare

  • Add bodySizeLimit for configurable request body size limit
  • Add requestTracking configuration for request tracking functionality
  • Add errorBoundary configuration for error boundary handling
  • Enhanced server configuration templates in both config and init commands

v1.3.1: Remove environment property from server configuration

19 Sep 03:08

Choose a tag to compare

  • Remove environment property from server config in config.ts
  • Remove environment property from server config in init.ts
  • Environment should only be controlled by NODE_ENV env var
  • Bump version to 1.3.1

v1.3.0 - MoroJS 1.4.0 Compatibility Release

15 Sep 23:32

Choose a tag to compare

This release brings full compatibility with MoroJS 1.4.0 and introduces significant improvements to the CLI tooling experience.

What's New

Framework Compatibility

  • Updated to MoroJS 1.4.0 for latest framework features and improvements
  • Seamless integration with new MoroJS capabilities
  • Enhanced project scaffolding with modern patterns

CLI Improvements

  • Dynamic version display now reads from package.json automatically
  • Improved error handling and user feedback
  • Enhanced logging and debugging capabilities
  • Better command validation and help text

Testing & Quality

  • Added comprehensive test suite with 34+ test cases
  • Integration tests for CLI commands and workflows
  • Enhanced CI/CD pipeline with better coverage reporting
  • Zero security vulnerabilities detected

Technical Details

Dependencies

  • MoroJS Framework: Updated to ^1.4.0
  • All development dependencies updated to latest stable versions
  • Improved TypeScript configuration and build process

Project Generation

  • Enhanced project initialization templates
  • WebSocket support in generated projects
  • Better module scaffolding with modern patterns
  • Improved validation library integration

Developer Experience

  • Enhanced linting and formatting configuration
  • Better error messages and debugging information
  • Improved development workflow and tooling

Installation

npm install -g @morojs/cli@1.3.0

Upgrade Notes

This is a non-breaking release. Users can upgrade directly from version 1.2.x without any migration steps required.

Verification

You can verify the installation with:

morojs-cli --version  # Should output: 1.3.0

Full Changelog: v1.2.4...v1.3.0

v1.2.4 - Version Synchronization Fix

15 Sep 01:39

Choose a tag to compare

Fixed

  • Corrected version sequencing after npm publish mismatch
  • Synchronized package.json, git tags, and npm registry versions

Note

This release ensures all version references are properly aligned across the ecosystem.

v1.2.2 - Add TypeScript types to config and fix CI

15 Sep 01:28

Choose a tag to compare

Added

  • TypeScript types for generated configuration files
  • Import AppConfig from @morojs/moro for type safety
  • Partial<AppConfig> type annotation for better developer experience

Fixed

  • CI test updated to use modern module create command
  • Removed duplicate legacy generate commands causing CLI crash
  • CLI help and module commands now work correctly

Improved

  • IntelliSense and autocomplete in generated config files
  • Compile-time validation for configuration options
  • Better error detection during development

v1.2.1 - Fix production config loading

15 Sep 00:34

Choose a tag to compare

Fixed

  • Production config loading failure with "did not export a valid configuration object" error
  • Changed from async function export to sync object export
  • Use 'auto' for worker count instead of requiring os module
  • Both development (.ts) and production (.js) modes now work correctly

Technical Details

  • Before: export default async () => {...} (failed in production)
  • After: export default {...} (works everywhere)
  • Simplified worker configuration using 'auto' instead of os.cpus().length

v1.2.0 - Configuration System Fixes

15 Sep 00:10

Choose a tag to compare

Fixed

  • Configuration file consistency (all commands now generate .ts files)
  • Build scripts to use tsx instead of CLI dependency
  • TypeScript compilation to include moro.config.ts
  • Production start script path (dist/src/index.js)
  • Empty modules config syntax errors
  • tsconfig rootDir compilation issues
  • Automatic npm install (unless --skip-install)

Breaking Changes

  • Generated projects now use moro.config.ts
  • Updated package.json scripts for proper dev/build/start commands

Release v1.1.0: Auth.js integration and enhanced configuration system

11 Sep 06:53

Choose a tag to compare

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

Usage

morojs-cli init my-app --runtime=node --database=postgresql --features=auth,cors,compression,cache