-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat!: DeleteAll match pattern and v5 adjustments #174
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #174 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 6 6
Lines 251 265 +14
Branches 43 48 +5
=========================================
+ Hits 251 265 +14 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just double checking - if the dev just calls deleteAll(()
it will fail right? (based on the regex) and they have to add *
to match if they want to delete everything.
nvm - I see that the test is there where |
yes felt this too, now the issue is that we already exposed Edit: Another alternative without requiring a breaking change would be |
Let's put it up for discussion. Seeing that this is a "dangerous" function to use (with no going back), perhaps we need a guard rail in there imo, and it warrants a breaking change. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm!
Description
MAJOR: This will go in v5
Add support for a match pattern for deleting a selected set of keys.
Breaking changes:
match
optionRelated Issue
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist: