Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sass-loader

Package Overview
Dependencies
Maintainers
3
Versions
108
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sass-loader - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

6

CHANGELOG.md
Changelog
---------
### 2.0.1
- Add missing path normalization (fixes [#141](https://github.com/jtangelder/sass-loader/pull/141))
### 2.0.0
- **Breaking:** Refactor [import resolving algorithm](https://github.com/jtangelder/sass-loader/blob/089c52dc9bd02ec67fb5c65c2c226f43710f231c/index.js#L293-L348). The new algorithm is aligned to libsass' way of resolving files. This yields to different results if two files with the same path and filename but with different extensions are present. Though this change should be no problem for most users, we must flag it as breaking change. [#135](https://github.com/jtangelder/sass-loader/issues/135) [#138](https://github.com/jtangelder/sass-loader/issues/138)
- **Breaking:** Refactor [import resolving algorithm](https://github.com/jtangelder/sass-loader/blob/089c52dc9bd02ec67fb5c65c2c226f43710f231c/index.js#L293-L348). The new algorithm is aligned to libsass' way of resolving files. This yields to different results if two files with the same path and filename but with different extensions are present. Though this change should be no problem for most users, we must flag it as breaking change. [#135](https://github.com/jtangelder/sass-loader/issues/135) [#138](https://github.com/jtangelder/sass-loader/issues/138)
- Add temporary fix for stuck processes (see [sass/node-sass#857](https://github.com/sass/node-sass/issues/857)) [#100](https://github.com/jtangelder/sass-loader/issues/100) [#119](https://github.com/jtangelder/sass-loader/issues/119) [#132](https://github.com/jtangelder/sass-loader/pull/132)

@@ -8,0 +12,0 @@ - Fix path resolving on Windows [#108](https://github.com/jtangelder/sass-loader/issues/108)

8

index.js

@@ -84,2 +84,4 @@ 'use strict';

// node-sass returns UNIX-style paths
fileContext = path.normalize(fileContext);
request = utils.urlToRequest(url, opt.root);

@@ -95,2 +97,4 @@ dirContext = fileToDirContext(fileContext);

// node-sass returns UNIX-style paths
fileContext = path.normalize(fileContext);
request = utils.urlToRequest(url, opt.root);

@@ -127,3 +131,3 @@ dirContext = fileToDirContext(fileContext);

// in handy when an error occurs. In this case, we don't get stats.includedFiles from node-sass.
self.dependency(resolvedFilename);
addNormalizedDependency(resolvedFilename);
// By removing the CSS file extension, we trigger node-sass to include the CSS file instead of just linking it.

@@ -166,3 +170,3 @@ resolvedFilename = resolvedFilename.replace(matchCss, '');

// in handy when an error occurs. In this case, we don't get stats.includedFiles from node-sass.
self.dependency(resolvedFilename);
addNormalizedDependency(resolvedFilename);
// By removing the CSS file extension, we trigger node-sass to include the CSS file instead of just linking it.

@@ -169,0 +173,0 @@ resolvedFilename = resolvedFilename.replace(matchCss, '');

{
"name": "sass-loader",
"version": "2.0.0",
"version": "2.0.1",
"description": "Sass loader for webpack",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc