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
10 changes: 5 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions packages/edit-site/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

### Breaking Changes

- Raise the required Node.js version to `^20.19.0` or `>=22.13.0`. ([#80063](https://github.com/WordPress/gutenberg/pull/80063))

### Enhancements

- Widen React peer dependency ranges to `^18 || ^19` to support both React 18 and React 19 environments ([#80024](https://github.com/WordPress/gutenberg/pull/80024)).
Expand Down
4 changes: 2 additions & 2 deletions packages/edit-site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
"url": "https://github.com/WordPress/gutenberg/issues"
},
"engines": {
"node": ">=18.12.0",
"npm": ">=8.19.2"
"node": "^20.19.0 || >=22.13.0",
"npm": ">=10.2.3"
},
"files": [
"src",
Expand Down
1 change: 1 addition & 0 deletions packages/theme/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

### Breaking Changes

- Make the package ESM-only by removing the published CommonJS entrypoints and requiring Node.js `^20.19.0` or `>=22.13.0`. ([#80063](https://github.com/WordPress/gutenberg/pull/80063))
- Rename `--wpds-color-background-thumb-neutral-disabled` to `--wpds-color-background-thumb-neutral-weak-disabled` so the disabled token belongs to the existing neutral weak thumb family ([#79770](https://github.com/WordPress/gutenberg/pull/79770)).
- `ThemeProvider`: reject partially transparent and `transparent` seed colors. `color.primary` and `color.background` now only accept fully opaque seed colors ([#79773](https://github.com/WordPress/gutenberg/pull/79773)).

Expand Down
2 changes: 2 additions & 0 deletions packages/theme/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ npm install @wordpress/theme
import '@wordpress/theme/design-tokens.css';
```

The package's JavaScript entrypoints are ESM-only and require Node.js `^20.19.0` or `>=22.13.0`. Use `import` syntax from ESM or TypeScript configuration files.

This stylesheet is universal and does not have a separate RTL version.

If your application renders React content into additional documents (an iframe, a popup window, etc.), each of those documents needs the same stylesheet loaded in its own `<head>`. See [Across documents (iframes and other portals)](#across-documents-iframes-and-other-portals).
Expand Down
36 changes: 13 additions & 23 deletions packages/theme/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,59 +19,50 @@
"url": "https://github.com/WordPress/gutenberg/issues"
},
"engines": {
"node": ">=18.12.0",
"npm": ">=8.19.2"
"node": "^20.19.0 || >=22.13.0",
"npm": ">=10.2.3"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The npm version shouldn't be relevant for these packages because these can be used with other package managers as well.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gotcha. I guess it doesn't hurt, though? I'm following same approach used by @anomiex in #79755

},
"files": [
"src",
"build",
"build-module",
"build-types",
"*.md"
],
"main": "build/index.cjs",
"type": "module",
"module": "build-module/index.mjs",
"exports": {
".": {
"types": "./build-types/index.d.ts",
"import": "./build-module/index.mjs",
"default": "./build/index.cjs"
"default": "./build-module/index.mjs"
},
"./design-tokens.css": "./src/prebuilt/css/design-tokens.css",
"./design-tokens.js": {
"types": "./build-types/prebuilt/js/design-tokens.d.ts",
"import": "./build-module/prebuilt/js/design-tokens.mjs",
"default": "./build/prebuilt/js/design-tokens.cjs"
"types": "./build-types/prebuilt/js/design-tokens.d.mts",
"default": "./src/prebuilt/js/design-tokens.mjs"
},
"./postcss-plugins/postcss-ds-token-fallbacks": {
"types": "./src/postcss-plugins/postcss-ds-token-fallbacks.d.mts",
"import": "./src/postcss-plugins/postcss-ds-token-fallbacks.mjs",
"default": "./src/postcss-plugins/postcss-ds-token-fallbacks.mjs"
},
"./esbuild-plugins/esbuild-ds-token-fallbacks": {
"types": "./src/esbuild-plugins/esbuild-ds-token-fallbacks.d.mts",
"import": "./src/esbuild-plugins/esbuild-ds-token-fallbacks.mjs",
"default": "./src/esbuild-plugins/esbuild-ds-token-fallbacks.mjs"
},
"./vite-plugins/vite-ds-token-fallbacks": {
"types": "./src/vite-plugins/vite-ds-token-fallbacks.d.mts",
"import": "./src/vite-plugins/vite-ds-token-fallbacks.mjs",
"default": "./src/vite-plugins/vite-ds-token-fallbacks.mjs"
},
"./stylelint-plugins/no-unknown-ds-tokens": {
"types": "./build-types/stylelint-plugins/no-unknown-ds-tokens.d.ts",
"import": "./src/stylelint-plugins/no-unknown-ds-tokens.mjs",
"default": "./build/stylelint-plugins/no-unknown-ds-tokens.cjs"
"types": "./build-types/stylelint-plugins/no-unknown-ds-tokens.d.mts",
"default": "./src/stylelint-plugins/no-unknown-ds-tokens.mjs"
},
"./stylelint-plugins/no-setting-wpds-custom-properties": {
"types": "./build-types/stylelint-plugins/no-setting-wpds-custom-properties.d.ts",
"import": "./src/stylelint-plugins/no-setting-wpds-custom-properties.mjs",
"default": "./build/stylelint-plugins/no-setting-wpds-custom-properties.cjs"
"types": "./build-types/stylelint-plugins/no-setting-wpds-custom-properties.d.mts",
"default": "./src/stylelint-plugins/no-setting-wpds-custom-properties.mjs"
},
"./stylelint-plugins/no-token-fallback-values": {
"types": "./build-types/stylelint-plugins/no-token-fallback-values.d.ts",
"import": "./src/stylelint-plugins/no-token-fallback-values.mjs",
"default": "./build/stylelint-plugins/no-token-fallback-values.cjs"
"types": "./build-types/stylelint-plugins/no-token-fallback-values.d.mts",
"default": "./src/stylelint-plugins/no-token-fallback-values.mjs"
},
"./package.json": "./package.json"
},
Expand Down Expand Up @@ -135,10 +126,9 @@
"access": "public"
},
"scripts": {
"prelint:js": "npx esbuild src/prebuilt/js/design-tokens.mjs --format=cjs --outfile=build/prebuilt/js/design-tokens.cjs && node -e \"\"",
"build:default-ramps": "node --import=esbuild-esm-loader/register bin/generate-default-ramps/index.ts",
"build:tokens": "node --import=esbuild-esm-loader/register bin/generate-primitive-tokens/index.ts && node --import=esbuild-esm-loader/register bin/build-design-tokens/index.ts",
"build": "npm run build:tokens && npm run build:default-ramps && npm run prelint:js",
"build": "npm run build:tokens && npm run build:default-ramps",
"postbuild": "prettier --write tokens/color.json tokens/modes src/prebuilt src/color-ramps/lib/default-ramps.ts docs ../base-styles/internal/_wpds-token-fallbacks.scss"
}
}
4 changes: 4 additions & 0 deletions packages/ui/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

### Breaking Changes

- Raise the required Node.js version to `^20.19.0` or `>=22.13.0`. ([#80063](https://github.com/WordPress/gutenberg/pull/80063))

### New Features

- Add `Skeleton` component ([#79671](https://github.com/WordPress/gutenberg/pull/79671)).
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"url": "https://github.com/WordPress/gutenberg/issues"
},
"engines": {
"node": ">=20.10.0",
"node": "^20.19.0 || >=22.13.0",
"npm": ">=10.2.3"
},
"files": [
Expand Down
Loading