dio_curl_interceptor 3.3.3-alpha9 copy "dio_curl_interceptor: ^3.3.3-alpha9" to clipboard
dio_curl_interceptor: ^3.3.3-alpha9 copied to clipboard

A powerful Dio interceptor that converts HTTP requests to cURL commands, with modern UI for debugging, caching, filtering, and webhook integration.

3.3.3-alpha8 #

New Features #

  • NEW: CurlBubble - Floating bubble overlay for non-intrusive cURL log viewing
  • NEW: BubbleOverlay - Generic draggable bubble widget for any content
  • NEW: BubbleOverlayController - Simple controller following Flutter's standard patterns (ChangeNotifier + listeners)
  • NEW: Programmatic control of bubble visibility and expansion states

Architecture Improvements #

  • Applied KISS (Keep It Simple, Stupid) principle for clean, maintainable code
  • Controller-to-UI connection follows Flutter's standard patterns
  • Direct property access for simple state management
  • Clean separation of concerns between UI and business logic

Breaking Changes #

  • Replaced CachedCurlStorage with CachedCurlService for better architecture
  • Removed file export functionality from CurlViewer
  • REMOVED: CurlInterceptor.withDiscordInspector() and CurlInterceptor.withTelegramInspector() factory methods
  • REMOVED: CurlInterceptorV2.withDiscordInspector() and CurlInterceptorV2.withTelegramInspector() factory methods

Architecture #

  • Implemented proper MVC + Service Layer pattern with repository pattern

Features #

  • Added enableCaching parameter to InspectorUtils for controlling curl request/response caching

Enhancements #

  • Enhanced FormData handling with detailed file info in cURL output
  • Improved CurlViewer UI and error handling
  • Updated cURL sharing logic and Telegram webhook integration
  • Improved code organization and maintainability

Refactoring #

  • Cleaned up unused dependencies (codekit, file_saver) from pubspec.yaml
  • Refactored CurlViewerPopup to CurlViewer with improved UI and display logic
  • REFACTORED: Moved Discord-specific utilities (formatEmbedValue, _wrapWithBackticks) from webhook_utils.dart to discord_inspector.dart
  • REMOVED: webhook_utils.dart file as utilities are now properly organized by platform
  • IMPROVED: Code organization with platform-specific utility methods

Documentation #

  • Added comprehensive migration guide in MIGRATION.md
  • Added legacy documentation for removed export file functionality
  • ADDED: TLDR sections to Telegram API documentation and fix documentation

Fixes #

  • FIXED: Telegram HTML parsing error - resolved "can't parse entities" error by removing markdown code blocks from HTML context
  • FIXED: Created separate formatting methods for Telegram vs Discord to prevent mixing markdown and HTML

3.3.2 #

  • NEW: Added SenderInfo class for custom sender information in webhook inspectors
  • FEATURE: Updated all webhook inspectors to use SenderInfo for consistent API
  • ENHANCEMENT: InspectorUtils now supports all webhook types via WebhookInspectorBase
  • BREAKING: InspectorUtils uses webhookInspectors instead of discordInspectors

3.3.0 #

  • NEW: Added Telegram webhook integration (TelegramInspector)
  • BREAKING: Renamed discordInspectorswebhookInspectors in CurlInterceptor
  • FEATURE: Created extensible webhook system with WebhookInspectorBase
  • FIX: Resolved linter warnings and import conflicts
  • ENHANCEMENT: Added comprehensive webhook examples

3.2.6 #

  • Added limitResponseField
  • Removed intl dependencies
  • Change the default behavior from CurlBehavior.chronological to CurlBehavior.simultaneous

3.2.5 #

  • Added examples for includeUrls and excludeUrls in DiscordInspector configuration.
  • Bug fixes

3.2.3 #

  • Updated README.md to include discordInspector parameter in CurlInterceptor example.
  • Added examples for includeUrls and excludeUrls in DiscordInspector configuration.
  • Enhanced README.md with a new section "Integrating InspectorUtils in Custom Interceptors" under "Option 2: Using CurlUtils directly in your own interceptor".

3.2.2 #

  • Introduced InspectorUtils for centralized inspection methods, currently supporting Discord webhook integration.

3.2.0 #

  • Enhanced caching security by encrypting the Hive box with flutter_secure_storage.
  • Updated CurlInterceptor.discord factory and DiscordInspector tests to use includeUrls and excludeUrls for URI filtering.

3.1.0 #

  • Introduced Discord webhook integration for remote logging and team collaboration.

3.0.3 #

  • Add onExport callback to showCurlViewer to allow custom handling of exported file paths.

3.0.2 #

  • Add public utility functions in CurlUtils for direct caching: cacheResponse and cacheError
  • Refactor interceptor to use these utility functions
  • Improve code maintainability and reusability

3.0.0 #

  • Introduce cURL cache feature.
  • Limit response body length with limitResponseBody option.
  • Update documentation and examples for new features.

2.1.0 #

  • Restructure codebase for better maintainability and organization
  • Enhance readability with pretty printing capabilities
  • Change the default printer from print to log from [dart:developer] package
  • Remove useUnicode option as it's now handled automatically

1.1.6 #

  • Remove formatter option from CurlOptions.
  • Bug fixes and improvements

1.1.5 #

  • Introduce new CurlUtils class with standalone utility methods for curl generation and logging
  • Add new CurlBehavior enum for controlling logging timing (chronological/simultaneous)
  • Extend CurlOptions with new configuration parameters (behavior, printer, disabledSuggestions, colored)
  • Update documentation and examples

1.0.0 #

  • enhance log format

0.0.7 #

  • update dependency for support log long text.

0.0.3 #

  • more readable log
  • add formatter
  • update README

0.0.2 #

  • Add more configuration

0.0.1 #

  • Initial release
2
likes
0
points
558
downloads

Publisher

verified publishervenhdev.me

Weekly Downloads

A powerful Dio interceptor that converts HTTP requests to cURL commands, with modern UI for debugging, caching, filtering, and webhook integration.

Repository (GitHub)
View/report issues

Topics

#curl #dio #logging #console #monitor

License

unknown (license)

Dependencies

colored_logger, dio, flutter, flutter_secure_storage, hive, hive_flutter, path_provider, share_plus, type_caster

More

Packages that depend on dio_curl_interceptor