Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

v3.5.1

Compare
Choose a tag to compare
@xzyfer xzyfer released this 20 Apr 13:44
· 506 commits to master since this release

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 running npm install.
    Run npm 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 running npm install.
Run npm 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

Fixes

Misc

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