Skip to content
This repository has been archived by the owner on Sep 13, 2024. It is now read-only.

Add deprecation warnings #891

Merged
merged 2 commits into from
May 20, 2016
Merged

Add deprecation warnings #891

merged 2 commits into from
May 20, 2016

Commits on May 20, 2016

  1. Add deprecate mixins

    This borrows heavily from how we deprecate features in Neat using Sass @warn:
    thoughtbot/neat@5c337cc
    
    One key difference from Neat is that we only want to use this mixin for
    deprecations, not all warnings. The reason is because with CSS, it's not always
    a straightforward task to upgrade libraries or frameworks; particularly major
    releases. So we offer a toggle to globally disable deprecation warnings, but for
    other meaningful warnings we need to throw, we still output those.
    
    To deprecate a feature, you include the `_bourbon-deprecate` mixin to throw a
    Sass warning, providing a detailed message that gives context.
    
    We offer a variable to allow people to disable deprecation warnings from being
    output.
    
    One problem with this system is that we cannot use these deprecation mixins to
    deprecate a function. This is because Sass doesn't allow you to include a mixin
    in a function. For now, since we only have a few functions up for deprecation,
    we can live with this and manually write warnings for those.
    Tyson Gach committed May 20, 2016
    Configuration menu
    Copy the full SHA
    094480b View commit details
    Browse the repository at this point in the history
  2. Add deprecation warnings

    Add deprecation warnings for features that will be removed or changed in 5.0.0.
    
    For more information on why most of these features are being removed, see:
    #702
    tysongach authored and Tyson Gach committed May 20, 2016
    Configuration menu
    Copy the full SHA
    fc9d1ee View commit details
    Browse the repository at this point in the history