Closed eruvanos closed 6 months ago
Not that we shouldn't document this somewhere official, but the list of PyScript releases is to date is:
https://pyscript.net/releases/2022.05.1/pyscript.js
(synonym for https://pyscript.net/alpha/pyscript.js
)https://pyscript.net/releases/2022.06.1/pyscript.js
https://pyscript.net/releases/2022.09.1/pyscript.js
https://pyscript.net/releases/2022.12.1/pyscript.js
https://pyscript.net/releases/2023.03.1/pyscript.js
https://pyscript.net/releases/2023.05.1/pyscript.js
And the upcoming release will be at https://pyscript.net/releases/2023.09.1/core.js
when it comes out. Note the file is now core.js. Currently, you can see the release candidate at https://pyscript.net/snapshots/2023.09.1.RC1/core.js
.
Tangentially related, if you (or someone who finds this later) are including those as sources on your page:
<script defer src="URL">
<script type="module" src="URL">
I'm really frustrated the link for latest version is being dropped: 😠https://PyScript.net/latest/core.js
Please, keep it! It's super useful for demos! 🔧
@GoToLoop we publish unstable (canary channel) on NPM so you can use latest (with all its possibly undocumented breaking changes when these happen) via:
We don't get to control when these will point at the very latest but that's the edge equivalent of previous latest
.
I am closing this as I think @JeffersGlass already answered but we also list all older docs in the current site by clicking top left icon where one can pick any number.
maintainer here ... this was a bad suggestion, tons of stuff would break if you use unpkg instead of jsdelivr so we don't want you to use this workaround, as there are better links we test and use daily behind the scene too.
This is my workaround for latest PyScript if n1's interested:
https://Unpkg.com/@pyscript/core:
<script type=module src=//Unpkg.com/@pyscript/core></script>
https://Unpkg.com/@pyscript/core/dist/core.css:
<link rel=stylesheet href=//Unpkg.com/@pyscript/core/dist/core.css>
@GoToLoop I strongly sugest you to stop doing that as unpkg
doesn't provide the right headers needed to bootstrap PyScript in a worker ... please use the suggested links as those are safe and working by all means:
unpkg is in maintenance mode, jsdelivr is there to stay.
...as unpkg doesn't provide the right headers needed to bootstrap PyScript in a worker...
Indeed, I've never dealt w/ workers. But for regular usage, http://Unpkg.com works for me. Here are some examples:
unpkg is in maintenance mode, jsdelivr is there to stay.
You mean, Unpkg is closing?!
Anyways, these are the corresponding links using https://JSDelivr.com instead:
https://cdn.JSDelivr.net/npm/@pyscript/core:
<script type=module src=//cdn.JSDelivr.net/npm/@pyscript/core></script>
https://cdn.JSDelivr.net/npm/@pyscript/core/dist/core.css:
<link rel=stylesheet href=//cdn.JSDelivr.net/npm/@pyscript/core/dist/core.css>
Although it's much more verbose than Unpkg...
as this is a copy-paste operation and as gzip, brotli, or deflate works very well with repeated same content (i.e. the whole CDN prefix) I don't think the verbosity is a great argument but fair enough ... although please do use the links I have provided for latest, don't shortcut the redirect because we have relative paths that might fail if the CDN does too smart things ... otherwise you can just go with https://esm.run/@pyscript/core
and call it a day if that even works.
While some examples feature the location of download location for specific versions, it would be great to have a list for old versions. Build artefact attached to GH releases would be enough.