Skip to content

Release v2.3: Internal Code Refactoring

Choose a tag to compare

@dzienisz dzienisz released this 20 Oct 12:25
· 14 commits to main since this release
c539b2f

🔧 Version 2.3 - Internal Code Refactoring

This release focuses on internal code improvements to make the codebase more maintainable and prepare for v3.0 features. No user-facing changes - the extension works exactly the same as v2.2!

🏗️ Architecture Improvements

Refactored monolithic analyzer.js (350+ lines) into modular architecture:

  • src/core/ - Core functionality

    • config.js - Centralized configuration and scoring weights
    • analyzer.js - Main orchestrator coordinating all detectors
    • scoring.js - Classification and confidence calculation
  • src/detectors/ - Specialized detection modules

    • content-detector.js - HTML content structure analysis
    • framework-detector.js - Framework and hydration detection
    • meta-detector.js - Meta tags and SEO analysis
    • performance-detector.js - Performance metrics analysis
  • src/ui/components/ - UI rendering

    • results-renderer.js - Results display and formatting

All modules are bundled into src/analyzer-bundle.js for deployment.

🐛 Bug Fixes

  • Fixed script injection guard to prevent redeclaration errors on repeated injections
  • Improved error handling in module loading

📝 Version Updates

  • Bumped version to 2.3 in manifest.json
  • Updated popup footer to show v2.3
  • Updated README.md version badge
  • Added comprehensive CHANGELOG.md entry

🎯 Benefits

  • Better maintainability - Each module has a single, clear responsibility
  • Easier testing - Modules can be tested independently
  • Faster feature development - Clean architecture for v3.0 features
  • Better code organization - Easy to find and modify specific functionality

🚀 What's Next?

This refactoring prepares the codebase for v3.0 which will include:

  • Settings page with customization options
  • Dark mode support
  • Export functionality (JSON, CSV, Markdown)
  • Framework version detection (e.g., "React 18.2.0")
  • Web Vitals metrics and recommendations

📦 Installation

Chrome Web Store: CSR vs SSR Detector

For Developers: Download chrome-ssr-csr-v2.3.zip and load unpacked in Chrome

🙏 Thank You

Thank you to everyone using this extension! Feedback and contributions are always welcome.


Full Changelog: https://github.com/dzienisz/chrome-ssr-csr/blob/main/CHANGELOG.md