cssnano-preset-default 7.0.17 → 8.0.1

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
@@ -13,7 +13,6 @@
13
13
 
14
14
  - [Plugins](#plugins)
15
15
 
16
- - [css-declaration-sorter (external)](#css-declaration-sorter-external)
17
16
  - [cssnano-utils](#cssnano-utils)
18
17
  - [postcss-calc (external)](#postcss-calc-external)
19
18
  - [postcss-colormin](#postcss-colormin)
@@ -96,18 +95,6 @@ Note that you may wish to publish your own preset to npm for reusability, should
96
95
 
97
96
  ## Plugins
98
97
 
99
- ### [`css-declaration-sorter`](https://github.com/Siilwyn/css-declaration-sorter) (external)
100
-
101
- > Sorts CSS declarations fast and automatically in a certain order.
102
-
103
- This plugin is loaded with the following configuration:
104
-
105
- ```js
106
- {
107
- keepOverrides: true
108
- }
109
- ```
110
-
111
98
  ### [`cssnano-utils`](https://github.com/cssnano/cssnano/tree/master/packages/cssnano-utils)
112
99
 
113
100
  > Utility methods used by cssnano
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cssnano-preset-default",
3
- "version": "7.0.17",
3
+ "version": "8.0.1",
4
4
  "main": "src/index.js",
5
5
  "types": "types/index.d.ts",
6
6
  "description": "Safe defaults for cssnano which require minimal configuration.",
@@ -12,35 +12,34 @@
12
12
  "license": "MIT",
13
13
  "dependencies": {
14
14
  "browserslist": "^4.28.2",
15
- "css-declaration-sorter": "^7.2.0",
16
15
  "postcss-calc": "^10.1.1",
17
- "postcss-colormin": "^7.0.10",
18
- "postcss-convert-values": "^7.0.12",
19
- "cssnano-utils": "^5.0.3",
20
- "postcss-discard-comments": "^7.0.8",
21
- "postcss-discard-duplicates": "^7.0.4",
22
- "postcss-discard-empty": "^7.0.3",
23
- "postcss-discard-overridden": "^7.0.3",
24
- "postcss-merge-longhand": "^7.0.7",
25
- "postcss-merge-rules": "^7.0.11",
26
- "postcss-minify-font-values": "^7.0.3",
27
- "postcss-minify-gradients": "^7.0.5",
28
- "postcss-minify-selectors": "^7.1.2",
29
- "postcss-normalize-charset": "^7.0.3",
30
- "postcss-minify-params": "^7.0.9",
31
- "postcss-normalize-display-values": "^7.0.3",
32
- "postcss-normalize-positions": "^7.0.4",
33
- "postcss-normalize-repeat-style": "^7.0.4",
34
- "postcss-normalize-timing-functions": "^7.0.3",
35
- "postcss-normalize-unicode": "^7.0.9",
36
- "postcss-normalize-string": "^7.0.3",
37
- "postcss-normalize-whitespace": "^7.0.3",
38
- "postcss-normalize-url": "^7.0.3",
39
- "postcss-ordered-values": "^7.0.4",
40
- "postcss-reduce-initial": "^7.0.9",
41
- "postcss-reduce-transforms": "^7.0.3",
42
- "postcss-svgo": "^7.1.3",
43
- "postcss-unique-selectors": "^7.0.7"
16
+ "cssnano-utils": "^6.0.0",
17
+ "postcss-colormin": "^8.0.0",
18
+ "postcss-convert-values": "^8.0.0",
19
+ "postcss-discard-comments": "^8.0.0",
20
+ "postcss-discard-duplicates": "^8.0.0",
21
+ "postcss-discard-empty": "^8.0.0",
22
+ "postcss-discard-overridden": "^8.0.0",
23
+ "postcss-merge-rules": "^8.0.0",
24
+ "postcss-minify-font-values": "^8.0.0",
25
+ "postcss-minify-gradients": "^8.0.0",
26
+ "postcss-minify-params": "^8.0.0",
27
+ "postcss-minify-selectors": "^8.0.1",
28
+ "postcss-normalize-display-values": "^8.0.0",
29
+ "postcss-normalize-positions": "^8.0.0",
30
+ "postcss-normalize-repeat-style": "^8.0.0",
31
+ "postcss-normalize-timing-functions": "^8.0.0",
32
+ "postcss-normalize-string": "^8.0.0",
33
+ "postcss-normalize-charset": "^8.0.0",
34
+ "postcss-normalize-unicode": "^8.0.0",
35
+ "postcss-normalize-url": "^8.0.0",
36
+ "postcss-normalize-whitespace": "^8.0.0",
37
+ "postcss-ordered-values": "^8.0.0",
38
+ "postcss-reduce-initial": "^8.0.0",
39
+ "postcss-reduce-transforms": "^8.0.0",
40
+ "postcss-svgo": "^8.0.0",
41
+ "postcss-unique-selectors": "^8.0.0",
42
+ "postcss-merge-longhand": "^8.0.0"
44
43
  },
45
44
  "author": {
46
45
  "name": "Ben Briggs",
@@ -53,12 +52,12 @@
53
52
  "url": "https://github.com/cssnano/cssnano/issues"
54
53
  },
55
54
  "engines": {
56
- "node": "^18.12.0 || ^20.9.0 || >=22.0"
55
+ "node": "^22.11.0 || ^24.11.0 || >=26.0"
57
56
  },
58
57
  "devDependencies": {
59
- "postcss": "^8.5.13"
58
+ "postcss": "^8.5.14"
60
59
  },
61
60
  "peerDependencies": {
62
- "postcss": "^8.5.13"
61
+ "postcss": "^8.5.14"
63
62
  }
64
63
  }
package/src/index.js CHANGED
@@ -13,7 +13,6 @@
13
13
  * this preset require only minimal configuration.
14
14
  */
15
15
 
16
- const cssDeclarationSorter = require('css-declaration-sorter');
17
16
  const postcssDiscardComments = require('postcss-discard-comments');
18
17
  const postcssReduceInitial = require('postcss-reduce-initial');
19
18
  const postcssMinifyGradients = require('postcss-minify-gradients');
@@ -50,7 +49,6 @@ const { rawCache } = require('cssnano-utils');
50
49
 
51
50
  /**
52
51
  * @typedef {object} Options
53
- * @property {SimpleOptions<Parameters<typeof cssDeclarationSorter>[0]>} [cssDeclarationSorter]
54
52
  * @property {SimpleOptions<import('postcss-discard-comments').Options>} [discardComments]
55
53
  * @property {SimpleOptions<import('postcss-reduce-initial').Options>} [reduceInitial]
56
54
  * @property {SimpleOptions} [minifyGradients]
@@ -128,9 +126,6 @@ function configurePlugins(plugins, opts = {}) {
128
126
  reduceInitial: {
129
127
  ...sharedProps,
130
128
  },
131
- cssDeclarationSorter: {
132
- keepOverrides: true,
133
- },
134
129
  minifySelectors: {
135
130
  sort: true,
136
131
  ...sharedProps,
@@ -195,7 +190,6 @@ function defaultPreset(opts = {}) {
195
190
  [postcssMergeRules, 'mergeRules'],
196
191
  [postcssDiscardEmpty, 'discardEmpty'],
197
192
  [postcssUniqueSelectors, 'uniqueSelectors'],
198
- [cssDeclarationSorter, 'cssDeclarationSorter'],
199
193
  [rawCache, 'rawCache'],
200
194
  ],
201
195
  opts
package/types/index.d.ts CHANGED
@@ -15,10 +15,6 @@ type SimpleOptions<OptionsExtends extends object | void = void> = false | (Optio
15
15
  exclude?: true;
16
16
  });
17
17
  type Options = {
18
- cssDeclarationSorter?: SimpleOptions<{
19
- order?: ("alphabetical" | "concentric-css" | "smacss") | ((propertyNameA: string, propertyNameB: string) => -1 | 0 | 1) | undefined;
20
- keepOverrides?: boolean;
21
- } | undefined> | undefined;
22
18
  discardComments?: SimpleOptions<postcssDiscardComments.Options> | undefined;
23
19
  reduceInitial?: SimpleOptions<postcssReduceInitial.Options> | undefined;
24
20
  minifyGradients?: SimpleOptions<void> | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.js"],"names":[],"mappings":";AAgKA;;;;;GAKG;AACH,sCAHW,OAAO,GAAG,mBAAmB,GAAG,mBAAmB,GACjD;IAAE,OAAO,EAAE,CAAC,OAAO,SAAS,EAAE,aAAa,CAAC,GAAG,CAAC,EAAE,OAAO,CAAC,MAAM,OAAO,CAAC,CAAC,EAAE,CAAA;CAAE,CAuCzF;;;;mBA7J6B,cAAc,SAA9B,MAAM,GAAG,IAAK,WACf,KAAK,IAAG,cAAc,GAAG;IAAC,OAAO,CAAC,EAAE,IAAI,CAAA;CAAC,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAqCzC;IAAE,oBAAoB,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;CAAE;2BAC5C,IAAI,CAAC,OAAO,cAAc,EAAE,OAAO,EAAE,OAAO,GAAG,MAAM,GAAG,KAAK,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.js"],"names":[],"mappings":";AA2JA;;;;;GAKG;AACH,sCAHW,OAAO,GAAG,mBAAmB,GAAG,mBAAmB,GACjD;IAAE,OAAO,EAAE,CAAC,OAAO,SAAS,EAAE,aAAa,CAAC,GAAG,CAAC,EAAE,OAAO,CAAC,MAAM,OAAO,CAAC,CAAC,EAAE,CAAA;CAAE,CAsCzF;;;;mBAxJ6B,cAAc,SAA9B,MAAM,GAAG,IAAK,WACf,KAAK,IAAG,cAAc,GAAG;IAAC,OAAO,CAAC,EAAE,IAAI,CAAA;CAAC,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAoCzC;IAAE,oBAAoB,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;CAAE;2BAC5C,IAAI,CAAC,OAAO,cAAc,EAAE,OAAO,EAAE,OAAO,GAAG,MAAM,GAAG,KAAK,CAAC"}