Skip to content

Releases: rstudio/sass

sass 0.4.9

15 Mar 23:11
6f8f3e4
Compare
Choose a tag to compare
  • Closed #138: font_google(local = TRUE) now uses woff2 (instead of woff) for a font file type. (#139)

sass 0.4.8

06 Dec 15:28
2e934ae
Compare
Choose a tag to compare
  • Closed #132: Fix R CMD check warning re error() format strings (for r-devel). (#133)

sass 0.4.7

26 Jul 21:22
Compare
Choose a tag to compare
  • Closed #129: Fixed a compilation warning on latest Apple Clang (15). (#130)
  • Closed #125: Installation now (correctly) requires {fs} >= 1.2.4.

sass 0.4.6

04 May 17:14
feeb896
Compare
Choose a tag to compare

Close #127: Removed a compilation warning on Windows w/ gcc-12. (#128)

sass 0.4.5

24 Jan 14:52
Compare
Choose a tag to compare

Improvements

  • Close #122: Upgrade LibSass dependency from v3.6.4 to v3.6.5. (#123)

sass 0.4.4

11 Jan 23:03
Compare
Choose a tag to compare

Improvements

  • Close #116: Remove hard-coded lstdc++ flag from Makevars. (#118)

sass 0.4.3

21 Nov 15:27
Compare
Choose a tag to compare

Improvements

  • Close #113: Get rid of C++ warning during package installation about sprintf() being deprecated

sass 0.4.2

16 Jul 14:13
6b87213
Compare
Choose a tag to compare

Bug fixes

  • sass() no longer encounters a false positive cache hit when sass_file() is used inside a sass_bundle(). (#107, #108)
  • font_google() no longer produces a directory name with a _ prefix (which was causing the directory to be ignored when deployed to GitHub Pages). (#105, #106)

sass 0.4.1

06 Apr 17:29
Compare
Choose a tag to compare

Improvements

  • Several speed improvements for sass() and as_sass_layer(), particularly when sass(write_attachments = TRUE) encounters a cache hit. (#98)
  • Removed compilation warnings with gcc-12. (#100)
  • Removed linking errors that occur when custom C++ flags are used to compile
    (#94, #104).

sass 0.4.0

12 May 16:44
Compare
Choose a tag to compare

Possibly breaking changes

  • sass_layer()'s argument order has changed to better accommodate for the addition of new functions and mixins arguments as well as deprecation of the declarations argument. This change reflects an update in our understanding of Sass best practice of placing function definitions before variables, so that variable definitions may leverage functions. (#80)

  • sass() and as_sass() now always attach htmlDependency()(s) (found inside of their input argument) as an attribute on their return value. This mainly in support the new font importing feature (which relies on sass()/as_sass() being able to return htmlDependency()s), but this could be more generally useful for attaching HTML dependencies to Sass/CSS code. (#74)

New features

  • Added new font importing helpers, namely font_google(), font_link(), font_face(), and font_collection() for intelligently importing web fonts files. They must be used inside a named list, for example: list("font-variable" = font_google("Pacifico")). See help(font_face, package = "sass") for more details and examples. (#74)

  • A new sass_layer_file() function was added to read in a .scss file as a sass_layer(). Special comments of the form /*-- scss:(functions|defaults|rules|mixins) --*/ can be used to place certain sections of the file into functions, defaults, rules, and mixins. The primary motivation for this is to allow quarto's theme file format to also be used Shiny and R Markdown. (#81)

  • Closed #87: Added new sass_options_get() and sass_options_set() for setting and reading sass_options() globally (sass()'s options argument now defaults to sass_options_get() instead of sass_options()). In addition, when shiny::devmode() is enabled, Sass source maps are included by default. (#88)

  • output_template() gains a path argument to change the root directory where output file will be written. (#76)

Bug fixes

  • Closed #84: Fixed an issue with sass_file() being cached even if the contents of the file had changed (this regression was introduced by the 0.3.0 release). (#85)