-
2.0.1
:- Fix incorrect calculation of power 0
- Fix incorrect hexadecimal to base 10 conversion
-
2.0.0
:- No more distinction between public and private APIs. The public API (
to-*
functions) remains unchanged, but the private one (_sc-to-*
functions) has been removed. - A strict mode toggle has been added (
$sc-strict-mode
): SassyCast will throw when not able to convert to color / number, or return a default value with a warning in non-strict mode. - Default value for color casting in non-strict mode is now
transparent
, notnull
, to make conversion always return the expected type. - Default value for color casting in non-strict mode can be configured through
$sc-non-strict-default-color
variable. - Default value for number casting in non-strict mode can be configured through
$sc-non-strict-default-number
variable. $keep
parameter forto-list(..)
does not exist anymore.to-number(..)
now correctly cast stringified numbers with unitsdeg
,rad
,grad
,turn
,s
,ms
,dpi
,dpcm
,dppx
,Hz
andkHz
.- Code quality has been dramatically improved.
- No more distinction between public and private APIs. The public API (
-
1.1.1
: improved things here and there and added SassDoc compliant comments -
1.1.0
: dissociated error checking from function logic, and fixed some minor things -
1.0.0
:to-list
improvements, stable API -
0.0.1
: initial commit
This repository has been archived by the owner on Mar 5, 2021. It is now read-only.