Releases: oddbird/true
Releases · oddbird/true
Dependency Changes
v4.0.0 (04/09/18)
- BREAKING: Move
node-sass
topeerDependencies
- Update dependencies
- Add JS coverage reporting
Feature: `contains()` mixin for output comparisons
- NEW: Add
contains()
mixin for more minute output comparisons.
Works the same asexpect()
, but doesn't require a complete match. - Update docs
Dependency Update
v3.0.2 v3.0.2 - Minor dependency update
True 3.0!
(copied from 3-beta release notes…)
- Added
describe
andit
mixins,
as alias fortest-module
andtest
respectively. - Added
$inspect
argument toassert-equal
andassert-unequal
mixins,
for comparinginspect($assert) == inspect($expected)
instead of$assert == $expected
.
This helps with several of the equality edge-cases listed below
(rounding and units). - BREAKING: No more Ruby gem or Ruby CLI
- BREAKING: No more bower package
- BREAKING: Removes special-handling of equality,
in favor of allowing Sass to determine the best comparisons.
There are a few edge-cases to be aware of:- In some versions of Sass,
manipulated numbers and colors are compared without rounding,
so1/3 != 0.333333
andlighten(#246, 15%) != #356a9f
.
Use the$inspect
argument to compare rounded output values. - In all versions of Sass,
unitless numbers are considered comparable to all units,
so1 == 1x
wherex
represents any unit.
Use the$inspect
argument to compare output values with units. - Lists compare both values and delimiter,
so(one two three) != (one, two, three)
.
This can be particularly confusing for single-item lists,
which still have a delimiter assigned,
even though it is not used.
- In some versions of Sass,
v3.0.0-beta.1
- Added
describe
andit
mixins,
as alias fortest-module
andtest
respectively. - Added
$inspect
argument toassert-equal
andassert-unequal
mixins,
for comparinginspect($assert) == inspect($expected)
instead of$assert == $expected
.
This helps with several of the equality edge-cases listed below
(rounding and units). - BREAKING: No more Ruby gem or Ruby CLI
- BREAKING: No more bower package
- BREAKING: Removes special-handling of equality,
in favor of allowing Sass to determine the best comparisons.
There are a few edge-cases to be aware of:- In some versions of Sass,
manipulated numbers and colors are compared without rounding,
so1/3 != 0.333333
andlighten(#246, 15%) != #356a9f
.
Use the$inspect
argument to compare rounded output values. - In all versions of Sass,
unitless numbers are considered comparable to all units,
so1 == 1x
wherex
represents any unit.
Use the$inspect
argument to compare output values with units. - Lists compare both values and delimiter,
so(one two three) != (one, two, three)
.
This can be particularly confusing for single-item lists,
which still have a delimiter assigned,
even though it is not used.
- In some versions of Sass,
2.2.2
Version 2.2.2
Bug fixes & dependency updates
2.1.4 Bump version 2.1.4