For versions above 4.1.0, please refer to "Releases" in GitHub UI.
- Update package.json's main field (#73).
-
Add resolver option (ability to override how json file paths gets resolved) (#71).
BBREAKING CHANGE:
The importer is now a function, accepting an options object, instead of an object:
jsonImporter -> jsonImporter()
- Remove support for one element lists.
3.3.0
broke parsing of empty lists (#67).
-
Add support for one element lists.
Comma-separated lists may have a trailing comma. This is especially useful because it allows you to represent a single-element list. For example, (1,) is a list containing 1 and (1 2 3,) is a comma-separated list containing a space-separated list containing 1, 2, and 3.
https://sass-lang.com/documentation/file.SASS_REFERENCE.html#lists
- Allow importing JSON as a top-level array.
- Filter out
#
as value for a variable
- Reverts
3.1.4
. We aren't able to find a way to support automatic handling of values containing,
that isn't full of edge cases. The recommendation remains to wrap such values in single quotes if they're meant to be interpreted as strings.
- Convert values containing commas inside of an object into strings
- Extend key filtering to nested maps
- Filter out invalid variable names to prevent Sass compiler from crashing
- Return empty strings correctly to prevent Sass compiler from crashing
- Add support for
.json5
files
- Fix
includePaths
option for Windows users by using the environment's delimiter instead of harcoding unix's.
- Update
node-sass
dependency versions from^3.5.3
to>=3.5.3
to allow using 4.x and above without triggering npm warnings. - Add
yarn.lock
.
- If parsing errors out, catch and return a well formed
Error
as pernode-sass
best-practices for importers (see "Starting from v3.0.0:" section).
- Fix 2.1.0 breaking the default export for CommonJS.
- Export internal methods that compose the importer. E.g.
transformJSONtoSass
can now be used independently ofnode-sass
to transform parsed JSON into Sass.
- Add
node-sass
^3.5.3
as apeerDependency
.
- Return plain
null
instead ofsass.NULL
when not handling an import per updated guidelines. sass/node-sass#1291
- Invalidate
require
cache on each importer run.
- Return
sass.NULL
when not handling an import pernode-sass
guidelines.
- Revert attempting to wrap strings with spaces/commas (wrap strings in extra quotes instead).
- Fix importing strings with spaces/commas breaking. Reverted in 1.0.4
- Fix
includePaths
not working with multiple entries.