Skip to content

Releases: twbs/rfs

v10.0.0

23 Mar 06:01
Compare
Choose a tag to compare

What's Changed

  • BREAKING Node.js >= 12 is required
  • Fix postcss 8.x compatibility in #435
  • Dependency updates
  • CI updates
  • Lint fixes

Full Changelog: v9.0.6...v10.0.0

v9.0.6

07 Sep 18:39
Compare
Choose a tag to compare
  • Use the exponentiation operator
  • Update devDependencies

v9.0.5...v9.0.6

v8.1.0

07 Sep 18:19
Compare
Choose a tag to compare
  • Backport #398 (#421): New divide() function to prevent Sass deprecation warnings
  • Add Dart Sass tests
  • Update devDependencies
  • Switch to GitHub Actions CI

v8.0.4...v8.1.0

v9.0.5

26 Jul 13:25
Compare
Choose a tag to compare
  • Support less v4
  • Run examples on CI too

v9.0.4

22 Jun 05:52
Compare
Choose a tag to compare
  • Multiplication fix (#371)
  • New divide() function to prevent Sass deprecation warnings (#398)

Switch to min function

22 Jun 18:12
Compare
Choose a tag to compare
Pre-release

See #110

Released as alpha version since browser support ain't that great at this moment. Branch is not merged in main yet, docs are available here: https://github.com/twbs/rfs/tree/min-function

v9.0.3

14 Apr 11:54
Compare
Choose a tag to compare
  • Two dimensional fix - #225
  • fix npm vulnerabilities

Dart Sass compatibility patch

23 Oct 08:28
Compare
Choose a tag to compare

d073bc9#diff-ab9ae3f4626ffc1851a825ba738ae7ba broke Dart Sass compatibility. The bug is patched & a test is written to prevent issues in the future.

Thanks @seth100 for reporting this issue in #176.

Dev dependency updates & copy fixes

21 Oct 13:57
Compare
Choose a tag to compare
  • Copy fixes in the readme, .sass and .js files.
  • Dev dependency updates
  • Dependabot configuration
  • Github action tweaks.

Support for all properties

28 Aug 16:17
Compare
Choose a tag to compare

Features

  • Support for all properties
  • Shorthand mixins for margins and paddings
  • Support for custom properties

Changes

  • Clearer way to declare !important rules: @include rfs(1rem !important) instead of @include rfs(1rem, true)
  • Switched to mobile first approach, still possible to switch to the max-width media queries if needed
  • px-values should always have a unit now. In v8, RFS assumed every unitless value was set in px (eg. @include rfs(32)), but since we can now pass numbers too (eg. @include rfs(1 1 30rem, flex), this behaviour is changed.
  • Configuration variables are changed:
    • Base font size → Base value
    • Font size unit → unit

PostCSS implementation change

  • responsive-font-size property changed to rfs() function (see #116)

Drops

  • Dropped responsive-font-size mixins
  • Dropped Less 2 support since we had to work with lists
  • Dropped node 6 support

Meta

  • Prevent generation of /test/expected/main.css
  • Additional tests for new implementations
  • Cleanup npm scripts examples
  • postcss-value-parser dependency added to parse values in PostCSS plugin.
  • Ditch Husky since we already run the tests in each PR
  • Switch from CircleCI to Github actions
  • Add Node 12 tests
  • dev-dependency updates

Demos