diff --git a/.all-contributorsrc b/.all-contributorsrc
index e3d691e..bda5a17 100644
--- a/.all-contributorsrc
+++ b/.all-contributorsrc
@@ -45,6 +45,16 @@
"contributions": [
"code"
]
+ },
+ {
+ "login": "JamesCodes",
+ "name": "James Hunt",
+ "avatar_url": "https://avatars0.githubusercontent.com/u/1133591?v=4",
+ "profile": "http://jamescodes.co.uk",
+ "contributions": [
+ "code"
+ ]
}
- ]
+ ],
+ "repoType": "github"
}
diff --git a/CHANGELOG.md b/CHANGELOG.md
index c3a37fe..772cc0b 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,7 @@
+# 3.0.1
+
+* Remove vulnerable downstream dependency
+
# 3.0.0
* Upgraded to PostCSS 6
diff --git a/README.md b/README.md
index 890e447..a082348 100644
--- a/README.md
+++ b/README.md
@@ -113,8 +113,9 @@ examples for your environment.
Thanks goes to these wonderful people ([emoji key](https://github.com/kentcdodds/all-contributors#emoji-key)):
-| [
Ben Briggs](http://beneb.info)
[💻](https://github.com/postcss/postcss-filter-plugins/commits?author=ben-eb) [📖](https://github.com/postcss/postcss-filter-plugins/commits?author=ben-eb) 👀 [⚠️](https://github.com/postcss/postcss-filter-plugins/commits?author=ben-eb) | [
Maxime Thirouin](https://moox.io/)
[📖](https://github.com/postcss/postcss-filter-plugins/commits?author=MoOx) | [
Andreas Lind](https://github.com/papandreou)
[💻](https://github.com/postcss/postcss-filter-plugins/commits?author=papandreou) | [
Ryan Zimmerman](http://www.ryanzim.com)
[💻](https://github.com/postcss/postcss-filter-plugins/commits?author=RyanZim) |
-| :---: | :---: | :---: | :---: |
+
+| [
Ben Briggs](http://beneb.info)
[💻](https://github.com/postcss/postcss-filter-plugins/commits?author=ben-eb "Code") [📖](https://github.com/postcss/postcss-filter-plugins/commits?author=ben-eb "Documentation") [👀](#review-ben-eb "Reviewed Pull Requests") [⚠️](https://github.com/postcss/postcss-filter-plugins/commits?author=ben-eb "Tests") | [
Maxime Thirouin](https://moox.io/)
[📖](https://github.com/postcss/postcss-filter-plugins/commits?author=MoOx "Documentation") | [
Andreas Lind](https://github.com/papandreou)
[💻](https://github.com/postcss/postcss-filter-plugins/commits?author=papandreou "Code") | [
Ryan Zimmerman](http://www.ryanzim.com)
[💻](https://github.com/postcss/postcss-filter-plugins/commits?author=RyanZim "Code") | [
James Hunt](http://jamescodes.co.uk)
[💻](https://github.com/postcss/postcss-filter-plugins/commits?author=JamesCodes "Code") |
+| :---: | :---: | :---: | :---: | :---: |
This project follows the [all-contributors](https://github.com/kentcdodds/all-contributors) specification.
diff --git a/package.json b/package.json
index e2a7d8c..552f0d9 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "postcss-filter-plugins",
- "version": "3.0.0",
+ "version": "3.0.1",
"description": "Exclude/warn on duplicated PostCSS plugins.",
"main": "dist/index.js",
"scripts": {
@@ -44,8 +44,7 @@
},
"repository": "postcss/postcss-filter-plugins",
"dependencies": {
- "postcss": "^6.0.14",
- "uniqid": "^4.0.0"
+ "postcss": "^6.0.14"
},
"ava": {
"require": "babel-register"
diff --git a/src/index.js b/src/index.js
index 4e34a2b..0a31fd5 100644
--- a/src/index.js
+++ b/src/index.js
@@ -1,5 +1,4 @@
import postcss from 'postcss';
-import uniqid from 'uniqid';
export default postcss.plugin('postcss-filter-plugins', ({
template = ({postcssPlugin}) => `Found duplicate plugin: ${postcssPlugin}`,
@@ -7,7 +6,7 @@ export default postcss.plugin('postcss-filter-plugins', ({
exclude = [],
direction = 'both',
} = {}) => {
- const id = uniqid();
+ const id = Math.random().toString();
let prev, next, both;
switch (direction) {