Skip to content

Version 3 Migration

Mat Lipe edited this page Jul 5, 2024 · 5 revisions

Version 3 introduces a new baseline of WP 6.6. Anything which was deprecated by Gutenberg in WP 6.6 is still backward compatible and marked as @deprecated. Anything deprecated in WP 6.5 or earlier has been removed.

Migration Process

  1. Update site to WP 6.5.
  2. Update this package to the latest version 2.*.
  3. Convert all @deprecated items.
  4. Update site to WP 6.6.
  5. Update this package to version 3.*.
  6. Convert all @deprecated items (Recommended).

Removed Items:

  1. useSelect without specifying deps.
  2. RichText.multiline
  3. RichText.onSplit
  4. colorOptions in favor of Array<ColorOption>.
  5. CheckboxControl.heading.
  6. ColorPicker.defaultValue.
  7. PopoverProps.anchorRef use anchor.
  8. PopoverProps.getAnchorRect use anchor.
  9. PopoverProps.isAlternate use variant.
  10. @wordpress/components ServerSideRender use @wordpress/server-side-render.
  11. select('core').getAuthors.
  12. select('core/editor').getBlockIndex.
  13. select('core/editor').getBlocks use 'core/block-editor'.
  14. select('core/editor').getSelectedBlockClientId use 'core/block-editor'.
  15. select('core/edit-post').isEditorPanelEnabled use 'core/editor'.
  16. select('core/edit-post').isEditorPanelOpened use 'core/editor'.
  17. select('core/edit-post').isEditorPanelRemoved use 'core/editor'.
  18. select('core/edit-site').getCurrentTemplateNavigationPanelSubMenu
  19. select('core/edit-site').getHomeTemplateId
  20. select('core/edit-site').getPage
  21. select('core/edit-site').getNavigationPanelActiveMenu
  22. select('core/edit-site').isNavigationOpened
  23. dispatch( 'core/edit-post').removeEditorPanel use 'core/editor'
  24. dispatch( 'core/edit-post').toggleEditorPanelEnabled use 'core/editor'
  25. dispatch( 'core/edit-post').toggleEditorPanelOpened use 'core/editor'
  26. dispatch( 'core/editor').clearSelectedBlock
  27. dispatch( 'core/editor').selectBlock use 'core/block-editor'
  28. The entire '@wordpress/element' package.
  29. _x
  30. _nx
  31. BlockClientId use CreateBlock
Clone this wiki locally