Skip to content

Conversation

@satazor
Copy link
Contributor

@satazor satazor commented Dec 1, 2024

This pull-request adds support for similar behavior for * and ** of glob patterns. This is a breaking change since previously * meant to match anything afterwards.

Besides being more intuitive for developers, glob matching allows for a common use-case of whitelisting properties of a given key, regardless of their depth. For example **.error.code will whitelist error.code at any tree level. Previously, we would had to repeat both **.error.code and error.code to have the same behavior, or to use *error.code which will also whitelist anything that isn't named error exactly.

Also revamped README and tests.

@satazor satazor force-pushed the feature/support-glob-alike branch 5 times, most recently from 1d4f404 to 4a1d98d Compare December 1, 2024 21:58
@satazor satazor force-pushed the feature/support-glob-alike branch 2 times, most recently from 3cb9783 to 8777b24 Compare December 2, 2024 11:54
boliveira
boliveira previously approved these changes Dec 2, 2024
@satazor satazor force-pushed the feature/support-glob-alike branch 3 times, most recently from db89d46 to 6fc8e71 Compare December 3, 2024 02:39
@satazor satazor changed the base branch from master to enhancement/improve-performance December 3, 2024 02:40
@satazor satazor force-pushed the enhancement/improve-performance branch from f0fd7c9 to 973a8b6 Compare December 4, 2024 09:09
Base automatically changed from enhancement/improve-performance to master December 4, 2024 16:00
@satazor satazor force-pushed the feature/support-glob-alike branch from 6fc8e71 to 16d3191 Compare December 4, 2024 17:37
@boliveira boliveira merged commit 9816e2c into master Dec 4, 2024
2 checks passed
@boliveira boliveira deleted the feature/support-glob-alike branch December 4, 2024 18:16
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.

3 participants