- Variables like
process.env.IS_GUTENBERG_PLUGINhave been replaced byglobalThis.IS_GUTENBERG_PLUGIN. Build systems usingprocess.envshould 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
getEntityRecordsTotalItemsandgetEntityRecordsTotalPagesselectors. #55164. - Revisions: add new selectors,
getRevisionsandgetRevision, 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
useResourcePermissionshook (#43268)
- Stabilized the
useEntityRecordanduseEntityRecordshooks (#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
getBlockPatternsandgetBlockPatternCategoriesselectors.
- The
canUserno longer uses theGETrequest with the resource ID argument #38901.
getEntityRecordsno longer returns an empty array for unknown entities but returnsnullinstead.hasEntityRecordsnow also returnsfalsewhen 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
getEntityRecordsresolver has been updated and now uses the batched variants of start and finish resolution actions.
- Added a store definition
storefor the core data namespace to use with@wordpress/dataAPI (#26655).
- The
deleteEntityRecordandremoveItemsactions have been added. - The
isDeletingEntityRecordandgetLastEntityDeleteErrorselectors have been added. - A
delete<entity.name>helper is created for every registered entity.
- The
getAutosave,getAutosavesandgetCurrentUserselectors have been added. - The
receiveAutosavesandreceiveCurrentUseractions have been added.
- Fixed the
hasUploadPermissionsselector 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").receiveTermshas been deprecated. Please usedispatch("core").receiveEntityRecordsinstead.getCategoriesresolvers has been deprecated. Please usegetEntityRecordsresolver instead.select("core").getTermshas been deprecated. Please useselect("core").getEntityRecordsinstead.select("core").getCategorieshas been deprecated. Please useselect("core").getEntityRecordsinstead.wp.data.select("core").isRequestingCategorieshas been deprecated. Please usewp.data.select("core/data").isResolvinginstead.select("core").isRequestingTermshas been deprecated. Please useselect("core").isResolvinginstead.- 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.