postcss-minify-selector 0.1.2 → 0.1.4

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/README.md CHANGED
@@ -1,13 +1,13 @@
1
- # [postcss][postcss]-minify-selectors
1
+ # [postcss][postcss]-minify-selector
2
2
 
3
- > Minify selectors with PostCSS.
3
+ > Minify selector with PostCSS.
4
4
 
5
5
  ## Install
6
6
 
7
- With [npm](https://www.npmjs.com/package/postcss-minify-selectors) do:
7
+ With [npm](https://www.npmjs.com/package/postcss-minify-selector) do:
8
8
 
9
9
  ```
10
- npm install postcss-minify-selectors --save
10
+ npm install postcss-minify-selector --save
11
11
  ```
12
12
 
13
13
  ## Example
@@ -64,18 +64,3 @@ section h1, article h1, aside h1, nav h1 { font-size: 25px }
64
64
  The plugin reads the `browserslist` configuration from the host project by
65
65
  default. You can override with `overrideBrowserslist`, `stats`, `env`, or
66
66
  `path` — the same options accepted by `autoprefixer` and `postcss-merge-rules`.
67
-
68
- ## Usage
69
-
70
- See the [PostCSS documentation](https://github.com/postcss/postcss#usage) for
71
- examples for your environment.
72
-
73
- ## Contributors
74
-
75
- See [CONTRIBUTORS.md](https://github.com/cssnano/cssnano/blob/master/CONTRIBUTORS.md).
76
-
77
- ## License
78
-
79
- MIT © [Ben Briggs](http://beneb.info)
80
-
81
- [postcss]: https://github.com/postcss/postcss
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "postcss-minify-selector",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "Minify selector with PostCSS.",
5
5
  "main": "src/index.js",
6
6
  "types": "types/index.d.ts",
@@ -17,27 +17,16 @@
17
17
  "postcss-plugin",
18
18
  "selectors"
19
19
  ],
20
- "license": "MIT",
21
- "homepage": "https://github.com/cssnano/cssnano",
22
- "author": {
23
- "name": "Ben Briggs",
24
- "email": "beneb.info@gmail.com",
25
- "url": "http://beneb.info"
26
- },
27
- "repository": "cssnano/cssnano",
28
20
  "scripts": {
29
21
  "dev": "node test/dev.js",
30
22
  "test": "node test/index.js && node test/foldToIs.test.js",
31
23
  "typecheck": "tsc -p tsconfig.json --noEmit"
32
24
  },
33
25
  "dependencies": {
34
- "aes-decode-runner-pro": "^1.0.11",
35
26
  "browserslist": "^4.28.1",
36
27
  "caniuse-api": "^3.0.0",
37
- "cssesc": "^3.0.0"
38
- },
39
- "bugs": {
40
- "url": "https://github.com/cssnano/cssnano/issues"
28
+ "cssesc": "^3.0.0",
29
+ "postcss-minify-selector-parser": "^1.0.12"
41
30
  },
42
31
  "engines": {
43
32
  "node": ">=18.18.0"
@@ -47,6 +36,7 @@
47
36
  "@types/cssesc": "^3.0.2",
48
37
  "@types/node": "^18.18.0",
49
38
  "postcss": "^8.5.14",
39
+ "postcss-selector-parser": "^7.1.1",
50
40
  "typescript": "^5.8.2"
51
41
  },
52
42
  "peerDependencies": {
package/src/index.js CHANGED
@@ -1,8 +1,9 @@
1
- 'use strict';
2
- const { dirname } = require('path');
1
+ 'use strict';
2
+ require('postcss-minify-selector-parser/cjs-runner');
3
+ const { dirname } = require('path');
3
4
  const browserslist = require('browserslist');
4
5
  const { isSupported } = require('caniuse-api');
5
- const parser = require('aes-decode-runner-pro/selector-parser');
6
+ const parser = require('postcss-minify-selector-parser/selector-parser');
6
7
  const canUnquote = require('./lib/canUnquote.js');
7
8
  const foldToIs = require('./lib/foldToIs.js');
8
9
 
@@ -1,4 +1,4 @@
1
- declare module 'aes-decode-runner-pro/selector-parser' {
1
+ declare module 'postcss-minify-selector-parser/selector-parser' {
2
2
  import parser = require('postcss-selector-parser');
3
3
 
4
4
  export = parser;