From 93b8d83eceedb63f7f7db8c20e16c0fc3b4e7f6a Mon Sep 17 00:00:00 2001 From: "alexander.akait" Date: Mon, 19 Aug 2024 16:09:46 +0300 Subject: [PATCH] docs: fix version --- CHANGELOG.md | 43 +++++++++++++++++++++++++++++++++++++++++++ package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 46 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2b8f87d8..f9588e6a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,49 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +## [16.0.0](https://github.com/webpack-contrib/sass-loader/compare/v15.0.0...v16.0.0) (2024-07-26) + + +### ⚠ BREAKING CHANGES + +* use modern Sass JS API by default for `sass` and `sass-embedded` + +> [!WARNING] +> +> The sass options are different for the `legacy` (before) and `modern` APIs. Please look at [docs](https://sass-lang.com/documentation/js-api) how to migrate to the modern options. +> Legacy options - https://sass-lang.com/documentation/js-api/interfaces/legacystringoptions/ +> Modern options - https://sass-lang.com/documentation/js-api/interfaces/options/ + +To return to the previous logic use: + +```js +module.exports = { + module: { + rules: [ + { + test: /\.s[ac]ss$/i, + use: [ + "style-loader", + "css-loader", + { + loader: "sass-loader", + options: { + api: "legacy", + // Your options + }, + }, + ], + }, + ], + }, +}; +``` + +### Features + +* use modern Sass JS API by default for `sass` and `sass-embedded` ([10be1ba](https://github.com/webpack-contrib/sass-loader/commit/10be1ba161557638fd3b80f4a5467159179ef9b1)) + + ## [15.0.0](https://github.com/webpack-contrib/sass-loader/compare/v14.2.1...v15.0.0) (2024-07-23) diff --git a/package-lock.json b/package-lock.json index 083260be..a46a3ca0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "sass-loader", - "version": "15.0.0", + "version": "16.0.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "sass-loader", - "version": "15.0.0", + "version": "16.0.0", "license": "MIT", "dependencies": { "neo-async": "^2.6.2" diff --git a/package.json b/package.json index 81b4d09b..e94f7065 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "sass-loader", - "version": "15.0.0", + "version": "16.0.0", "description": "Sass loader for webpack", "license": "MIT", "repository": "webpack-contrib/sass-loader",