Skip to content

Commit 1d91d70

Browse files
committed
Merge branch 'trunk' into playground-cli/try-making-internal-real-temp-dir
2 parents e672f3f + c7bc84c commit 1d91d70

File tree

201 files changed

+24349
-32335
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

201 files changed

+24349
-32335
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,17 @@ jobs:
123123
MYSQL_DATABASE: test_db
124124
MYSQL_USER: user
125125
MYSQL_PASSWORD: password
126+
test-playground-cli:
127+
runs-on: ubuntu-latest
128+
needs: [lint-and-typecheck]
129+
steps:
130+
- uses: actions/checkout@v4
131+
with:
132+
submodules: true
133+
- uses: ./.github/actions/prepare-playground
134+
with:
135+
node-version: 22
136+
- run: node node_modules/nx/bin/nx affected --target=test-for-node-22-and-above
126137
test-e2e:
127138
runs-on: ubuntu-latest
128139
needs: [lint-and-typecheck]
@@ -166,7 +177,10 @@ jobs:
166177
strategy:
167178
fail-fast: false
168179
matrix:
169-
part: ['chromium', 'firefox', 'webkit']
180+
# WebKit runner is disabled in CI – it used to be enabled but the tests
181+
# failed randomly without any obvious reason.
182+
# @see https://github.com/WordPress/wordpress-playground/pull/2475
183+
part: ['chromium', 'firefox']
170184
steps:
171185
- uses: actions/checkout@v4
172186
with:

CHANGELOG.md

Lines changed: 148 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -4,105 +4,227 @@ All notable changes to this project are documented in this file by a CI job
44
that runs on every NPM release. The file follows the [Keep a Changelog](https://keepachangelog.com/en/1.1.0/)
55
format.
66

7-
## [v2.0.5] (2025-07-28)
7+
## [v2.0.9] (2025-08-11)
8+
9+
### **Breaking Changes**
10+
11+
- [Website] Default demo content. ([#2412](https://github.com/WordPress/wordpress-playground/pull/2412))
12+
13+
### Enhancements
14+
15+
- [PHP Playground] Select WordPress version. ([#2472](https://github.com/WordPress/wordpress-playground/pull/2472))
16+
17+
### Blueprints
18+
19+
- [WordPress] Support auto-login with customize.php as a landing page. ([#2467](https://github.com/WordPress/wordpress-playground/pull/2467))
20+
21+
### Documentation
22+
23+
- Tagalog: Add translations for Blueprints Tutorial. ([#2477](https://github.com/WordPress/wordpress-playground/pull/2477))
24+
- Tagalog: Translations of Blueprints documentation page. ([#2476](https://github.com/WordPress/wordpress-playground/pull/2476))
25+
26+
### Website
27+
28+
- Open external links in a new tab/window. ([#2468](https://github.com/WordPress/wordpress-playground/pull/2468))
29+
30+
### Internal
31+
32+
- Skip flaky end-to-end tests. ([#2475](https://github.com/WordPress/wordpress-playground/pull/2475))
33+
34+
### Various
35+
36+
- Add Japanese translations to Blueprint Examples and Troubleshoot and debug. ([#2474](https://github.com/WordPress/wordpress-playground/pull/2474))
37+
38+
### Contributors
39+
40+
The following contributors merged PRs in this release:
41+
42+
@adamziel @rollybueno @shimotmk @zaerl
43+
44+
## [v2.0.8] (2025-08-07)
45+
46+
### Blueprints
47+
48+
- Fallback to URL-based file name when fetching remote ZIP files. ([#2470](https://github.com/WordPress/wordpress-playground/pull/2470))
49+
50+
### Documentation
51+
52+
- [Docs] Adding Resources, Web instance, and guides pages on Brazilian Portuguese. ([#2351](https://github.com/WordPress/wordpress-playground/pull/2351))
53+
- [Docs] Enabling language switcher. ([#2465](https://github.com/WordPress/wordpress-playground/pull/2465))
54+
55+
### PHP WebAssembly
56+
57+
- Fix resolving mounted symlinks in secondary PHP instances. ([#2444](https://github.com/WordPress/wordpress-playground/pull/2444))
58+
- [XDebug Bridge] List additional ASYNCIFY_ONLY functions to prevent `unreachable` crashes when using Devtools. ([#2454](https://github.com/WordPress/wordpress-playground/pull/2454))
59+
60+
### Website
61+
62+
- [Browser] Do not use the Buffer class in web browsers. ([#2469](https://github.com/WordPress/wordpress-playground/pull/2469))
63+
- Add PHP Playground. ([#2463](https://github.com/WordPress/wordpress-playground/pull/2463))
64+
- Suppress PHP warnings when pre-fetching WordPress updates. ([#2458](https://github.com/WordPress/wordpress-playground/pull/2458))
65+
66+
### Bug Fixes
67+
68+
- Fix invalid filename "<7.4" on Windows. ([#2461](https://github.com/WordPress/wordpress-playground/pull/2461))
69+
70+
### Contributors
71+
72+
The following contributors merged PRs in this release:
73+
74+
@adamziel @brandonpayton @fellyph @JanJakes @mho22
75+
76+
## [v2.0.7] (2025-08-05)
77+
78+
### Tools
79+
80+
- [ CLI ] Rename CLI binaries in `@php-wasm/cli` and `@wp-playground/cli`. ([#2441](https://github.com/WordPress/wordpress-playground/pull/2441))
81+
82+
### Documentation
83+
84+
- Updating Docusaurus version from 3.7 to 3.8. ([#2457](https://github.com/WordPress/wordpress-playground/pull/2457))
85+
- [Docs] Adding fixes to broken URLs. ([#2451](https://github.com/WordPress/wordpress-playground/pull/2451))
86+
- [Docs] Bump PHP version to avoid WordPress PHP version Warning. ([#2443](https://github.com/WordPress/wordpress-playground/pull/2443))
87+
88+
### PHP WebAssembly
89+
90+
- Patch the premature "request in progress" semaphore release. ([#2455](https://github.com/WordPress/wordpress-playground/pull/2455))
891

992
### Bug Fixes
1093

11-
- Fix fcntl() F_GETLK fatal due to undefined flock struct address. ([#2432](https://github.com/WordPress/wordpress-playground/pull/2432))
94+
- Re-enable Playground CLI tests. ([#2445](https://github.com/WordPress/wordpress-playground/pull/2445))
1295

1396
### Various
1497

15-
- Add Japanese translations to contributing index and sidebar. ([#2434](https://github.com/WordPress/wordpress-playground/pull/2434))
98+
- Add check for SQLite driver missing in target folder. ([#2440](https://github.com/WordPress/wordpress-playground/pull/2440))
99+
- Adding CLI reference to Playground README. ([#2433](https://github.com/WordPress/wordpress-playground/pull/2433))
100+
- Adding Gujarati Intro documentation. ([#2450](https://github.com/WordPress/wordpress-playground/pull/2450))
101+
- Bump WordPress old version demo to version 6.2.1. ([#2460](https://github.com/WordPress/wordpress-playground/pull/2460))
102+
- Removing blog references on Docusaurus. ([#2456](https://github.com/WordPress/wordpress-playground/pull/2456))
16103

17104
### Contributors
18105

19106
The following contributors merged PRs in this release:
20107

21-
@brandonpayton @shimotmk
108+
@adamziel @brandonpayton @fellyph @mho22 @nikunj8866 @zaerl
109+
110+
## [v2.0.6] (2025-08-04)
22111

112+
### Documentation
23113

24-
## [v2.0.4] (2025-07-25)
114+
- Adding Contribution pages Spanish translation. ([#2431](https://github.com/WordPress/wordpress-playground/pull/2431))
25115

26-
### Public API
116+
### PHP WebAssembly
117+
118+
- Fix file locking for PROXYFS nodes that wrap NODEFS. ([#2437](https://github.com/WordPress/wordpress-playground/pull/2437))
119+
120+
### Bug Fixes
27121

122+
- Translations: Fix command typo in docs. ([#2449](https://github.com/WordPress/wordpress-playground/pull/2449))
123+
124+
### Various
125+
126+
- Add Japanese translations to Blueprint Bundles and API Consistency. ([#2438](https://github.com/WordPress/wordpress-playground/pull/2438))
127+
- Translations: Clean up version from PR #2336. ([#2448](https://github.com/WordPress/wordpress-playground/pull/2448))
128+
129+
### Contributors
130+
131+
The following contributors merged PRs in this release:
132+
133+
@brandonpayton @fellyph @rollybueno @shimotmk @vipul0425
134+
135+
## [v2.0.5] (2025-07-28)
136+
137+
### Bug Fixes
138+
139+
- Fix fcntl() F_GETLK fatal due to undefined flock struct address. ([#2432](https://github.com/WordPress/wordpress-playground/pull/2432))
140+
141+
### Various
142+
143+
- Add Japanese translations to contributing index and sidebar. ([#2434](https://github.com/WordPress/wordpress-playground/pull/2434))
144+
145+
### Contributors
146+
147+
The following contributors merged PRs in this release:
148+
149+
@brandonpayton @shimotmk
150+
151+
## [v2.0.4] (2025-07-25)
152+
153+
### Public API
28154

29155
#### Blueprints
30156

31-
- Distribute @wp-playground/client without any package.json dependencies. ([#2426](https://github.com/WordPress/wordpress-playground/pull/2426))
157+
- Distribute @wp-playground/client without any package.json dependencies. ([#2426](https://github.com/WordPress/wordpress-playground/pull/2426))
32158

33159
### Tools
34160

35-
- Fix ESLint 9 linting in VSCode. ([#2417](https://github.com/WordPress/wordpress-playground/pull/2417))
36-
- [ xdebug ] Add `--experimental-devtools` option in Playground CLI. ([#2411](https://github.com/WordPress/wordpress-playground/pull/2411))
161+
- Fix ESLint 9 linting in VSCode. ([#2417](https://github.com/WordPress/wordpress-playground/pull/2417))
162+
- [ xdebug ] Add `--experimental-devtools` option in Playground CLI. ([#2411](https://github.com/WordPress/wordpress-playground/pull/2411))
37163

38164
### PHP WebAssembly
39165

40-
- [PHP] Dispatch request.error for all non-zero-exit request handler errors. ([#2429](https://github.com/WordPress/wordpress-playground/pull/2429))
166+
- [PHP] Dispatch request.error for all non-zero-exit request handler errors. ([#2429](https://github.com/WordPress/wordpress-playground/pull/2429))
41167

42168
### Website
43169

44-
- Query Monitor plugin support. ([#2415](https://github.com/WordPress/wordpress-playground/pull/2415))
170+
- Query Monitor plugin support. ([#2415](https://github.com/WordPress/wordpress-playground/pull/2415))
45171

46172
### Internal
47173

48-
- Skip flaky end-to-end tests in Firefox and Webkit. ([#2425](https://github.com/WordPress/wordpress-playground/pull/2425))
174+
- Skip flaky end-to-end tests in Firefox and Webkit. ([#2425](https://github.com/WordPress/wordpress-playground/pull/2425))
49175

50176
### Bug Fixes
51177

52-
- [Xdebug Bridge] Correct error related to unresolved promises in bridge. ([#2422](https://github.com/WordPress/wordpress-playground/pull/2422))
178+
- [Xdebug Bridge] Correct error related to unresolved promises in bridge. ([#2422](https://github.com/WordPress/wordpress-playground/pull/2422))
53179

54180
### Various
55181

56-
- Documentation add sidebar to blueprints bundles. ([#2397](https://github.com/WordPress/wordpress-playground/pull/2397))
182+
- Documentation add sidebar to blueprints bundles. ([#2397](https://github.com/WordPress/wordpress-playground/pull/2397))
57183

58184
### Contributors
59185

60186
The following contributors merged PRs in this release:
61187

62188
@adamziel @brandonpayton @mho22 @shimotmk
63189

64-
65-
## [v2.0.3] (2025-07-24)
190+
## [v2.0.3] (2025-07-24)
66191

67192
### Tools
68193

69-
- [ xdebug ] Add `--experimental-devtools` option in php-wasm CLI. ([#2408](https://github.com/WordPress/wordpress-playground/pull/2408))
194+
- [ xdebug ] Add `--experimental-devtools` option in php-wasm CLI. ([#2408](https://github.com/WordPress/wordpress-playground/pull/2408))
70195

71196
### Bug Fixes
72197

73-
- Playground CLI Allow /wordpress subdirs to be mounted before WP install. ([#2382](https://github.com/WordPress/wordpress-playground/pull/2382))
198+
- Playground CLI Allow /wordpress subdirs to be mounted before WP install. ([#2382](https://github.com/WordPress/wordpress-playground/pull/2382))
74199

75200
### Contributors
76201

77202
The following contributors merged PRs in this release:
78203

79204
@brandonpayton @mho22
80205

81-
82-
## [v2.0.2] (2025-07-23)
206+
## [v2.0.2] (2025-07-23)
83207

84208
### Tools
85209

86-
87210
#### PHP WebAssembly
88211

89-
- [ xdebug ] Bridge DBGP session with CDP server. ([#2402](https://github.com/WordPress/wordpress-playground/pull/2402))
212+
- [ xdebug ] Bridge DBGP session with CDP server. ([#2402](https://github.com/WordPress/wordpress-playground/pull/2402))
90213

91214
### Internal
92215

93-
- [Build] Preserve optionalDependencies in built package.json. ([#2410](https://github.com/WordPress/wordpress-playground/pull/2410))
216+
- [Build] Preserve optionalDependencies in built package.json. ([#2410](https://github.com/WordPress/wordpress-playground/pull/2410))
94217

95-
###
218+
###
96219

97-
- Comlink] Throw the original error in the error handler. ([#2407](https://github.com/WordPress/wordpress-playground/pull/2407))
220+
- Comlink] Throw the original error in the error handler. ([#2407](https://github.com/WordPress/wordpress-playground/pull/2407))
98221

99222
### Contributors
100223

101224
The following contributors merged PRs in this release:
102225

103226
@adamziel
104227

105-
106228
## [v2.0.1] (2025-07-23)
107229

108230
### Blueprints

README.md

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ Playground aims to facilitate:
1414

1515
- Learning WordPress Through Exploration
1616
- Learning WordPress Development Through Writing Code
17-
- Instant access to WordPress ecosystem
17+
- Instant access to the WordPress ecosystem
1818

1919
Learn more about the [vision](https://github.com/WordPress/wordpress-playground/issues/472) and the [roadmap](https://github.com/WordPress/wordpress-playground/issues/525).
2020

2121
## Getting started
2222

2323
WordPress Playground has a [live demo](https://developer.wordpress.org/playground/demo/) available.
2424

25-
You can embed WordPress Playground in your project via an `<iframe>` – find out how in the [documentation](https://wordpress.github.io/wordpress-playground/). **Note the embed is experimental and may break or change without a warning.**
25+
You can embed WordPress Playground in your project via an `<iframe>` – find out how in the [documentation](https://wordpress.github.io/wordpress-playground/). **Note the embed is experimental and may break or change without warning.**
2626

2727
You can connect to the Playground using the JavaScript client. Here's an example of how to do it in the browser using an `iframe` HTML element and the `startPlaygroundWeb` function from the `@wp-playground/client` package.
2828

@@ -68,6 +68,19 @@ You can connect to the Playground using the JavaScript client. Here's an example
6868
</script>
6969
```
7070

71+
## The Playground CLI
72+
73+
For local development and testing, WordPress Playground offers a command-line interface (CLI) tool: [`@wp-playground/cli`](https://www.npmjs.com/package/@wp-playground/cli). This powerful tool simplifies setting up a local WordPress environment, leveraging the capabilities of WordPress Playground to create zero-setup instances. It's useful for developers, as it allows you to quickly spin up a WordPress site directly in your project directory without complex server configurations, and even switch PHP and WordPress versions with simple flags.
74+
75+
The best part? You can run it directly using `npx`, Node.js's package runner. To get started, navigate to your plugin or theme directory and run:
76+
77+
```bash
78+
cd my-plugin-or-theme-directory
79+
npx @wp-playground/cli server --auto-mount
80+
```
81+
82+
The `--auto-mount` flag detects if your project is a plugin or theme, mounting it automatically into the virtual WordPress environment. This provides an instant, isolated WordPress instance for testing your code. For more advanced usage, including manual mounting options and blueprint integration, refer to the [Playground CLI documentation](https://github.com/WordPress/wordpress-playground/tree/trunk/packages/playground/cli#readme).
83+
7184
## WordPress Playground Tools
7285

7386
WordPress [Playground Tools](https://github.com/WordPress/playground-tools) are independent applications built on top of WordPress Playground. They are located in a different repository: [WordPress/playground-tools](https://github.com/WordPress/playground-tools).
@@ -76,7 +89,6 @@ These tools include:
7689

7790
- [Interactive Code Block for Gutenberg](https://github.com/WordPress/playground-tools/tree/trunk/packages/interactive-code-block/#readme)
7891
- [WordPress Playground for Visual Studio Code](https://github.com/WordPress/playground-tools/tree/trunk/packages/vscode-extension/#readme)
79-
- [@wp-playground/cli](https://github.com/WordPress/wordpress-playground/tree/trunk/packages/playground/cli#readme) CLI local development environment.
8092

8193
## Cloning WordPress Playground repo
8294

lerna.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
3-
"version": "2.0.5",
3+
"version": "2.0.9",
44
"useWorkspaces": true,
55
"useNx": true
66
}

0 commit comments

Comments
 (0)