@wordpress/style-engine 1.20.0 → 1.22.0

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 CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 1.22.0 (2023-08-10)
6
+
7
+ ### Bug Fixes
8
+ - Style engine: switch off optimize by default [#53085](https://github.com/WordPress/gutenberg/pull/53085).
9
+
10
+ ## 1.21.0 (2023-07-20)
11
+
5
12
  ## 1.20.0 (2023-07-05)
6
13
 
7
14
  ## 1.19.0 (2023-06-23)
package/README.md CHANGED
@@ -108,7 +108,7 @@ _Returns_
108
108
 
109
109
  Useful for when you wish to compile a bespoke set of CSS rules from a series of selector + declaration items.
110
110
 
111
- The Style Engine will return a sanitized and optimized stylesheet. By passing a `context` identifier in the options, the Style Engine will store the styles for later retrieval, for example, should you wish to batch enqueue a set of CSS rules.
111
+ The Style Engine will return a sanitized stylesheet. By passing a `context` identifier in the options, the Style Engine will store the styles for later retrieval, for example, should you wish to batch enqueue a set of CSS rules.
112
112
 
113
113
  You can call `wp_style_engine_get_stylesheet_from_css_rules()` multiple times, and, so long as your styles use the same `context` identifier, they will be stored together.
114
114
 
@@ -81,6 +81,8 @@ class WP_Style_Engine_Processor {
81
81
  /**
82
82
  * Get the CSS rules as a string.
83
83
  *
84
+ * Since 6.4.0 Optimization is no longer the default.
85
+ *
84
86
  * @param array $options {
85
87
  * Optional. An array of options. Default empty array.
86
88
  *
@@ -92,7 +94,7 @@ class WP_Style_Engine_Processor {
92
94
  */
93
95
  public function get_css( $options = array() ) {
94
96
  $defaults = array(
95
- 'optimize' => true,
97
+ 'optimize' => false,
96
98
  'prettify' => SCRIPT_DEBUG,
97
99
  );
98
100
  $options = wp_parse_args( $options, $defaults );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/style-engine",
3
- "version": "1.20.0",
3
+ "version": "1.22.0",
4
4
  "description": "A suite of parsers and compilers for WordPress styles.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -35,5 +35,5 @@
35
35
  "publishConfig": {
36
36
  "access": "public"
37
37
  },
38
- "gitHead": "bcd13d59b22553b3c9dc5869077bff1e864cf9f5"
38
+ "gitHead": "b898cf1dc8e70841d1647ea0994ac6278acc18a7"
39
39
  }