• v2.1.0 fe83556307

    v2.1.0 Stable

    kerem released this 2026-01-27 12:34:07 +03:00 | 35 commits to main since this release

    📅 Originally published on GitHub: Tue, 27 Jan 2026 09:35:39 GMT
    🏷️ Git tag created: Tue, 27 Jan 2026 09:34:07 GMT

    [2.1.0] - 2026-01-27

    Added

    • 🔷 Full TypeScript Migration: Complete rewrite of CLI and Server in TypeScript
      • Strict type checking enabled across the entire codebase
      • All modules converted from JavaScript to TypeScript
      • Type-safe interfaces for configuration, tunnels, analytics, and i18n
      • Better IDE support with IntelliSense and autocompletion
    • 📚 Comprehensive Documentation: New docs folder with detailed guides
      • docs/ARCHITECTURE.md: System overview, component diagrams, and data flow
      • docs/API.md: Complete API reference with endpoints and examples
      • docs/CONTRIBUTING.md: Contribution guidelines and development setup
    • 🤖 AI Context Support: Added .ai/context.md for AI-assisted development
      • Project structure and key patterns documented
      • Coding conventions and architecture decisions
      • Makes AI pair programming more effective
    • 🧪 Unit Testing with Vitest: Comprehensive test suite for CLI
      • Tests for argument parsing (tests/args.test.ts)
      • Tests for version comparison (tests/version.test.ts)
      • Tests for state management (tests/state.test.ts)
      • Easy to run with npm test
    • 📋 Code Ownership: Added .github/CODEOWNERS file
      • Clear ownership for code review assignments
      • Faster PR reviews with automatic reviewer assignment
    • 📝 Cursor Rules: Added .cursorrules for consistent AI assistance
      • Project-specific coding conventions
      • TypeScript and naming guidelines
      • Common patterns and anti-patterns
    • 🔄 Auto-download Cloudflared: Binary downloads automatically on first run
      • No need to run separate install commands
      • Seamless first-time user experience
      • Progress indicator during download
    • 🔒 Protected Subdomain Support: Enhanced error handling for reserved subdomains
      • User-friendly error message when trying to create protected subdomains (like api)
      • Formatted error output matching existing error style
      • Helpful suggestions to use alternative subdomain names
      • Prevents accidental use of backend service subdomains
    • 📋 TODO Management: Added TODO.md for tracking planned features
      • Move time limit enforcement to backend
      • Update README powered-by section
      • Track terminal link clicks

    Changed

    • 🏗️ Project Structure: Reorganized for better maintainability
      • All source code in src/ directory
      • Type definitions in src/types/
      • Shared constants in src/constants.ts
      • Tests in tests/ directory
    • 📦 Build System: Updated to TypeScript compilation
      • Uses tsc for compilation
      • Output to dist/ directory
      • Source maps for debugging
    • 🔧 Development Workflow: Improved developer experience
      • npm run dev for watch mode
      • npm run build for production
      • npm test for running tests
      • npm run lint for type checking
    • ⚙️ System Requirements: Updated to Node.js 20+
      • Minimum Node.js version: 20.0.0
      • Minimum npm version: 10.0.0
      • Better security and performance with latest LTS

    Improved

    • Better Error Messages: Enhanced user feedback for protected subdomains
      • Catches SUBDOMAIN_PROTECTED errors from backend
      • Formats error messages consistently with other error types
      • Shows actionable options when subdomain is reserved

    Fixed

    • 🐛 Intel Mac Binary Download: Fixed cloudflared binary download on Intel Macs
      • Node.js reports architecture as x64, not amd64 - now correctly mapped
      • Fixed ARM64 Macs to download the correct cloudflared-darwin-arm64.tgz binary
      • Previously ARM64 Macs were incorrectly downloading the AMD64 binary
    Downloads