Skip to content

Commit

Permalink
Lower deprecation version to 4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
mcsf committed Oct 12, 2018
1 parent 2712de7 commit bf89150
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 9 deletions.
7 changes: 2 additions & 5 deletions docs/reference/deprecated.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
Gutenberg's deprecation policy is intended to support backwards-compatibility for two minor releases, when possible. The current deprecations are listed below and are grouped by _the version at which they will be removed completely_. If your plugin depends on these behaviors, you must update to the recommended alternative before the noted version.

## 4.4.0

- `wp.blocks.setUnknownTypeHandlerName` has been removed. Please use `setFreeformContentHandlerName` and `setUnregisteredTypeHandlerName` instead.
- `wp.blocks.getUnknownTypeHandlerName` has been removed. Please use `getFreeformContentHandlerName` and `getUnregisteredTypeHandlerName` instead.

## 4.2.0

- Writing resolvers as async generators has been removed. Use the controls plugin instead.
Expand All @@ -18,6 +13,8 @@ Gutenberg's deprecation policy is intended to support backwards-compatibility fo
- Attribute type coercion has been removed. Omit the source to preserve type via serialized comment demarcation.
- `mediaDetails` in object passed to `onFileChange` callback of `wp.editor.mediaUpload`. Please use `media_details` property instead.
- `wp.components.CodeEditor` has been removed. Used `wp.codeEditor` directly instead.
- `wp.blocks.setUnknownTypeHandlerName` has been removed. Please use `setFreeformContentHandlerName` and `setUnregisteredTypeHandlerName` instead.
- `wp.blocks.getUnknownTypeHandlerName` has been removed. Please use `getFreeformContentHandlerName` and `getUnregisteredTypeHandlerName` instead.

## 4.1.0

Expand Down
4 changes: 2 additions & 2 deletions packages/blocks/src/api/registration.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ export function unregisterBlockType( name ) {
export function setUnknownTypeHandlerName( name ) {
deprecated( 'setUnknownTypeHandlerName', {
plugin: 'Gutenberg',
version: '4.4',
version: '4.2',
alternative: 'setFreeformContentHandlerName and setUnregisteredTypeHandlerName',
} );
setFreeformContentHandlerName( name );
Expand All @@ -195,7 +195,7 @@ export function setUnknownTypeHandlerName( name ) {
export function getUnknownTypeHandlerName() {
deprecated( 'getUnknownTypeHandlerName', {
plugin: 'Gutenberg',
version: '4.4',
version: '4.2',
alternative: 'getFreeformContentHandlerName and getUnregisteredTypeHandlerName',
} );
return getFreeformContentHandlerName();
Expand Down
2 changes: 1 addition & 1 deletion packages/blocks/src/store/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export function setDefaultBlockName( name ) {
export function setFallbackBlockName( name ) {
deprecated( 'setFallbackBlockName', {
plugin: 'Gutenberg',
version: '4.4',
version: '4.2',
alternative: 'setFreeformFallbackBlockName and setUnregisteredFallbackBlockName',
} );
return setFreeformFallbackBlockName( name );
Expand Down
2 changes: 1 addition & 1 deletion packages/blocks/src/store/selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export function getDefaultBlockName( state ) {
export function getFallbackBlockName( state ) {
deprecated( 'getFallbackBlockName', {
plugin: 'Gutenberg',
version: '4.4',
version: '4.2',
alternative: 'getFreeformFallbackBlockName and getUnregisteredFallbackBlockName',
} );
return getFreeformFallbackBlockName( state );
Expand Down

0 comments on commit bf89150

Please sign in to comment.