-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for new Sass module system, drop support for deprecated v…
…ersions of Sass (#144) Co-authored-by: Kaelig Deloumeau-Prigent <kaelig@users.noreply.github.com>
- Loading branch information
Showing
41 changed files
with
5,889 additions
and
5,519 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"trailingComma": "all", | ||
"tabWidth": 2, | ||
"semi": true, | ||
"singleQuote": true, | ||
"arrowParens": "always" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,9 @@ | ||
language: node_js | ||
node_js: | ||
- "8" | ||
- "9" | ||
- "10" | ||
- "11" | ||
before_install: | ||
- rvm install 2.2.2 | ||
- npm i npx | ||
- '12' | ||
- '13' | ||
- '14' | ||
before_script: | ||
- gem install sass | ||
- npm install | ||
script: | ||
- npm test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Change Log | ||
|
||
All notable changes to this project will be documented in this file. | ||
|
||
The format is based on [Keep a Changelog](http://keepachangelog.com/) | ||
and this project adheres to [Semantic Versioning](http://semver.org/). | ||
|
||
## Unreleased | ||
|
||
This is a major version bump that contains breaking changes. It adds support for the [new Sass module system](https://sass-lang.com/blog/the-module-system-is-launched) and dropping support for deprecated versions of Sass. No new features were added. | ||
|
||
### Added | ||
|
||
- Support for dart-sass@1.35.1 | ||
- Test suite using [Jest](https://jestjs.io/) and [True](https://www.oddbird.net/true/), a unit-testing framework designed specifically for the Sass language | ||
|
||
### Removed | ||
|
||
- Dropped tests for Sass engines other than dart-sass | ||
- Dropped deprecated var `$mq-base-font-size` (https://github.com/sass-mq/sass-mq/pull/123) | ||
- Dropped compatibility with browsers that don’t support media queries: | ||
- Removed `$mq-responsive` | ||
- Removed `$mq-static-breakpoint` | ||
|
||
### Changed | ||
|
||
- Divisions are now performed with `sass:math.div(...)` instead of `/` | ||
- `get-breakpoint-width`: added `@return null` when no breakpoint could be found (a function must always return something, or Sass will throw an error). | ||
- Updated all `map-*` global functions in favor of the built-in module `map.*` (for example: `map-keys()` ➡️ `map.keys()`). | ||
- `px2em`: removed param `$base-font-size` (deprecated in v5.0.1), and use 16px instead. | ||
- Removed usage of `unit()` in favor of [`math.compatible()`](https://sass-lang.com/documentation/modules/math#compatible), as the `unit()` function is intended for debugging, and its output format is not guaranteed to be consistent across Sass versions or implementations. | ||
- Updated all other global Sass functions to use their module equivalents (for example: `map-merge` ➡️ `map.merge`, `append` ➡️ `list.append`) | ||
|
||
### Fixed | ||
|
||
## Changes prior to v6.0.0 | ||
|
||
Changes prior to v6.0.0 were logged in https://github.com/sass-mq/sass-mq/releases |
Oops, something went wrong.