Skip to content

Commit

Permalink
Gutenberg Plugin: Remove deprecations planned for 10.3 release (#30417)
Browse files Browse the repository at this point in the history
* Gutenberg Plugin: Remove deprecations planned for 10.3 release

* Docs: Add changelog entry
  • Loading branch information
gziolo authored Mar 31, 2021
1 parent e70720a commit df8e730
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 14 deletions.
4 changes: 4 additions & 0 deletions packages/interface/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

### Breaking Changes

- Passing a tuple of components with `as` prop to `ActionItem.Slot` component is no longer supported. Please pass a component with `as` prop instead ([#30417](https://github.com/WordPress/gutenberg/pull/30417)).

## 1.1.0 (2021-03-17)

### Deprecations
Expand Down
15 changes: 1 addition & 14 deletions packages/interface/src/components/action-item/index.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
/**
* External dependencies
*/
import { isArray, isEmpty, noop } from 'lodash';
import { isEmpty, noop } from 'lodash';

/**
* WordPress dependencies
*/
import { ButtonGroup, Button, Slot, Fill } from '@wordpress/components';
import deprecated from '@wordpress/deprecated';
import { Children } from '@wordpress/element';

function ActionItemSlot( {
Expand All @@ -17,18 +16,6 @@ function ActionItemSlot( {
bubblesVirtually,
...props
} ) {
if ( isArray( Component ) ) {
deprecated(
'Passing a tuple of components with `as` prop to `ActionItem.Slot` component',
{
since: '10.2',
plugin: 'Gutenberg',
alternative: 'a component with `as` prop',
version: '10.3',
}
);
Component = Component[ 0 ];
}
return (
<Slot
name={ name }
Expand Down

0 comments on commit df8e730

Please sign in to comment.