Repository navigation
What's Changed
✨ Features
- Glob Pattern Matching: Added flexible file injection using micromatch
- Exclude Patterns: New
excludePatternsoption 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
injectPatternschanged fromundefinedto["**/*.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
micromatchfor glob pattern matching
Full Changelog: v2.0.2...v2.2.0