CORS: You can now use regular expressions as options for the origin, allowing for more flexible matching of allowed origins. This enhances the configuration options for developers.
CORS: The middleware now supports an array of matching conditions for the origin, making it easier to specify multiple allowed origins in a single configuration.
Improvements
CORS: The performance of origin matching improves as we now use RegExp#test instead of String#match, resulting in faster checks for allowed origins.
CORS: We have added unit tests for the new RegExp functionality, ensuring that the feature works correctly and reliably.
Fixes
Fix issue #42: The code now passes all tests again after a switch to ESLint and a cleanup of the codebase, ensuring better code quality and maintainability.
Others
Clean up the codebase by respecting two-spaces indentation, improving readability and consistency across the project.
Switch to ESLint for better code quality and consistency, enhancing the overall development experience.