Skip to content

Conversation

@Gldywn
Copy link
Owner

@Gldywn Gldywn commented Aug 14, 2025

  • fix: correct casing of useNodeDefaultCaBundle in documentation and examples
  • refactor(logging): replace enableLogging with loggerOptions for enhanced logging configuration

Description

Related Issue

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Checklist

  • I have read the CONTRIBUTING.md file.
  • I have performed a self-review of my own code.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have made corresponding changes to the documentation.
  • My changes generate no new warnings.
  • I have added tests that prove my fix is effective or that my feature works.
  • New and existing unit tests pass locally with my changes.
  • Any dependent changes have been merged and published in downstream modules.

@codecov
Copy link

codecov bot commented Aug 14, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bugbot free trial expires on August 23, 2025
Learn more in the Cursor dashboard.

@Gldywn Gldywn changed the title feat/logger v2 feat/logger-v2 Aug 14, 2025
Gldywn added 4 commits August 14, 2025 19:05
…nhanced logging configuration

- Updated the logging mechanism in `HardenedHttpsAgent` and `HardenedHttpsValidationKit` to utilize a `loggerOptions` object instead of a boolean `enableLogging` flag.
- Adjusted examples and documentation to reflect the new logging structure, allowing for more flexible logging configurations including log level and custom formatting.
- Ensured backward compatibility by updating tests and examples to use the new logging options.
…ed validation configuration

- Added a new ValidatorsOptions type to encapsulate options passed to validators, excluding loggerOptions.
- Updated the HardenedHttpsValidationKit class to utilize ValidatorsOptions for better clarity and maintainability.
- Refactored the BaseValidator class to accept ValidatorsOptions in its methods, enhancing type safety and consistency across validators.
@Gldywn Gldywn merged commit a17df19 into main Aug 14, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants