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

less-loader

Package Overview
Dependencies
Maintainers
8
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

less-loader - npm Package Compare versions

Comparing version 8.1.0 to 8.1.1

7

CHANGELOG.md

@@ -5,2 +5,9 @@ # Changelog

### [8.1.1](https://github.com/webpack-contrib/less-loader/compare/v8.1.0...v8.1.1) (2021-04-15)
### Bug Fixes
* deprecation warning ([#415](https://github.com/webpack-contrib/less-loader/issues/415)) ([87a4f25](https://github.com/webpack-contrib/less-loader/commit/87a4f25e2c8343ae2c75486749e57c2d10b1490d))
## [8.1.0](https://github.com/webpack-contrib/less-loader/compare/v8.0.0...v8.1.0) (2021-04-09)

@@ -7,0 +14,0 @@

10

dist/index.js

@@ -23,3 +23,6 @@ "use strict";

const callback = this.async();
const lessOptions = (0, _utils.getLessOptions)(this, options);
const webpackContextSymbol = Symbol("loaderContext");
const lessOptions = (0, _utils.getLessOptions)(this, { ...options,
webpackContextSymbol
});
const useSourceMap = typeof options.sourceMap === "boolean" ? options.sourceMap : this.sourceMap;

@@ -54,6 +57,3 @@

if ("webpackLoaderContext" in _less.default) {
delete _less.default.webpackLoaderContext;
}
delete _less.default[webpackContextSymbol];
const {

@@ -60,0 +60,0 @@ css,

@@ -179,19 +179,22 @@ "use strict";

const webpackContextDeprecated = _util.default.deprecate(context => context, "less.webpackLoaderContext is deprecated and will be removed in next major release. Instead use pluginManager.webpackLoaderContext (https://webpack.js.org/loaders/less-loader/#plugins)");
lessOptions.plugins.unshift({
install(lessProcessor, pluginManager) {
// eslint-disable-next-line no-param-reassign
pluginManager.webpackLoaderContext = loaderContext; // Todo remove in next major release
pluginManager.webpackLoaderContext = loaderContext; // Todo remove in next major release `lessProcessor[webpackContextSymbol]`
if (typeof lessProcessor.webpackLoaderContext === "undefined") {
Object.defineProperty(lessProcessor, "webpackLoaderContext", {
configurable: true,
const {
webpackContextSymbol
} = options; // eslint-disable-next-line no-param-reassign
get() {
return webpackContextDeprecated(loaderContext);
}
lessProcessor[webpackContextSymbol] = loaderContext;
Object.defineProperty(lessProcessor, "webpackLoaderContext", {
configurable: true,
});
}
get() {
_util.default.deprecate(() => {}, "less.webpackLoaderContext is deprecated and will be removed in next major release. Instead use pluginManager.webpackLoaderContext (https://webpack.js.org/loaders/less-loader/#plugins)")();
return lessProcessor[webpackContextSymbol];
}
});
}

@@ -198,0 +201,0 @@

{
"name": "less-loader",
"version": "8.1.0",
"version": "8.1.1",
"description": "A Less loader for webpack. Compiles Less to CSS.",

@@ -34,4 +34,3 @@ "license": "MIT",

"prepare": "npm run build",
"release": "standard-version",
"defaults": "webpack-defaults"
"release": "standard-version"
},

@@ -49,8 +48,7 @@ "files": [

"devDependencies": {
"@babel/cli": "^7.12.10",
"@babel/core": "^7.12.10",
"@babel/preset-env": "^7.12.11",
"@commitlint/cli": "^11.0.0",
"@commitlint/config-conventional": "^11.0.0",
"@webpack-contrib/defaults": "^6.3.0",
"@babel/cli": "^7.13.14",
"@babel/core": "^7.13.15",
"@babel/preset-env": "^7.13.15",
"@commitlint/cli": "^12.1.1",
"@commitlint/config-conventional": "^12.1.1",
"@webpack-contrib/eslint-config-webpack": "^3.0.0",

@@ -61,16 +59,15 @@ "babel-jest": "^26.6.3",

"del-cli": "^3.0.1",
"eslint": "^7.19.0",
"eslint-config-prettier": "^7.2.0",
"eslint": "^7.24.0",
"eslint-config-prettier": "^8.2.0",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-prettier": "^3.3.0",
"husky": "^4.3.8",
"jest": "^26.6.3",
"less": "^4.1.1",
"lint-staged": "^10.5.3",
"memfs": "^3.2.0",
"lint-staged": "^10.5.4",
"memfs": "^3.2.2",
"npm-run-all": "^4.1.5",
"prettier": "^2.2.1",
"standard-version": "^9.1.0",
"standard-version": "^9.2.0",
"strip-ansi": "^6.0.0",
"webpack": "^5.19.0"
"webpack": "^5.33.2"
},

@@ -77,0 +74,0 @@ "keywords": [

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