-
Notifications
You must be signed in to change notification settings - Fork 54
Upgrade libsass to 3.5.0.beta1 #184
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
Conversation
|
||
def __new__(cls, items, separator): | ||
def __new__(cls, items, separator, bracketed): |
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.
It would be better if the added parameter has a default value for backward compatibility. 🤔
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.
yeah I considered that as well but wasn't really sure what to put. Both values seem equally wrong to me (though False
was the only possible value before today).
On the other hand, it's super unlikely that consumers are even using this feature. At least internally we're only using sass functions to return strings and don't come close to dealing with maps or lists.
I guess I could change this to bracketed=False
?
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.
If you meant giving any default value (True
or False
) is inappropriate, how about making this parameter to be False
by default, but warn (i.e. DeprecationWarning
) when it's not explicit?
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.
I just set it False
by default. After a good night's sleep I figured this is a fine default since that used to be the only way.
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.
👍
Yay new beta!
Upstream has an abi breaking change which translates to a breaking change for us (
SassList
now has an additional required parameter)