postcss-unique-selectors 5.0.1 → 5.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -7,8 +7,6 @@ exports.default = void 0;
7
7
 
8
8
  var _alphanumSort = _interopRequireDefault(require("alphanum-sort"));
9
9
 
10
- var _uniqs = _interopRequireDefault(require("uniqs"));
11
-
12
10
  var _postcssSelectorParser = _interopRequireDefault(require("postcss-selector-parser"));
13
11
 
14
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -18,7 +16,7 @@ function parseSelectors(selectors, callback) {
18
16
  }
19
17
 
20
18
  function unique(rule) {
21
- rule.selector = (0, _alphanumSort.default)((0, _uniqs.default)(rule.selectors), {
19
+ rule.selector = (0, _alphanumSort.default)([...new Set(rule.selectors)], {
22
20
  insensitive: true
23
21
  }).join();
24
22
  }
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "postcss-unique-selectors",
3
- "version": "5.0.1",
3
+ "version": "5.0.2",
4
4
  "description": "Ensure CSS selectors are unique.",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
7
- "prebuild": "del-cli dist",
7
+ "prebuild": "rimraf dist",
8
8
  "build": "cross-env BABEL_ENV=publish babel src --config-file ../../babel.config.json --out-dir dist --ignore \"**/__tests__/\"",
9
- "prepublish": "yarn build"
9
+ "prepare": "yarn build"
10
10
  },
11
11
  "files": [
12
12
  "LICENSE-MIT",
@@ -27,8 +27,7 @@
27
27
  "repository": "cssnano/cssnano",
28
28
  "dependencies": {
29
29
  "alphanum-sort": "^1.0.2",
30
- "postcss-selector-parser": "^6.0.5",
31
- "uniqs": "^2.0.0"
30
+ "postcss-selector-parser": "^6.0.5"
32
31
  },
33
32
  "bugs": {
34
33
  "url": "https://github.com/cssnano/cssnano/issues"
@@ -41,6 +40,5 @@
41
40
  },
42
41
  "peerDependencies": {
43
42
  "postcss": "^8.2.15"
44
- },
45
- "gitHead": "28c247175032fa03f04911cde56ad82d74d211cc"
43
+ }
46
44
  }
package/CHANGELOG.md DELETED
@@ -1,68 +0,0 @@
1
- # Change Log
2
-
3
- All notable changes to this project will be documented in this file.
4
- See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
-
6
- ## [5.0.1](https://github.com/cssnano/cssnano/compare/postcss-unique-selectors@5.0.0...postcss-unique-selectors@5.0.1) (2021-05-19)
7
-
8
- **Note:** Version bump only for package postcss-unique-selectors
9
-
10
-
11
-
12
-
13
-
14
- # [5.0.0](https://github.com/cssnano/cssnano/compare/postcss-unique-selectors@5.0.0-rc.2...postcss-unique-selectors@5.0.0) (2021-04-06)
15
-
16
- **Note:** Version bump only for package postcss-unique-selectors
17
-
18
-
19
-
20
-
21
-
22
- # [5.0.0-rc.2](https://github.com/cssnano/cssnano/compare/postcss-unique-selectors@5.0.0-rc.1...postcss-unique-selectors@5.0.0-rc.2) (2021-03-15)
23
-
24
- **Note:** Version bump only for package postcss-unique-selectors
25
-
26
-
27
-
28
-
29
-
30
- # [5.0.0-rc.1](https://github.com/cssnano/cssnano/compare/postcss-unique-selectors@5.0.0-rc.0...postcss-unique-selectors@5.0.0-rc.1) (2021-03-04)
31
-
32
- **Note:** Version bump only for package postcss-unique-selectors
33
-
34
-
35
-
36
-
37
-
38
- # 5.0.0-rc.0 (2021-02-19)
39
-
40
-
41
- ### Bug Fixes
42
-
43
- * **unique-selector:** removed sorting and involving selector comments ([#857](https://github.com/cssnano/cssnano/issues/857)) ([3fa875d](https://github.com/cssnano/cssnano/commit/3fa875dade2138e1a531dce1f8b79814cb39dbc9))
44
-
45
-
46
- ### chore
47
-
48
- * minimum require version of node is 10.13 ([#871](https://github.com/cssnano/cssnano/issues/871)) ([28bda24](https://github.com/cssnano/cssnano/commit/28bda243e32ce3ba89b3c358a5f78727b3732f11))
49
-
50
-
51
- ### Features
52
-
53
- * migarete to PostCSS 8 ([#975](https://github.com/cssnano/cssnano/issues/975)) ([40b82dc](https://github.com/cssnano/cssnano/commit/40b82dca7f53ac02cd4fe62846dec79b898ccb49))
54
-
55
-
56
- ### BREAKING CHANGES
57
-
58
- * minimum supported `postcss` version is `8.2.1`
59
- * minimum require version of node is 10.13
60
-
61
-
62
-
63
- ## 4.1.1 (2018-09-24)
64
-
65
-
66
- ### Bug Fixes
67
-
68
- * **postcss-merge-longhand:** not mangle border output ([#555](https://github.com/cssnano/cssnano/issues/555)) ([9a70605](https://github.com/cssnano/cssnano/commit/9a706050b621e7795a9bf74eb7110b5c81804ffe)), closes [#553](https://github.com/cssnano/cssnano/issues/553) [#554](https://github.com/cssnano/cssnano/issues/554)