• v2.1.2 8077807c20

    v2.1.2 Stable

    kerem released this 2026-01-28 08:50:33 +03:00 | 21 commits to main since this release

    📅 Originally published on GitHub: Wed, 28 Jan 2026 05:51:30 GMT
    🏷️ Git tag created: Wed, 28 Jan 2026 05:50:33 GMT

    [2.1.2] - 2026-01-28

    Fixed

    • 📊 Analytics Integration: Fixed GA4 Measurement Protocol implementation
      • Created dedicated CLI analytics stream (G-JJHG4DP1K9) separate from website
      • Fixed session_id format (now uses numeric timestamp as required by GA4)
      • Fixed engagement_time_msec to use actual number instead of string
      • Added timestamp_micros for accurate event timing
      • Removed debug endpoint that was preventing events from being recorded
      • Added proper debug logging when NPORT_DEBUG=true

    Changed

    • 📦 Optimized Bundle Size: Switched from tsc to esbuild for significantly smaller package
      • New scripts/build.js bundles and minifies CLI into single file
      • Tree-shaking removes unused code
      • Disabled TypeScript declaration and source map generation
      • Reduced files in npm package (only postinstall.js script included)
    • Faster Development: Improved watch mode with esbuild
      • Minification disabled during development for faster rebuilds
      • Concurrent watching for main CLI and bin-manager entry points
      • Better console output showing active file monitoring

    Improved

    • 🧪 Enhanced Smoke Tests: Better npm package validation in CI
      • Tests now simulate full npm pack/install flow
      • Installation tested from generated tarball
      • More accurate pre-publish validation

    Technical Details

    • esbuild Configuration:
      • Target: Node.js 20
      • Format: ESM
      • External dependencies: axios, chalk, ora (avoids CJS/ESM issues)
      • Shebang added via esbuild banner instead of source file
    • tsconfig.json: Updated with noEmit: true, esbuild handles output
    • Package Size: Significantly reduced dist folder size
    • Analytics Events: cli_start, tunnel_created, tunnel_error, tunnel_shutdown, update_available
    Downloads