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