One difference is that Sass Fairy’s
string.replace() function does not accept regular expressions. CSS even doesn’t have regular expressions, but I’m gonna sure try to add them.
Other current deficiencies in Sass Fairy are hacky solutions. Take for instance the
@if meta.type-of($string) != 'string'
@error exception.parameter-type('is-quoted', 'string', $string, 'string')
@return meta.inspect($string) != $string
meta.inspect() is hardly intuitive or in spec.
What is actually changing
Migrating from v1
Version 2 is still under heavy development and is not yet ready for use in production.
Simply update your Sass compiler to include them:
Expect the Sass Fairy API to have changed between v1 and v2. Primarily these changes are going to be new features and expansions to the API of v1.