chore(deps): update wordpress monorepo (major)
This MR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
@wordpress/api-fetch (source) | devDependencies | major | ^5.2.5 -> ^6.0.0 |
@wordpress/babel-preset-default (source) | devDependencies | major | ^6.3.4 -> ^7.0.0 |
@wordpress/block-editor (source) | devDependencies | major | ^3.9.1 -> ^12.0.0 |
@wordpress/blocks (source) | devDependencies | major | ^11.1.4 -> ^12.0.0 |
@wordpress/browserslist-config (source) | devDependencies | major | ^4.1.0 -> ^5.0.0 |
@wordpress/components (source) | devDependencies | major | ^19.0.1 -> ^25.0.0 |
@wordpress/compose (source) | devDependencies | major | ^5.0.5 -> ^6.0.0 |
@wordpress/dependency-extraction-webpack-plugin (source) | devDependencies | major | ^3.2.1 -> ^4.0.0 |
@wordpress/element (source) | devDependencies | major | ^4.0.3 -> ^5.0.0 |
@wordpress/env (source) | devDependencies | major | ^5.7.0 -> ^8.0.0 |
Release Notes
WordPress/gutenberg (@wordpress/api-fetch)
v6.41.0
v6.40.0
v6.39.9
v6.39.8
v6.39.7
v6.39.6
v6.39.5
v6.39.4
v6.39.3
v6.39.2
v6.39.1
v6.39.0
v6.38.0
v6.37.1
v6.37.0
v6.36.0
v6.35.0
v6.34.0
v6.33.0
v6.32.2
v6.32.1
v6.32.0
v6.31.0
v6.30.0
v6.29.0
v6.28.0
v6.27.0
v6.26.0
v6.25.0
v6.24.0
v6.23.2
v6.23.1
v6.23.0
v6.22.0
v6.21.0
v6.20.0
v6.19.0
v6.18.0
v6.17.0
v6.16.0
v6.15.0
v6.14.1
v6.14.0
v6.13.0
v6.12.0
v6.11.0
v6.10.0
v6.9.0
v6.8.0
v6.7.0
v6.6.0
v6.5.0
v6.4.0
v6.3.1
v6.3.0
v6.2.0
v6.1.1
: 6.1.1
Bug Fixes
- Prevent automatic conversion of widgets to blocks when using the customizer.
- Fix missing block properties on block registration filters used for the deprecated versions.
v6.1.0
v6.0.1
v6.0.0
Breaking changes
OPTIONS
requests handled by the preloading middleware are now resolved as window.Response
objects if you explicitly set parse: false
(for consistency with how GET requests are resolved). They used to be resolved as Plain Old JavaScript Objects
.
WordPress/gutenberg (@wordpress/babel-preset-default)
v7.28.0
v7.27.0
Internal
- The bundled
browserslist
dependency has been updated from requiring^4.21.9
to requiring^4.21.10
(#54657).
v7.26.9
v7.26.8
v7.26.7
v7.26.6
v7.26.5
v7.26.4
v7.26.3
v7.26.2
v7.26.1
v7.26.0
v7.25.0
v7.24.1
v7.24.0
v7.23.0
v7.22.0
v7.21.0
v7.20.0
v7.19.2
v7.19.1
v7.19.0
Enhancement
- Enable the
bugfixes
option in@babel/preset-env
to remove unneeded transpilation (#50994).
v7.18.0
v7.17.0
v7.16.0
v7.15.0
v7.14.0
Enhancement
- Exclude IE-only
setImmediate
/clearImmediate
from list of polyfills.
v7.13.0
v7.12.0
v7.11.0
v7.10.3
v7.10.2
v7.10.1
v7.10.0
v7.9.0
v7.8.0
v7.7.0
v7.6.0
v7.5.0
v7.4.0
v7.3.0
v7.2.0
v7.1.1
v7.1.0
: 7.1.0
Features
- Adding a menu to visually switch between edit and navigation modes and announce the mode changes to screen reader users.
- Support adding a caption to the Table block.
- Implement a Welcome Guide modal.
Enhancements
- Use a Fixed Block Toolbar on Mobile Web.
- Block UI:
- Remove the parent block from the block title component.
- Remove dashed outlines for child and parent blocks.
- Remove hover styles.
- Navigation block:
- Keep a single place to trigger the “Open in a new tab” option.
- Fix overflow by allowing wrapping of menu items.
- Fix double click to open the appender.
- Add a type=submit to the search suggestion buttons.
- Support justifying the menu items.
- Use correct classnames for navigation link block save output.
- Remove the inspector controls.
- Improve the block multi-selection:
- A11y: Use the browser’s selection default color.
- Polish the styles.
- Responsive multi-selection.
- Allow pasting on multi-selection.
- Improve the Image blocks replacement flow/UI.
- Disable the HTML mode in the Cover block.
- Add friendly offline error messages on Rest API request failures.
- Round the focal point coordinates.
- Popover & Dropdowns: Consistently and smoothly adjust the position on scroll.
- Remove clearing the block selection on sidebar tab switch.
- Separate editor notices by border instead of margin.
- Allow drag and dropping images into the featured image box.
Bug Fixes
- Prevent resized Image blocks from overlapping the boundaries of the block.
- Fix wrong link to attachment page after replacing images.
- Fix Media & Text block: "Crop image to fill entire column" reset on image change.
- Fix the Snackbar notices position.
- Save the Verse block line breaks as single characters.
- Remove has-background-dim-NaN classname from the Cover block.
- Normalize the keys of the apiFetch preloaded data to avoid unnecessary Rest API calls.
- Fix CSS styles of the ColorPicker component.
- Update the Inspector slots to use the bubblesVirtually slots Fixing RichText usage in Inspector controls.
- Move the Modals and Popovers to the right position in the DOM.
- Fix alignment of date picker days when used in block.
- Fix alignment of ToggleControl label.
- Fix the toggled state in the block toolbar buttons.
- Fix the multi-select inspector padding.
- Fix the behavior that allows writing by clicking anywhere in the canvas.
- Prevent private posts with a future date from becoming public on update.
- Fix useColors crashes if contrast checkers are not specified.
- Render metaboxes as a single seemless unit to fix styling issues for themes with colored backgrounds.
- Fix the FontSizePicker custom option.
- Fix reusable blocks showing up as too tall.
- Fix Drop Cap + alignment producing a gap between paragraphs.
- Fix Cover to Image block transform when no image is used in the Cover block.
- Ensure empty classname is not output onto table element.
- Fix scrolling the sidebar on mobile.
- I18: Fix the Code block example string.
APIs
- Support a disabled prop in the RichText component.
- Add a new CustomSelectControl component.
- Add a new TextHighlight component.
- Add a new CustomGradientPicker component.
- Add useViewportMatch React hook to the @wordpress/compose package.
- Allowing changing the aXe config in the @wordpress/just-puppeteer-axe package.
Experiments
- Block Content Areas:
- Add a demo templates directory.
- Add the Template Part block.
- Add documentation for the current state of the experiment.
- Widgets screen:
- Clear the block selection when clicking outside the widget areas.
- APIs:
- Add a new __experimentalResolveSelect API to the data package.
- Add color detection and contrast checks support to the useColors hook.
Documentation
- Improvements to the Getting Started documentation.
- Include TypeScript type checking in Testing Overview.
- Add JSDoc recommendations.
- Reintroduce NodeJS LTS support commitment.
- Typos and tweaks: 1, 2, 3, 4, 5, 6.
Performance
- Avoid rerendering the EditorRegions component on each click.
- Flatten and simplify the align hook rendering.
- Shim the meta attribute source on block registration.
Various
- Storybook: Add StoryShots integration to generate unit tests.
- Work on the stability of e2e tests: 1, 2, 3, 4, 5.
- Use consistent theme colors and font sizes in e2e tests.
- Travis: Skip the deploy stage on MRs.
- And a Travis job to check the IE11 compatibility of the produced JavaScript builds.
- Avoid usage of editor store on block editor reusable blocks inserter.
- Replace the fs-extra dependency with rimraf.
- RSS block: Remove PHP 5.2 compatibility code.
- Update the Columns block to use the Patterns API.
- Refactor the BlockToolbar component to use React hooks.
- Refactor the BlockDraggable component for a simpler React tree.
- Refactor the BlockHTML component to use React hooks.
- Refactor the BlockList component to use React hooks.
- Refactor the BlockInsertionPoint component to use React hooks.
- Split @wordpress/urls into multiple modules/files to allow better tree-shaking.
- Improve the Storybook setup to allow updates on style changes.
- Enforce consistent usage of Button and ToolbarGroup components.
- Use the colors hook in the Paragraph block.
- Add missing actions and tests for lockPostAutosaving, unlockPostAutosaving.
- Collapse passed tests in Travis jobs.
- Add side effects property to the @wordpress/components package to allow tree-shaking.
- Add a script to perform patch releases for old npm package versions.
- Reuse the URLInput component in the Social Links block and disable suggestions.
- Improve and simplify reusable block styles.
- Refactor the Gallery edit component to be semi-cross-platform.
- Run tests using the same environment version used for development.
- Add CPU/Network slowdown configuration options to the e2e tests setup.
- Enable Type checking for the @wordpress/token-list package.
- Move the changelog.txt and readme.txt files to the Github repository.
v7.0.0
Breaking Change
- Increase the minimum Node.js version to 14 (#43141).
WordPress/gutenberg (@wordpress/block-editor)
v12.12.0
v12.11.1
v12.11.0
- Deprecated
CopyHandler
, absorbed intoWritingFlow
.
v12.10.9
v12.10.8
v12.10.7
v12.10.6
v12.10.5
v12.10.4
v12.10.3
v12.10.2
v12.10.1
v12.10.0
- The Deprecated multiline prop on RichText will now fall back to using multiple rich text instances instead of a single multiline instance. The prop remains deprecated.
v12.9.0
Enhancements
- Embed the
ObserveTyping
behavior within theBlockList
component making to simplify instanciations of third-party block editors.
v12.8.1
: 12.8.1
Changelog
Bug Fixes
- Templates page: reduce z-index of content area (39331)
v12.8.0
v12.7.0
v12.6.0
v12.5.0
v12.4.0
Enhancements
- Add
HeadingLevelDropdown
component for selecting H1-H6 and paragraph HTML tags from the block toolbar.
Bug Fix
- Fluid typography: custom font-sizes should use max viewport width (#51516).
v12.3.15
v12.3.14
v12.3.13
v12.3.12
v12.3.11
v12.3.10
v12.3.9
v12.3.8
v12.3.7
v12.3.6
v12.3.5
v12.3.4
v12.3.3
v12.3.2
: 12.3.2
Bug Fixes
Block Library
- Spacer: Fix unit settings filter. (37774)
v12.3.1
: 12.3.1
Bug Fixes
- Restore canvas padding for classic themes (#37741).
- Site logo: Fix range control on landscape logos (#37733).
- RichText: Fix dead key input on Windows (#37777).
- Update: Improve escaping on the search block (#37829).
- Fix: Impossible to clear colors if color palettes are removed. (#37791).
v12.3.0
v12.2.0
v12.1.0
-
MediaPlaceholder
: Remove the undocumentedonHTMLDrop
prop (#49673).
v12.0.0
Breaking Changes
- Renamed utility function
immutableSet
tosetImmutably
(#50040).
v11.8.0
v11.7.0
-
ImageSizeControl
: Update image size label (#49112).
v11.6.0
v11.5.0
Bug Fix
-
SpacingSizesControl
: fix white dot on thumb (#48574).
v11.4.0
Bug Fix
-
LinkControl
: fix scrollbar displayed on toggle link settings (#47986).
v11.3.11
v11.3.10
v11.3.9
v11.3.8
v11.3.7
v11.3.6
v11.3.5
v11.3.4
v11.3.3
v11.3.2
v11.3.1
v11.3.0
v11.2.0
Bug Fix
-
BlockInspector
: Fix browser warning error when block is not selected (#46875). - Move component styles needed for iframes to content styles (#47103).
- Block Inserter: Correctly apply style to the default inserter (#47166).
- List View: Fix crash when the first template-parts is deleted width del key (#47227).
v11.1.0
v11.0.0
Breaking Changes
- Updated dependencies to require React 18 (45235)
Enhancements
-
URLInput
: therenderSuggestions
callback prop now receivescurrentInputValue
as a new parameter (45806). - Fluid typography: add configurable fluid typography settings for minimum font size to theme.json (#42489).
-
URLInput
: Add__nextHasNoMarginBottom
prop for opting into the new margin-free styles (46692).
Bug Fix
-
SpacingSizesControl
: Change ARIA role fromregion
togroup
to avoid unwanted ARIA landmark regions (#46530). -
FocalPointPicker
: Fix layout misalignment when placed in theBlockInspector
(#46631).
v10.5.0
Enhancement
-
BlockLockModal
: Move Icon component out of CheckboxControl label (#45535) - Fluid typography: adjust font size min and max rules (#45536).
v10.4.0
Bug Fix
-
InserterListItem
: Fix dragging and dropping in Firefox. (#44631)
v10.3.0
Bug Fix
-
FontSizePicker
: Update fluid utils so that only string, floats and integers are treated as valid font sizes for the purposes of fluid typography (#44847) -
getTypographyClassesAndStyles()
: Ensure that font sizes are transformed into fluid values if fluid typography is activated (#44852) -
BlockPopover
: Ensure that padding and margin visualizers display in correct position even when scrolling past block. (#44998)
New features
- You can now drop files/blocks/HTML on unmodified default blocks to transform them into corresponding blocks (#44647).
v10.2.0
v10.1.0
v10.0.10
v10.0.9
v10.0.8
v10.0.7
v10.0.6
v10.0.5
v10.0.4
v10.0.3
v10.0.2
: 10.0.2
Bug Fixes
- Fix white screen on RTL languages. (29256)
- Fix Button block borders for the solid style variation.
v10.0.1
: 10.0.1
Bug Fixes
- CSS-in-JS: Fix inline comment for select-dropdown (external module)
v10.0.0
Breaking change
-
FontSizePicker
: Deprecate bottom margin style. Add a__nextHasNoMarginBottom
prop to start opting into the margin-free styles that will become the default in a future version, currently scheduled to be WordPress 6.4 (#43870).
v9.8.0
v9.7.0
v9.6.0
v9.5.0
v9.4.0
v9.3.0
Bug fix
- Fix focus trap on certain
input
elements when navigating within a block with the left/right arrow keys (#41538).
v9.2.0
v9.1.0
v9.0.0
Breaking change
-
BlockNavigationDropdown
is now deprecated. Use theDropdown
component from the@wordpress/components
package and theListView
component from this package (#40777). -
ListView
no longer accepts the__experimentalFeatures
,__experimentalPersistentListViewFeatures
,__experimentalHideContainerBlockActions
, andshowNestedBlocks
props. Passing additional undocumented props through toListView
is also now disallowed. (#40777).
v8.6.0
v8.5.10
v8.5.9
v8.5.8
v8.5.7
v8.5.6
v8.5.5
v8.5.4
v8.5.3
v8.5.2
v8.5.1
: 8.5.1
Bug Fixes
- Improve the performance of the Site builder page.
- Load external images if local images not present.
v8.5.0
v8.4.0
v8.3.1
v8.3.0
v8.2.0
New Features
-
LineHeightControl
: Changes internal implementation to useNumberControl
, which allows enhanced interactions such as dragging to change the value. To improve consistency with other control components, the bottom margin styles on the component has been deprecated, and will be removed in a future version. To opt into this simplified margin style, set the__nextHasNoMarginBottom
prop totrue
.
v8.1.2
v8.1.1
Bug Fix
- Removed unused
@wordpress/block-serialization-default-parser
,css-mediaquery
,memize
andredux-multi
dependencies (#38388).
New Features
- List View now supports selecting and dragging multiple blocks via
SHIFT
clicking items in the list #38314.
v8.1.0
v8.0.18
v8.0.17
v8.0.16
v8.0.15
v8.0.14
v8.0.13
v8.0.12
v8.0.11
v8.0.10
v8.0.9
v8.0.8
v8.0.7
v8.0.6
v8.0.5
v8.0.4
v8.0.3
v8.0.2
v8.0.1
v8.0.0
Performance
- Avoid re-rendering all List View items on block focus #35706. When List View is open Block focus time is 4 times faster in large posts.
- Render fixed number of items in List View #35706. Opening List View is 13 times faster in large posts.
Breaking change
- List View no longer supports the
showOnlyCurrentHierarchy
flag #35706. To display a subset of blocks, use theblocks
parameter instead.
v7.0.4
v7.0.3
v7.0.2
v7.0.1
v7.0.0
Breaking Change
- Upgraded React components to work with v17.0 (#29118). There are no new features in React v17.0 as explained in the blog post.
v6.2.0
New Features
-
ButtonBlockerAppender
is nowButtonBlockAppender
, the original name was a typo, but is still being exported for backward compatibility.
v6.1.15
v6.1.14
v6.1.13
v6.1.12
v6.1.10
v6.1.9
v6.1.8
v6.1.7
v6.1.6
v6.1.5
v6.1.4
v6.1.3
v6.1.2
v6.1.1
: 6.1.1
Bug Fixes
- Prevent automatic conversion of widgets to blocks when using the customizer.
- Fix missing block properties on block registration filters used for the deprecated versions.
v6.1.0
v6.0.0
Breaking Changes
- Drop support for Internet Explorer 11 (#31110). Learn more at https://make.wordpress.org/core/2021/04/22/ie-11-support-phase-out-plan/.
- Increase the minimum Node.js version to v12 matching Long Term Support releases (#31270). Learn more at https://nodejs.org/en/about/releases/.
v5.3.3
v5.3.2
v5.3.1
v5.3.0
- Add
JustifyToolbar
component abstracted out of the Navigation block so can be used elsewhere.
v5.2.13
v5.2.12
v5.2.11
v5.2.10
v5.2.9
v5.2.8
v5.2.7
v5.2.6
v5.2.5
v5.2.4
v5.2.3
v5.2.2
v5.2.1
v5.2.0
New Feature
- Added a store definition
store
for the block editor namespace to use with@wordpress/data
API (#26655).
v5.1.8
v5.1.7
v5.1.6
v5.1.5
v5.1.4
v5.1.3
v5.1.2
v5.1.1
: 5.1.1
Changelog
Bug Fixes
- Fixes a Firefox regression causing block content to be deleted.
v5.1.0
: 5.1.0
Features
- Add a new Search block.
- Add a new Calendar block.
- Add a new Tag Cloud block.
Enhancements
- Add micro-animations to the editor UI:
- Restore the block movers for the floated blocks.
- Consistency in alignment options between archives and categories blocks.
- Set the minimum size for form fields on mobile.
- Disable the block navigation in the code editor mode.
- Consistency for the modal styles.
- Improve the FormToggle styling when used outside of WordPress context.
- Use the block icons in the media placeholders.
- Fix rounded corners for the block svg icons.
- Improve the CSS specificity of the paragraph block styles.
- Require an initial click on embed previews before being interactive.
- Improve the disabled block switcher styles.
- Do not split paragraph line breaks when transforming multiple paragraphs to a list.
- Enhance the Quote block styling for different text alignments.
- Remove the left padding from the Quote block when it’s centered.
- A11y:
- Improve the permalink field label.
- Improve the region navigation styling.
- Remove the 3 keywords limit for the block registration.
- Add consistent background colors to the hovered menu items.
- Allow the editor notices to push down the content.
- Rename the default block styles.
Bug Fixes
- Fix a number of formatting issues:
- Multiple formats.
- Flashing backgrounds when typing.
- Highlighted format buttons.
- Inline code with backticks.
- Spaces deleted after formats.
- Inline boundaries styling issues.
- Touch Bar format buttons.
- Fix a number of list block writing flow issues:
- Allow line breaks in list items.
- Empty items not being removed.
- Backspace merging list items.
- Selecting formats at the beginning of list items.
- Fix the color picker styling.
- Set default values for the image dimensions inputs.
- Fix sidebar panels spacing.
- Fix wording of the nux tip nudging about the sidebar settings.
- Fix the translator comments pot extraction.
- Fix the plugins icons color overriding.
- Fix conflicting notices styles when using editor styles.
- Fix controls recursion in the redux-routine package.
- Fix the generic embed block when using Giphy as provider.
- Fix the i18n message used in the Gallery block edit button.
- Fix the icon size of the block switcher menu.
- Fix the loading state of the FlatTermSelector (tags selector).
- Fix the embed placeholders styling.
- Fix incorrectly triggered auto-saves for published posts.
- Fix missing classname in the Latest comments block.
- Fix HTML in shortcodes breaking block validation.
- Fix JavaScript errors when typing quickly and creating undo levels.
- Fix issue with mover colors in dark themes.
- Fix internationalisation issue with permalink slugs.
Various
- Implement the inline format boundaries without relying on the DOM.
- Introduce the Registry Selectors in the data module.
- Introduce the Registry Controls in the data module.
- Allow extending the latest posts block query by using get_posts.
- Extend the range of allowed years in the DateTime component.
- Allow null values for the DateTime component.
- Do not render the FontSizePicker if no sizes defined.
- Add className prop support to the UrlInput component.
- Add inline image resizing UI.
Chore
- Update lodash and deasync dependencies.
- Use addQueryArgs consistently to generate WordPress links.
- Remove merged PHP code:
- jQuery to Hooks heartbeat proxyfying.
- References to the classic editor.
- gutenberg_can_edit_post function.
- Disable CSS animations in e2e tests.
- ESLint
- Add a rule to ensure the consistency of the import groups.
- Add a rule to protect against invalid sprintf use.
- Remove obsolete CSS rules.
- Add e2e tests for tags creation.
- Add the feature flags setup.
- Implement block editor styles using a filter.
Documentation
- Add a new tutorial about the editor notices.
- Add JavaScript build tools documentation.
- Enhance the block’s edit/save documentation and code examples.
- Use Title Case consistently.
- Add e2e test utils documentation.
- Small enhancements and typos: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14.
Mobile
- Add bottom sheet settings for the image block:
- Implement the media upload options sheet.
- Implementing Clear All Settings button on Image Settings.
- Avoid hard-coded font family styling for the image blocks.
- Improve the post title component.
- Fix the bottom sheet styling for RTL layouts.
- Support the placeholder prop in the RichText component.
v5.0.2
v5.0.1
v5.0.0
Breaking Changes
- The block editor does not contain default colors, gradients, and font sizes anymore. If one wants to take advantage of these features, please explicitly pass colors, gradients, and/or settings or use the new __experimentalFeatures setting that is available.
v4.5.0
: 4.5.0
Changelog
- Add relevant attribute data from images to be used server side to handle things like theme specific responsive media.
- In order to be able to use srcset and sizes on the front end, wp-image-### CSS class has been added to the media and text block.
- Add minimal multi-selection block panel to replace “Coming Soon” message. It shows word and block count for the selection.
- Exclude reusable blocks from the global block count in Document Outline.
- Upgrade admin notices to use Notices module at runtime. It attempts to seamlessly upgrade notices output via an admin_notices or all_admin_notices action server-side.
- Adjust the prefix transforms so that they only execute when they match text right at the caret so that they are undoable. Also makes it faster by checking if the previous character is a space.
- Add ability to specify a different default editor font per locale.
- Add link rel and link class settings to Image block inspector.
- Transform an Image and Audio block to an Embed block if the URL matches an embed.
- Respect the “Disable Visual Editor” setting per user.
- Make it easy to access image IDs server-side on the Gallery block.
- Recursively step through edits to track individually changed post meta in Block API. This prevents saving the default value for each registered meta when only one of them is changed.
- Perform a complete draft save on preview.
- Save all meta-boxes when clicking the preview button. Set preview URL only after saving is complete.
- Disable hover interaction on mobile to improve scrolling.
- Update the displayed permalink when the slug is cleared.
- When converting to blocks, place unhandled HTML within an HTML block.
- Ensure content that cannot be handled in quotes is preserved within an HTML block.
- Localize the DateTimePicker Component.
- Fixes the behavior of link validation including properly handling URL fragments, validating forward slashes in HTTP URLs, more strictness to match getProtocol, addressing false positives in E2E tests.
- Fix issue where existing reusable blocks on a post would not render if the user was an author or a contributor. This happens because requests to fetch a single block or post are blocked when ?context=edit is passed and the current user is not an editor.
- Make sure the media library collection is refreshed when a user uploads media outside of the Media Library workflow (i.e. file drops, file uploads, etc).
- Update the editor reducer so that RESET_BLOCKS will only remove blocks that are actually in the post.
- It used to be possible to add a reusable block inside the same reusable block in the UI, e.g. someone could create a column block inside another column block. Now it is not.
- Deleting after certain types of selection was causing the caret to appear in the wrong place, now that it fixed, along with unexpected behavior of Ctrl+A after other kinds of selection, and the associated E2E tests updated.
- Remove permalink-based features from non-public CPTs.
- Address various issues with post locking modal.
- Fix issue with duplicating blocks and undo on Top Toolbar mode.
- Visual fix of margin on icons that are not dashicons in placeholders.
- Visual fix for centre-aligned text on coverblocks.
- Visual fix for embeds that are wider than the mobile breakpoint, cropping them to fit within the screen.
- Adds MediaUploadCheck before some MediaUpload components where it was not being checked in time, creating a confusing experience for users in the “contributor” role.
- Fix undefined variable warning in gutenberg.php.
- Add missing stringifier and iterator in TokenList component.
- Address i18n issue in MultiSelectionInspector.
- Fix small visual regression with button variation preview.
- Fix interaction regression with Sibling Inserter.
- Fix issue with the Privacy Policy help notice.
- Fix post visibility popover not appearing on mobile.
- Fix issue with toolbar in IE11.
- Fix small gap in style variation button.
- Fix popovers position in RTL languages.
- Fix double border issue with disabled toggle control.
- Fix the TinyMCE init array.
- RichText content that comes from headings content attribute should use the RichText.Content instead of rendering it directly.
- Makes the escape key consistently exit the inline link popover – previously this could behave unexpectedly depending on focus.
- Improve accessibility of permalink sidebar panel using external link component.
- Display selected block outlines on Top Toolbar mode.
- Avoid responding to componentDidUpdate in withDispatch.
- Allow previewing changes to the post featured image.
- Preserve unknown attributes and respect null in server attributes preparation
- Adds missing periods to notification that another user has control of the post.
- Restore the help modal in the Classic block.
- Reduce specificity in core button styles to reduce conflicts with theme styles.
- Update name of “Unified Toolbar” to “Top Toolbar” for extra clarity.
- Make it possible to have an editor-only annotation format that stays in
- position when typing inside RichText.
- Adds missing periods to notification that the user does not have permission to read the blocks of the post.
- Only add data-align for wide/full aligns if editor/theme supports them.
- Updates jest to latest version to address vulnerabilities.
- Removes redundant code now that TinyMCE is not being used to handle paste events.
- Remove the gutenberg text-domain from dynamic blocks.
- Remove redundant word from media and text block description.
- Makes the URL for the classic editor translatable, so that the appropriate translated version can be linked to.
- Update More block description.
- Avoid .default on browser global assignments.
- Mirror packages dependencies registration with core.
- Remove absolute positions in the link popover E2E test.
- Improve keyboard mappings in E2E tests, replacing custom utils with modifiers from the keycodes package.
- Add missing imports on some E2E test utilities.
- Update API Fetch documentation – removes unnecessary wp-json.
- Remove iOS scroll adjusting now that enter behavior is more smooth.
- Register the paragraph block as the default block.
- Handle isSelected in plain text blocks (currently Code and More blocks).
v4.4.0
: 4.4.0
Changelog
- Improves discoverability of permalinks by adding permalink panel to the document sidebar.
- Improves margins, column child block, and mobile display of columns.
- Allow for programmatically removing editor document panels.
- Replaces the uploading indicator of images and galleries with a spinner and faded out image.
- Toolbar for floats was a little offset beyond the mobile breakpoint, now fixed.
- Text and code editing blocks did not have width set, now set to fill the space.
- Correctly align URL input autocomplete.
- Improve animations: new, consistent naming convention, adds editor prefix, and moves keyframe animations (which don’t work well with mixins) into the edit post style.
- Hover styles were showing on mobile, where hover is not available – now disabled.
- Click and drag was incorrectly triggering a selection event in the block list under the popover, resulting in the popover dismissing. This was causing blocks to be selected when trying to set links to open in a new tab, for example. Fixed by preventing the mouse down event from propagating.
- Adds some padding to the block inserter so that it never overlaps text in nested contexts or mobile views.
- Better handle images larger than the editor by allowing a 2.5x buffer. Allows images inserted in TwentyNineteen and other themes that have a wider than 580px editor width, to look as expected, but prevents infinite resizing of images.
- Stop mousedown event propagating through the toolbar, fixing problem of unexpectedly selecting blocks.
- Improve the way that long words are broken on multiple lines, using word-break: keep-all;
- Preserve the ratio of video backgrounds in cover blocks, videos may be cropped to fit but will keep their original ratio.
- It was not possible to scroll a long menu on first load of Gutenberg, fixed by removing sticky-menu.
- Properly check for allowed types of Media in Media Placeholder components.
- “Resolve” and “Convert to HTML” buttons were not clickable (regression), now resolved.
- Exclude HTML editing from Columns and Column blocks.
- Better handle links without href, which were showing as
undefined
. - Renders block appender after the template is processed, to prevent incorrectly inserting new paragraphs.
- Parent pages were being lost when draft pages were autosaved, fixed by removing parent pages from autosave requests and refactoring to stop using “parent” as the path argument name.
- Adding line breaks in formatted content in quote blocks were not working correctly, fixed by persisting formats when new lines are added.
- Prevent users in the contributor role from using blocks that require upload privileges.
- Fix block selection in removing blocks, correct typo in comparison.
- Japanese text (double byte characters) was not usable in the list block, fixed by changing handling of composition events.
- Better handles different text encodings (e.g. emoji) within a block in block validation.
- Use a query argument instead of data to prevent error being thrown on post refresh.
- Keyboard navigation was not working as expected in Firefox, added extra key binding.
- Adds missing alt values to images when editing.
- Better communicate block nesting level by using unordered lists.
- Fix sidebar icons being incorrectly announced in NVDA by adding a span with
aria-hidden=”true”
. - Fixes block toolbar aria label to announce “block tools toolbar” rather than “block toolbar (a11y).
- Adjusts focus on media and text blocks to select the overall block, not the child paragraph block.
- Refactors i18n module to replaces Jed with Tannin for significant performance improvements.
- Replace
getSelectedBlock
andgetMultiSelectedBlocks
with more performantgetSelectedBlockClientId
and agetBlocks
selectors in copy handler. - Replace
getBlock
selector in favor of the more performantgetBlockName
. - Replace
getSelectedBlock
with more performantgetSelectedBlockClientId
and newisBlockValid
selectors in the BlockToolbar. - Replace
getSelectedBlock
with more performantgetSelectedBlockClientId
and newisBlockValid
selectors in the Block Inspector. - Replaces
getInserterItems
with a newhasInserterItems
selector which is more performant, and makes some adjustments to memorization. - Avoid using the
getSelectedBlock
selector in autocompleters. - Remove use of
getBlock
selector in the DefaultBlockAppender and EditorKeyboardShortcuts components. - Move undo handling out of TinyMCE and into the RichText component.
-
is_gutenberg_page
incorrectly assumesget_current_screen
exists, add check. - Brings code inline with CSS standards by switching font weight to numeric values.
- Wrapped component would not the most up-to-date store values if it incurred a store state change during its own mount (e.g. dispatching during its own constructor), resolved by rerunning selection.
- Display an error message if Javascript is disabled.
- Update to React 16.6.3.
- Adds missing components dependency for RichText.
- Refactors list block to remove previously exposed RichText/TinyMCE logic.
- Removes
focusOnMount
prop from NavigableToolbar components, which was generating a warning. - Refactor checks for upload permissions, removing unnecessary checks for store permissions.
- Use the large image size when inserting images in both galleries and image blocks.
- Fixes dependency of
wp-polyfill
which needs to be registered before React and React-Dom when plugins (like Yoast) rely on Gutenberg’s React. - Mark
onSplit
as unstable as it is pending refactor. - Remove 4.4 deprecated features.
- Fix SCSS syntax error.
- Remove export of previously removed function.
- Add an E2E test for unsupported blocks.
- Refactor E2E utility functions.
- Formatting updates to copy guidelines.
- Makes headings consistent in the dropdown documentation.
- Removes outdated documentation referring to function support in
registerBlockType
. - Fixes some typos and line breaks in block design documentation.
- Fixes some typos and improves readability of README.
- Adds toolbar to the editing block, and edit button.
- Passes the
isSelected
prop down to the implementation of RichText components to make them respond properly to focus changes.
v4.3.10
v4.3.9
v4.3.8
v4.3.7
v4.3.6
v4.3.5
v4.3.4
v4.3.3
v4.3.2
v4.3.1
v4.3.0
: 4.3.0
- Allow toggling the core custom fields meta box.
- Introduce Annotations API across Block and Formatting.
- Allow using a YouTube URL (or other sources) in the Video block and transparently convert it to Embed.
- Allow Alt+F10 keyboard shortcut to navigate to block toolbar regardless of the toolbar visibility (isTyping, etc).
- Return focus to element that opened the post publish panel after it is closed.
- Avoid unnecessary re-renders when navigating between blocks.
- Improve interactions around Columns block.
- Improve keyboard navigation through the Gallery block.
- Use full parser in do_blocks with nested block support. This switch will allow dynamic blocks which contain nested blocks inside of them and it will pave the way for a filtering API to structurally process blocks.
- Refactor contextual toolbar to work better with floats.
- Auto-refresh Popovers position but only refresh if the anchor position changes.
- Add min-width to audio block.
- Avoid auto-saving with empty post content.
- Display correct Taxonomy labels.
- Fix incorrect import name.
- Fix styling issue with checkboxes.
- Add full set of reusable block post type labels (addresses “no blocks found” state).
- Fix right to left block alignment.
- Fix “updating failed” notices showing on long-open tabs.
- Fix default PHP parser to cast inner blocks as arrays.
- Fix JS/PHP inconsistencies with empty attributes on parsing.
- Link to the source image in the media block.
- Fix select all keyboard shortcut for Safari and Firefox.
- Create multiple blocks when multiple files are drag and dropped.
- Fixes potential theme syle.css clash.
- Makes preview button a link (a11y).
- Stop re-rendering all blocks on arrow navigation.
- Add constraint tabbing to post publish panel (a11y).
- Fix image uploading bug (incorrect JSON in apiFetch).
- Fix taxonomy visibility for contributors.
- Adds aria labels to images in gallery blocks during editing (a11y).
- Formatting fix for blockquotes.
- Hide custom fields when meta box is disabled.
- Limits blockquote color auto-selection to solid color blocks for readability.
- Fixes announcement on multi-selection of blocks (a11y).
- Display upload errors in the image block.
- Fixes selection of embed type blocks.
- Fixes JSON attribute parsing.
- Fixes post publish focus (a11y).
- Resolve macOS Firefox / Safari sibling inserter behavior.
- Fix visibility of sibling inserter on tab focus.
- Fix issue with pasting from Word where an image would be created instead of text.
- Fix multi-selection for float elements.
- Fetch all tag terms, not just first 100.
- Correctly displays media on the right.
- Only show named image sizes.
- Improves handling of paste action.
- Updates displayed permalink after permalink is edited.
- Adjust font size for contrast warning (a11y).
- Better handles formatting – nested and Google Docs.
- Fixes suggestion list scrolling when using keyboard (a11y).
- Fixes block and menu navigation a11y.
- Click to close dropdown popover.
- Fix save lock control.
- Timezone handling fix.
- Improve a11y of empty text blocks.
- Fix states for publish buttons.
- Fix backspace behavior.
- Change aria labels for paragraph blocks (a11y).
- Add support for prepare RichText tree.
- With this change we force the browser to treat the textarea for the
- code editor as auto when handling direction for its display to preserve the ability to interact with the block delimiters.
- Rename parentClientId to rootClientId.
- Remove deprecated findDOMNode call from Tooltip component.
- Remove unused ref assignment to RichText.
- Remove redundant onClickOutside handler from Dropdown.
- Refactor block state.
- Remove Cloudflare warning for blocked API calls.
- Remove _wpGutenbergCodeEditorSettings (dead code).
- Adds periods to block a11y descriptions.
- Refactor embed block.
- Handle metabox warning exceptions.
- Refactor RichText to update formatting bar on format availability changes.
- Rename wp-polyfill-ecmascript.
- Update translator comments for quote and pullquote.
- Remove findDOMNode useage from NavigableToolbar.
- Changes handling of dates to properly handling scheduling.
- Remove findDomNode from withHoverAreas.
- Fixes missing translator comments.
- Refactor to import Format API components.
- Refactor of change detection: initial edits.
- Adds better translation comments to “resolve” and “resolve block”.
- Adds option for blocks with child blocks to change selection behavior.
- Allows blocks to disable being converted to reusable blocks.
- Improve undo/redo states.
- Updates parsing to better handle nested content.
- Remove undefined className argument from save().
- Use different tooltips for different alignment buttons.
- Improve performance and handling of autosave.
- Improve gallery upload for multiple images: load one by one.
- Adds context variable to RichText component.
- Avoid calling missing get_current_screen function.
- Make cssnano remove all style comments.
- Refactor normalizeBlockType.
- Shows icon in block toolbar.
- Makes kitchensink button removable from plugins.
- Fix popover sizing on screen change (autorefresh)
- Improvement to Columns block.
- Update block description for consistency.
- Refactor block styles registration.
- Use apostrophe instead of single-quote character in strings.
- Add transformations between video and media and text block.
- Version update for NPM packages.
- Update Lerna to latest version.
- Validates link format in RichText.
- Refactor contextual toolbar to work better with floats.
- Move wp-polyfill-ecmascript override to scripts registration.
- Improves consistency of parser tests.
- Remove code coverage.
- Adds mocking helpers for E2E tests.
- Runs E2E tests with the user in author role.
- Adds tests for Format API.
- Adds E2E test for rapid enter presses.
- Fix typo in documentation.
- Fix typos in block API documentation.
- Improved documentation and examples for withFilters.
- Fix some broken links in documentation.
- Fix typo and quote consistency.
- Remove duplicated word.
- Adds custom block icon instructions.
- Update documentation on keyboard shortcuts.
- Updates isSelectionEnabledDocumentation.
- Update FontSizePicker component documentation.
- Export
switchToBlockType
function. - Remove mobile RN test suite (temporary measure).
- Improve styling of next page block.
- Removes fixed cover on iOS (unsupported in mobile Safari).
- Adds support for native media picker.
- Remove onChange delay.
- Exposes slot/fill pattern to mobile.
- Expose @wordpress/editor to mobile.
- Refreshes native post block merge.
- Properly handle cancel on the media picker.
v4.2.0
: 4.2.0
Changelog (in addition to the changelog of 4.2.0 rc 1)
- RichText: fix buggy enter/delete behaviour (Extra br elements)
- Fix showing categories for contributors
- Improvements to the Format API
v4.1.0
: 4.1.0
- Implement a block navigation system that allows selecting child or parent blocks within nested blocks (like folder path traversal) as well as functioning as a general fast navigation system when a root block is selected.
- Add a Media & Text block that can facilitate the creation of split column content and allows the split to be resizable.
- Show block style selector in the block inspector.
- Rename Cover Image to just Cover and add support for video backgrounds.
- Add a new accessible Date Picker. This was months in the works.
- Reimplement the Color Picker component to greatly improve keyboard navigation and screenreader operations.
- Add style variation for Table block with stripe design.
- Add “Options” modal to toggle on/off the different document panels.
- Allow toggling visibility of registered meta-boxes from the “Options” modal.
- Handle cases where a block is on the page but the block is not registered by showing a dialog with the available options.
- Ensure compatibility with WordPress 5.0.
- When pasting single lines of text, treat them as inline text.
- Add ability to insert images from URL directly in the Image block.
- Make Columns block responsive.
- Make responsive embeds a theme option.
- Add direction attribute / LTR button to the Paragraph block.
- Display accurate updated and publish notices based on post type.
- Update buttons in the editor header area to improve consistency (save, revert to draft, etc).
- Avoid horizontal writing flow navigation in native inputs.
- Move toggle buttons to the left of their control handle.
- Add explicit bottom margin to figure elements (like image and embed).
- Allow transforming a Pullquote to a Quote and viceversa.
- Allow block inserter to search for blocks by typing their category.
- Add a label to the URL field in the Publishing Flow panel.
- Use the stored date format in settings for the LatestPosts block.
- Remove the placeholder text and use visible label instead in TokenField.
- Add translator comment for “View” menu label.
- Make YouTube embed classes consistent between front-end and back-end.
- Take into account citation when transforming a Quote to a Paragraph.
- Restore ⌘A’s “select all blocks” behaviour.
- Allow themes to disable custom font size functionality.
- Make missing custom font sizes labels translatable.
- Ensure cite is string when merging quote.
- Defer fetching non-hierarchical terms in FlatTermSelector.
- Move the theme support data previously exposed at the REST API index into a read-only theme controller for the active theme.
- Detect oEmbed responses where the oEmbed provider is missing.
- Use “Save as Pending” when the Pending checkbox is active.
- Use the post type’s REST controller class as autosave parent controller.
- Use post type labels in PostFeaturedImage component.
- Enforce text color within inline boundaries to ensure contrast and legibility.
- Add self-closing tag support (like path element) when comparing HTML.
- Make sure autocomplete triggers are regex safe.
- Silence PHP errors on REST API responses.
- Show permalink label as bold text.
- Change the block renderer controller endpoint and namespace from /gutenberg/v1/block-renderer/ to /wp/v2/block-renderer/.
- Hide “edit image” toolbar buttons when no image is selected.
- Hide “Add to Reusable Blocks” action when ‘core/block’ is disabled.
- Handle blocks passing null as RichText value.
- Improve validation for attribute names in rich-text toHTMLString.
- Allow to globally overwrite defined colors in PanelColorSettings.
- Fix regressions with Button block preview display.
- Fix issue with color picker not appearing on mobile.
- Fix publish buttons with long text.
- Fix link to manifest file in contributing file.
- Fix demo content crash on malformed URL.
- Fix issue in docs manifest.
- Fix media caption processing with the new RichText structure.
- Fix problem with Gallery losing assigned columns when alignments are applied.
- Fix an issue where the Categories block would always use the center class alignment regardless of what was set.
- Fix scroll issue on small viewports.
- Fix formatting in getEditorSettings docs and update getTokenSettings docs.
- Fix padding in block validation modal.
- Fix extra instances of old rich text value source.
- Fix issue with adding links from the auto-completer.
- Fix outdated docs for RichText.
- Fix pre-publish panel overflow issue.
- Fix missing styles for medium and huge font size classes.
- Fix autocomplete keyboard navigation in link popover.
- Fix a text selection exception in Safari.
- Fix WordPress embed URL resolution and embeds as reusable blocks.
- Avoid triggering a redirect when creating a new Table block.
- Only use rich text value internally to the RichText component.
- Ensure multiline prop is either “p” or “li” in RichText.
- Do not use dangerouslySetInnerHTML with i18n string.
- Account for null value in redux-routine createRuntime.
- Extract link container from RichText.
- Allow default_title, default_content, and default_excerpt filters to function as expected.
- Replace gutenberg in classNames with block-editor.
- Restore the order of actions usually fired in edit-form-advanced.php.
- Update REST Search controller to use ‘wp/v2’ namespace.
- Improve keyboard shortcuts section in FAQ.
- Change all occurrences of ‘new window’ to ‘new tab’.
- Conditionally load PHP classes in preparation for inclusion in core.
- Update rich-text source mentions in docs.
- Deprecate PanelColor components.
- Use mock response for demo test if Vimeo is down.
- Adding a bit more verbosity to the install script instructions.
- Document isDefault option for block styles.
- Update docs for new REST API namespace.
- Update shortcut docs with new block navigation menu shortcut.
- Further improve Release docs.
- Updated custom icon documentation links.
- Add all available script handles to documentation.
- Add wp-polyfill to scripts.md.
- Add e2e tests for List and Quote transformations.
- Fail CI build if local changes exist.
- Attempt to always use the latest version of nvm.
- Add bare handling for lint-js script.
- Add support for Webpack bundle analyzer.
- Improve setup of Lerna.
- Update clipboard dependency to at least 2.0.1.
- Recreate the demo content post as an e2e test using keyboard commands.
- Add mobile SVG compatibility for SVG block icons.
- Fix className style in SVG primitive.
- Split Paragraph and Heading blocks on enter.KEY. Refactor block splitting code on paragraph and heading blocks.
- Add caption support for image block.
- Rename PHP functions to prevent conflict with core
- Fix some typos
- Improve the Toggle Control elements DOM order for better accessibility
- Set correct media type for video poster image and manage focus properly.
- Implement fetchAllMiddleware to handle per_page=-1 through pagination in wp.apiFetch
- Fix Slash autocomplete: Support non-Latin inputs
- Add WordPress logo animation for preview
v4.0.0
Breaking Changes
- The block control value for
InnerBlocks
has been changed from__experimentalBlocks
tovalue
and is now considered a stable API. - Removed the
utility
property from the objects returned by thegetInserterItems
selector.
WordPress/gutenberg (@wordpress/blocks)
v12.21.0
v12.20.1
v12.20.0
v12.19.9
v12.19.8
v12.19.7
v12.19.6
v12.19.5
v12.19.4
v12.19.3
v12.19.2
v12.19.1
v12.19.0
v12.18.0
v12.17.1
v12.17.0
v12.16.0
v12.15.0
v12.14.0
v12.13.0
v12.12.8
v12.12.7
v12.12.6
v12.12.5
v12.12.4
v12.12.3
v12.12.2
v12.12.1
v12.12.0
v12.11.0
v12.10.0
v12.9.0
v12.8.0
v12.7.0
v12.6.0
v12.5.0
v12.4.0
v12.3.4
v12.3.3
v12.3.2
: 12.3.2
Bug Fixes
Block Library
- Spacer: Fix unit settings filter. (37774)
v12.3.1
: 12.3.1
Bug Fixes
- Restore canvas padding for classic themes (#37741).
- Site logo: Fix range control on landscape logos (#37733).
- RichText: Fix dead key input on Windows (#37777).
- Update: Improve escaping on the search block (#37829).
- Fix: Impossible to clear colors if color palettes are removed. (#37791).
v12.3.0
v12.2.0
v12.1.0
v12.0.0
Breaking Changes
- Updated dependencies to require React 18 (45235)
WordPress/gutenberg (@wordpress/browserslist-config)
v5.27.0
v5.26.0
v5.25.9
v5.25.8
v5.25.7
v5.25.6
v5.25.5
v5.25.4
v5.25.3
v5.25.2
v5.25.1
v5.25.0
v5.24.0
v5.23.1
v5.23.0
v5.22.0
v5.21.0
v5.20.0
v5.19.0
v5.18.2
v5.18.1
v5.18.0
v5.17.0
v5.16.0
v5.15.0
v5.14.0
v5.13.0
v5.12.0
v5.11.0
v5.10.0
v5.9.2
: 5.9.2
Bug Fixes
- Fix Regression for blocks using InnerBlocks.Content from the editor package (support forwardRef components in the block serializer).
v5.9.1
: 5.9.1
Bug Fixes
- Fix the issue where statics for deprecated components were not hoisted
v5.9.0
v5.8.0
v5.7.0
v5.6.0
v5.5.0
v5.4.0
v5.3.0
v5.2.0
v5.1.0
v5.0.1
v5.0.0
Breaking Change
- Increase the minimum Node.js version to 14 (#43141).
WordPress/gutenberg (@wordpress/components)
v25.10.0
Enhancements
-
ProgressBar
: use text color to ensure enough contrast against background (#55285). -
Notice
: Remove margins fromNotice
component (#54800). - Allow using CSS level 4 viewport-relative units (54415)
-
ToolsPanel
: do not apply theclassName
to prop toToolsPanelItem
components when rendered as placeholders (#55207). -
GradientPicker
: remove overflow styles and padding fromColorPicker
popovers (#55265). -
Tabs
: Expose via private APIs (#55327). -
ColorPalette
/ToggleGroupControl/ToggleGroupControlOptionBase
: addtype="button"
attribute to native<button>
s (#55125).
Bug Fix
- Render a "mouse event trap" when using a
ColorPicker
inside aPopover
to prevent issues when rendering on top ofiframes
(#55149). -
Modal
: fix closing when contained iframe is focused (#51602). -
Autocomplete
: Fix disappearing results issue when using multiple triggers inline (#55301)
Internal
New Features
-
Toolbar
: add newvariant
prop for 'unstyled' option (#55139).
v25.9.1
v25.9.0
Enhancements
-
SearchControl
: polish metrics forcompact
size variant (#54663). -
Button
: deprecatingisPressed
prop in favour ofaria-pressed
(#54740). -
DuotonePicker/ColorListPicker
: Adds appropriate label and description to 'Duotone Filter' picker (#54473). -
Modal
: Accessibly hide/show outer modal when nested (#54743). -
InputControl
,NumberControl
,UnitControl
,SelectControl
,CustomSelectControl
,TreeSelect
: Add opt-in prop for next 40px default size, superseding the__next36pxDefaultSize
prop (#53819). -
Modal
: add a newsize
prop to support preset widths, including afill
option to eventually replace theisFullScreen
prop (#54471). - Wrapped
TextareaControl
in aforwardRef
call (#54975). -
Composite
/AlignmentMatrixControl
/CircularOptionPicker
: Starts theComposite
migration fromreakit
toariakit
(#54225).
Bug Fix
-
Placeholder
: Improved DOM structure and screen reader announcements (#45801). -
DateTimePicker
: fix onChange callback check so that it also works inside iframes (#54669). -
FormTokenField
: Addbox-sizing
reset style and reset default padding (#54734). -
SlotFill
: PassComponent
instance to unregisterSlot (#54765). -
Button
: Removearia-selected
CSS selector from styling 'active' buttons (#54931). -
Popover
: Apply the CSS in JS styles properly for components used within popovers. (#54912) -
Button
: Remove hover styles whenaria-disabled
is set totrue
for the secondary variant. (#54978) -
Button
: Revert toggled style selector to use a class instead of attributes (#55065).
Internal
- Update
@ariakit/react
to version0.3.3
(#54818) -
Tooltip
,Shortcut
: Remove unusedui/
components from the codebase (#54573) - Refactor ariakit usages to use the
render
prop instead ofas
and to use the namespace import (#54696). - Update
uuid
package to 9.0.1 (#54725). -
ContextSystemProvider
: Move out ofui/
(#54847). -
SlotFill
: Migrate to TypeScript and Convert to Functional Component<Slot bubblesVirtually />
. (#51350). -
Components
: moveui/utils
toutils
and removeui/
folder (#54922). - Ensure
@types/
dependencies used by final type files are included in the main dependency field (#50231). -
Text
: Migrate to TypeScript. (#54953).
Experimental
- Introduce
Tabs
, an experimental v2 ofTabPanel
: (#53960).
v25.8.9
v25.8.8
v25.8.7
v25.8.6
v25.8.5
v25.8.4
v25.8.3
v25.8.2
v25.8.1
v25.8.0
Enhancements
- Add new option
firstContentElement
to Modal'sfocusOnMount
prop to allow consumers to focus the first element within the Modal's contents (#54590). -
Notice
: Improve accessibility by adding visually hidden text to clarify what a notice text is about and the notice type (success, error, warning, info) (#54498). - Making Circular Option Picker a
listbox
. Note that while this changes some public API, new props are optional, and currently have default values; this will change in another patch (#52255). -
ToggleGroupControl
: Rewrite backdrop animation using framer motion shared layout animations, add better support for controlled and uncontrolled modes (#50278). -
Popover
: Add theis-positioned
CSS class only after the popover has finished animating (#54178). -
Tooltip
: Replace the existing tooltip to simplify the implementation and improve accessibility while maintaining the same behaviors and API (#48440). -
Dropdown
andDropdownMenu
: support controlled mode for the dropdown's open/closed state (#54257). -
BorderControl
: Apply proper metrics and simpler text (#53998). -
FormTokenField
: Update styling for consistency and increased visibility (#54402). -
CircularOptionPicker
: Add option to use previous non-listbox behaviour, for contexts where buttons are more appropriate than a list of options (#54290). -
DuotonePicker/ColorListPicker
: Adds appropriate labels to 'Duotone Filter' color pickers (#54468). -
SearchControl
: support new40px
and32px
sizes (#54548). -
FormTokenField
: AddtokenizeOnBlur
prop to add any incompleteTokenValue as a new token when field loses focus (#54445). -
Sandbox
: AddtabIndex
prop (#54408).
Bug Fix
-
Notice
: Make the Close button render a tooltip to visually expose its accessible name. All icon buttons must always show a tooltip (#54498). -
Tooltip
: dynamically render in the DOM only when visible (#54312). -
PaletteEdit
: Fix padding in RTL languages (#54034). -
ToolbarItem
: Fix children not showing in rendered components (#53314). -
CircularOptionPicker
: make focus styles resilient to button size changes (#54196). -
InputControl
: Fix focus style size (#54394). -
BorderControl
: Use standard focus style on BorderControl (#54429). -
Color values
: Update borderFocus to ADMIN.theme (#54425).
Internal
-
Toolbar/ToolbarDropdownMenu
: Convert to TypeScript (#54321). -
Composite
: Convert to TypeScript (#54028). -
BorderControl
: Refactor unit tests to useuserEvent
(#54155) -
FocusableIframe
: Convert to TypeScript (#53979). -
Popover
: Remove unusedoverlay
type frompositionToPlacement
utility function (#54101). -
Higher Order
--with-focus-outside
: Convert to TypeScript (#53980). -
IsolatedEventContainer
: Convert unit test to TypeScript (#54316). -
Popover
: Removescroll
andresize
listeners for iframe overflow parents and rely on recently added native Floating UI support (#54286). -
Button
: Update documentation to remove the buttonfocus
prop (#54397). -
Toolbar/ToolbarGroup
: Convert component to TypeScript (#54317). -
Modal
: add more unit tests (#54569).
Experimental
-
DropdownMenu
v2: Fix submenu chevron direction in RTL languages (#54036.
New Features
-
Tooltip
: Add newhideOnClick
prop (#54406). -
Tooltip
: Addplacement
prop to replace deprecatedposition
(#54264).
v25.7.0
Breaking changes
- Make the
Popover.Slot
optional and render popovers at the bottom of the document's body by default. (#53889, #53982).
Enhancements
-
ProgressBar
: Add transition to determinate indicator (#53877). - Prevent nested
SlotFillProvider
from rendering (#53940).
Bug Fix
-
SandBox
: Fix the cleanup method in useEffect (#53796). -
PaletteEdit
: Fix the height of thePaletteItems
. Don't rely on styles only present in the block editor (#54000).
Internal
-
Shortcut
: Add Storybook stories (#53627). -
SlotFill
: Do not render children when using<Slot bubblesVirtually />
. (#53272) - Update
@floating-ui/react-dom
to the latest version (#46845).
v25.6.1
v25.6.0
Enhancements
-
Theme
: Expose via private APIs (#53262). -
ProgressBar
: Use the theme system accent for indicator color (#53347). -
ProgressBar
: Use gray 300 for track color (#53349). -
Modal
: addheaderActions
prop to render buttons in the header. (#53328). -
Snackbar
: Snackbar design and motion improvements (#53248) -
NumberControl
: AddspinFactor
prop for adjusting the amount by which the spin controls change the value (#52902). -
Modal:
: Nuance outside interactions (#52994). -
Button
: Remove default border from the destructive button (#53607). - Components: Move accent colors to theme context (#53631).
-
ProgressBar
: Use the new theme system accent for indicator color (#53632).
Bug Fix
-
Button
: add:disabled
selector to reset hover color for disabled buttons (#53411).
Internal
-
ControlGroup
,FormGroup
,ControlLabel
,Spinner
: Remove unusedui/
components from the codebase (#52953). -
MenuItem
: Convert to TypeScript (#53132). -
MenuItem
: Add Storybook stories (#53613). -
MenuGroup
: Add Storybook stories (#53090). - Components: Remove unnecessary utils (#53679).
v25.5.0
New Feature
- Add a new
ProgressBar
component. (#53030).
Enhancements
-
ColorPalette
,BorderControl
: Don't hyphenate hex value inaria-label
(#52932). -
MenuItemsChoice
,MenuItem
: Support adisabled
prop on a menu item (#52737). -
TabPanel
: Introduce a new version ofTabPanel
with updated internals and improved adherence to ARIA guidance ontabpanel
focus behavior while maintaining the same functionality and API surface.(#52133).
Bug Fix
-
Modal
: Fix loss of focus when clicking outside (#52653).
v25.4.0
Enhancements
-
TextControl
: Addid
prop to allow for custom IDs inTextControl
s (#52028). -
Navigator
: Addreplace
option tonavigator.goTo()
andnavigator.goToParent()
(#52456).
Bug Fix
-
Popover
: Pinreact-dropdown-menu
version to avoid breaking changes in dependency updates. (#52356). -
Item
: Unify focus style and add default font styles. (#52495). -
Toolbar
: Fix toolbar items not being tabbable on the first render. (#52613) -
FormTokenField
: Fix token overflow when moving cursor left or right. (#52662)
v25.3.0
Enhancements
-
SelectControl
: Added option to set hidden options. (#51545) -
RangeControl
: Add__next40pxDefaultSize
prop to opt into the new 40px default size (#49105). -
Button
: Introducesize
prop withdefault
,compact
, andsmall
variants (#51842). -
ItemGroup
: Update button focus state styles to target:focus-visible
rather than:focus
. (#51787). -
Guide
: Don't show Close button when there is only one page, and use default button and accent/theme styling (#52014).
Bug Fix
-
ConfirmDialog
: Ensure onConfirm isn't called an extra time when submitting one of the buttons using the keyboard (#51730). -
ZStack
: ZStack: fix component bounding box to match children (#51836). -
Modal
: Add small top padding to the content so that avoid cutting off the visible outline when hovering items (#51829). -
DropdownMenu
: fix icon style when dashicon is used (#43574). -
UnitControl
: Fix crash when certain units are used (#52211). -
Guide
: Place focus on the guide's container instead of its first tabbable (#52300).
v25.2.0
Enhancements
-
UnitControl
: Revamp support for changing unit by typing (#39303). -
Modal
: Update corner radius to be between buttons and the site view frame, in a 2-4-8 system. (#51254). -
ItemGroup
: Update button focus state styles to be inline with other button focus states in the editor. (#51576). -
ItemGroup
: Update button focus state styles to target:focus-visible
rather than:focus
. (#51787).
Bug Fix
-
Popover
: Allow legitimate 0 positions to update popover position (#51320). -
Button
: Remove unnecessary margin from dashicon (#51395). -
Autocomplete
: Announce how many results are available to screen readers when suggestions list first renders (#51018).
Internal
-
ClipboardButton
: Convert to TypeScript (#51334). -
Toolbar
: Replacereakit
dependency with@ariakit/react
(#51623).
Documentation
-
SearchControl
: Improve documentation around usage oflabel
prop (#51781).
v25.1.12
v25.1.11
v25.1.10
v25.1.9
v25.1.8
v25.1.7
v25.1.6
v25.1.5
v25.1.4
v25.1.3
v25.1.2
v25.1.1
v25.1.0
Enhancements
-
BorderControl
: Improve color code readability in aria-label (#51197). -
Dropdown
andDropdownMenu
: use internal context system to automatically pick the toolbar popover variant when rendered inside theToolbar
component (#51154).
Bug Fix
-
FocalPointUnitControl
: Add aria-labels (#50993).
Enhancements
- Wrapped
TabPanel
in aforwardRef
call (#50199). -
ColorPalette
: Improve readability of color name and value, and improve rendering of partially transparent colors (#50450). -
Button
: Add__next32pxSmallSize
prop to opt into the new 32px size when theisSmall
prop is enabled (#51012). -
ItemGroup
: Update styles so all SVGs inherit color from their parent element (#50819).
Experimental
-
DropdownMenu
v2: Tweak styles (#50967, #51097). -
DropdownMenu
v2: change default placement to match the legacyDropdownMenu
component (#51133). -
DropdownMenu
v2: Render in the defaultPopover.Slot
(#51046).
v25.0.0
Breaking Changes
-
DateTime
: Remove previously deprecated props,__nextRemoveHelpButton
and__nextRemoveResetButton
(#50724).
Internal
-
Modal
: Remove children container's unused class name (#50655). -
DropdownMenu
: Convert to TypeScript (#50187). - Added experimental v2 of
DropdownMenu
(#49473). -
ColorPicker
: its privateSelectControl
component no longer hides BackdropUI, thus making its focus state visible for keyboard users (#50703).
Bug Fix
-
ColorPicker
: Add an outline when the color picker select box is focused(#50609). -
InputControl
: Fix focus style to support Windows High Contrast mode (#50772). -
ToggleGroupControl
: Fix focus and selected style to support Windows High Contrast mode (#50785). -
SearchControl
: Adjust icon styles to fix alignment issues in the block inserter (#50439).
Enhancements
-
Tooltip
: Update background color so tooltip boundaries are more visible in the site editor (#50792). -
FontSizePicker
: Tweak the header spacing to be more consistent with other design tools (#50855).
v24.0.0
Breaking Changes
-
onDragStart
in<Draggable>
is now a synchronous function to allow setting additional data forevent.dataTransfer
(#49673).
Bug Fix
-
NavigableContainer
: do not trap focus inTabbableContainer
(#49846). - Update
<Button>
component to have a transparent background for its tertiary disabled state, to match its enabled state. (#50496).
Internal
-
NavigableContainer
: Convert to TypeScript (#49377). -
ToolbarItem
: Convert to TypeScript (#49190). - Move rich-text related types to the rich-text package (#49651).
-
SlotFill
: simplified the implementation and removed unused code (#50098 and #50133).
Documentation
-
TreeGrid
: Update docs withdata-expanded
attribute usage (#50026). - Consolidate multiple versions of
README
andCONTRIBUTING
docs, and add them to Storybook (#50226). -
DimensionControl
: Use WordPress package instead of react in code example (#50435).
Enhancements
-
FormTokenField
,ComboboxControl
: Add__next40pxDefaultSize
prop to opt into the new 40px default size, superseding the__next36pxDefaultSize
prop (#50261). -
Modal
: Add css class to children container (#50099). -
Button
: Add__next40pxDefaultSize
prop to opt into the new 40px default size (#50254). -
PaletteEdit
: Allow custom popover configuration (#49975). - Change the default color scheme to use the new WP Blueberry color. See MR description for instructions on how to restore the previous color scheme when using in a non-WordPress context (#50193).
-
CheckboxControl
,CustomGradientPicker
,FormToggle
, : Refactor and correct the focus style for consistency (#50127). -
Button
, update spacing values inhas-text has-icon
buttons. (#50277). -
Button
, remove custom padding applied totertiary
variant. (#50276). -
Modal
: Correct padding for title less confirm variant. (#50283).
v23.9.0
Internal
-
BottomSheetCell
: Refactor away from Lodash (mobile) (#49794). -
parseStylesVariables()
: Refactor away from Lodash (mobile) (#49794). - Remove Lodash dependency from components package (#49794).
- Tweak
WordPressComponent
type soselector
property is optional (#49960). - Update
Modal
appearance on small screens (#50039). - Update the framer motion dependency to the latest version
10.11.6
(#49822).
Enhancements
-
Draggable
: AddappendToOwnerDocument
prop to allow elementId based elements to be attached to the ownerDocument body (#49911). -
TreeGrid
: Modify keyboard navigation code to use a data-expanded attribute if aria-expanded is to be controlled outside of the TreeGrid component (#48461). -
Modal
: Equalize internal spacing (#49890). -
Modal
: Increased border radius (#49870). -
Modal
: Updated spacing / dimensions ofisFullScreen
(#49894). -
SlotFill
: Added util for creating private SlotFills and supporting Symbol keys (#49819). -
IconType
: Export for external use (#49649).
Bug Fix
-
CheckboxControl
: Add support custom IDs (#49977).
Documentation
-
Autocomplete
: Add heading and fix type foronReplace
in README. (#49798). -
Autocomplete
: UpdateUsage
section in README. (#49965).
v23.8.0
Internal
-
Mobile
Refactor of the KeyboardAwareFlatList component. - Update
reakit
dependency to 1.3.11 (#49763).
Enhancements
-
DropZone
: Smooth animation (#49517). -
Navigator
: AddskipFocus
property inNavigateOptions
. (#49350). -
Spinner
: add explicit opacity and background styles (#49695). - Make TypeScript types available for consumers (#49229).
Bug Fix
-
Snackbar
: Fix insufficient color contrast on hover (#49682).
v23.7.0
Internal
-
Animate
: Convert to TypeScript (#49243). -
CustomGradientPicker
: Convert to TypeScript (#48929). -
ColorPicker
: Convert to TypeScript (#49214). -
GradientPicker
: Convert to TypeScript (#48316). -
FormTokenField
: Add a__nextHasNoMarginBottom
prop to start opting into the margin-free styles (48609). -
QueryControls
: Replace bottom margin overrides with__nextHasNoMarginBottom
(47515).
Enhancements
-
CustomGradientPicker
: improve initial state UI (#49146). -
AnglePickerControl
: Style to better fit in narrow contexts and improve RTL layout (#49046). -
ImageSizeControl
: Use large 40px sizes (#49113).
Bug Fix
-
CircularOptionPicker
: force swatches to visually render on top of the rest of the component's content (#49245). -
InputControl
: Fix misaligned textarea input control (#49116). -
ToolsPanel
: Ensure consistency in menu item order (#49222). -
TabPanel
: fix initial tab selection & focus management (#49368).
Internal
-
DuotonePicker
,DuotoneSwatch
: Convert to TypeScript (#49060).
v23.6.0
Enhancements
-
FontSizePicker
: Allow custom units for custom font size control (#48468). -
Navigator
: Disable initial screen animation (#49062). -
FormTokenField
: Hide suggestions list on blur event if the input value is invalid (#48785).
Bug Fix
-
ResponsiveWrapper
: useaspect-ratio
CSS prop, add support forSVG
elements (#48573. -
ResizeTooltip
: Usedefault.fontFamily
on tooltip (#48805.
Internal
-
Guide
: Convert to TypeScript (#47493). -
SelectControl
: improve prop types for single vs multiple selection (#47390). -
Navigation
: Convert to TypeScript (#48742). -
PanelBody
: Convert to TypeScript (#47702). -
withFilters
HOC: Convert to TypeScript (#48721). -
withFallbackStyles
HOC: Convert to TypeScript (#48720). -
withFocusReturn
HOC: Convert to TypeScript (#48748). -
navigateRegions
HOC: Convert to TypeScript (#48632). -
withSpokenMessages
: HOC: Convert to TypeScript (#48163). -
withNotices
: HOC: Convert to TypeScript (#49088). -
ToolbarButton
: Convert to TypeScript (#47750). -
DimensionControl(Experimental)
: Convert to TypeScript (#47351). -
PaletteEdit
: Convert to TypeScript (#47764). -
QueryControls
: Refactor away from Lodash (.groupBy
) (#48779). -
ToolbarContext
: Convert to TypeScript (#49002).
v23.5.0
Enhancements
-
ToolsPanel
: Separate reset all filter registration from items registration and support global resets (#48123).
Internal
-
CircularOptionPicker
: Convert to TypeScript (#47937). -
TabPanel
: Improve unit test in preparation for controlled component updates (#48086). -
Autocomplete
: performance: avoid setting state on every value change (#48485). -
Higher Order
--with-constrained-tabbing
: Convert to TypeScript (#48162). -
Autocomplete
: Convert to TypeScript (#47751). -
Autocomplete
: avoid calling setState on input (#48565).
v23.4.0
Bug Fix
-
ToolsPanel
: fix type inconsistencies between types, docs and normal component usage (47944). -
SelectControl
: Fix styling whenmultiple
prop is enabled (#47893). -
useAutocompleteProps
,Autocomplete
: Make accessible when rendered in an iframe (#47907).
Enhancements
-
ColorPalette
,GradientPicker
,PaletteEdit
,ToolsPanel
: add new props to set a custom heading level (43848 and #47788). -
ColorPalette
: ensure text label contrast checking works with CSS variables (#47373). -
Navigator
: Support dynamic paths with parameters (#47827). -
Navigator
: Support hierarchical paths navigation and addNavigatorToParentButton
component (#47883).
Internal
-
NavigatorButton
: ReuseButton
types (47754). -
CustomSelectControl
: lock the__experimentalShowSelectedHint
prop (#47229). - Lock the
__experimentalPopoverPositionToPlacement
function and rename it to__experimentalPopoverLegacyPositionToPlacement
(#47505). -
ComboboxControl
: Convert to TypeScript (#47581). -
Panel
,PanelHeader
,PanelRow
: Convert to TypeScript (#47259). -
BoxControl
: Convert to TypeScript (#47622). -
AnglePickerControl
: Convert to TypeScript (#45820). -
ResizableBox
: refactor styles to TypeScript (47756). -
BorderBoxControl
: migrate tests to TypeScript, remove act() call (47755). -
Toolbar
: Convert to TypeScript (#47087). -
MenuItemsChoice
: Convert to TypeScript (#47180). -
ToolsPanel
: Allow display of optional items when values are updated externally to item controls (47727). -
ToolsPanel
: Ensure display of optional items when values are updated externally and multiple blocks selected (47864). -
Navigator
: add more pattern matching tests, refine existing tests (47910). -
ToolsPanel
: Refactor Storybook examples to TypeScript (47944). -
ToolsPanel
: Refactor unit tests to TypeScript (48275).
v23.3.8
v23.3.7
v23.3.6
v23.3.5
v23.3.4
v23.3.3
v23.3.2
v23.3.1
v23.3.0
Deprecations
-
NumberControl
: Clarify deprecation message abouthideHTMLArrows
prop (#47370).
Enhancements
-
Dropdown
: deprecateposition
prop, usepopoverProps
instead (46865). -
Button
: improve padding for buttons with icon and text. (46764). -
ColorPalette
: Use computed color when css variable is passed toColorPicker
(47181). -
Popover
: addoverlay
option to theplacement
prop (47004).
Internal
-
Toolbar
: unify Storybook examples under one file, migrate from knobs to controls (47117). -
DropdownMenu
: migrate Storybook to controls (47149). - Removed deprecated
@storybook/addon-knobs
dependency from the package (47152). -
ColorListPicker
: Convert to TypeScript (#46358). -
KeyboardShortcuts
: Convert to TypeScript (#47429). -
ColorPalette
,BorderControl
,GradientPicker
: refine types and logic around single vs multiple palettes (#47384). -
Button
: Convert to TypeScript (#46997). -
QueryControls
: Convert to TypeScript (#46721). -
TreeGrid
: Convert to TypeScript (#47516). -
Notice
: refactor to TypeScript (47118). -
Popover
: Take iframe element scaling into account (47004).
Bug Fix
-
TabPanel
: Fix initial tab selection when the tab declaration is lazily added to thetabs
array (47100). -
InputControl
: Avoid the "controlled to uncontrolled" warning by forcing the internal<input />
element to be always in controlled mode (47250).
v23.2.0
Internal
-
AlignmentMatrixControl
: Update center cell label to 'Center' instead of 'Center Center' (#46852). -
Toolbar
: move all subcomponents under the same folder (46951). -
Dashicon
: remove unnecessary type forclassName
prop (46849). -
ColorPicker
&QueryControls
: Replace bottom margin overrides with__nextHasNoMarginBottom
(#46448). -
SandBox
: Convert to TypeScript (#46478). -
ResponsiveWrapper
: Convert to TypeScript (#46480). -
ItemGroup
: migrate Storybook to controls, refactor to TypeScript (46945).
Bug Fix
-
Placeholder
: set fixed right margin for label's icon (46918). -
TreeGrid
: Fix right-arrow keyboard navigation when a row contains more than two focusable elements (46998).
v23.1.0
Breaking Changes
-
ColorPalette
: The experimental__experimentalHasMultipleOrigins
prop has been removed (#46315).
v23.0.0
Breaking Changes
- Updated dependencies to require React 18 (45235)
New Feature
-
TabPanel
: support manual tab activation (#46004). -
TabPanel
: support disabled prop for tab buttons (#46471). -
BaseControl
: AdduseBaseControlProps
hook to help generate id-releated props (#46170).
Bug Fix
-
ColorPalette
: show "Clear" button even when colors array is empty (#46001). -
InputControl
: Fix internalFlex
wrapper usage that could add an unintendedheight: 100%
(#46213). -
Navigator
: Allow callinggoTo
andgoBack
twice in one render cycle (#46391). -
Modal
: Fix unexpected modal closing in IME Composition (#46453). -
Toolbar
: Fix duplicate focus style on anchor link button (#46759). -
useNavigateRegions
: Ensure region navigation picks the next region based on where the current user focus is located instead of starting at the beginning (#44883). -
ComboboxControl
: Fix unexpected behaviour in IME Composition (#46827).
Enhancements
-
TabPanel
: Simplify tab-focus style. (#46276). -
TabPanel
: Add ability to set icon only tab buttons (#45005). -
InputControl
,NumberControl
,UnitControl
: Addhelp
prop for additional description (#45931). -
BorderControl
,ColorPicker
&QueryControls
: Replace bottom margin overrides with__nextHasNoMarginBottom
(#45985). -
CustomSelectControl
,UnitControl
: AddonFocus
andonBlur
props (#46096). -
ResizableBox
: Prevent unnecessary paint on resize handles (#46196). -
Popover
: Prevent unnecessary paint caused by using outline (#46201). -
PaletteEdit
: Global styles: add onChange actions to color palette items #45681. - Lighten the border color on control components (#46252).
-
Popover
: Prevent unnecessary paint when scrolling by using transform instead of top/left positionning (#46187). -
CircularOptionPicker
: Prevent unecessary paint on hover (#46197).
Experimental
-
TextControl
: Restricttype
prop toemail
,number
,password
,tel
,text
,search
orurl
(#45433).
Internal
-
useControlledValue
: let TypeScript infer the return type (#46164). -
LinkedButton
: remove unnecessaryspan
tag (#46063). - NumberControl: refactor styles/tests/stories to TypeScript, replace fireEvent with user-event (#45990).
-
useBaseField
: Convert to TypeScript (#45712). -
Dashicon
: Convert to TypeScript (#45924). -
PaletteEdit
: add follow up changelog for #45681 and tests #46095. -
AlignmentMatrixControl
: Convert to TypeScript (#46162). -
Theme
: Remove public export (#46427). -
Autocomplete
: Refactor away from_.find()
(#46537). -
TabPanel
: Refactor away from_.find()
(#46537). -
BottomSheetPickerCell
: Refactor away from_.find()
for mobile (#46537). - Refactor global styles context away from
_.find()
for mobile (#46537). -
Dropdown
: Convert to TypeScript (#45787).
Documentation
-
Tooltip
: Add readme and unit tests forshortcut
prop (#46092).
v22.1.0
Enhancements
-
ColorPalette
,BorderBox
,BorderBoxControl
: polish and DRY prop types, add default values (#45463). -
TabPanel
: Add ability to set icon only tab buttons (#45005).
Internal
-
AnglePickerControl
: remove:focus-visible' outline on
CircleOutlineWrapper` (#45758)
Bug Fix
-
FormTokenField
: Fix duplicate input in IME composition (#45607). -
Autocomplete
: Check key events more strictly in IME composition (#45626). -
Autocomplete
: Fix unexpected block insertion during IME composition (#45510). -
Icon
: Making size prop work for icon components using dash icon strings (#45593) -
ToolsPanelItem
: Prevent unintended calls to onDeselect when parent panel is remounted and item is rendered via SlotFill (#45673) -
ColorPicker
: Prevent all number fields from becoming "0" when one of them is an empty string (#45649). -
ToggleControl
: Fix toggle control label text overflow (#45962).
Internal
-
ToolsPanel
: Update to fixexhaustive-deps
eslint rule (#45715). -
PaletteEditListView
: Update to ignoreexhaustive-deps
eslint rule (#45467). -
Popover
: Update to passexhaustive-deps
eslint rule (#45656). -
Flex
: Update to passexhaustive-deps
eslint rule (#45528). -
withNotices
: Update to passexhaustive-deps
eslint rule (#45530). -
ItemGroup
: Update to passexhaustive-deps
eslint rule (#45531). -
TabPanel
: Update to passexhaustive-deps
eslint rule (#45660). -
NavigatorScreen
: Update to passexhaustive-deps
eslint rule (#45648). -
Draggable
: Convert to TypeScript (#45471). -
MenuGroup
: Convert to TypeScript (#45617). -
useCx
: fix story to satisfy thereact-hooks/exhaustive-deps
eslint rule (#45614) - Activate the
react-hooks/exhuastive-deps
eslint rule for the Components package (#41166) -
Snackbar
: Convert to TypeScript (#45472).
Experimental
-
ToggleGroupControl
: Only show enclosing border whenisBlock
and notisDeselectable
(#45492). -
Theme
: Add support for custombackground
color (#45466).
v22.0.0
Breaking Changes
-
Popover
: The deprecatedrange
and__unstableShift
props have been removed (#45195).
Deprecations
-
Popover
: the deprecation messages for anchor-related props (anchorRef
,anchorRect
,getAnchorRect
) have been updated (#45195). -
RadioGroup
: Mark as deprecated, in favor ofRadioControl
andToggleGroupControl
(#45389). -
Popover
: the deprecation messages for anchor-related props (anchorRef
,anchorRect
,getAnchorRect
) have been updated. (#45195). -
Popover
: TheisAlternate
prop has been replaced with avariant
prop that can be called with the'toolbar'
string (#45137).
New Feature
-
BoxControl
&CustomSelectControl
: AddonMouseOver
andonMouseOut
callback props to allow handling of these events by parent components (#44955) -
Popover
: Avariant
prop has been added to style popovers, with'unstyled'
and'toolbar'
possible values (#45137).
Enhancements
-
FontSizePicker
: Pass the preset object to the onChange callback to allow conversion from preset slugs to CSS vars (#44967). -
FontSizePicker
: Improved slider design whenwithSlider
is set (#44598). -
ToggleControl
: Improved types for thehelp
prop, covering the dynamic render function option, and enabled the dynamichelp
behavior only for a controlled component (#45279). -
BorderControl
&BorderBoxControl
: Replace__next36pxDefaultSize
with "default" and "large" size variants (#41860). -
UnitControl
: Remove outer wrapper to normalize className placement (#41860). -
ColorPalette
: Fix transparent checkered background pattern (#45295). -
ToggleGroupControl
: AddisDeselectable
prop to allow deselecting the selected option (#45123). -
FontSizePicker
: Improve hint text shown next to 'Font size' label (#44966).
Bug Fix
-
useNavigateRegions
: Add new keyboard shortcut alias to cover backtick and tilde keys inconsistencies across browsers (#45019). -
Button
: Tweak the destructive button primary, link, and default variants (#44427). -
UnitControl
: Fixdisabled
style is overridden by coreform.css
style (#45250). -
ItemGroup
: fix RTLItem
styles when rendered as a button (#45280). -
Button
: Fix RTL alignment for buttons containing an icon and text (#44787). -
TabPanel
: CallonSelect()
on every tab selection, regardless of whether it was triggered by user interaction (#44028). -
FontSizePicker
: Fallback to font sizeslug
ifname
is undefined (#45041). -
AutocompleterUI
: fix issue where autocompleter UI would appear on top of other UI elements (#44795) -
ExternalLink
: Fix to re-enable support foronClick
event handler (#45214). -
InputControl
: Allow inline styles to be applied to the wrapper not inner input (#45340)
Internal
-
BorderBoxControl
: Convert stories to TypeScript and use Controls (#45002). -
Disabled
: add a note in the docs about the lack of polyfill for theinert
attribute (#45272) -
Snackbar
: updated to satisfyreact/exhaustive-deps
eslint rule (#44934) -
AnglePickerControl
: Set Storybook Label control type to 'text' (#45122). -
SlotFill
: updated to satisfyreact/exhaustive-deps
eslint rule (#44403) -
Context
: updated to ignorereact/exhaustive-deps
eslint rule (#45044) -
Button
: Refactor Storybook to controls and align docs (#44105). -
TabPanel
: updated to satisfyreact/exhaustive-deps
eslint rule (#44935) -
ColorPalette
: Convert to TypeScript (#44632). -
UnitControl
: Add tests (#45260). -
Disabled
: Refactor the component to rely on the HTMLinert
attribute. -
CustomGradientBar
: Refactor away from Lodash (#45367). -
TextControl
: Set Storybook control types onhelp
,label
andtype
(#45405). -
Autocomplete
: use Popover's newplacement
prop instead of legacyposition
prop (#44396). -
SelectControl
: AddonChange
,onBlur
andonFocus
to storybook actions (#45432). -
FontSizePicker
: Add more comprehensive tests (#45298). -
FontSizePicker
: Refactor to use components instead of helper functions (#44891).
Experimental
-
NumberControl
: ReplacehideHTMLArrows
prop withspinControls
prop. Allow custom spin controls viaspinControls="custom"
(#45333).
Experimental
- Theming: updated Components package to utilize the new
accent
prop of the experimentalTheme
component.
v21.3.0
Bug Fix
-
FontSizePicker
: Ensure that fluid font size presets appear correctly in the UI controls (#44791). -
ToggleGroupControl
: Remove unsupporteddisabled
prop from types, and correctly marklabel
prop as required (#45114). -
Navigator
: prevent partially hiding focus ring styles, by removing unnecessary overflow rules onNavigatorScreen
(#44973). -
Navigator
: restore focus only once per location (#44972).
Documentation
-
VisuallyHidden
: Add some notes on best practices around stacking contexts when using this component (#44867).
Internal
-
Modal
: Convert to TypeScript (#42949). -
Sandbox
: UsetoString
to create observe and resize script string (#42872). -
Navigator
: refactor unit tests to TypeScript and touser-event
(#44970). -
Navigator
: Refactor Storybook code to TypeScript and controls (#44979). -
withFilters
: Refactor away from_.without()
(#44980). -
withFocusReturn
: Refactor tests to@testing-library/react
(#45012). -
ToolsPanel
: updated to satisfyreact/exhaustive-deps
eslint rule (#45028) -
Tooltip
: updated to ignorereact/exhaustive-deps
eslint rule (#45043)
v21.2.0
Enhancements
-
FontSizePicker
: Updated to take up full width of its parent and have a 40px Reset button whensize
is__unstable-large
((44559)[https://github.com/WordPress/gutenberg/pull/44559]). -
BorderBoxControl
: Omit unit select when width values are mixed (#44592) -
BorderControl
: Add ability to disable unit selection (#44592)
Bug Fix
-
Popover
: fix limitShift logic by adding iframe offset correctly (#42950). -
Popover
: refine position-to-placement conversion logic, add tests (#44377). -
ToggleGroupControl
: adjust icon color when inactive, fromgray-700
togray-900
(#44575). -
TokenInput
: improve logic around thearia-activedescendant
attribute, which was causing unintended focus behavior for some screen readers (#44526). -
NavigatorScreen
: fix focus issue where back button received focus unexpectedly (#44239) -
FontSizePicker
: Fix header order in RTL languages (#44590).
Enhancements
-
SuggestionList
: userequestAnimationFrame
instead ofsetTimeout
when scrolling selected item into view. This change improves the responsiveness of theComboboxControl
andFormTokenField
components when rapidly hovering over the suggestion items in the list (#44573).
Internal
-
Mobile
updated to ignorereact/exhaustive-deps
eslint rule (#44207). -
Popover
: refactor unit tests to TypeScript and modern RTL assertions (#44373). -
SearchControl
: updated to ignorereact/exhaustive-deps
eslint rule in native files(#44381) -
ResizableBox
updated to pass thereact/exhaustive-deps
eslint rule (#44370). -
Sandbox
: updated to satisfyreact/exhaustive-deps
eslint rule (#44378) -
FontSizePicker
: Convert to TypeScript (#44449). -
FontSizePicker
: Replace SCSS with Emotion + components (#44483).
Experimental
- Add experimental
Theme
component (#44668).
v21.1.0
Deprecations
-
Popover
: added newanchor
prop, supposed to supersede all previous anchor-related props (anchorRef
,anchorRect
,getAnchorRect
). These older anchor-related props are now marked as deprecated and are scheduled to be removed in WordPress 6.3 (#43691).
Bug Fix
-
Button
: Remove unexpectedhas-text
class when empty children are passed (#44198). - The
LinkedButton
to unlink sides inBoxControl
,BorderBoxControl
andBorderRadiusControl
have changed from a rectangular primary button to an icon-only button, with a sentence case tooltip, and default-size icon for better legibility. TheButton
component has been fixed so whenisSmall
andicon
props are set, and no text is present, the button shape is square rather than rectangular.
New Features
-
MenuItem
: Add suffix prop for injecting non-icon and non-shortcut content to menu items (#44260). -
ToolsPanel
: Add subheadings to ellipsis menu and reset text to default control menu items (#44260).
Internal
-
NavigationMenu
updated to ignorereact/exhaustive-deps
eslint rule (#44090). -
RangeControl
: updated to passreact/exhaustive-deps
eslint rule (#44271). -
UnitControl
updated to pass thereact/exhaustive-deps
eslint rule (#44161). -
Notice
: updated to satisfyreact/exhaustive-deps
eslint rule (#44157)
v21.0.7
v21.0.6
v21.0.5
v21.0.4
v21.0.3
v21.0.2
v21.0.1
v21.0.0
Deprecations
-
FontSizePicker
: Deprecate bottom margin style. Add a__nextHasNoMarginBottom
prop to start opting into the margin-free styles that will become the default in a future version, currently scheduled to be WordPress 6.4 (#43870). -
AnglePickerControl
: Deprecate bottom margin style. Add a__nextHasNoMarginBottom
prop to start opting into the margin-free styles that will become the default in a future version, currently scheduled to be WordPress 6.4 (#43867). -
Popover
: deprecate__unstableShift
prop in favour of newshift
prop. The__unstableShift
is currently scheduled for removal in WordPress 6.3 (#43845). -
Popover
: removed the__unstableObserveElement
prop, which is not necessary anymore. The functionality is now supported directly by the component without the need of an external prop (#43617).
Bug Fix
-
Button
,Icon
: FixiconSize
prop doesn't work with some icons (#43821). -
InputControl
,NumberControl
,UnitControl
: Fix margin whenlabelPosition
isbottom
(#43995). -
Popover
: enable auto-updating every animation frame (#43617). -
Popover
: improve the component's performance and reactivity to prop changes by reworking its internals (#43335). -
NavigatorScreen
: updated to satisfyreact/exhaustive-deps
eslint rule (#43876) -
Popover
: fix positioning when reference and floating elements are both within an iframe (#43971)
Enhancements
-
ToggleControl
: Add__nextHasNoMargin
prop for opting into the new margin-free styles (#43717). -
CheckboxControl
: Add__nextHasNoMargin
prop for opting into the new margin-free styles (#43720). -
FocalPointControl
: Add__nextHasNoMargin
prop for opting into the new margin-free styles (#43996). -
TextControl
,TextareaControl
: Add__nextHasNoMargin
prop for opting into the new margin-free styles (#43782). -
Flex
: Remove margin-based polyfill implementation of flexgap
(#43995). -
RangeControl
: Tweak dark gray marking color to be consistent with the grays in@wordpress/base-styles
(#43773). -
UnitControl
: Tweak unit dropdown color to be consistent with the grays in@wordpress/base-styles
(#43773). -
SearchControl
: Add__nextHasNoMargin
prop for opting into the new margin-free styles (#43871). -
UnitControl
: Consistently hide spin buttons (#43985). -
CardHeader
,CardBody
,CardFooter
: TweakisShady
background colors to be consistent with the grays in@wordpress/base-styles
(#43719). -
InputControl
,SelectControl
: Tweakdisabled
colors to be consistent with the grays in@wordpress/base-styles
(#43719). -
FocalPointPicker
: Tweak media placeholder background color to be consistent with the grays in@wordpress/base-styles
(#43994). -
RangeControl
: Tweak rail, track, and mark colors to be consistent with the grays in@wordpress/base-styles
(#43994). -
UnitControl
: Tweak unit dropdown hover color to be consistent with the grays in@wordpress/base-styles
(#43994).
Internal
-
Icon
: Refactor tests to@testing-library/react
(#44051). - Fix TypeScript types for
isValueDefined()
andisValueEmpty()
utility functions (#43983). -
RadioControl
: Clean up styles to use less custom CSS (#43868). - Remove unused
normalizeArrowKey
utility function (#43640). -
SearchControl
: Convert to TypeScript (#43871). -
FormFileUpload
: Convert to TypeScript (#43960). -
DropZone
: Convert to TypeScript (#43962). -
ToggleGroupControl
: Rename__experimentalIsIconGroup
prop to__experimentalIsBorderless
(#43771). -
NumberControl
: Add TypeScript types (#43791). - Refactor
FocalPointPicker
to function component (#39168). -
Guide
: usecode
instead ofkeyCode
for keyboard events (#43604). -
ToggleControl
: Convert to TypeScript and streamline CSS (#43717). -
FocalPointPicker
: Convert to TypeScript (#43872). -
Navigation
: usecode
instead ofkeyCode
for keyboard events (#43644). -
ComboboxControl
: Add unit tests (#42403). -
NavigableContainer
: usecode
instead ofkeyCode
for keyboard events, rewrite tests using RTL anduser-event
(#43606). -
ComboboxControl
: updated to satisfyreact/exhuastive-deps
eslint rule (#41417) -
FormTokenField
: Refactor away from Lodash (#43744). -
NavigatorButton
: updated to satisfyreact/exhaustive-deps
eslint rule (#42051) -
TabPanel
: Refactor away from_.partial()
(#43895). -
Panel
: Refactor tests to@testing-library/react
(#43896). -
Popover
: refactor to TypeScript (#43823). -
BorderControl
andBorderBoxControl
: replace temporary types withPopover
's types (#43823). -
DimensionControl
: Refactor tests to@testing-library/react
(#43916). -
withFilters
: Refactor tests to@testing-library/react
(#44017). -
IsolatedEventContainer
: Refactor tests to@testing-library/react
(#44073). -
KeyboardShortcuts
: Refactor tests to@testing-library/react
(#44075). -
Slot
/Fill
: Refactor tests to@testing-library/react
(#44084). -
ColorPalette
: Refactor tests to@testing-library/react
(#44108).
v20.0.0
Deprecations
-
CustomSelectControl
: Deprecate constrained width style. Add a__nextUnconstrainedWidth
prop to start opting into the unconstrained width that will become the default in a future version, currently scheduled to be WordPress 6.4 (#43230). -
Popover
: deprecate__unstableForcePosition
prop in favour of newflip
andresize
props. The__unstableForcePosition
is currently scheduled for removal in WordPress 6.3 (#43546).
Bug Fix
-
AlignmentMatrixControl
: keep the physical direction in RTL languages (#43126). -
AlignmentMatrixControl
: Fix thewidth
prop so it works as intended (#43482). -
SelectControl
,CustomSelectControl
: Truncate long option strings (#43301). -
ToggleGroupControl
: Fix minor inconsistency in label height (#43331). -
Popover
: fix and improve opening animation (#43186). -
Popover
: fix incorrect deps in hooks resulting in incorrect positioning after callingupdate
(#43267). -
FontSizePicker
: Fix excessive margin between label and input (#43304). - Ensure all dependencies allow version ranges (#43355).
-
Popover
: make sure offset middleware always applies the latest frame offset values (#43329). -
Dropdown
: anchor popover to the dropdown wrapper (instead of the toggle) (#43377). -
Guide
: Fix error when rendering with no pages (#43380). -
Disabled
: preserve input values when toggling theisDisabled
prop (#43508)
Enhancements
-
GradientPicker
: Show custom picker before swatches (#43577). -
CustomGradientPicker
,GradientPicker
: Add__nextHasNoMargin
prop for opting into the new margin-free styles (#43387). -
ToolsPanel
: Tighten grid gaps (#43424). -
ColorPalette
: Make popover style consistent (#43570). -
ToggleGroupControl
: Improve TypeScript documentation (#43265). -
ComboboxControl
: Normalize hyphen-like characters to an ASCII hyphen (#42942). -
FormTokenField
: Refactor away from_.difference()
(#43224). -
Autocomplete
: useKeyboardEvent.code
instead ofKeyboardEvent.keyCode
(#43432). -
ConfirmDialog
: replace (almost) every usage offireEvent
with@testing-library/user-event
(#43429). -
Popover
: Introduce newflip
andresize
props (#43546).
Internal
-
Tooltip
: Refactor tests to@testing-library/react
(#43061). -
ClipboardButton
,FocusableIframe
,IsolatedEventContainer
,withConstrainedTabbing
,withSpokenMessages
: Improve TypeScript types (#43579). - Clean up unused and duplicate
COLORS
values (#43445). - Update
floating-ui
to the latest version (#43206). -
DateTimePicker
,TimePicker
,DatePicker
: Switch frommoment
todate-fns
(#43005). -
DatePicker
: Switch fromreact-dates
touse-lilius
(#43005). -
DateTimePicker
: address feedback after recent refactor todate-fns
anduse-lilius
(#43495). -
convertLTRToRTL()
: Refactor away from_.mapKeys()
(#43258). -
withSpokenMessages
: Update to use@testing-library/react
(#43273). -
MenuGroup
: Refactor unit tests to use@testing-library/react
(#43275). -
FormTokenField
: Refactor away from_.uniq()
(#43330). -
contextConnect
: Refactor away from_.uniq()
(#43330). -
ColorPalette
: Refactor away from_.uniq()
(#43330). -
Guide
: Refactor away from_.times()
(#43374). -
Disabled
: Convert to TypeScript (#42708). -
Guide
: Update tests to use@testing-library/react
(#43380). -
Modal
: useKeyboardEvent.code
instead of deprecatedKeyboardEvent.keyCode
. improve unit tests (#43429). -
FocalPointPicker
: useKeyboardEvent.code
, partially refactor tests to modern RTL anduser-event
(#43441). -
CustomGradientPicker
: useKeyboardEvent.code
instead ofKeyboardEvent.keyCode
(#43437). -
Card
: Convert to TypeScript (#42941). -
NavigableContainer
: Refactor away from_.omit()
(#43474). -
Notice
: Refactor away from_.omit()
(#43474). -
Snackbar
: Refactor away from_.omit()
(#43474). -
UnitControl
: Refactor away from_.omit()
(#43474). -
BottomSheet
: Refactor away from_.omit()
(#43474). -
DropZone
: Refactor away from_.includes()
(#43518). -
NavigableMenu
: Refactor away from_.includes()
(#43518). -
Tooltip
: Refactor away from_.includes()
(#43518). -
TreeGrid
: Refactor away from_.includes()
(#43518). -
FormTokenField
: useKeyboardEvent.code
, refactor tests to modern RTL anduser-event
(#43442). -
DropdownMenu
: useKeyboardEvent.code
, refactor tests to model RTL anduser-event
(#43439). -
Autocomplete
: Refactor away from_.escapeRegExp()
(#43629). -
TextHighlight
: Refactor away from_.escapeRegExp()
(#43629).
Experimental
WordPress/gutenberg (@wordpress/compose)
v6.21.0
v6.20.0
v6.19.9
v6.19.8
v6.19.7
v6.19.6
v6.19.5
v6.19.4
v6.19.3
v6.19.2
v6.19.1
v6.19.0
Features
-
useStateWithHistory
: Add a new hook to manage state with undo/redo support.
v6.18.0
v6.17.1
v6.17.0
v6.16.0
v6.15.0
v6.14.0
v6.13.0
v6.12.3
v6.12.2
v6.12.1
v6.12.0
v6.11.0
v6.10.0
v6.9.0
v6.8.0
v6.7.0
v6.6.0
v6.5.0
v6.4.0
v6.3.4
v6.3.3
v6.3.2
v6.3.1
v6.3.0
v6.2.0
v6.1.0
v6.0.0
Breaking Changes
- Updated dependencies to require React 18 (45235)
WordPress/gutenberg (@wordpress/dependency-extraction-webpack-plugin)
v4.27.0
v4.26.0
v4.25.9
v4.25.8
v4.25.7
v4.25.6
v4.25.5
v4.25.4
v4.25.3
v4.25.2
v4.25.1
v4.25.0
v4.24.0
v4.23.1
v4.23.0
v4.22.0
v4.21.0
v4.20.0
v4.19.0
v4.18.2
v4.18.1
v4.18.0
v4.17.0
v4.16.0
v4.15.0
v4.14.0
v4.13.0
v4.12.0
v4.11.0
v4.10.0
Bug Fix
- The bundled
json2php
dependency has been upgraded from requiring^0.0.5
to^0.0.7
(#47831).
v4.9.2
v4.9.1
v4.9.0
v4.8.0
v4.7.0
v4.6.0
v4.5.0
v4.4.0
v4.3.0
v4.2.0
v4.1.0
New Features
- Include
@wordpress/style-engine
on the list of external dependencies to allow usingwp.styleEngine
global with WordPress 6.1 and beyond (#43840).
v4.0.2
v4.0.1
Changelog
- Deactivate plugin versions below 4.1 on WordPress 5.0. #11375
v4.0.0
Breaking Change
- Increase the minimum Node.js version to 14 (#43141).
WordPress/gutenberg (@wordpress/element)
v5.21.0
v5.20.0
v5.19.9
v5.19.8
v5.19.7
v5.19.6
v5.19.5
v5.19.4
v5.19.3
v5.19.2
v5.19.1
v5.19.0
v5.18.0
v5.17.1
v5.17.0
v5.16.0
v5.15.0
v5.14.0
v5.13.0
v5.12.2
v5.12.1
v5.12.0
v5.11.0
v5.10.0
v5.9.0
v5.8.0
v5.7.0
v5.6.0
v5.5.0
New Features
- Started exporting the
flushSync
function fromreact-dom
v5.4.0
v5.3.3
v5.3.2
v5.3.1
v5.3.0
v5.2.0
v5.1.0
v5.0.0
Breaking Changes
- Updated dependencies to require React 18 (45235)
New Features
- Started exporting new React 18 APIs (46610)
WordPress/gutenberg (@wordpress/env)
v8.10.0
Bug Fix
- Corrected
PATH
to include the host user's Composer bin directory. - Replaced
yoast/phpunit-polyfills
withphpunit/phpunit
to install the required PHPUnit version, avoiding the need for project-specific polyfills.
v8.9.0
v8.8.9
v8.8.8
v8.8.7
v8.8.6
v8.8.5
v8.8.4
v8.8.3
v8.8.2
v8.8.1
v8.8.0
v8.7.0
v8.6.1
: 8.6.1
Bug Fixes:
- Fix the plugin translations.
v8.6.0
v8.5.0
v8.4.0
v8.3.0
v8.2.0
v8.1.3
v8.1.2
v8.1.1
Bug fix
- Address issue where a missing file in the underlying Docker image caused
wp-env
to crash. #51513
v8.1.0
New feature
- Execute the local package's
wp-env
instead of the globally installed version if one is available.
Bug fix
- Run
useradd
with-l
option to prevent excessive Docker image sizes.
v8.0.0
Breaking Change
- Remove
afterSetup
option from.wp-env.json
and theWP_ENV_AFTER_SETUP
environment variable in favor of more granular lifecycle scripts.
New feature
- Add
afterStart
,afterClean
, andafterDestroy
lifecycle scripts to a newlifecycleScripts
key in.wp-env.json
. - Add a series of
WP_ENV_LIFECYCLE_SCRIPT_
environment variables for the various lifecycle scripts. - Rework
run
command to resolve bugs with non-quoted commands. As a consequence it is no longer possible to pass your entire command towp-env
wrapped in double-quotes. Whilenpx wp-env run cli wp help
will still work,npx wp-env run cli "wp help"
will not. If you are currently escaping any quotes you will need to review those commands and ensure they are compatible with this update.
Enhancement
- Support using double dashes in
wp-env run ...
to pass arguments that would otherwise be consumed bywp-env
. For example, while normally--help
would provide thewp-env
help text, if you usenpx wp-env run cli php -- --help
you will see the PHP help text. - Validate whether or not config options exist to prevent accidentally including ones that don't.
Bug fix
- Support Windows without requiring the use of WSL.
v7.0.0
Breaking Change
- Docker containers now run as the host user. This should resolve problems with permissions arising from different owners between the host, web container, and cli container. If you still encounter permissions issues, try running
npx wp-env destroy
so that the environment can be recreated with the correct permissions. - Remove the
composer
andphpunit
Docker containers. If you are currently using therun composer
orrun phpunit
command you can migrate torun cli composer
orrun tests-cli phpunit
respectively. Note that withcomposer
, you will need to use the--env-cwd
option to navigate to your plugin's directory as it is no longer the default working directory.
New feature
- Create an
afterSetup
option in.wp-env.json
files for setting arbitrary commands to run after setting up WordPress when usingnpx wp-env start
andnpx wp-env clean
. - Add a
WP_ENV_AFTER_SETUP
environment variable to override theafterSetup
option. - Execute the
afterSetup
command onnpx wp-env start
after the environment is set up. This can happen when your config changes, WordPress updates, or you pass the--update
flag. - Execute the
afterSetup
command onnpx wp-env clean
. - Globally install
composer
and the correct version ofphpunit
in all of the Docker containers.
Bug fix
- Ensure
wordpress
,tests-wordpress
,cli
, andtests-cli
always build the correct Docker image. - Fix Xdebug while using PHP 7.2x.
Enhancement
-
wp-env run ...
now uses docker-compose exec instead of docker-compose run. As a result, it is much faster, since commands are executed against existing services, rather than creating them from scratch each time. - Increase the maximum upload size to 1GB.
v6.0.0
Breaking Change
- Use test environment's
WP_SITEURL
instead ofWP_TESTS_DOMAIN
as the WordPress URL. - Automatically add the environment's port to
WP_TESTS_DOMAIN
. -
run
command now has a--env-cwd
option to set the working directory in the container for the command to execute from.
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.