-
-
Notifications
You must be signed in to change notification settings - Fork 91
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(valid-params
): add exclude
option
#515
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #515 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 25 26 +1
Lines 649 722 +73
Branches 250 280 +30
=========================================
+ Hits 649 722 +73 ☔ View full report in Codecov by Sentry. |
96a66f9
to
9bc56ea
Compare
65b1716
to
8f17361
Compare
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.
Code looks good to me
I am not sure of:
- if we want to support off spec uses of promises
- how needed this is anymore
Both bluebird
and other promise librarys are deprecating themselves eg:
https://github.com/petkaantonov/bluebird#%EF%B8%8Fnote%EF%B8%8F
https://github.com/kriskowal/q#note
The counter argument (and the reason I approve of this change) is that this is entirely opt-in and fairly simple
8f17361
to
6586ac4
Compare
6586ac4
to
1e13edc
Compare
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!
What is the purpose of this pull request?
What changes did you make? (Give an overview)
Adds an
exclude
option tovalid-params
. Allows use of non-standard methods, e.g., Bluebirdcatch
.Also refactors a few instances of array join into ES6 templates
Fixes #127