Skip to content

Commit f0c0a5a

Browse files
authored
Merge pull request #42 from morels/40-bump-postcss
Bump dependencies
2 parents f77a981 + a039018 commit f0c0a5a

File tree

4 files changed

+69
-43
lines changed

4 files changed

+69
-43
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
### HEAD
22

3+
* Update `postcss` to `^8.4.0` (major)
4+
* Update `postcss-import` to `^14.0.0` (major)
5+
* Update minimum Node version to `>=10.0.0` (major)
6+
37
### 3.0.0
48

59
* Update `postcss-import` to `10.0.0`

index.js

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
var postcss = require('postcss');
21
var assign = require('object-assign');
32
var postcssImport = require('postcss-import');
43
var isGlob = require('is-glob');
@@ -10,7 +9,7 @@ function resolve(id) {
109
return resolver.apply(null, arguments);
1110
}
1211

13-
module.exports = postcss.plugin('postcss-easy-import', function (opts) {
12+
var plugin = opts => {
1413
opts = assign({
1514
prefix: false,
1615
extensions: '.css'
@@ -43,5 +42,15 @@ module.exports = postcss.plugin('postcss-easy-import', function (opts) {
4342
);
4443
}
4544

46-
return postcss([postcssImport(opts)]);
47-
});
45+
return {
46+
postcssPlugin: 'postcss-easy-import',
47+
Once(root, options) {
48+
// eslint-disable-next-line new-cap
49+
return postcssImport(opts).Once(root, options);
50+
}
51+
};
52+
};
53+
54+
plugin.postcss = true;
55+
56+
module.exports = plugin;

package.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,17 @@
3030
"lodash": "^4.17.4",
3131
"object-assign": "^4.0.1",
3232
"pify": "^3.0.0",
33-
"postcss": "^6.0.11",
34-
"postcss-import": "^11.1.0",
33+
"postcss-import": "^14.0.0",
3534
"resolve": "^1.1.7"
3635
},
3736
"devDependencies": {
3837
"ava": "^0.19.1",
3938
"eslint": "^3.11.1",
40-
"eslint-config-postcss": "^2.0.0"
39+
"eslint-config-postcss": "^2.0.0",
40+
"postcss": "^8.4.6"
41+
},
42+
"peerDependencies":{
43+
"postcss": "^8.4.6"
4144
},
4245
"files": [
4346
"index.js",
@@ -50,5 +53,8 @@
5053
},
5154
"eslintConfig": {
5255
"extends": "postcss/es5"
56+
},
57+
"engines": {
58+
"node": ">=10.0.0"
5359
}
5460
}

yarn.lock

Lines changed: 43 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,6 @@ ansi-styles@~1.0.0:
9494
version "1.0.0"
9595
resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-1.0.0.tgz#cb102df1c56f5123eab8b67cd7b98027a0279178"
9696

97-
any-promise@^0.1.0:
98-
version "0.1.0"
99-
resolved "https://registry.yarnpkg.com/any-promise/-/any-promise-0.1.0.tgz#830b680aa7e56f33451d4b049f3bd8044498ee27"
100-
10197
anymatch@^1.3.0:
10298
version "1.3.0"
10399
resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-1.3.0.tgz#a3e52fa39168c825ff57b0248126ce5a8ff95507"
@@ -1693,9 +1689,10 @@ is-extglob@^1.0.0:
16931689
version "1.0.0"
16941690
resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-1.0.0.tgz#ac468177c4943405a092fc8f29760c6ffc6206c0"
16951691

1696-
is-extglob@^2.1.0:
1692+
is-extglob@^2.1.1:
16971693
version "2.1.1"
16981694
resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-2.1.1.tgz#a88c02535791f02ed37c76a1b9ea9773c833f8c2"
1695+
integrity sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=
16991696

17001697
is-finite@^1.0.0, is-finite@^1.0.1:
17011698
version "1.0.2"
@@ -1723,11 +1720,12 @@ is-glob@^2.0.0, is-glob@^2.0.1:
17231720
dependencies:
17241721
is-extglob "^1.0.0"
17251722

1726-
is-glob@^3.1.0:
1727-
version "3.1.0"
1728-
resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-3.1.0.tgz#7ba5ae24217804ac70707b96922567486cc3e84a"
1723+
is-glob@^4.0.0:
1724+
version "4.0.3"
1725+
resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.3.tgz#64f61e42cbbb2eec2071a9dac0b28ba1e65d5084"
1726+
integrity sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==
17291727
dependencies:
1730-
is-extglob "^2.1.0"
1728+
is-extglob "^2.1.1"
17311729

17321730
is-my-json-valid@^2.10.0:
17331731
version "2.16.0"
@@ -1913,10 +1911,6 @@ jodid25519@^1.0.0:
19131911
dependencies:
19141912
jsbn "~0.1.0"
19151913

1916-
js-base64@^2.1.9:
1917-
version "2.1.9"
1918-
resolved "https://registry.yarnpkg.com/js-base64/-/js-base64-2.1.9.tgz#f0e80ae039a4bd654b5f281fc93f04a914a7fcce"
1919-
19201914
js-tokens@^3.0.0:
19211915
version "3.0.1"
19221916
resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-3.0.1.tgz#08e9f132484a2c45a30907e9dc4d5567b7f114d7"
@@ -2218,6 +2212,11 @@ nan@^2.3.0:
22182212
version "2.6.2"
22192213
resolved "https://registry.yarnpkg.com/nan/-/nan-2.6.2.tgz#e4ff34e6c95fdfb5aecc08de6596f43605a7db45"
22202214

2215+
nanoid@^3.2.0:
2216+
version "3.3.1"
2217+
resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.3.1.tgz#6347a18cac88af88f58af0b3594b723d5e99bb35"
2218+
integrity sha512-n6Vs/3KGyxPQd6uO0eH4Bv0ojGSUvuLlIHtC3Y0kEO23YRge8H9x1GCzLn28YX0H66pMkxuaeESFq4tKISKwdw==
2219+
22212220
natural-compare@^1.4.0:
22222221
version "1.4.0"
22232222
resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7"
@@ -2462,10 +2461,20 @@ performance-now@^0.2.0:
24622461
version "0.2.0"
24632462
resolved "https://registry.yarnpkg.com/performance-now/-/performance-now-0.2.0.tgz#33ef30c5c77d4ea21c5a53869d91b56d8f2555e5"
24642463

2464+
picocolors@^1.0.0:
2465+
version "1.0.0"
2466+
resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.0.0.tgz#cb5bdc74ff3f51892236eaf79d68bc44564ab81c"
2467+
integrity sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==
2468+
24652469
pify@^2.0.0, pify@^2.3.0:
24662470
version "2.3.0"
24672471
resolved "https://registry.yarnpkg.com/pify/-/pify-2.3.0.tgz#ed141a6ac043a849ea588498e7dca8b15330e90c"
24682472

2473+
pify@^3.0.0:
2474+
version "3.0.0"
2475+
resolved "https://registry.yarnpkg.com/pify/-/pify-3.0.0.tgz#e5a4acd2c101fdf3d9a4d07f0dbc4db49dd28176"
2476+
integrity sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=
2477+
24692478
pinkie-promise@^1.0.0:
24702479
version "1.0.0"
24712480
resolved "https://registry.yarnpkg.com/pinkie-promise/-/pinkie-promise-1.0.0.tgz#d1da67f5482563bb7cf57f286ae2822ecfbf3670"
@@ -2513,29 +2522,28 @@ pluralize@^1.2.1:
25132522
version "1.2.1"
25142523
resolved "https://registry.yarnpkg.com/pluralize/-/pluralize-1.2.1.tgz#d1a21483fd22bb41e58a12fa3421823140897c45"
25152524

2516-
postcss-import@^9.1.0:
2517-
version "9.1.0"
2518-
resolved "https://registry.yarnpkg.com/postcss-import/-/postcss-import-9.1.0.tgz#95fe9876a1e79af49fbdc3589f01fe5aa7cc1e80"
2525+
postcss-import@^14.0.0:
2526+
version "14.0.2"
2527+
resolved "https://registry.yarnpkg.com/postcss-import/-/postcss-import-14.0.2.tgz#60eff77e6be92e7b67fe469ec797d9424cae1aa1"
2528+
integrity sha512-BJ2pVK4KhUyMcqjuKs9RijV5tatNzNa73e/32aBVE/ejYPe37iH+6vAu9WvqUkB5OAYgLHzbSvzHnorybJCm9g==
25192529
dependencies:
2520-
object-assign "^4.0.1"
2521-
postcss "^5.0.14"
2522-
postcss-value-parser "^3.2.3"
2523-
promise-each "^2.2.0"
2530+
postcss-value-parser "^4.0.0"
25242531
read-cache "^1.0.0"
25252532
resolve "^1.1.7"
25262533

2527-
postcss-value-parser@^3.2.3:
2528-
version "3.3.0"
2529-
resolved "https://registry.yarnpkg.com/postcss-value-parser/-/postcss-value-parser-3.3.0.tgz#87f38f9f18f774a4ab4c8a232f5c5ce8872a9d15"
2534+
postcss-value-parser@^4.0.0:
2535+
version "4.2.0"
2536+
resolved "https://registry.yarnpkg.com/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz#723c09920836ba6d3e5af019f92bc0971c02e514"
2537+
integrity sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==
25302538

2531-
postcss@^5.0.14, postcss@^5.0.15:
2532-
version "5.2.17"
2533-
resolved "https://registry.yarnpkg.com/postcss/-/postcss-5.2.17.tgz#cf4f597b864d65c8a492b2eabe9d706c879c388b"
2539+
postcss@^8.4.6:
2540+
version "8.4.6"
2541+
resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.4.6.tgz#c5ff3c3c457a23864f32cb45ac9b741498a09ae1"
2542+
integrity sha512-OovjwIzs9Te46vlEx7+uXB0PLijpwjXGKXjVGGPIGubGpq7uh5Xgf6D6FiJ/SzJMBosHDp6a2hiXOS97iBXcaA==
25342543
dependencies:
2535-
chalk "^1.1.3"
2536-
js-base64 "^2.1.9"
2537-
source-map "^0.5.6"
2538-
supports-color "^3.2.3"
2544+
nanoid "^3.2.0"
2545+
picocolors "^1.0.0"
2546+
source-map-js "^1.0.2"
25392547

25402548
prelude-ls@~1.1.2:
25412549
version "1.1.2"
@@ -2581,12 +2589,6 @@ progress@^1.1.8:
25812589
version "1.1.8"
25822590
resolved "https://registry.yarnpkg.com/progress/-/progress-1.1.8.tgz#e260c78f6161cdd9b0e56cc3e0a85de17c7a57be"
25832591

2584-
promise-each@^2.2.0:
2585-
version "2.2.0"
2586-
resolved "https://registry.yarnpkg.com/promise-each/-/promise-each-2.2.0.tgz#3353174eff2694481037e04e01f77aa0fb6d1b60"
2587-
dependencies:
2588-
any-promise "^0.1.0"
2589-
25902592
pseudomap@^1.0.1:
25912593
version "1.0.2"
25922594
resolved "https://registry.yarnpkg.com/pseudomap/-/pseudomap-1.0.2.tgz#f052a28da70e618917ef0a8ac34c1ae5a68286b3"
@@ -2909,6 +2911,11 @@ sort-keys@^1.1.1, sort-keys@^1.1.2:
29092911
dependencies:
29102912
is-plain-obj "^1.0.0"
29112913

2914+
source-map-js@^1.0.2:
2915+
version "1.0.2"
2916+
resolved "https://registry.yarnpkg.com/source-map-js/-/source-map-js-1.0.2.tgz#adbc361d9c62df380125e7f161f71c826f1e490c"
2917+
integrity sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==
2918+
29122919
source-map-support@^0.4.0, source-map-support@^0.4.2:
29132920
version "0.4.15"
29142921
resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.4.15.tgz#03202df65c06d2bd8c7ec2362a193056fef8d3b1"

0 commit comments

Comments
 (0)