From 0b5c59302eec71e3753091ac07eda96878281f9b Mon Sep 17 00:00:00 2001 From: "Nicholas H.Tollervey" Date: Mon, 13 May 2024 11:31:05 +0100 Subject: [PATCH] Bump version to 2024.5.2 --- docs/beginning-pyscript.md | 8 ++++---- docs/user-guide/first-steps.md | 4 ++-- docs/user-guide/plugins.md | 10 +++++----- version.json | 2 +- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/docs/beginning-pyscript.md b/docs/beginning-pyscript.md index 3d9611e..de6098b 100644 --- a/docs/beginning-pyscript.md +++ b/docs/beginning-pyscript.md @@ -112,8 +112,8 @@ module in the document's `` tag: 🦜 Polyglot - Piratical PyScript - - + + @@ -163,8 +163,8 @@ In the end, our HTML should look like this: 🦜 Polyglot - Piratical PyScript - - + +

Polyglot 🦜 💬 🇬🇧 ➡️ 🏴‍☠️

diff --git a/docs/user-guide/first-steps.md b/docs/user-guide/first-steps.md index a23f774..601b274 100644 --- a/docs/user-guide/first-steps.md +++ b/docs/user-guide/first-steps.md @@ -20,9 +20,9 @@ CSS: - + - + diff --git a/docs/user-guide/plugins.md b/docs/user-guide/plugins.md index 09223ce..84ee985 100644 --- a/docs/user-guide/plugins.md +++ b/docs/user-guide/plugins.md @@ -99,7 +99,7 @@ For example, this will work because all references are contained within the registered function: ```js -import { hooks } from "https://pyscript.net/releases/2024.5.1/core.js"; +import { hooks } from "https://pyscript.net/releases/2024.5.2/core.js"; hooks.worker.onReady.add(() => { // NOT suggested, just an example! @@ -113,7 +113,7 @@ hooks.worker.onReady.add(() => { However, due to the outer reference to the variable `i`, this will fail: ```js -import { hooks } from "https://pyscript.net/releases/2024.5.1/core.js"; +import { hooks } from "https://pyscript.net/releases/2024.5.2/core.js"; // NO NO NO NO NO! ☠️ let i = 0; @@ -146,7 +146,7 @@ the page. ```js title="log.js - a plugin that simply logs to the console." // import the hooks from PyScript first... -import { hooks } from "https://pyscript.net/releases/2024.5.1/core.js"; +import { hooks } from "https://pyscript.net/releases/2024.5.2/core.js"; // The `hooks.main` attribute defines plugins that run on the main thread. hooks.main.onReady.add((wrap, element) => { @@ -196,8 +196,8 @@ hooks.worker.onAfterRun.add(() => { - - + +