extensions 0.3.18 copy "extensions: ^0.3.18" to clipboard
extensions: ^0.3.18 copied to clipboard

A set of APIs for commonly used programming patterns and utilities, such as dependency injection, logging, and configuration.

0.3.18 #

  • Bug Fixes:

    • Fixed PhysicalFileProvider.getFileInfo() and getDirectoryContents() incorrectly handling nested directory paths by removing the first path separator anywhere in the path instead of only at the beginning
    • Fixed LoggerFactory.addProvider() throwing RangeError when adding providers after loggers were already created due to incorrect list index assignment
    • Improved _isUnderneathRoot() validation to prevent false positive matches on paths with common prefixes
    • Fixed file polling tests to account for file system timestamp granularity (1-second precision)
  • Code Quality:

    • Fixed all analyzer issues (import ordering, naming conventions, line length, unused imports/variables)
    • Renamed ArgumentOutOfRangeException.ThrowNegative() and ThrowNegativeOrZero() to follow Dart naming conventions (lowerCamelCase)
    • Improved test reliability by ensuring proper timing for file system timestamp changes
    • Disabled cascade_invocations lint rule to reduce noise in test files
  • Test Improvements:

    • Fixed and re-enabled 3 previously skipped tests
    • All 508 tests now pass with improved timing reliability
    • Added better handling for platform-specific file system behavior

0.3.17 #

  • Bug fixes and improvements.

0.3.16 #

  • Major Feature Additions:

    • Added comprehensive Caching module with in-memory and distributed cache support
    • Added HTTP Client Logging with configurable formatters and redaction
    • Added high-performance LoggerMessage API for zero-allocation logging
    • Added Typed Logger support (Logger<T>)
    • Added advanced Console Formatters (Simple, JSON, Systemd)
    • Added File System Globbing with advanced pattern matching
    • Added Diagnostics module for activity tracking and metrics
  • Caching:

    • New MemoryCache with size limits, priorities, and eviction policies
    • DistributedCache abstraction with in-memory implementation
    • Post-eviction callbacks and cache statistics
    • Sliding and absolute expiration support
    • Examples: example_caching.dart
  • Logging:

    • High-performance LoggerMessage.define API for cached log delegates
    • BufferedLogRecord for structured logging scenarios
    • NullTypedLogger<T> for testing and no-op scenarios
    • Console formatters with customizable output (simple, JSON, systemd)
    • Color support and timestamp formatting
    • Examples: example_advanced_logging.dart, example_console_formatters.dart
  • HTTP:

    • HTTP client logging with request/response tracking
    • Header redaction for sensitive data
    • Configurable handler lifetime
    • Scoped logging integration
    • Example: example_http_client_logging.dart
  • File Providers:

    • Enhanced polling change tokens with debouncing
    • Physical file provider options
    • Improved file watching reliability
    • Example: example_file_providers.dart
  • File System Globbing:

  • Diagnostics:

  • Testing:

    • Added 1000+ new test cases across all modules
    • Comprehensive test coverage for caching, logging, and primitives
  • Code Quality:

    • Fixed all analyzer warnings and errors
    • Improved type inference in examples
    • Removed unused imports and variables
  • Breaking Changes:

    • None - all additions are backward compatible

0.3.15 #

  • Changed logging scope for lifetime messages and added additional tests.

0.3.14 #

  • Updates.

0.3.13 #

  • Bug fixes.

0.3.12 #

  • Updates.

0.3.11 #

  • Exported CancellationTokenRegistration.

0.3.10 #

  • Added const constructor to NullLoggerFactory.

0.3.9 #

  • Exported NullLogger, NullLoggerFactory, and CancellationTokenSource. Changed Logger.logError to not require and exception.

0.3.8 #

  • Bug fixes and updates.

0.3.7 #

  • Bug fixes and updates.

0.3.6 #

  • Downgrading async package.

0.3.5 #

  • Bug fixes and updates.

0.3.4 #

  • Bug fixes and updates.

0.3.3 #

  • Bug fixes and updates.

0.3.2 #

  • Bug fixes and updates.

0.3.1 #

  • Bug fixes and updates.

0.3.0 #

  • Initial version
1
likes
150
points
467
downloads

Publisher

verified publisherjamiewest.dev

Weekly Downloads

A set of APIs for commonly used programming patterns and utilities, such as dependency injection, logging, and configuration.

Repository
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

async, characters, collection, cross_file, file, glob, http, path, uuid, watcher, xml

More

Packages that depend on extensions