You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The /-as-division deprecation proposal was merged in 2019 after going through the formal process of public review. The deprecation was implemented recently in Dart Sass. Although this was just a deprecation and not a breaking change, it led to cases where developers saw their builds break due to too many deprecation warnings. Several such reports were filed here: sass/sass#2565.
The most common developer frustrations seem to be:
Surprise that /-as-division was being deprecated in the first place.
math.div() not seeming like a good replacement for /.
The inability to control deprecation warnings flooding in from upstream dependencies.
(3) is an implementation detail which we fixed, but (1) and (2) seem like they could be communication problems. Even though the Sass team solicited feedback on the proposal as it normally does, developers don't necessarily follow Sass on its public channels and only discover these proposals when their build breaks—at which point the proposals have long been discussed and merged.
We should consider adding an npm postinstall script that solicits feedback on upcoming language feature proposals. This could help widen the funnel of Sass developers who are aware of and review proposals.
The text was updated successfully, but these errors were encountered:
I have recently discovered about this because of a somewhat unrelated sass git issue I was tracking, no one reads from my team reads the main blog but we seen npm postinstalls all days (cough cough, core-js).
I got most of the way through implementing this before realizing it won't actually work: as of npm 7.x, postinstall scripts can't actually print any output to the user unless they explicitly pass a --foreground-scripts option, which we can safely assume essentially no one will pass. npm/cli#3347 indicates that this is intentional on the part of npm, so unfortunately I think this issue is infeasible.
The
/
-as-division deprecation proposal was merged in 2019 after going through the formal process of public review. The deprecation was implemented recently in Dart Sass. Although this was just a deprecation and not a breaking change, it led to cases where developers saw their builds break due to too many deprecation warnings. Several such reports were filed here: sass/sass#2565.The most common developer frustrations seem to be:
/
-as-division was being deprecated in the first place.math.div()
not seeming like a good replacement for/
.(3) is an implementation detail which we fixed, but (1) and (2) seem like they could be communication problems. Even though the Sass team solicited feedback on the proposal as it normally does, developers don't necessarily follow Sass on its public channels and only discover these proposals when their build breaks—at which point the proposals have long been discussed and merged.
We should consider adding an npm
postinstall
script that solicits feedback on upcoming language feature proposals. This could help widen the funnel of Sass developers who are aware of and review proposals.The text was updated successfully, but these errors were encountered: