v3.5.1
Deprecation
A previously undocumented process.sass
has been deprecated (#1427). It will be removed in a future release. Access this API will produce a deprecation warning in the console.
LibSass 3.3.5
This release includes the recent massive Delorean release as well as couple follow up bug fix release. We delayed this release until LibSass had fixed some issue that cropped in Delorean.
Check the changelogs for more information
Improved installation errors
"The
libsass
binding was not found.”
Say goodbye to this infamous error. The root cause is unavoidable but we can do a better job and helping you fix it without filing an issue. Thanks to @xzyfer you'll now encounter something a bit more friendly!
Node Sass does not yet support your current environment: OS X 64-bit with Node.js 4.x
For more information on which environments are supported please see:
http://....Node Sass could not find a binding for your current environment: OS X 64-bit with Node.js 4.x
Found bindings for the following environments:
- OS X 64-bit with io.js 3.x
- OS X 64-bit with Node.js 5.x
This usually happens because your environment has changed since runningnpm install
.
Runnpm rebuild node-sass
to build the binding for your current environment.Node Sass could not find a binding for your current environment: OS X 64-bit with Node.js 4.x
This usually happens because your environment has changed since runningnpm install
.
Runnpm rebuild node-sass
to build the binding for your current environment.
Custom functions
Thanks to @eoneill custom functions now have access to current render context via this
.
The benefit of this is that custom functions can persist data (be stateful), for the lifespan of the render
. For example this is now possible:
{
...,
functions: {
"register-foo($foo)": function($foo) {
this.myNamespace.$foo = $foo;
...
},
"get-foo()": function() {
return this.myNamespace.$foo;
}
}
}
Features
- CLI example added to README (@incompl, #1368)
- CLI documentation updated (@qm3ster, #1363)
- CLI
--help
text has updated and improved (@glassdimly, #1177) - Improved support for
npm pack
(@gkatsev, #1183) - Custom importer documentation updated (@xzyfer, #1424)
Fixes
- Custom importers weren't always being fired (@xzyfer, #1416)
- NetBSD failing due to node-gyp (@xzyfer, #1386)
- Thanks to @saper for tracking down the root cause
Misc
- Updated some dependencies (@delitescere, #1413)
- Replaced deprecated
npmconf
dependency (@delitescere, #1413) - Added
bugs
url to package.json (@keithamus, #1367)
Thanks!
As always the Node Sass would love to give a huge "thank you!" to all the contributors that made this release possible! We couldn't do it without you. ❤️ ❤️ ❤️
Support Environments
OS | Node |
---|---|
Windows x86 & x64 | 0.10, 0.12, 1, 2, 3, 4, 5 |
OSX x64 | 0.10, 0.12, 1, 2, 3, 4, 5 |
Linux x86 & x64 | 0.10, 0.12, 1, 2, 3, 4, 5 |
FreeBSD x86 & x64 | 0.10, 0.12, 1, 2, 3, 4, 5 |
*Linux support refers to Ubuntu, Debian, and CentOS 5