cssnano-preset-advanced 8.0.2 → 8.0.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/LICENSE-MIT CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) Ben Briggs <beneb.info@gmail.com> (http://beneb.info)
1
+ Copyright (c) Ben Briggs <beneb.info@gmail.com> (https://beneb.info)
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person
4
4
  obtaining a copy of this software and associated documentation
package/README.md CHANGED
@@ -350,4 +350,4 @@ See [CONTRIBUTORS.md](https://github.com/cssnano/cssnano/blob/master/CONTRIBUTOR
350
350
 
351
351
  ## License
352
352
 
353
- MIT © [Ben Briggs](http://beneb.info)
353
+ MIT © [Ben Briggs](https://beneb.info)
package/package.json CHANGED
@@ -1,9 +1,17 @@
1
1
  {
2
2
  "name": "cssnano-preset-advanced",
3
- "version": "8.0.2",
4
- "main": "src/index.js",
5
- "types": "types/index.d.ts",
3
+ "version": "8.0.4",
6
4
  "description": "Advanced optimisations for cssnano; may or may not break your CSS!",
5
+ "exports": {
6
+ ".": {
7
+ "types": "./types/index.d.ts",
8
+ "default": "./src/index.js"
9
+ },
10
+ "./src": "./src/index.js",
11
+ "./src/index": "./src/index.js",
12
+ "./src/index.js": "./src/index.js",
13
+ "./package.json": "./package.json"
14
+ },
7
15
  "files": [
8
16
  "LICENSE-MIT",
9
17
  "src",
@@ -11,21 +19,23 @@
11
19
  ],
12
20
  "license": "MIT",
13
21
  "dependencies": {
14
- "autoprefixer": "^10.5.0",
15
- "browserslist": "^4.28.1",
22
+ "autoprefixer": "^10.5.4",
16
23
  "css-declaration-sorter": "^7.4.0",
17
- "cssnano-preset-default": "^8.0.2",
18
- "postcss-discard-unused": "^8.0.1",
19
- "postcss-merge-idents": "^8.0.1",
20
- "postcss-reduce-idents": "^8.0.1",
21
- "postcss-zindex": "^8.0.1"
24
+ "cssnano-preset-default": "^8.0.4",
25
+ "postcss-discard-unused": "^8.0.2",
26
+ "postcss-merge-idents": "^8.0.2",
27
+ "postcss-reduce-idents": "^8.0.2",
28
+ "postcss-zindex": "^8.0.2"
22
29
  },
23
30
  "author": {
24
31
  "name": "Ben Briggs",
25
32
  "email": "beneb.info@gmail.com",
26
- "url": "http://beneb.info"
33
+ "url": "https://beneb.info"
34
+ },
35
+ "repository": {
36
+ "type": "git",
37
+ "url": "cssnano/cssnano"
27
38
  },
28
- "repository": "cssnano/cssnano",
29
39
  "homepage": "https://github.com/cssnano/cssnano",
30
40
  "bugs": {
31
41
  "url": "https://github.com/cssnano/cssnano/issues"
@@ -34,9 +44,9 @@
34
44
  "node": "^22.11.0 || ^24.11.0 || >=26.0"
35
45
  },
36
46
  "devDependencies": {
37
- "postcss": "^8.5.15"
47
+ "postcss": "^8.5.25"
38
48
  },
39
49
  "peerDependencies": {
40
- "postcss": "^8.5.15"
50
+ "postcss": "^8.5.25"
41
51
  }
42
52
  }
package/types/index.d.ts CHANGED
@@ -1,4 +1,21 @@
1
1
  export = advancedPreset;
2
+ import defaultPreset = require('cssnano-preset-default');
3
+ import cssDeclarationSorter = require('css-declaration-sorter');
4
+ import autoprefixer = require('autoprefixer');
5
+ export type SimpleOptions<OptionsExtends extends object | void = void> = false | (OptionsExtends & {
6
+ exclude?: true;
7
+ });
8
+ export type AdvancedOptions = {
9
+ cssDeclarationSorter?: SimpleOptions<Parameters<typeof cssDeclarationSorter>[0]>;
10
+ autoprefixer?: autoprefixer.Options;
11
+ discardUnused?: SimpleOptions<import('postcss-discard-unused').Options>;
12
+ mergeIdents?: SimpleOptions;
13
+ reduceIdents?: SimpleOptions<import('postcss-reduce-idents').Options>;
14
+ zindex?: SimpleOptions<import('postcss-zindex').Options>;
15
+ };
16
+ export type AutoprefixerOptions = defaultPreset.AutoprefixerOptions;
17
+ export type BrowserslistOptions = defaultPreset.BrowserslistOptions;
18
+ export type Options = defaultPreset.Options & AdvancedOptions;
2
19
  /**
3
20
  * Advanced optimisations for cssnano; may or may not break your CSS!
4
21
  *
@@ -6,31 +23,6 @@ export = advancedPreset;
6
23
  * @returns {{ plugins: [import('postcss').PluginCreator<any>, Options[keyof Options]][] }}
7
24
  */
8
25
  declare function advancedPreset(opts?: Options & AutoprefixerOptions & BrowserslistOptions): {
9
- plugins: [import("postcss").PluginCreator<any>, Options[keyof Options]][];
10
- };
11
- declare namespace advancedPreset {
12
- export { SimpleOptions, AdvancedOptions, AutoprefixerOptions, BrowserslistOptions, Options };
13
- }
14
- type SimpleOptions<OptionsExtends extends object | void = void> = false | (OptionsExtends & {
15
- exclude?: true;
16
- });
17
- type AdvancedOptions = {
18
- cssDeclarationSorter?: SimpleOptions<{
19
- order?: ("alphabetical" | "concentric-css" | "smacss" | "frakto") | ((propertyNameA: string, propertyNameB: string) => -1 | 0 | 1) | undefined;
20
- keepOverrides?: boolean;
21
- } | undefined> | undefined;
22
- autoprefixer?: autoprefixer.Options | undefined;
23
- discardUnused?: SimpleOptions<postcssDiscardUnused.Options> | undefined;
24
- mergeIdents?: SimpleOptions<void> | undefined;
25
- reduceIdents?: SimpleOptions<postcssReduceIdents.Options> | undefined;
26
- zindex?: SimpleOptions<postcssZindex.Options> | undefined;
26
+ plugins: [import('postcss').PluginCreator<any>, Options[keyof Options]][];
27
27
  };
28
- type AutoprefixerOptions = defaultPreset.AutoprefixerOptions;
29
- type BrowserslistOptions = defaultPreset.BrowserslistOptions;
30
- type Options = defaultPreset.Options & AdvancedOptions;
31
- import autoprefixer = require("autoprefixer");
32
- import postcssDiscardUnused = require("postcss-discard-unused");
33
- import postcssReduceIdents = require("postcss-reduce-idents");
34
- import postcssZindex = require("postcss-zindex");
35
- import defaultPreset = require("cssnano-preset-default");
36
28
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.js"],"names":[],"mappings":";AAgFA;;;;;GAKG;AACH,uCAHW,OAAO,GAAG,mBAAmB,GAAG,mBAAmB,GACjD;IAAE,OAA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