@wordpress/create-block 4.29.0 → 4.30.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/README.md CHANGED
@@ -15,7 +15,7 @@ _It is largely inspired by [create-react-app](https://create-react-app.dev/docs/
15
15
  - [Interactive Mode](#interactive-mode)
16
16
  - [`slug`](#slug)
17
17
  - [`options`](#options)
18
- - [Available Commands](#available-commands)
18
+ - [Available Commands](#available-commands-in-the-scaffolded-project)
19
19
  - [External Project Templates](#external-project-templates)
20
20
  - [Contributing to this package](#contributing-to-this-package)
21
21
 
@@ -141,7 +141,7 @@ For example, running the `start` script from inside the generated folder (`npm s
141
141
 
142
142
  ## External Project Templates
143
143
 
144
- [Click here](https://github.com/WordPress/gutenberg/tree/HEAD/packages/create-block/docs/external-template.md) for information on External Project Templates
144
+ [Click here](https://developer.wordpress.org/block-editor/reference-guides/packages/packages-create-block/packages-create-block-external-template/) for information on External Project Templates
145
145
 
146
146
  ## Contributing to this package
147
147
 
package/lib/templates.js CHANGED
@@ -269,8 +269,7 @@ const getVariantVars = ( variants, variant ) => {
269
269
  for ( const variantName of variantNames ) {
270
270
  const key =
271
271
  variantName.charAt( 0 ).toUpperCase() + variantName.slice( 1 );
272
- variantVars[ `is${ key }Variant` ] =
273
- currentVariant === variantName ?? false;
272
+ variantVars[ `is${ key }Variant` ] = currentVariant === variantName;
274
273
  }
275
274
 
276
275
  return variantVars;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/create-block",
3
- "version": "4.29.0",
3
+ "version": "4.30.0",
4
4
  "description": "Generates PHP, JS and CSS code for registering a block for a WordPress plugin.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -31,7 +31,7 @@
31
31
  "wp-create-block": "./index.js"
32
32
  },
33
33
  "dependencies": {
34
- "@wordpress/lazy-import": "^1.32.0",
34
+ "@wordpress/lazy-import": "^1.33.0",
35
35
  "chalk": "^4.0.0",
36
36
  "change-case": "^4.1.2",
37
37
  "check-node-version": "^4.1.0",
@@ -48,5 +48,5 @@
48
48
  "publishConfig": {
49
49
  "access": "public"
50
50
  },
51
- "gitHead": "2a00e87b57b9c27ed2b9b0fd8d423ef3cada72c1"
51
+ "gitHead": "839018ff6029ba749780e288e08ff9cd898e50e8"
52
52
  }