Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
300 changes: 260 additions & 40 deletions package-lock.json

Large diffs are not rendered by default.

7 changes: 6 additions & 1 deletion packages/admin-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
"src/**/*.module.css"
],
"dependencies": {
"@types/react": "^18.3.27",
"@wordpress/components": "file:../components",
"@wordpress/element": "file:../element",
"@wordpress/i18n": "file:../i18n",
Expand All @@ -59,8 +58,14 @@
"@testing-library/react": "^16.3.2"
},
"peerDependencies": {
"@types/react": "^18.3.27",
"react": "^18.0.0"
},
"peerDependenciesMeta": {
"@types/react": {
"optional": true
}
},
"publishConfig": {
"access": "public"
}
Expand Down
7 changes: 6 additions & 1 deletion packages/block-editor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@
],
"dependencies": {
"@react-spring/web": "^9.4.5",
"@types/react": "^18.3.27",
"@wordpress/a11y": "file:../a11y",
"@wordpress/base-styles": "file:../base-styles",
"@wordpress/blob": "file:../blob",
Expand Down Expand Up @@ -121,9 +120,15 @@
"deep-freeze": "^0.0.1"
},
"peerDependencies": {
"@types/react": "^18.3.27",
"react": "^18.0.0",
"react-dom": "^18.0.0"
},
"peerDependenciesMeta": {
"@types/react": {
"optional": true
}
},
"publishConfig": {
"access": "public"
}
Expand Down
7 changes: 6 additions & 1 deletion packages/block-library/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@
],
"dependencies": {
"@arraypress/waveform-player": "^1.2.1",
"@types/react": "^18.3.27",
"@wordpress/a11y": "file:../a11y",
"@wordpress/api-fetch": "file:../api-fetch",
"@wordpress/autop": "file:../autop",
Expand Down Expand Up @@ -151,9 +150,15 @@
"deep-freeze": "^0.0.1"
},
"peerDependencies": {
"@types/react": "^18.3.27",
"react": "^18.0.0",
"react-dom": "^18.0.0"
},
"peerDependenciesMeta": {
"@types/react": {
"optional": true
}
},
"publishConfig": {
"access": "public"
}
Expand Down
7 changes: 6 additions & 1 deletion packages/blocks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@
"build-module/store/index.mjs"
],
"dependencies": {
"@types/react": "^18.3.27",
"@wordpress/autop": "file:../autop",
"@wordpress/blob": "file:../blob",
"@wordpress/block-serialization-default-parser": "file:../block-serialization-default-parser",
Expand Down Expand Up @@ -82,8 +81,14 @@
"deep-freeze": "^0.0.1"
},
"peerDependencies": {
"@types/react": "^18.3.27",
"react": "^18.0.0"
},
"peerDependenciesMeta": {
"@types/react": {
"optional": true
}
},
"publishConfig": {
"access": "public"
}
Expand Down
7 changes: 6 additions & 1 deletion packages/boot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
"wpScriptModuleExports": "./build-module/index.mjs",
"types": "build-types",
"dependencies": {
"@types/react": "^18.3.27",
"@wordpress/a11y": "file:../a11y",
"@wordpress/admin-ui": "file:../admin-ui",
"@wordpress/base-styles": "file:../base-styles",
Expand All @@ -67,9 +66,15 @@
"clsx": "^2.1.1"
},
"peerDependencies": {
"@types/react": "^18.3.27",
"react": "^18.0.0",
"react-dom": "^18.0.0"
},
"peerDependenciesMeta": {
"@types/react": {
"optional": true
}
},
"publishConfig": {
"access": "public"
}
Expand Down
4 changes: 4 additions & 0 deletions packages/components/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@

- `SandBox`: Fix the viewport-unit (`vh`, `vw`, etc.) stripping so user-supplied HTML using these units in `width`/`height` no longer triggers a runaway resize loop in the preview ([#78677](https://github.com/WordPress/gutenberg/pull/78677)).

### Code Quality

- Move `@types/react` from `dependencies` to an optional peer dependency so consumers' React type version is used [#79095](https://github.com/WordPress/gutenberg/pull/79095).

## 35.0.0 (2026-06-10)

### Breaking Changes
Expand Down
7 changes: 6 additions & 1 deletion packages/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@
"@floating-ui/react-dom": "^2.0.8",
"@types/gradient-parser": "^1.1.0",
"@types/highlight-words-core": "^1.2.1",
"@types/react": "^18.3.27",
"@use-gesture/react": "^10.3.1",
"@wordpress/a11y": "file:../a11y",
"@wordpress/base-styles": "file:../base-styles",
Expand Down Expand Up @@ -118,9 +117,15 @@
"timezone-mock": "^1.3.6"
},
"peerDependencies": {
"@types/react": "^18.3.27",
"react": "^18.0.0",
"react-dom": "^18.0.0"
},
"peerDependenciesMeta": {
"@types/react": {
"optional": true
}
},
"publishConfig": {
"access": "public"
}
Expand Down
6 changes: 5 additions & 1 deletion packages/components/src/card/card-divider/hook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,13 @@ import * as styles from '../styles';
import { useCx } from '../../utils/hooks/use-cx';
import type { DividerProps } from '../../divider';

/*
* The explicit return type keeps the emitted declaration from inlining the inferred type,
* which references `WrapElement` from @ariakit/react-utils
*/
export function useCardDivider(
props: WordPressComponentProps< DividerProps, 'hr', false >
) {
): WordPressComponentProps< DividerProps, 'hr', false > {
const { className, ...otherProps } = useContextSystem(
props,
'CardDivider'
Expand Down
7 changes: 6 additions & 1 deletion packages/compose/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
"sideEffects": false,
"dependencies": {
"@types/mousetrap": "^1.6.8",
"@types/react": "^18.3.27",
"@wordpress/deprecated": "file:../deprecated",
"@wordpress/dom": "file:../dom",
"@wordpress/element": "file:../element",
Expand All @@ -67,8 +66,14 @@
"react-dom": "^18.3.1"
},
"peerDependencies": {
"@types/react": "^18.3.27",
"react": "^18.0.0"
},
"peerDependenciesMeta": {
"@types/react": {
"optional": true
}
},
"publishConfig": {
"access": "public"
}
Expand Down
10 changes: 9 additions & 1 deletion packages/connectors/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,22 @@
"wpScriptModuleExports": "./build-module/index.mjs",
"types": "build-types",
"dependencies": {
"@types/react": "^18.3.27",
"@wordpress/components": "file:../components",
"@wordpress/data": "file:../data",
"@wordpress/element": "file:../element",
"@wordpress/i18n": "file:../i18n",
"@wordpress/icons": "file:../icons",
"@wordpress/private-apis": "file:../private-apis"
},
"peerDependencies": {
"@types/react": "^18.3.27",
"react": "^18.0.0"
},
"peerDependenciesMeta": {
"@types/react": {
"optional": true
}
},
"publishConfig": {
"access": "public"
}
Expand Down
10 changes: 9 additions & 1 deletion packages/content-types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
"wpScriptModuleExports": "./build-module/index.mjs",
"types": "build-types",
"dependencies": {
"@types/react": "^18.3.27",
"@wordpress/admin-ui": "file:../admin-ui",
"@wordpress/base-styles": "file:../base-styles",
"@wordpress/components": "file:../components",
Expand All @@ -52,6 +51,15 @@
"@wordpress/url": "file:../url",
"@wordpress/views": "file:../views"
},
"peerDependencies": {
"@types/react": "^18.3.27",
"react": "^18.0.0"
},
"peerDependenciesMeta": {
"@types/react": {
"optional": true
}
},
"publishConfig": {
"access": "public"
}
Expand Down
7 changes: 6 additions & 1 deletion packages/core-data/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
"build-module/index.mjs"
],
"dependencies": {
"@types/react": "^18.3.27",
"@wordpress/api-fetch": "file:../api-fetch",
"@wordpress/block-editor": "file:../block-editor",
"@wordpress/blocks": "file:../blocks",
Expand Down Expand Up @@ -80,9 +79,15 @@
"deep-freeze": "^0.0.1"
},
"peerDependencies": {
"@types/react": "^18.3.27",
"react": "^18.0.0",
"react-dom": "^18.0.0"
},
"peerDependenciesMeta": {
"@types/react": {
"optional": true
}
},
"publishConfig": {
"access": "public"
}
Expand Down
14 changes: 12 additions & 2 deletions packages/data/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -500,9 +500,11 @@ _Returns_

Creates a memoized selector that caches the computed values according to the array of "dependants" and the selector parameters, and recomputes the values only when any of them changes.

_Related_
See The documentation for the `rememo` package from which the `createSelector` function is reexported.

_Type_

- The documentation for the `rememo` package from which the `createSelector` function is reexported.
- `( selector: S, getDependants: GetDependants ) => S & EnhancedSelector`

### dispatch

Expand All @@ -529,6 +531,14 @@ _Returns_

- `DispatchReturn< StoreNameOrDescriptor >`: Object containing the action creators.

### EnhancedSelector

Undocumented declaration.

### GetDependants

Undocumented declaration.

### keyedReducer

Higher-order reducer creator which creates a combined reducer object, keyed by a property on the action object.
Expand Down
7 changes: 6 additions & 1 deletion packages/data/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
"types": "build-types",
"sideEffects": false,
"dependencies": {
"@types/react": "^18.3.27",
"@wordpress/compose": "file:../compose",
"@wordpress/deprecated": "file:../deprecated",
"@wordpress/element": "file:../element",
Expand All @@ -67,8 +66,14 @@
"deep-freeze": "^0.0.1"
},
"peerDependencies": {
"@types/react": "^18.3.27",
"react": "^18.0.0"
},
"peerDependenciesMeta": {
"@types/react": {
"optional": true
}
},
"publishConfig": {
"access": "public"
}
Expand Down
38 changes: 36 additions & 2 deletions packages/data/src/create-selector.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,41 @@
/**
* External dependencies
*/
import memoize from 'rememo';

/**
* Returns the array of immutable references on which a memoized selector
* depends for computing its result. The memoize cache is preserved only as
* long as those dependant references remain the same.
*/
export type GetDependants = ( ...args: any[] ) => any[];

/**
* The memoization methods a selector returned by `createSelector` is
* enhanced with.
*/
export interface EnhancedSelector {
getDependants: GetDependants;

/**
* Clears the memoization cache.
*/
clear: () => void;
}

/*
* The signature mirrors `rememo`'s, but is declared here so that consumers'
* emitted declarations reference `@wordpress/data` rather than `rememo`,
* which they do not declare as a dependency.
*/

/**
* Creates a memoized selector that caches the computed values according to the array of "dependants"
* and the selector parameters, and recomputes the values only when any of them changes.
*
* @see The documentation for the `rememo` package from which the `createSelector` function is reexported.
* See The documentation for the `rememo` package from which the `createSelector` function is reexported.
*/
export { default as createSelector } from 'rememo';
export const createSelector: < S extends ( ...args: any[] ) => any >(
selector: S,
getDependants?: GetDependants
) => S & EnhancedSelector = memoize;
1 change: 1 addition & 0 deletions packages/data/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export { AsyncModeProvider } from './components/async-mode-provider';
export { createRegistry } from './registry';
export { createRegistrySelector, createRegistryControl } from './factory';
export { createSelector } from './create-selector';
export type { EnhancedSelector, GetDependants } from './create-selector';
export { controls } from './controls';
export { default as createReduxStore } from './redux-store';
export { keyedReducer } from './redux-store/keyed-reducer';
Expand Down
4 changes: 4 additions & 0 deletions packages/dataviews/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@

- `DataViewsPicker`: `DataViewsPicker.BulkActionToolbar` now renders only the bulk-selection info and action buttons, without pagination, matching `DataViews.BulkActionToolbar`. The full footer it previously rendered (including pagination) is now exposed as `DataViewsPicker.Footer`, matching `DataViews.Footer`. [#79180](https://github.com/WordPress/gutenberg/pull/79180)

### Code Quality

- Move `@types/react` from `dependencies` to an optional peer dependency so consumers' React type version is used [#79095](https://github.com/WordPress/gutenberg/pull/79095).

## 16.0.0 (2026-06-10)

### Breaking Changes
Expand Down
Loading
Loading