postcss-unique-selectors 5.0.0-rc.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.0-rc.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",
8
- "build": "cross-env BABEL_ENV=publish babel src --config-file ../../babel.config.js --out-dir dist --ignore \"**/__tests__/\"",
9
- "prepublish": "yarn build"
7
+ "prebuild": "rimraf dist",
8
+ "build": "cross-env BABEL_ENV=publish babel src --config-file ../../babel.config.json --out-dir dist --ignore \"**/__tests__/\"",
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.2",
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"
@@ -37,10 +36,9 @@
37
36
  "node": "^10 || ^12 || >=14.0"
38
37
  },
39
38
  "devDependencies": {
40
- "postcss": "^8.2.1"
39
+ "postcss": "^8.2.15"
41
40
  },
42
41
  "peerDependencies": {
43
- "postcss": "^8.2.1"
44
- },
45
- "gitHead": "114efb0092fff944dd4c8a28d184add24d8fde3e"
42
+ "postcss": "^8.2.15"
43
+ }
46
44
  }
package/CHANGELOG.md DELETED
@@ -1,44 +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.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)
7
-
8
- **Note:** Version bump only for package postcss-unique-selectors
9
-
10
-
11
-
12
-
13
-
14
- # 5.0.0-rc.0 (2021-02-19)
15
-
16
-
17
- ### Bug Fixes
18
-
19
- * **unique-selector:** removed sorting and involving selector comments ([#857](https://github.com/cssnano/cssnano/issues/857)) ([3fa875d](https://github.com/cssnano/cssnano/commit/3fa875dade2138e1a531dce1f8b79814cb39dbc9))
20
-
21
-
22
- ### chore
23
-
24
- * minimum require version of node is 10.13 ([#871](https://github.com/cssnano/cssnano/issues/871)) ([28bda24](https://github.com/cssnano/cssnano/commit/28bda243e32ce3ba89b3c358a5f78727b3732f11))
25
-
26
-
27
- ### Features
28
-
29
- * migarete to PostCSS 8 ([#975](https://github.com/cssnano/cssnano/issues/975)) ([40b82dc](https://github.com/cssnano/cssnano/commit/40b82dca7f53ac02cd4fe62846dec79b898ccb49))
30
-
31
-
32
- ### BREAKING CHANGES
33
-
34
- * minimum supported `postcss` version is `8.2.1`
35
- * minimum require version of node is 10.13
36
-
37
-
38
-
39
- ## 4.1.1 (2018-09-24)
40
-
41
-
42
- ### Bug Fixes
43
-
44
- * **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)