General
variables
app-version
$app-version: '1.0.0' !default;
Description
Application version
Type
String
Used by
- [mixin]
deprecate
deprecate-mode
$deprecate-mode: 'sensible' !default;
Description
Deprecation mode
Available modes:
disabled
: output all the code, even if deprecatedsilent
: disable all warnings but don't output deprecated codeverbose
: show all warnings, even for code that is about to be deprecatedsensible
(default): output warnings when deprecated code is detectedfail
: prevent compilation when deprecated code is found
Type
String
Used by
- [mixin]
deprecate
mixins
deprecate
@mixin deprecate($version, $message) { ... }
Description
Output code only until $app-version reaches $version and signal its deprecation to developers
Parameters
parameter Name | parameter Description | parameter Type | parameter Default value |
---|---|---|---|
$version | SemVer-like version (e.g. '2.0.0') | String | — none |
$message | Reason about why the code will be deprecated or possible workaround (e.g. 'Use .new-thing instead') | String | — none |
Requires
- [variable]
app-version
- [variable]
deprecate-mode