postcss-preset-env 9.1.1 → 9.1.3
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/CHANGELOG.md +28 -0
- package/README.md +6 -1
- package/package.json +13 -13
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,33 @@
|
|
|
1
1
|
# Changes to PostCSS Preset Env
|
|
2
2
|
|
|
3
|
+
### 9.1.3
|
|
4
|
+
|
|
5
|
+
_September 2, 2023_
|
|
6
|
+
|
|
7
|
+
- Updated [`@csstools/postcss-is-pseudo-class`](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-is-pseudo-class) to [`4.0.1`](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-is-pseudo-class/CHANGELOG.md#401) (patch)
|
|
8
|
+
- Updated [`@csstools/postcss-text-decoration-shorthand`](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-text-decoration-shorthand) to [`3.0.2`](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-text-decoration-shorthand/CHANGELOG.md#302) (patch)
|
|
9
|
+
- Updated [`@csstools/postcss-color-function`](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-color-function) to [`3.0.3`](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-color-function/CHANGELOG.md#303) (patch)
|
|
10
|
+
- Updated [`@csstools/postcss-color-mix-function`](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-color-mix-function) to [`2.0.3`](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-color-mix-function/CHANGELOG.md#203) (patch)
|
|
11
|
+
- Updated [`@csstools/postcss-gradients-interpolation-method`](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-gradients-interpolation-method) to [`4.0.3`](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-gradients-interpolation-method/CHANGELOG.md#403) (patch)
|
|
12
|
+
- Updated [`@csstools/postcss-hwb-function`](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-hwb-function) to [`3.0.3`](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-hwb-function/CHANGELOG.md#303) (patch)
|
|
13
|
+
- Updated [`@csstools/postcss-oklab-function`](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-oklab-function) to [`3.0.3`](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-oklab-function/CHANGELOG.md#303) (patch)
|
|
14
|
+
- Updated [`@csstools/postcss-relative-color-syntax`](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-relative-color-syntax) to [`2.0.3`](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-relative-color-syntax/CHANGELOG.md#203) (patch)
|
|
15
|
+
- Updated [`postcss-lab-function`](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-lab-function) to [`6.0.3`](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-lab-function/CHANGELOG.md#603) (patch)
|
|
16
|
+
|
|
17
|
+
### 9.1.2
|
|
18
|
+
|
|
19
|
+
_August 28, 2023_
|
|
20
|
+
|
|
21
|
+
- Updated [`cssdb`](https://github.com/csstools/cssdb) to [`7.7.1`](https://github.com/csstools/cssdb/blob/main/CHANGELOG.md#771-august-20-2023) (patch)
|
|
22
|
+
- Updated [`@csstools/postcss-text-decoration-shorthand`](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-text-decoration-shorthand) to [`3.0.1`](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-text-decoration-shorthand/CHANGELOG.md#301) (patch)
|
|
23
|
+
- Updated [`@csstools/postcss-color-function`](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-color-function) to [`3.0.2`](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-color-function/CHANGELOG.md#302) (patch)
|
|
24
|
+
- Updated [`@csstools/postcss-color-mix-function`](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-color-mix-function) to [`2.0.2`](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-color-mix-function/CHANGELOG.md#202) (patch)
|
|
25
|
+
- Updated [`@csstools/postcss-gradients-interpolation-method`](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-gradients-interpolation-method) to [`4.0.2`](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-gradients-interpolation-method/CHANGELOG.md#402) (patch)
|
|
26
|
+
- Updated [`@csstools/postcss-hwb-function`](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-hwb-function) to [`3.0.2`](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-hwb-function/CHANGELOG.md#302) (patch)
|
|
27
|
+
- Updated [`@csstools/postcss-oklab-function`](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-oklab-function) to [`3.0.2`](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-oklab-function/CHANGELOG.md#302) (patch)
|
|
28
|
+
- Updated [`@csstools/postcss-relative-color-syntax`](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-relative-color-syntax) to [`2.0.2`](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-relative-color-syntax/CHANGELOG.md#202) (patch)
|
|
29
|
+
- Updated [`postcss-lab-function`](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-lab-function) to [`6.0.2`](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-lab-function/CHANGELOG.md#602) (patch)
|
|
30
|
+
|
|
3
31
|
### 9.1.1
|
|
4
32
|
|
|
5
33
|
_August 5, 2023_
|
package/README.md
CHANGED
|
@@ -27,6 +27,11 @@ const yourConfig = {
|
|
|
27
27
|
/* remove autoprefixer if you had it here, it's part of postcss-preset-env */
|
|
28
28
|
postcssPresetEnv({
|
|
29
29
|
/* pluginOptions */
|
|
30
|
+
features: {
|
|
31
|
+
'nesting-rules': {
|
|
32
|
+
noIsPseudoSelector: false,
|
|
33
|
+
},
|
|
34
|
+
},
|
|
30
35
|
})
|
|
31
36
|
]
|
|
32
37
|
}
|
|
@@ -50,7 +55,7 @@ What [PostCSS Preset Env] does is to take the support data that comes from MDN a
|
|
|
50
55
|
* **Browser support stats**: Features get introduced on browsers at certain versions. They're often visible on [MDN](https://developer.mozilla.org/en-US/) and [Can I Use](https://caniuse.com/). Comparing these stats with the needed _support_ for your project tells you if it's safe to use a feature or not.
|
|
51
56
|
* **CSS Feature**: A CSS feature is often part of some spec that enables a specific feature. For example, `hwb` functional notation lets you express a given color according to its hue, whiteness, and blackness. This is part of the CSS Color 4 Spec.
|
|
52
57
|
* **CSS Spec**: A Spec is a document that collects new features, what problems are they trying to solve and how it's intended to be solved (generally). This is usually an evolving document that goes over lengthy discussions between several people from different companies.
|
|
53
|
-
* **Plugin**: A plugin is package that's intended (usually) to enable a new CSS Feature by leveraging PostCSS. This doesn't need to be part of any spec. An example of the latter is [PostCSS Mixins](https://github.com/postcss/postcss-mixins), a concept that existed on Less or Sass, but it's not part of any spec. This plugin
|
|
58
|
+
* **Plugin**: A plugin is package that's intended (usually) to enable a new CSS Feature by leveraging PostCSS. This doesn't need to be part of any spec. An example of the latter is [PostCSS Mixins](https://github.com/postcss/postcss-mixins), a concept that existed on Less or Sass, but it's not part of any spec. This plugin pack **only** packs plugins that enable features acknowledged by the World Wide Web Consortium (W3C) which will then be implemented by browsers later.
|
|
54
59
|
* **Polyfill**: A polyfill is a piece of code (usually JavaScript on the Web) used to provide modern functionality on older browsers that do not natively support it. A polyfill _should_ be indistinguishable from the native behaviour.
|
|
55
60
|
|
|
56
61
|
Here's a quick example of the syntax you can leverage by using [PostCSS Preset Env].
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "postcss-preset-env",
|
|
3
3
|
"description": "Convert modern CSS into something browsers understand",
|
|
4
|
-
"version": "9.1.
|
|
4
|
+
"version": "9.1.3",
|
|
5
5
|
"contributors": [
|
|
6
6
|
{
|
|
7
7
|
"name": "Antonio Laguna",
|
|
@@ -50,14 +50,14 @@
|
|
|
50
50
|
],
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"@csstools/postcss-cascade-layers": "^4.0.0",
|
|
53
|
-
"@csstools/postcss-color-function": "^3.0.
|
|
54
|
-
"@csstools/postcss-color-mix-function": "^2.0.
|
|
53
|
+
"@csstools/postcss-color-function": "^3.0.3",
|
|
54
|
+
"@csstools/postcss-color-mix-function": "^2.0.3",
|
|
55
55
|
"@csstools/postcss-exponential-functions": "^1.0.0",
|
|
56
56
|
"@csstools/postcss-font-format-keywords": "^3.0.0",
|
|
57
|
-
"@csstools/postcss-gradients-interpolation-method": "^4.0.
|
|
58
|
-
"@csstools/postcss-hwb-function": "^3.0.
|
|
57
|
+
"@csstools/postcss-gradients-interpolation-method": "^4.0.3",
|
|
58
|
+
"@csstools/postcss-hwb-function": "^3.0.3",
|
|
59
59
|
"@csstools/postcss-ic-unit": "^3.0.0",
|
|
60
|
-
"@csstools/postcss-is-pseudo-class": "^4.0.
|
|
60
|
+
"@csstools/postcss-is-pseudo-class": "^4.0.1",
|
|
61
61
|
"@csstools/postcss-logical-float-and-clear": "^2.0.0",
|
|
62
62
|
"@csstools/postcss-logical-resize": "^2.0.0",
|
|
63
63
|
"@csstools/postcss-logical-viewport-units": "^2.0.1",
|
|
@@ -65,20 +65,20 @@
|
|
|
65
65
|
"@csstools/postcss-media-queries-aspect-ratio-number-values": "^2.0.2",
|
|
66
66
|
"@csstools/postcss-nested-calc": "^3.0.0",
|
|
67
67
|
"@csstools/postcss-normalize-display-values": "^3.0.0",
|
|
68
|
-
"@csstools/postcss-oklab-function": "^3.0.
|
|
68
|
+
"@csstools/postcss-oklab-function": "^3.0.3",
|
|
69
69
|
"@csstools/postcss-progressive-custom-properties": "^3.0.0",
|
|
70
|
-
"@csstools/postcss-relative-color-syntax": "^2.0.
|
|
70
|
+
"@csstools/postcss-relative-color-syntax": "^2.0.3",
|
|
71
71
|
"@csstools/postcss-scope-pseudo-class": "^3.0.0",
|
|
72
72
|
"@csstools/postcss-stepped-value-functions": "^3.0.1",
|
|
73
|
-
"@csstools/postcss-text-decoration-shorthand": "^3.0.
|
|
73
|
+
"@csstools/postcss-text-decoration-shorthand": "^3.0.2",
|
|
74
74
|
"@csstools/postcss-trigonometric-functions": "^3.0.1",
|
|
75
75
|
"@csstools/postcss-unset-value": "^3.0.0",
|
|
76
|
-
"autoprefixer": "^10.4.
|
|
76
|
+
"autoprefixer": "^10.4.15",
|
|
77
77
|
"browserslist": "^4.21.10",
|
|
78
78
|
"css-blank-pseudo": "^6.0.0",
|
|
79
79
|
"css-has-pseudo": "^6.0.0",
|
|
80
80
|
"css-prefers-color-scheme": "^9.0.0",
|
|
81
|
-
"cssdb": "^7.7.
|
|
81
|
+
"cssdb": "^7.7.1",
|
|
82
82
|
"postcss-attribute-case-insensitive": "^6.0.2",
|
|
83
83
|
"postcss-clamp": "^4.1.0",
|
|
84
84
|
"postcss-color-functional-notation": "^6.0.0",
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
"postcss-gap-properties": "^5.0.0",
|
|
96
96
|
"postcss-image-set-function": "^6.0.0",
|
|
97
97
|
"postcss-initial": "^4.0.1",
|
|
98
|
-
"postcss-lab-function": "^6.0.
|
|
98
|
+
"postcss-lab-function": "^6.0.3",
|
|
99
99
|
"postcss-logical": "^7.0.0",
|
|
100
100
|
"postcss-nesting": "^12.0.1",
|
|
101
101
|
"postcss-opacity-percentage": "^2.0.0",
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
"devDependencies": {
|
|
114
114
|
"@csstools/postcss-debug-logger": "^2.0.0",
|
|
115
115
|
"@csstools/postcss-tape": "*",
|
|
116
|
-
"@webref/css": "^6.
|
|
116
|
+
"@webref/css": "^6.7.1",
|
|
117
117
|
"postcss-simple-vars": "^7.0.1"
|
|
118
118
|
},
|
|
119
119
|
"scripts": {
|