@wordpress/create-block 4.1.1 → 4.2.1-next.4d3b314fd5.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.
Files changed (2) hide show
  1. package/package.json +3 -3
  2. package/CHANGELOG.md +0 -337
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/create-block",
3
- "version": "4.1.1",
3
+ "version": "4.2.1-next.4d3b314fd5.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.4.3",
34
+ "@wordpress/lazy-import": "^1.5.1-next.4d3b314fd5.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": "f6021282457317c7e12dcc3a3f02c9ac28e16a30"
51
+ "gitHead": "25054766423cb49d959eb656c2533530073ff5c2"
52
52
  }
package/CHANGELOG.md DELETED
@@ -1,337 +0,0 @@
1
- <!-- Learn how to maintain this file at https://github.com/WordPress/gutenberg/tree/HEAD/packages#maintaining-changelogs. -->
2
-
3
- ## Unreleased
4
-
5
- ## 4.0.0 (2022-08-24)
6
-
7
- ### Breaking Change
8
-
9
- - Increase the minimum Node.js version to 14 and minimum npm version to 6.14.4 ([#43141](https://github.com/WordPress/gutenberg/pull/43141)).
10
-
11
- ### New Feature
12
-
13
- - Add `--no-plugin` flag to allow scaffolding of a block in an existing plugin ([#41642](https://github.com/WordPress/gutenberg/pull/41642))
14
- - Introduce the `--variant` flag to allow selection of a variant as defined in the template ([#41289](https://github.com/WordPress/gutenberg/pull/41289), [#43481](https://github.com/WordPress/gutenberg/pull/43481)).
15
-
16
- ## 3.6.0 (2022-07-13)
17
-
18
- ### Enhancement
19
-
20
- - Added prompt to continue when minimum system requirements not met ([#42151](https://github.com/WordPress/gutenberg/pull/42151)).
21
-
22
- ## 3.3.0 (2022-06-01)
23
-
24
- ### Enhancement
25
-
26
- - Read the block name from `block.json` file in JavaScript files ([#41273](https://github.com/WordPress/gutenberg/pull/41273)).
27
-
28
- ## 3.2.0 (2022-05-18)
29
-
30
- ### Bug Fix
31
-
32
- - Fix the `.editorconfig` file include to work correctly with YAML files ([#40994](https://github.com/WordPress/gutenberg/pull/40994)).
33
-
34
- ### Internal
35
-
36
- - Updated `commander` dependency from requiring `^4.1.0` to `^9.2.0` ([#40927](https://github.com/WordPress/gutenberg/pull/40927)).
37
-
38
- ## 3.1.0 (2022-04-08)
39
-
40
- ### New Features
41
-
42
- - Add `npmDevDependencies` template variable to allow definition of `devDependencies` as part of a template ([#39723](https://github.com/WordPress/gutenberg/pull/39723)).
43
-
44
- ## 3.0.0 (2022-03-03)
45
-
46
- ### Breaking Changes
47
-
48
- - It is no longer mandatory to provide the deprecated `templatesPath` option when configuring the custom project template ([#39049](https://github.com/WordPress/gutenberg/pull/39049)).
49
- - Custom project templates will use default template files during scaffolding for the WordPress plugin shell and/or individual blocks. It is possible to replace them with a custom set of template files by using the `pluginTemplatesPath` and/or `blockTemplatesPath` options ([#39049](https://github.com/WordPress/gutenberg/pull/39049)).
50
- - The default `esnext` project template got renamed to `static` ([#39049](https://github.com/WordPress/gutenberg/pull/39049)).
51
-
52
- ### New Features
53
-
54
- - Added CLI prompts for three additional plugin header fields: `Plugin URI`, `Domain Path`, and `Update URI` ([#39096](https://github.com/WordPress/gutenberg/pull/39096)).
55
-
56
- ### Deprecations
57
-
58
- - To remove confusion when configuring custom project templates, the `templatesPath` option got renamed to `pluginTemplatesPath`. The old name still works but is considered deprecated, and it might get removed in the future ([#39049](https://github.com/WordPress/gutenberg/pull/39049)).
59
-
60
- ### Documentation
61
-
62
- - Include a missing note on how to create a zip file for a WordPress plugin ([#39049](https://github.com/WordPress/gutenberg/pull/39049))
63
-
64
- ## 2.9.0 (2022-02-10)
65
-
66
- ### New Features
67
-
68
- - Automatically add a `"env": "wp-env"` entry to scripts when the `--wp-env` is passed or when a template sets `wpEnv` to `true` ([#38530](https://github.com/WordPress/gutenberg/pull/38530)).
69
- - Introduce the `customScripts` property to allow templates to define additional scripts ([#38535](https://github.com/WordPress/gutenberg/pull/38535)).
70
-
71
- ## 2.8.0 (2022-01-27)
72
-
73
- ### New Features
74
-
75
- - Integrated a new `plugin-zip` command to create a zip file for a WordPress plugin ([#37687](https://github.com/WordPress/gutenberg/pull/37687)).
76
- - Add support for handling block templates with the `blockTemplatesPath` field in the external template configuration ([#37612](https://github.com/WordPress/gutenberg/pull/37612)).
77
- - Add a new field `folderName` for setting the location for the `block.json` file and other optional block files generated from block templates included in the folder set with the `blockTemplatesPath` setting ([#37612](https://github.com/WordPress/gutenberg/pull/37612)).
78
-
79
- ### Enhancement
80
-
81
- - Speed up scaffolding process by omitting WordPress dependencies in the template ([#37639](https://github.com/WordPress/gutenberg/pull/37639)).
82
- - Update link to block registration reference ([#37674](https://github.com/WordPress/gutenberg/pull/37674))
83
-
84
- ### Internal
85
-
86
- - The bundled `npm-package-arg` dependency has been updated from requiring `^8.0.1` to requiring `^8.1.5` ([#37395](https://github.com/WordPress/gutenberg/pull/37395)).
87
-
88
- ## 2.7.0 (2021-11-07)
89
-
90
- ### New Features
91
-
92
- - Add $schema definition to generated `block.json` file.
93
-
94
- ## 2.6.0 (2021-10-22)
95
-
96
- ### New Features
97
-
98
- - Add passing local directories to --template. ([#35645](https://github.com/WordPress/gutenberg/pull/35645))
99
- - Add `slugPascalCase` to the list of variables that can be used in templates ([#35462](https://github.com/WordPress/gutenberg/pull/35462))
100
-
101
- ## 2.5.0 (2021-07-21)
102
-
103
- ### Enhancements
104
-
105
- - Add support for the new `version` field in the `block.json` metadata file ([#33075](https://github.com/WordPress/gutenberg/pull/33075)).
106
-
107
- ## 2.4.0 (2021-07-21)
108
-
109
- ### Enhancement
110
-
111
- - Plugin scaffolded with the `esnext` template requires WordPress 5.8 now ([#33252](https://github.com/WordPress/gutenberg/pull/33252).
112
- - Block scaffolded with the `esnext` template is now registered from `block.json` with the `register_block_type` helper ([#33252](https://github.com/WordPress/gutenberg/pull/33252)).
113
-
114
- ## 2.3.0 (2021-04-29)
115
-
116
- ### Enhancement
117
-
118
- - Rename `format:js` script to `format` ([#30240](https://github.com/WordPress/gutenberg/pull/30240)).
119
- - Updated `.editorconfig` template files to work with automatic file formatting ([#30794](https://github.com/WordPress/gutenberg/pull/30794)).
120
-
121
- ## 2.2.0 (2021-04-06)
122
-
123
- ### Enhancement
124
-
125
- - Scaffolded plugin requires WordPress 5.7 now ([#29757](https://github.com/WordPress/gutenberg/pull/29757)).
126
-
127
- ### New Features
128
-
129
- - Add new `theme` category to select for the block type ([#30089](https://github.com/WordPress/gutenberg/pull/30089)).
130
-
131
- ## 2.1.0 (2021-03-17)
132
-
133
- ### New Features
134
-
135
- - Add a way to provide a default value in the template for `attributes` and `supports` Block API fields ([#28883](https://github.com/WordPress/gutenberg/pull/28883)).
136
-
137
- ### Enhancement
138
-
139
- - Block scaffolded with `esnext` template is now registered from `block.json` with the `register_block_type_from_metadata` helper ([#28883](https://github.com/WordPress/gutenberg/pull/28883)).
140
-
141
- ### Bug Fixes
142
-
143
- - Updated `check-node-version` to version `^4.1.0` that no longer processes unrelated engines ([#29066](https://github.com/WordPress/gutenberg/pull/29066)).
144
- - Fixed the background color used in the CSS file that was invalid on the front-end.
145
-
146
- ## 2.0.1 (2021-02-01)
147
-
148
- ### Bug Fix
149
-
150
- - Extract the package name from the value passed as an external template ([#28383](https://github.com/WordPress/gutenberg/pull/28383)).
151
-
152
- ## 2.0.0 (2021-01-21)
153
-
154
- ### Breaking Changes
155
-
156
- - Increase the minimum Node.js version to 12 ([#27934](https://github.com/WordPress/gutenberg/pull/27934)).
157
-
158
- ### New Features
159
-
160
- - Add support for handling static assets with the `assetsPath` field in the external template configuration ([#28038](https://github.com/WordPress/gutenberg/pull/28038)).
161
- - Allow using locally installed packages with templates ([#28105](https://github.com/WordPress/gutenberg/pull/28105)).
162
- - Add new CLI option `--wp-env` that lets users override the setting that template defines for integration with `@wordpress/env` package ([#28234](https://github.com/WordPress/gutenberg/pull/28234)).
163
-
164
- ### Internal
165
-
166
- - Update the demo included in the README file ([#28037](https://github.com/WordPress/gutenberg/pull/28037)).
167
-
168
- ## 1.1.0 (2021-01-05)
169
-
170
- ### New Feature
171
-
172
- - Adds the `npmDependencies` field to the template configuration. It allows listing remote npm dependencies that will be installed in the scaffolded project ([#27880](https://github.com/WordPress/gutenberg/pull/27880)).
173
- - Installs WordPress npm dependencies used in the `esnext` template during the scaffolding process ([#27880](https://github.com/WordPress/gutenberg/pull/27880)).
174
-
175
- ### Bug Fix
176
-
177
- - Print the block class name in the `save` method in scaffolded templates ([#27988](https://github.com/WordPress/gutenberg/pull/27988)).
178
-
179
- ## 1.0.2 (2020-12-17)
180
-
181
- ### Bug Fix
182
-
183
- - Second attempt to fix support for external templates by using a temporary folder when downloading npm package.
184
-
185
- ## 1.0.1 (2020-12-17)
186
-
187
- ### Bug Fix
188
-
189
- - Fix support for external templates hosted on npm.
190
-
191
- ## 1.0.0 (2020-12-17)
192
-
193
- ### Breaking Changes
194
-
195
- - Set the minimum required version of WordPress to 5.6.0 to ensure that block is correctly registered with the [Block API version 2](https://make.wordpress.org/core/2020/11/18/block-api-version-2/) ([#26098](https://github.com/WordPress/gutenberg/pull/26098)).
196
-
197
- ### New Features
198
-
199
- - Added basic support for external templates hosted on npm ([#23712](https://github.com/WordPress/gutenberg/pull/23712)).
200
- - Update templates to work with the [Block API version 2](https://make.wordpress.org/core/2020/11/18/block-api-version-2/) ([#26098](https://github.com/WordPress/gutenberg/pull/26098)).
201
-
202
- ## 0.18.0 (2020-10-30)
203
-
204
- ### Breaking Changes
205
-
206
- - Update the list of available block categories to align with changes introduced in WordPress 5.5.0 (https://make.wordpress.org/core/2020/07/30/block-api-updates-in-5-5/).
207
- - Set the minimum required version of WordPress to 5.5.0 to ensure that block is correctly registered with new block categories.
208
-
209
- ## 0.16.0 (2020-06-25)
210
-
211
- ### New Feature
212
-
213
- - Generate `block.json` file with all metadata necessary for Block Directory ([#23399](https://github.com/WordPress/gutenberg/pull/23399)).
214
-
215
- ### Bug Fix
216
-
217
- - Fix the error in the scaffolding process caused by the missing `scripts` section in `package.json` file ([#23443](https://github.com/WordPress/gutenberg/pull/23443)).
218
-
219
- ## 0.15.0-rc.0 (2020-06-24)
220
-
221
- ### New Feature
222
-
223
- - Add new CLI options: `--no-wp-scripts` and `--wp-scripts` to let users override the settings that template defines for supports for `@wordpress/scripts` package integration ([#23195](https://github.com/WordPress/gutenberg/pull/23195)).
224
-
225
- ## 0.14.2 (2020-06-16)
226
-
227
- ### Bug Fix
228
-
229
- - Fix errors reported by CSS linter in ESNext template by using hex colors in CSS files ([#23188](https://github.com/WordPress/gutenberg/pull/23188)).
230
-
231
- ## 0.14.1 (2020-06-15)
232
-
233
- ### Bug Fix
234
-
235
- - Fix an error reported by JavaScript linter by improving JSDoc comment in ESNext template in `src/edit.js` file ([#23164](https://github.com/WordPress/gutenberg/pull/23164)).
236
-
237
- ## 0.14.0 (2020-06-15)
238
-
239
- ### Enhancements
240
-
241
- - Update `esnext` (default) template to leverage CSS import in JavaScript support added to `@wordpress/scripts` ([#22727](https://github.com/WordPress/gutenberg/pull/22727/files)).
242
-
243
- ## 0.13.0 (2020-05-28)
244
-
245
- ### Internal
246
-
247
- - Refactored handling of predefined block templates [#22235](https://github.com/WordPress/gutenberg/pull/22235).
248
-
249
- ## 0.12.0 (2020-04-30)
250
-
251
- ### New Features
252
-
253
- - Add more CLI options: `--namespace`, `--title`, `--short-description` and `--category`. The goal is to make it easier to override default values used for scaffolding ([#21751](https://github.com/WordPress/gutenberg/pull/21751)).
254
-
255
- ### Enhancements
256
-
257
- - Update `esnext` (default) template to scaffold 3 JavaScript source files to illustrate how ES modules help to better organize code ([#21750](https://github.com/WordPress/gutenberg/pull/21750)).
258
-
259
- ## 0.10.0 (2020-04-01)
260
-
261
- ### New Features
262
-
263
- - Added readme.txt file to the existing templates to make your entry in the plugin browser most useful ([#20694](https://github.com/WordPress/gutenberg/pull/20694)).
264
- - Added prompts for the `author`, `license` and `version` of the plugin ([#20694](https://github.com/WordPress/gutenberg/pull/20694)).
265
-
266
- ### Bug Fixes
267
-
268
- - Make `version` prompt mandatory and provide validation against semantic versioning ([#20756](https://github.com/WordPress/gutenberg/pull/20756)).
269
- - Omit optional values in the scaffolded files when they aren't provided ([#20756](https://github.com/WordPress/gutenberg/pull/20756)).
270
-
271
- ## 0.8.3 (2020-02-26)
272
-
273
- ### Bug Fixes
274
-
275
- - Fixed buggy check for minimum system requirements when run with `npx` and `npm init` ([#20461](https://github.com/WordPress/gutenberg/pull/20461)).
276
-
277
- ## 0.8.1 (2020-02-25)
278
-
279
- ### Bug Fixes
280
-
281
- - Added error message when minimum system requirements not met ([#20398](https://github.com/WordPress/gutenberg/pull/20398/)).
282
- - Corrected the minimum `npm` version required to align with `@wordpress/scripts` package used internally ([#20398](https://github.com/WordPress/gutenberg/pull/20398/)).
283
-
284
- ## 0.8.0 (2020-02-21)
285
-
286
- ### New Features
287
-
288
- - Added support for `format:js` script to the block scaffolded with ESNext template ([#20335](https://github.com/WordPress/gutenberg/pull/20335)).
289
-
290
- ## 0.6.0 (2020-02-04)
291
-
292
- ### Enhancements
293
-
294
- - Removed the code that clears the terminal while the block is scaffolded ([#19867](https://github.com/WordPress/gutenberg/pull/19867)).
295
-
296
- ### Bug Fixes
297
-
298
- - Use the description provided to fill the `description` field in `package.json` file in ESNext template ([#19867](https://github.com/WordPress/gutenberg/pull/19867)).
299
- - Ensure that values provided for slug and namespace get converted to lower case ([#19867](https://github.com/WordPress/gutenberg/pull/19867)).
300
-
301
- ### Internal
302
-
303
- - Relocated npm packge from `create-wordpress-block` to `@wordpress/create-block` ([#19773](https://github.com/WordPress/gutenberg/pull/19773)).
304
-
305
- ## 0.5.0 (2020-01-08)
306
-
307
- ### New Features
308
-
309
- - Update templates to include WordPress plugin metadata by default.
310
-
311
- ## 0.4.3 (2020-01-08)
312
-
313
- ### Bug Fix
314
-
315
- - Print available commands only for ESNext template.
316
-
317
- ## 0.4.0 (2019-12-17)
318
-
319
- ### New Features
320
-
321
- - Add full support for ESNext template, including `wp-scripts` bootstrapping.
322
-
323
- ### Enhancements
324
-
325
- - Improve the feedback shared on the console while scaffolding a block.
326
-
327
- ## 0.3.2 (2019-12-16)
328
-
329
- ### Bug Fix
330
-
331
- - Fix the paths pointing to the JS build file listed in PHP file in the ESNext template.
332
-
333
- ## 0.3.0 (2019-12-16)
334
-
335
- ### New Features
336
-
337
- - Added support for template types. `esnext` becomes the default one. `es5` is still available as an option.