Releases: medialize/sass.js
Releases · medialize/sass.js
0.9.0 (May 21st 2015)
NOTE: This release contains breaking changes!
- upgrading to libsass 3.2.4
- fixing worker API to avoid throwing
DataCloneErrorbecausepostMessagecan't handleErrorinstances - improving worker API to find
sass.worker.jsitself when loaded through simple<script>element - (Issue #32) - improving worker API to allow multiple parallel workers to be initialized - Breaking Change
- improving
Sass.compile()to queue multiple invocations for serialized execution rather than throwing an error - adding
sass.destroy()to terminate a worker and free its resources - adding
Sass.setWorkerUrl()to define the path of the worker before a Sass instance is created
switching version tags from v1.2.3 to 1.2.3, dropping the unnecssary v.
v0.8.2 (May 9th 2015)
- upgrading to libsass 3.2.3
- fixing build to cope with
emcc --versionnot naming a commit - (Issue #30) - fixing build to not minify distributables (very little gain, but breaks asm in Firefox) - (Issue #29)
- fixing
.compile()to wait until emscripten is ready - (Issue #29)
v0.8.1 (May 2nd 2015)
- upgrading to libsass 3.2.2
- adding
Sass.compileFile()to compile directly from file system - fixing
Sass.options('defaults', callback)to actually fire the callback - improving
Sass.compile()to accept options to temporarily set for that invocation, extending the signature toSass.compile(source, callback)Sass.compile(source, options, callback)
- improving
Sass.writeFile()to accept a map of files to write - improving
Sass.readFile()to accept an array of files to read - improving
Sass.removeFile()to accept an array of files to remove
v0.7.2 (April 30th 2015)
- fixing option
precisionso that by default Sass.js won't overwrite libsass default precision (5)
v0.7.1 (April 30th 2015)
- upgrading to compile libsass 3.2.1
v0.7.0 (April 27th 2015)
NOTE: This release contains several breaking changes!
- Upgrading build infrastructure
- compile libsass 3.2.0
- allowing builds without forced download of libsass.git every time
- providing emscripten debug mode
- improving
emscripten_wrapper.cppto usesass_context.hinstead of the deprecatedsass_interface.h - renaming files to make more sense
- improving synchronous API to perfectly mirror the worker API
- adding
.options('defaults')to reset options to sass.js defaults - adding
dist/libsass.js.mem, optimized memory file created by emscripten - adding
Sass.lazyFiles()andSass.preloadFiles() - adding
Sass.clearFiles()to wipe all files known toSass.listFiles() - adding
Sass.importer()to intercept file loading requests from libsass - adding configuration options
precision- Precision for outputting fractional numbers (0using libsass default)indentedSyntax- Treat source string as SASS (as opposed to SCSS)indent- String to be used for indentation (2 spaces)linefeed- String to be used to for line feeds (\n)sourceMapRoot- Pass-through as sourceRoot propertysourceMapFile- Path to source map file (enables generating source maps)sourceMapContents- embed include contents in mapssourceMapEmbed- embed sourceMappingUrl as data URIsourceMapOmitUrl- Disable sourceMappingUrl in CSS outputinputPath- source map generation source (stdin)outputPath- source map generation target
Breaking Changes
- synchronous API (formerly
dist/sass.jsanddist/sass.min.js) is now required to be loaded from a directory calleddistrelative todocument.URL(irrelevant for use in Node!) - synchronous API now has the exact same signature as the worker API, meaning responses are not returned, but passed to callback functions instead.
Sass.compile()used to return the compiled CSS as string, it now returns an object- distribution files renamed or removed for clarity
dist/worker.jsremoveddist/sass.worker.jsremoveddist/sass.min.jsremoveddist/sass.worker.jsrenamed todist/sass.js(public API for the browser)dist/worker.min.jsrenamed todist/sass.worker.js(emscripted libsass for the web worker)dist/sass.jsrenamed todist/sass.sync.js(emscripted libsass synchronous API)
- source files renamed for clarity
src/libsass.worker.jsrenamed tosrc/sass.worker.js(contains the worker'sonmessagehandler)src/sass.jsrenamed tosrc/sass.api.js(abstraction of libsass and emscription)src/sass.worker.jsrenamed tosrc/sass.js(public API usingpostMessageto talk to worker internally)
- example files renamed for clarity
sass.sync.htmladdedconsole.htmlrenamed tosass.source.htmlworker.htmlrenamed tosass.worker.html
v0.6.3 (March 3rd 2015)
- fixing invalid source error handling (#23)
v0.6.2 (January 22nd 2015)
- fixing
Makefile.patchfor "memory file" to work with emscripten 1.29
v0.6.1 (January 5th 2015)
- fixing
Makefile.patchto work with libsass 3.1.0 - upgrading to libsass 3.1.0
v0.6.0 (December 23rd 2014)
- adding
grunt build:libsassto make libsass.js (#15) - making absolute paths work via symlinks (#19)
- upgrading to libsass 3.0.2