sass-deprecate
Advanced tools
Comparing version 1.0.3 to 1.1.0
{ | ||
"name": "sass-deprecate", | ||
"version": "1.0.3", | ||
"description": "Sass Deprecate", | ||
"version": "1.1.0", | ||
"description": "Sass Deprecate: deprecate with confidence", | ||
"keywords": [ | ||
"sass", | ||
"eyeglass-module" | ||
], | ||
"license": "SEE LICENSE IN README.md", | ||
@@ -20,2 +24,3 @@ "repository": { | ||
], | ||
"main": "index.scss", | ||
"ignore": [ | ||
@@ -27,2 +32,7 @@ "test", | ||
], | ||
"eyeglass": { | ||
"needs": "^0.8.2", | ||
"sassDir": "./index.scss", | ||
"exports": false | ||
}, | ||
"devDependencies": { | ||
@@ -29,0 +39,0 @@ "node-sass": "^3.4.2", |
@@ -1,2 +0,2 @@ | ||
# Deprecate with confidence [![Build Status](https://travis-ci.com/salesforce-ux/sass-deprecate.svg?token=1gDsJEsp8ELpc6yY2BCC&branch=master)](https://travis-ci.com/salesforce-ux/sass-deprecate) | ||
# Deprecate with confidence [![Build Status](https://travis-ci.org/salesforce-ux/sass-deprecate.svg?branch=master)](https://travis-ci.org/salesforce-ux/sass-deprecate) | ||
@@ -70,2 +70,22 @@ `deprecate()` is a Sass mixin that helps managing code deprecation. | ||
## Advanced Semantic Versioning Support | ||
Need to compare version numbers such as `3.2.1-beta.5` and `1.2.3-alpha.2`? | ||
By default, sass-deprecate only compares `$version` with `$app-version` in the form of `Major.Minor.Patch` (e.g. `1.2.3` with `2.0.0`). | ||
For advanced SemVer support in the form of `Major.Minor.Patch-beta/alpha/rc.1`, define a `deprecate-version-greater-than($v1, $v2)` function, or rely on Hugo's [sass-semver](https://raw.githubusercontent.com/HugoGiraudel/sass-semver): | ||
```scss | ||
// Override the default SemVer resolution engine | ||
// with sass-semver: https://github.com/HugoGiraudel/sass-semver | ||
@import 'node_modules/sass-semver/index'; | ||
@function deprecate-version-greater-than($version, $app-version) { | ||
@return gt($v1: $version, $v2: $app-version); | ||
} | ||
@import 'path-to/sass-deprecate/index'; | ||
``` | ||
## Running tests | ||
@@ -72,0 +92,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11095
116