Skip to content

v2.2.0 - Glob Pattern Matching & Test Suite

Latest

Choose a tag to compare

@alleneubank alleneubank released this 28 Aug 19:50
· 0 commits to main since this release

What's Changed

✨ Features

  • Glob Pattern Matching: Added flexible file injection using micromatch
  • Exclude Patterns: New excludePatterns option for fine-grained control
  • Performance Optimization: Default to HTML-only injection for better performance

🧪 Testing

  • Added comprehensive Playwright test suite with 50+ tests
  • Multi-browser testing support (Chrome, Firefox, Safari)
  • Server output validation tests

📚 Documentation

  • Enhanced README with pattern matching examples
  • Added web extension configuration guide
  • Web Workers and Service Workers examples

⚠️ Breaking Changes

  • Default injectPatterns changed from undefined to ["**/*.html"]
  • To inject into JS/TS files, explicitly configure injectPatterns

Migration Guide

If you were relying on undefined injectPatterns to disable injection, update your config:

// Before
consoleForwardPlugin({
  injectPatterns: undefined // or not specified
})

// After  
consoleForwardPlugin({
  injectPatterns: [] // explicitly disable
})

For JS/TS file injection:

consoleForwardPlugin({
  injectPatterns: ["**/*.{js,jsx,ts,tsx,html}"]
})

Dependencies

  • Added micromatch for glob pattern matching

Full Changelog: v2.0.2...v2.2.0