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
Default stringify to true #65
Conversation
Codecov Report
@@ Coverage Diff @@
## master #65 +/- ##
===========================================
- Coverage 100.00% 97.77% -2.23%
===========================================
Files 3 3
Lines 45 45
===========================================
- Hits 45 44 -1
- Misses 0 1 +1
Continue to review full report at Codecov.
|
@jorgecoca thoughts on this change? I vaguely remember you were against this at one point. |
@zepfietje First of all, thank you for your contribution! When I discussed this feature with @felangel a while ago, my recommendation was to not to set If we introduce a change like this, we potentially risk leaking a lot of information with a "ghost change": yes, there's a new major API version, but people might apply that change blindly and cause a big security hole. Instead, if we want to control the value of I hope this makes sense 🤞 Thank you folks! |
@jorgecoca good point. I think the main thing is that during development one wants to be able to view all values of a class marked as We should be able to come up with a smart solution along the lines of your suggestions. Thanks again for your comments! 👌 |
@jorgecoca @zepfietje thoughts on having it default to true in debug mode? |
Wouldn't that assume that you are running Flutter though? How would that work with pure Dart apps/packages? IMO, I'd still prefer to have access to a delegate/config that lets you set it up with your own settings, and leave it up to the developer to make that decision. |
Fair enough 👍 |
A delegate would probably be the best solution. Then developers can check for debug mode themselves. |
@zepfietje closing this PR in favor of having an alternative solution (using a delegate or global explicit configuration). I will try to work on this this week 👍 |
Status
READY
Breaking Changes
NO
Description
Defaulting
stringify
totrue
takes away some boilerplate.Related issue: #60.
Not sure if this should be seen as a breaking change.
Todos