postcss-load-config
Advanced tools
Comparing version 2.1.2 to 3.0.0
@@ -5,2 +5,13 @@ # Changelog | ||
## [3.0.0](https://github.com/postcss/postcss-load-config/compare/v2.1.2...v3.0.0) (2020-09-26) | ||
### Features | ||
* **src/index:** Add `.cjs` config support. | ||
### BREAKING CHANGES | ||
* **package:** requires `node >= v10.0.0` | ||
## [2.1.2](https://github.com/michael-ciniawsky/postcss-load-config/compare/v2.1.1...v2.1.2) (2020-09-26) | ||
@@ -7,0 +18,0 @@ |
{ | ||
"name": "postcss-load-config", | ||
"version": "2.1.2", | ||
"version": "3.0.0", | ||
"description": "Autoload Config for PostCSS", | ||
@@ -10,3 +10,3 @@ "main": "src/index.js", | ||
"engines": { | ||
"node": ">= 4" | ||
"node": ">= 10" | ||
}, | ||
@@ -18,4 +18,4 @@ "funding": { | ||
"dependencies": { | ||
"cosmiconfig": "^5.0.0", | ||
"import-cwd": "^2.0.0" | ||
"cosmiconfig": "^7.0.0", | ||
"import-cwd": "^3.0.0" | ||
}, | ||
@@ -34,4 +34,4 @@ "keywords": [ | ||
], | ||
"repository": "postcss/postcss-load-config.git", | ||
"repository": "postcss/postcss-load-config", | ||
"license": "MIT" | ||
} |
@@ -19,3 +19,3 @@ 'use strict' | ||
const processResult = (ctx, result) => { | ||
let file = result.filepath || '' | ||
const file = result.filepath || '' | ||
let config = result.config || {} | ||
@@ -88,3 +88,3 @@ | ||
return config('postcss', options) | ||
return config.cosmiconfig('postcss', options) | ||
.search(path) | ||
@@ -111,3 +111,3 @@ .then((result) => { | ||
const result = config('postcss', options).searchSync(path) | ||
const result = config.cosmiconfigSync('postcss', options).search(path) | ||
@@ -114,0 +114,0 @@ if (!result) { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
21334
+ Added@babel/code-frame@7.24.7(transitive)
+ Added@babel/helper-validator-identifier@7.24.7(transitive)
+ Added@babel/highlight@7.24.7(transitive)
+ Added@types/parse-json@4.0.2(transitive)
+ Addedansi-styles@3.2.1(transitive)
+ Addedcallsites@3.1.0(transitive)
+ Addedchalk@2.4.2(transitive)
+ Addedcolor-convert@1.9.3(transitive)
+ Addedcolor-name@1.1.3(transitive)
+ Addedcosmiconfig@7.1.0(transitive)
+ Addedescape-string-regexp@1.0.5(transitive)
+ Addedhas-flag@3.0.0(transitive)
+ Addedimport-cwd@3.0.0(transitive)
+ Addedimport-fresh@3.3.0(transitive)
+ Addedimport-from@3.0.0(transitive)
+ Addedjs-tokens@4.0.0(transitive)
+ Addedjson-parse-even-better-errors@2.3.1(transitive)
+ Addedlines-and-columns@1.2.4(transitive)
+ Addedparent-module@1.0.1(transitive)
+ Addedparse-json@5.2.0(transitive)
+ Addedpath-type@4.0.0(transitive)
+ Addedpicocolors@1.1.0(transitive)
+ Addedresolve-from@4.0.05.0.0(transitive)
+ Addedsupports-color@5.5.0(transitive)
+ Addedyaml@1.10.2(transitive)
- Removedargparse@1.0.10(transitive)
- Removedcaller-callsite@2.0.0(transitive)
- Removedcaller-path@2.0.0(transitive)
- Removedcallsites@2.0.0(transitive)
- Removedcosmiconfig@5.2.1(transitive)
- Removedesprima@4.0.1(transitive)
- Removedimport-cwd@2.1.0(transitive)
- Removedimport-fresh@2.0.0(transitive)
- Removedimport-from@2.1.0(transitive)
- Removedis-directory@0.3.1(transitive)
- Removedjs-yaml@3.14.1(transitive)
- Removedjson-parse-better-errors@1.0.2(transitive)
- Removedparse-json@4.0.0(transitive)
- Removedresolve-from@3.0.0(transitive)
- Removedsprintf-js@1.0.3(transitive)
Updatedcosmiconfig@^7.0.0
Updatedimport-cwd@^3.0.0