@@ -99,7 +99,7 @@ For example, this will work because all references are contained within the
9999registered function:
100100
101101``` js
102- import { hooks } from " https://pyscript.net/releases/2024.6.2 /core.js" ;
102+ import { hooks } from " https://pyscript.net/releases/2024.7.1 /core.js" ;
103103
104104hooks .worker .onReady .add (() => {
105105 // NOT suggested, just an example!
@@ -113,7 +113,7 @@ hooks.worker.onReady.add(() => {
113113However, due to the outer reference to the variable ` i ` , this will fail:
114114
115115``` js
116- import { hooks } from " https://pyscript.net/releases/2024.6.2 /core.js" ;
116+ import { hooks } from " https://pyscript.net/releases/2024.7.1 /core.js" ;
117117
118118// NO NO NO NO NO! ☠️
119119let i = 0 ;
@@ -146,7 +146,7 @@ the page.
146146
147147``` js title="log.js - a plugin that simply logs to the console."
148148// import the hooks from PyScript first...
149- import { hooks } from " https://pyscript.net/releases/2024.6.2 /core.js" ;
149+ import { hooks } from " https://pyscript.net/releases/2024.7.1 /core.js" ;
150150
151151// The `hooks.main` attribute defines plugins that run on the main thread.
152152hooks .main .onReady .add ((wrap , element ) => {
@@ -196,8 +196,8 @@ hooks.worker.onAfterRun.add(() => {
196196 <!-- JS plugins should be available before PyScript bootstraps -->
197197 <script type =" module" src =" ./log.js" ></script >
198198 <!-- PyScript -->
199- <link rel =" stylesheet" href =" https://pyscript.net/releases/2024.6.2 /core.css" >
200- <script type =" module" src =" https://pyscript.net/releases/2024.6.2 /core.js" ></script >
199+ <link rel =" stylesheet" href =" https://pyscript.net/releases/2024.7.1 /core.css" >
200+ <script type =" module" src =" https://pyscript.net/releases/2024.7.1 /core.js" ></script >
201201 </head >
202202 <body >
203203 <script type =" mpy" >
0 commit comments