Release v1.0.8
feat: Update default environments to include production and enhance configuration
- Changed the default value for
environmentsin the performance tracking configuration to includeprod, ensuring production is tracked by default. - Removed the deprecated
when@dev:condition from the configuration, allowing it to apply to all environments. - Updated demo project configurations to support
APP_ENV=prod. - Added extensive test coverage for environment handling and configuration defaults.
- Updated documentation to reflect changes in default environments and migration steps for upgrading.
Changelog
Changed
- Default environments now include production - Changed default value for
environmentsconfiguration- Default changed from
['dev', 'test']to['prod', 'dev', 'test'] - Bundle now tracks performance in production by default
- This is more appropriate for a performance monitoring bundle
- Existing configurations are not affected (only applies when not explicitly configured)
- Fixes issue where production environments were not tracked by default
- Default changed from
Fixed
- Demo environments configuration - Fixed demo projects to allow
APP_ENV=prod- Updated
docker-compose.ymlin both Symfony 7 and Symfony 8 demos - Changed from hardcoded
APP_ENV=devtoAPP_ENV=${APP_ENV:-dev} - Added
APP_DEBUG=${APP_DEBUG:-0}for better environment control - Updated Makefiles to include
APP_DEBUG=1in default.envcreation - Removed
when@dev:condition fromnowo_performance.yamlin demos - Configuration now applies to all environments, not just
dev
- Updated
Added
- Comprehensive environment configuration tests - Added extensive test coverage for environment handling
- 5 tests for
PerformanceExtensionenvironment defaults and configurations - 6 tests for
Configurationenvironment defaults and edge cases - 4 tests for
PerformanceMetricsSubscriberenvironment filtering - 3 tests for
PerformanceControllerdiagnose suggestions - All tests verify the new default includes
prod - Tests cover edge cases like empty configs, single environments, and custom environments
- Updated existing tests to reflect new default values
- 5 tests for