@wordpress/core-data
Version:
Access to and manipulation of core WordPress entities.
307 lines (160 loc) ⢠7.95 kB
Markdown
<!-- Learn how to maintain this file at https://github.com/WordPress/gutenberg/tree/HEAD/packages#maintaining-changelogs. -->
# Unreleased
# 7.31.0 (2025-09-17)
# 7.30.0 (2025-09-03)
# 7.29.0 (2025-08-20)
# 7.28.0 (2025-08-07)
# 7.27.0 (2025-07-23)
- Fixed the TS type for meta values for core entities ([#70788](https://github.com/WordPress/gutenberg/pull/70788))
# 7.26.0 (2025-06-25)
# 7.25.0 (2025-06-04)
# 7.24.0 (2025-05-22)
# 7.23.0 (2025-05-07)
# 7.22.0 (2025-04-11)
# 7.21.0 (2025-03-27)
# 7.20.0 (2025-03-13)
# 7.19.0 (2025-02-28)
# 7.18.0 (2025-02-12)
# 7.17.0 (2025-01-29)
# 7.16.0 (2025-01-15)
# 7.15.0 (2025-01-02)
# 7.14.0 (2024-12-11)
# 7.13.0 (2024-11-27)
# 7.12.0 (2024-11-16)
# 7.11.0 (2024-10-30)
# 7.10.0 (2024-10-16)
# 7.9.0 (2024-10-03)
# 7.8.0 (2024-09-19)
# 7.7.0 (2024-09-05)
# 7.6.0 (2024-08-21)
# 7.5.0 (2024-08-07)
# 7.4.0 (2024-07-24)
# 7.3.0 (2024-07-10)
# 7.2.0 (2024-06-26)
# 7.1.0 (2024-06-15)
# 7.0.0 (2024-05-31)
## Breaking Changes
- Variables like `process.env.IS_GUTENBERG_PLUGIN` have been replaced by `globalThis.IS_GUTENBERG_PLUGIN`. Build systems using `process.env` should be updated ([#61486](https://github.com/WordPress/gutenberg/pull/61486)).
- Increase the minimum required Node.js version to v18.12.0 matching long-term support releases ([#31270](https://github.com/WordPress/gutenberg/pull/61930)). Learn more about [Node.js releases](https://nodejs.org/en/about/previous-releases).
# 6.35.0 (2024-05-16)
# 6.34.0 (2024-05-02)
# 6.33.0 (2024-04-19)
# 6.32.0 (2024-04-03)
# 6.31.0 (2024-03-21)
# 6.30.0 (2024-03-06)
# 6.29.0 (2024-02-21)
# 6.28.0 (2024-02-09)
# 6.27.0 (2024-01-24)
# 6.26.0 (2024-01-10)
# 6.25.0 (2023-12-13)
# 6.24.0 (2023-11-29)
# 6.23.0 (2023-11-16)
# 6.22.0 (2023-11-02)
# 6.21.0 (2023-10-18)
## Enhancements
- Add `getEntityRecordsTotalItems` and `getEntityRecordsTotalPages` selectors. [#55164](https://github.com/WordPress/gutenberg/pull/55164).
- Revisions: add new selectors, `getRevisions` and `getRevision`, to fetch entity revisions. [#54046](https://github.com/WordPress/gutenberg/pull/54046).
# 6.20.0 (2023-10-05)
# 6.19.0 (2023-09-20)
# 6.18.0 (2023-08-31)
# 6.17.0 (2023-08-16)
# 6.16.0 (2023-08-10)
# 6.15.0 (2023-07-20)
# 6.14.0 (2023-07-05)
# 6.13.0 (2023-06-23)
# 6.12.0 (2023-06-07)
# 6.11.0 (2023-05-24)
# 6.10.0 (2023-05-10)
# 6.9.0 (2023-04-26)
# 6.8.0 (2023-04-12)
# 6.7.0 (2023-03-29)
# 6.6.0 (2023-03-15)
# 6.5.0 (2023-03-01)
# 6.4.0 (2023-02-15)
# 6.3.0 (2023-02-01)
# 6.2.0 (2023-01-11)
# 6.1.0 (2023-01-02)
# 6.0.0 (2022-12-14)
## Breaking Changes
- Updated dependencies to require React 18 ([45235](https://github.com/WordPress/gutenberg/pull/45235))
# 5.5.0 (2022-11-16)
# 5.4.0 (2022-11-02)
# 5.3.0 (2022-10-19)
# 5.2.0 (2022-10-05)
# 5.1.0 (2022-09-21)
# 5.0.0 (2022-09-13)
## Breaking Changes
ā Add TypeScript types to the built package (via "types": "build-types" in the package.json)
# 4.14.0 (2022-08-24)
## New Features
- Stabilized the `useResourcePermissions` hook ([#43268](https://github.com/WordPress/gutenberg/pull/43268))
# 4.13.0 (2022-08-10)
# 4.12.0 (2022-07-27)
# 4.11.0 (2022-07-13)
# 4.10.0 (2022-06-29)
# 4.9.0 (2022-06-15)
# 4.8.0 (2022-06-01)
# 4.7.0 (2022-05-18)
## New Features
- Stabilized the `useEntityRecord` and `useEntityRecords` hooks ([#40162](https://github.com/WordPress/gutenberg/pull/40162))
# 4.6.0 (2022-05-04)
# 4.5.0 (2022-04-21)
# 4.4.0 (2022-04-08)
# 4.3.0 (2022-03-23)
## New Features
- 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](https://github.com/WordPress/gutenberg/pull/39258))
- Added support for fetching block patterns and their categories, with the `getBlockPatterns` and `getBlockPatternCategories` selectors.
# 4.2.0 (2022-03-11)
# 4.1.2 (2022-02-23)
## Bug Fixes
- The `canUser` no longer uses the `GET` request with the resource ID argument [#38901](https://github.com/WordPress/gutenberg/pull/38901).
# 4.1.0 (2022-01-27)
## Bug Fixes
- `getEntityRecords` no longer returns an empty array for unknown entities but returns `null` instead. `hasEntityRecords` now also returns `false` when the entity configuration is unknown. ([#36984](https://github.com/WordPress/gutenberg/pull/36984))
# 4.0.0 (2021-07-29)
## Breaking Changes
- Upgraded React components to work with v17.0 ([#29118](https://github.com/WordPress/gutenberg/pull/29118)). There are no new features in React v17.0 as explained in the [blog post](https://reactjs.org/blog/2020/10/20/react-v17.html).
# 3.2.0 (2021-07-21)
# 3.1.0 (2021-05-20)
# 3.0.0 (2021-05-14)
## Breaking Changes
- Drop support for Internet Explorer 11 ([#31110](https://github.com/WordPress/gutenberg/pull/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](https://github.com/WordPress/gutenberg/pull/31270)). Learn more at https://nodejs.org/en/about/releases/.
## Enhancements
- The `getEntityRecords` resolver has been updated and now uses the batched variants of start and finish resolution actions.
# 2.26.0 (2021-03-17)
# 2.25.0 (2020-12-17)
## New Features
- Added a store definition `store` for the core data namespace to use with `@wordpress/data` API ([#26655](https://github.com/WordPress/gutenberg/pull/26655)).
# 2.21.0 (2020-09-03)
## New Features
- The `deleteEntityRecord` and `removeItems` actions have been added.
- The `isDeletingEntityRecord` and `getLastEntityDeleteError` selectors have been added.
- A `delete<entity.name>` helper is created for every registered entity.
# 2.3.0 (2019-05-21)
## New Features
- The `getAutosave`, `getAutosaves` and `getCurrentUser` selectors have been added.
- The `receiveAutosaves` and `receiveCurrentUser` actions have been added.
# 2.0.16 (2019-01-03)
## Bug Fixes
- 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](https://developer.mozilla.org/en-US/docs/Glossary/Truthy) in conditions.
# 2.0.15 (2018-12-12)
# 2.0.14 (2018-11-20)
# 2.0.13 (2018-11-15)
# 2.0.12 (2018-11-12)
# 2.0.11 (2018-11-09)
# 2.0.10 (2018-11-09)
# 2.0.9 (2018-11-03)
# 2.0.8 (2018-10-30)
# 2.0.6 (2018-10-22)
# 2.0.5 (2018-10-19)
# 2.0.4 (2018-10-18)
# 2.0.0 (2018-09-05)
## Breaking Changes
- `dispatch("core").receiveTerms` has been deprecated. Please use `dispatch("core").receiveEntityRecords` instead.
- `getCategories` resolvers has been deprecated. Please use `getEntityRecords` resolver instead.
- `select("core").getTerms` has been deprecated. Please use `select("core").getEntityRecords` instead.
- `select("core").getCategories` has been deprecated. Please use `select("core").getEntityRecords` instead.
- `wp.data.select("core").isRequestingCategories` has been deprecated. Please use `wp.data.select("core/data").isResolving` instead.
- `select("core").isRequestingTerms` has been deprecated. Please use `select("core").isResolving` instead.
- Change how required built-ins are polyfilled with Babel 7 ([#9171](https://github.com/WordPress/gutenberg/pull/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](https://github.com/zloirock/core-js) or [@babel/polyfill](https://babeljs.io/docs/en/next/babel-polyfill) will add support for these methods.