- Variables like
process.env.IS_GUTENBERG_PLUGIN
have been replaced byglobalThis.IS_GUTENBERG_PLUGIN
. Build systems usingprocess.env
should be updated (#61486). - Increase the minimum required Node.js version to v18.12.0 matching long-term support releases (#31270). Learn more about Node.js releases.
- Add
getEntityRecordsTotalItems
andgetEntityRecordsTotalPages
selectors. #55164. - Revisions: add new selectors,
getRevisions
andgetRevision
, to fetch entity revisions. #54046.
- Updated dependencies to require React 18 (45235)
– Add TypeScript types to the built package (via "types": "build-types" in the package.json)
- Stabilized the
useResourcePermissions
hook (#43268)
- Stabilized the
useEntityRecord
anduseEntityRecords
hooks (#40162)
- The saveEntityRecord, saveEditedEntityRecord, and deleteEntityRecord actions now accept an optional throwOnError option (defaults to false). When set to true, any exceptions occurring when the action was executing are re-thrown, causing dispatch().saveEntityRecord() to reject with an error. (#39258)
- Added support for fetching block patterns and their categories, with the
getBlockPatterns
andgetBlockPatternCategories
selectors.
- The
canUser
no longer uses theGET
request with the resource ID argument #38901.
getEntityRecords
no longer returns an empty array for unknown entities but returnsnull
instead.hasEntityRecords
now also returnsfalse
when the entity configuration is unknown. (#36984)
- Upgraded React components to work with v17.0 (#29118). There are no new features in React v17.0 as explained in the blog post.
- 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/.
- The
getEntityRecords
resolver has been updated and now uses the batched variants of start and finish resolution actions.
- Added a store definition
store
for the core data namespace to use with@wordpress/data
API (#26655).
- The
deleteEntityRecord
andremoveItems
actions have been added. - The
isDeletingEntityRecord
andgetLastEntityDeleteError
selectors have been added. - A
delete<entity.name>
helper is created for every registered entity.
- The
getAutosave
,getAutosaves
andgetCurrentUser
selectors have been added. - The
receiveAutosaves
andreceiveCurrentUser
actions have been added.
- Fixed the
hasUploadPermissions
selector to always return a boolean. Previously, it may have returned an empty object. This should have no impact for most consumers, assuming usage as a truthy value in conditions.
dispatch("core").receiveTerms
has been deprecated. Please usedispatch("core").receiveEntityRecords
instead.getCategories
resolvers has been deprecated. Please usegetEntityRecords
resolver instead.select("core").getTerms
has been deprecated. Please useselect("core").getEntityRecords
instead.select("core").getCategories
has been deprecated. Please useselect("core").getEntityRecords
instead.wp.data.select("core").isRequestingCategories
has been deprecated. Please usewp.data.select("core/data").isResolving
instead.select("core").isRequestingTerms
has been deprecated. Please useselect("core").isResolving
instead.- Change how required built-ins are polyfilled with Babel 7 (#9171). If you're using an environment that has limited or no support for ES2015+ such as lower versions of IE then using core-js or @babel/polyfill will add support for these methods.