Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
8.6.0
->10.2.0
19.17.0
->21.2.0
6.15.0
->7.3.0
22.5.0
->24.3.0
Release Notes
WordPress/gutenberg (@wordpress/block-editor)
v10.2.0
Compare Source
v10.1.0
Compare Source
v10.0.4
Compare Source
v10.0.3
Compare Source
v10.0.2
Compare Source
Bug Fixes
v10.0.1
Compare Source
Bug Fixes
v10.0.0
Compare Source
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
Compare Source
v9.7.0
Compare Source
v9.6.0
Compare Source
v9.5.0
Compare Source
v9.4.0
Compare Source
v9.3.0
Compare Source
Bug fix
input
elements when navigating within a block with the left/right arrow keys (#41538).v9.2.0
Compare Source
v9.1.0
Compare Source
v9.0.0
Compare Source
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).WordPress/gutenberg (@wordpress/components)
v21.2.0
Compare Source
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](https://togithub.com/WordPress/gutenberg/pull/44559)9]).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)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).v21.1.0
Compare Source
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).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.4
Compare Source
v21.0.3
Compare Source
v21.0.2
Compare Source
v21.0.1
Compare Source
v21.0.0
Compare Source
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).isValueDefined()
andisValueEmpty()
utility functions (#43983).RadioControl
: Clean up styles to use less custom CSS (#43868).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).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
Compare Source
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).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).COLORS
values (#43445).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
FormTokenField
: add__experimentalAutoSelectFirstMatch
prop to auto select the first matching suggestion on typing (#42527).Popover
: Deprecate__unstableForcePosition
, now replaced by newflip
andresize
props (#43546).WordPress/gutenberg (@wordpress/data)
v7.3.0
Compare Source
v7.2.0
Compare Source
v7.1.3
Compare Source
v7.1.2
Compare Source
v7.1.1
Compare Source
v7.1.0
Compare Source
v7.0.0
Compare Source
Breaking Changes
– Add TypeScript types to the built package (via "types": "build-types" in the package.json)
Bug Fix
is-plain-obj
withis-plain-object
(#43511).WordPress/gutenberg (@wordpress/scripts)
v24.3.0
Compare Source
v24.2.0
Compare Source
v24.1.2
Compare Source
v24.1.1
Compare Source
v24.1.0
Compare Source
New Features
webp
image format (#43880).build
andstart
commands to automatically copy PHP files listed in therender
field ofblock.json
files from the source to the build folder (#43917).v24.0.0
Compare Source
Breaking Change
@wordpress/eslint-plugin
package got updated to the new major version and the default linting for Jest unit tests is now handled in the default config in this package (#43272).Bug Fix
is-plain-obj
withis-plain-object
(#43511).v23.7.2
Compare Source
Bug Fix
is-plain-obj
transformation ignore (#43271).v23.7.1
Compare Source
Bug Fix
is-plain-obj
transformation (#43179).v23.7.0
Compare Source
v23.6.0
Compare Source
Bug Fix
webpack
call forbuild
andstart
commands (#42396).v23.5.0
Compare Source
v23.4.0
Compare Source
v23.3.0
Compare Source
Enhancements
wp-prettier
dependency has been upgraded from2.2.1
to2.6.2
(#40542).v23.2.0
Compare Source
Bug Fix
plugin-zip
for root-level files and some specific platform conditions (#41439).v23.1.0
Compare Source
New Feature
format
command (#40994). You can opt-out of this behavior by providing a custom file matcher, example:wp-scripts format src/**/*.js
.viewScript
,script
,editorScript
(#41068).Bug Fixes
v23.0.0
Compare Source
Breaking Changes
lint-md-js
script that was broken for some time and it's extemely hard to make it work correctly with the recommended ESLint config in Markdown files (#40511).format-js
command (#40512). You should use theformat
command instead.New Features
--dist-tag
flag to thepackages-update
command to allow specifying a custom dist-tag when updating npm packages ([#40514](https://github.com/WordPress/gutenberg/pull/Configuration
📅 Schedule: Branch creation - "before 3am on wednesday" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR has been generated by Mend Renovate. View repository job log here.