Skip to content

Commit 1acd783

Browse files
brandonpaytondeployment_botberyl-dlglukaszuznanski
authored
Merge from public Playground repo (#59)
## Motivation for the change, related issues We want to stay up to date with the smaller updates in the public Playground repo in order to: - Stay up to date with latest WP builds for Playground. - Keep our private updates ready to merge with the public repo (so resuming public contribution will be smoother) - Update Playground package versions to account for new public releases. ## Implementation details `git merge` the latest from WordPress/wordpress-playground. ## Testing Instructions (or ideally a Blueprint) - CI - Run `npm run dev` and smoke test. --------- Co-authored-by: deployment_bot <[email protected]> Co-authored-by: Béryl <[email protected]> Co-authored-by: Łukasz Uznański <[email protected]>
1 parent 55f407f commit 1acd783

File tree

677 files changed

+72906
-58719
lines changed

Some content is hidden

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

677 files changed

+72906
-58719
lines changed

.github/workflows/build-website.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,16 +58,15 @@ jobs:
5858
dist/packages/playground/wasm-wordpress-net/ \
5959
${{ secrets.DEPLOY_WEBSITE_TARGET_USER }}@${{ secrets.DEPLOY_WEBSITE_TARGET_HOST }}:'~/updated-playground-files'
6060
61+
# Include MIME types for use with PHP-served files
62+
cp packages/php-wasm/universal/src/lib/mime-types.json \
63+
packages/playground/website-deployment/
64+
6165
# Host-specific deployment scripts and server config
6266
rsync -avz -e "ssh -i ~/.ssh/id_ed25519" --delete \
6367
packages/playground/website-deployment/ \
6468
${{ secrets.DEPLOY_WEBSITE_TARGET_USER }}@${{ secrets.DEPLOY_WEBSITE_TARGET_HOST }}:'~/website-deployment'
6569
66-
# Copy MIME types for use with PHP-served files
67-
rsync -avz -e "ssh -i ~/.ssh/id_ed25519" \
68-
packages/php-wasm/universal/src/lib/mime-types.json \
69-
${{ secrets.DEPLOY_WEBSITE_TARGET_USER }}@${{ secrets.DEPLOY_WEBSITE_TARGET_HOST }}:'~/website-deployment/'
70-
7170
# Apply update
7271
ssh -i ~/.ssh/id_ed25519 \
7372
${{ secrets.DEPLOY_WEBSITE_TARGET_USER }}@${{ secrets.DEPLOY_WEBSITE_TARGET_HOST }} \

CHANGELOG.md

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,33 +4,38 @@ 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-
## [v1.0.21] (2025-01-13)
7+
## [v1.0.24] (2025-02-03)
8+
9+
## [v1.0.23] (2025-01-27)
10+
11+
## [v1.0.22] (2025-01-20)
12+
13+
## [v1.0.21] (2025-01-13)
814

915
### Enhancements
1016

11-
- [Data Liberation] Add EPub to Blocks converter. ([#2097](https://github.com/WordPress/wordpress-playground/pull/2097))
12-
- [Data Liberation] Block markup consumers and producers. ([#2121](https://github.com/WordPress/wordpress-playground/pull/2121))
13-
- [Data Liberation] Filesystem entity reader. ([#2125](https://github.com/WordPress/wordpress-playground/pull/2125))
14-
- [Data Liberation] Recognize self-closing blocks in WP_Block_Markup_Processor. ([#2120](https://github.com/WordPress/wordpress-playground/pull/2120))
15-
- [Data Liberation] Refactor Entity Readers class diagram. ([#2096](https://github.com/WordPress/wordpress-playground/pull/2096))
17+
- [Data Liberation] Add EPub to Blocks converter. ([#2097](https://github.com/WordPress/wordpress-playground/pull/2097))
18+
- [Data Liberation] Block markup consumers and producers. ([#2121](https://github.com/WordPress/wordpress-playground/pull/2121))
19+
- [Data Liberation] Filesystem entity reader. ([#2125](https://github.com/WordPress/wordpress-playground/pull/2125))
20+
- [Data Liberation] Recognize self-closing blocks in WP_Block_Markup_Processor. ([#2120](https://github.com/WordPress/wordpress-playground/pull/2120))
21+
- [Data Liberation] Refactor Entity Readers class diagram. ([#2096](https://github.com/WordPress/wordpress-playground/pull/2096))
1622

1723
### PHP WebAssembly
1824

19-
- PHP 8.4 support. ([#2038](https://github.com/WordPress/wordpress-playground/pull/2038))
20-
- Rewrote fileToUint8Array function to be also NodeJS/Deno compatible. ([#2117](https://github.com/WordPress/wordpress-playground/pull/2117))
21-
- [PHP] Restore /internal files and Filesystem mounts after hotswapPhpRuntime is called. ([#2119](https://github.com/WordPress/wordpress-playground/pull/2119))
25+
- PHP 8.4 support. ([#2038](https://github.com/WordPress/wordpress-playground/pull/2038))
26+
- Rewrote fileToUint8Array function to be also NodeJS/Deno compatible. ([#2117](https://github.com/WordPress/wordpress-playground/pull/2117))
27+
- [PHP] Restore /internal files and Filesystem mounts after hotswapPhpRuntime is called. ([#2119](https://github.com/WordPress/wordpress-playground/pull/2119))
2228

2329
### Bug Fixes
2430

25-
- [CORS Proxy] Support chunked encoding when running in Apache/Nginx/etc. ([#2114](https://github.com/WordPress/wordpress-playground/pull/2114))
31+
- [CORS Proxy] Support chunked encoding when running in Apache/Nginx/etc. ([#2114](https://github.com/WordPress/wordpress-playground/pull/2114))
2632

2733
### Contributors
2834

2935
The following contributors merged PRs in this release:
3036

3137
@adamziel @mbuella
3238

33-
3439
## [v1.0.20] (2025-01-06)
3540

3641
### Website

packages/docs/site/docs/developers/23-architecture/11-browser-php-worker-threads.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,6 @@ await phpClient.run({ code: `<?php echo "Hello from the thread!";` });
3131

3232
### Controlling web workers
3333

34-
Exchanging messages is the only way to control web workers. The main application has no access to functions or variables inside of a web workeer. It can only send and receive messages using `worker.postMessage` and `worker.onmessage = function(msg) { }`.
34+
Exchanging messages is the only way to control web workers. The main application has no access to functions or variables inside of a web worker. It can only send and receive messages using `worker.postMessage` and `worker.onmessage = function(msg) { }`.
3535

3636
This can be tedious, which is why Playground provides a convenient [consumeAPI](/api/web/function/consumeAPI) function that abstracts the message exchange and exposes specific functions from the web worker. This is why we can call `phpClient.run` in the example above.

packages/docs/site/docs/main/changelog.md

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,33 +9,38 @@ All notable changes to this project are documented in this file by a CI job
99
that runs on every NPM release. The file follows the [Keep a Changelog](https://keepachangelog.com/en/1.1.0/)
1010
format.
1111

12-
## [v1.0.21] (2025-01-13)
12+
## [v1.0.24] (2025-02-03)
13+
14+
## [v1.0.23] (2025-01-27)
15+
16+
## [v1.0.22] (2025-01-20)
17+
18+
## [v1.0.21] (2025-01-13)
1319

1420
### Enhancements
1521

16-
- [Data Liberation] Add EPub to Blocks converter. ([#2097](https://github.com/WordPress/wordpress-playground/pull/2097))
17-
- [Data Liberation] Block markup consumers and producers. ([#2121](https://github.com/WordPress/wordpress-playground/pull/2121))
18-
- [Data Liberation] Filesystem entity reader. ([#2125](https://github.com/WordPress/wordpress-playground/pull/2125))
19-
- [Data Liberation] Recognize self-closing blocks in WP_Block_Markup_Processor. ([#2120](https://github.com/WordPress/wordpress-playground/pull/2120))
20-
- [Data Liberation] Refactor Entity Readers class diagram. ([#2096](https://github.com/WordPress/wordpress-playground/pull/2096))
22+
- [Data Liberation] Add EPub to Blocks converter. ([#2097](https://github.com/WordPress/wordpress-playground/pull/2097))
23+
- [Data Liberation] Block markup consumers and producers. ([#2121](https://github.com/WordPress/wordpress-playground/pull/2121))
24+
- [Data Liberation] Filesystem entity reader. ([#2125](https://github.com/WordPress/wordpress-playground/pull/2125))
25+
- [Data Liberation] Recognize self-closing blocks in WP_Block_Markup_Processor. ([#2120](https://github.com/WordPress/wordpress-playground/pull/2120))
26+
- [Data Liberation] Refactor Entity Readers class diagram. ([#2096](https://github.com/WordPress/wordpress-playground/pull/2096))
2127

2228
### PHP WebAssembly
2329

24-
- PHP 8.4 support. ([#2038](https://github.com/WordPress/wordpress-playground/pull/2038))
25-
- Rewrote fileToUint8Array function to be also NodeJS/Deno compatible. ([#2117](https://github.com/WordPress/wordpress-playground/pull/2117))
26-
- [PHP] Restore /internal files and Filesystem mounts after hotswapPhpRuntime is called. ([#2119](https://github.com/WordPress/wordpress-playground/pull/2119))
30+
- PHP 8.4 support. ([#2038](https://github.com/WordPress/wordpress-playground/pull/2038))
31+
- Rewrote fileToUint8Array function to be also NodeJS/Deno compatible. ([#2117](https://github.com/WordPress/wordpress-playground/pull/2117))
32+
- [PHP] Restore /internal files and Filesystem mounts after hotswapPhpRuntime is called. ([#2119](https://github.com/WordPress/wordpress-playground/pull/2119))
2733

2834
### Bug Fixes
2935

30-
- [CORS Proxy] Support chunked encoding when running in Apache/Nginx/etc. ([#2114](https://github.com/WordPress/wordpress-playground/pull/2114))
36+
- [CORS Proxy] Support chunked encoding when running in Apache/Nginx/etc. ([#2114](https://github.com/WordPress/wordpress-playground/pull/2114))
3137

3238
### Contributors
3339

3440
The following contributors merged PRs in this release:
3541

3642
@adamziel @mbuella
3743

38-
3944
## [v1.0.20] (2025-01-06)
4045

4146
### Website
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
---
2+
title: Links and Resources
3+
slug: /resources
4+
---
5+
6+
# Links and Resources
7+
8+
:::tip
9+
10+
There's a set of redirections in place to make it easier the access to some of the tools related to Playground:
11+
12+
<ul id="list-resources-redirections">
13+
<li><a href="https://playground.wordpress.net/"><strong>https://playground.wordpress.net/</strong></a> → Playground instance</li>
14+
<li><a href="https://playground.wordpress.net/docs">https://playground.wordpress.net<strong>/docs</strong></a> → Playground Docs</li>
15+
<li><a href="https://playground.wordpress.net/builder">https://playground.wordpress.net<strong>/builder</strong></a> → Playground Blueprints Builder</li>
16+
<li><a href="https://playground.wordpress.net/wordpress">https://playground.wordpress.net<strong>/wordpress</strong></a> → Playground PR viewer for WordPress</li>
17+
<li><a href="https://playground.wordpress.net/gutenberg">https://playground.wordpress.net<strong>/gutenberg</strong></a> → Playground PR viewer for Gutenberg</li>
18+
<li><a href="https://playground.wordpress.net/proxy">https://playground.wordpress.net<strong>/proxy</strong></a> → Playground Proxy Service <em>(see <a href="/blueprints/steps/resources#urlreference">URLReference</a> for more info)</em></li>
19+
</ul>
20+
:::
21+
22+
## Frequently sought links
23+
24+
- [Demo](https://playground.wordpress.net/)
25+
- [Github Repository](https://github.com/WordPress/wordpress-playground)
26+
- [Documentation](https://wordpress.github.io/wordpress-playground/)
27+
- [Playground tools Repository](https://github.com/WordPress/playground-tools)
28+
29+
## Apps built with WordPress Playground
30+
31+
- [Official demo](https://playground.wordpress.net/) and the [showcase](https://developer.wordpress.org/playground) app – install a theme, try out a plugin, create a few pages, export what you've built
32+
- [wp-now](https://www.npmjs.com/package/%40wp-now/wp-now) – a CLI tool for instant WordPress dev envs
33+
- [WordPress Playground for VS Code](https://marketplace.visualstudio.com/items?itemName=WordPressPlayground.wordpress-playground)
34+
- Live Translations: [App](https://translate.wordpress.org/projects/wp-plugins/friends/dev/pl/default/playground/), [announcement](https://make.wordpress.org/polyglots/2023/04/19/wp-translation-playground/), [more details](https://make.wordpress.org/polyglots/2023/05/08/translate-live-updates-to-the-translation-playground/)
35+
- [Interactive code block](https://wordpress.org/plugins/interactive-code-block/) which powers the [HTML Tag Processor tutorial](https://adamadam.blog/2023/02/16/how-to-modify-html-in-a-php-wordpress-plugin-using-the-new-tag-processor-api/) and the [Playground JS API tutorial](https://adamadam.blog/2023/04/12/interactive-intro-to-wordpress-playground-public-api/)
36+
- [Gutenberg Pull Request previewer](https://playground.wordpress.net/gutenberg.html)
37+
- [Notifications plugin live demo](https://johnhooks.io/playground-experiment/)
38+
- [GraphQL REPL](https://www.wpgraphql.com/2023/06/15/announcing-the-wpgraphql-repl)
39+
- [Blocknotes](https://twitter.com/adamzielin/status/1669478239771799552) – the first ever iOS app running WordPress on your phone
40+
- [Playground embedder](https://joost.blog/embedded-playground/) to embed Playground examples in WordPress.org documentation using shortcodes
41+
- [Plugin demos on wp.org](https://gist.github.com/adamziel/0fe3ffc1fb5202a907a87d055ee37135) – a user script that adds a "demo" tab to plugin pages on WordPress.org
42+
- [WordPress Pull Request previewer](https://playground.wordpress.net/wordpress.html)
43+
- [Synchronization between two Playgrounds](https://playground.wordpress.net/demos/sync.html)
44+
- [Time Travel](https://playground.wordpress.net/demos/time-traveling.html)
45+
- [WP-CLI](https://playground.wordpress.net/demos/wp-cli.html)
46+
- [PHP implementation of Blueprints](https://playground.wordpress.net/demos/php-blueprints.html)
47+
48+
## Reading materials
49+
50+
- [Build in-browser WordPress experiences with WordPress Playground and WebAssembly](https://web.dev/wordpress-playground/)
51+
- [WordPress Playground on developer.wordpress.org](https://developer.wordpress.org/playground)
52+
- [In-Browser WordPress Tech Demos: WordPress Development with WordPress Playground](https://make.wordpress.org/core/2023/04/13/in-browser-wordpress-tech-demos-wordpress-development-with-wordpress-playground/)
53+
- [Initial announcement on make.wordpress.org](https://make.wordpress.org/core/2022/09/23/client-side-webassembly-wordpress-with-no-server/)
54+
- [Hackernews discussion](https://news.ycombinator.com/item?id=32960560)
55+
56+
## Videos
57+
58+
- Developer Hours Videos: [Americas Region (May 23,2023)](https://wordpress.tv/2023/05/23/developer-hours-wordpress-playground-americas/), [APAC/EMEA Region (May 24,2023)](https://wordpress.tv/2023/05/24/developer-hours-wordpress-playground-apac-emea/)
59+
- [Playground at State of the Word](https://youtu.be/VeigCZuxnfY?t=2912)
60+
- [Playground at WCEU 2023](https://www.youtube.com/watch?v=e-CwouzTGp4&t=26946s)
61+
- [Playground at WordCamp Gliwice (in polish)](https://www.youtube.com/watch?v=AUHklF9GdL8&list=PLiCne9CeL82_hGuJOAJlsc84WxVDSH-c9&index=4)
62+
- [Watch "WordPress Playground: the ultimate learning, testing, & teaching tool for WordPress"](https://www.youtube.com/watch?v=dN_LaenY8bI) by Anne McCarthy

0 commit comments

Comments
 (0)