Skip to content

SmartLog v0.3.0 - Lean Core with Optional Extensions

Choose a tag to compare

@xenral xenral released this 31 Mar 18:56
· 2 commits to main since this release

We're excited to announce SmartLog v0.3.0, which represents a significant improvement to the package's architecture.

🌱 Zero-Dependency Core

SmartLog now has zero dependencies in its core package, making it lightweight, secure, and easy to integrate into any project. The core logging functionality works without requiring any external packages.

🔌 Optional Extensions

The Telegram transport is now completely optional. Users can choose to install the required dependency only if they need this functionality:

npm install node-telegram-bot-api

🛡️ Improved Error Handling

Added robust error handling for cases when optional dependencies are not installed, with helpful warning messages guiding users through the setup process.

🏗️ Architecture Improvements

  • Moved node-telegram-bot-api to peer dependencies with optional flag
  • Dynamic module loading with graceful fallbacks
  • Clear documentation for optional integrations

📦 Getting Started

# Install the core package (zero dependencies)
npm install smartlog

# Optionally install Telegram integration
npm install node-telegram-bot-api

This release makes SmartLog more versatile while keeping the core library minimal and lightweight. Users can now enjoy a tailored installation based on their specific logging needs.