@@ -100,7 +100,7 @@ For example, this will work because all references are contained within the
100
100
registered function:
101
101
102
102
``` js
103
- import { hooks } from " https://pyscript.net/releases/2025.2.4 /core.js" ;
103
+ import { hooks } from " https://pyscript.net/releases/2025.3.1 /core.js" ;
104
104
105
105
hooks .worker .onReady .add (() => {
106
106
// NOT suggested, just an example!
@@ -114,7 +114,7 @@ hooks.worker.onReady.add(() => {
114
114
However, due to the outer reference to the variable ` i ` , this will fail:
115
115
116
116
``` js
117
- import { hooks } from " https://pyscript.net/releases/2025.2.4 /core.js" ;
117
+ import { hooks } from " https://pyscript.net/releases/2025.3.1 /core.js" ;
118
118
119
119
// NO NO NO NO NO! ☠️
120
120
let i = 0 ;
@@ -147,7 +147,7 @@ the page.
147
147
148
148
``` js title="log.js - a plugin that simply logs to the console."
149
149
// import the hooks from PyScript first...
150
- import { hooks } from " https://pyscript.net/releases/2025.2.4 /core.js" ;
150
+ import { hooks } from " https://pyscript.net/releases/2025.3.1 /core.js" ;
151
151
152
152
// The `hooks.main` attribute defines plugins that run on the main thread.
153
153
hooks .main .onReady .add ((wrap , element ) => {
@@ -197,8 +197,8 @@ hooks.worker.onAfterRun.add(() => {
197
197
<!-- JS plugins should be available before PyScript bootstraps -->
198
198
<script type =" module" src =" ./log.js" ></script >
199
199
<!-- PyScript -->
200
- <link rel =" stylesheet" href =" https://pyscript.net/releases/2025.2.4 /core.css" >
201
- <script type =" module" src =" https://pyscript.net/releases/2025.2.4 /core.js" ></script >
200
+ <link rel =" stylesheet" href =" https://pyscript.net/releases/2025.3.1 /core.css" >
201
+ <script type =" module" src =" https://pyscript.net/releases/2025.3.1 /core.js" ></script >
202
202
</head >
203
203
<body >
204
204
<script type =" mpy" >
0 commit comments