-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
p5.js version #144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
it is here right now: https://github.com/processing/p5.js-website/blob/master/src/data/download.json |
I noticed that the version file is now at https://github.com/processing/p5.js-website/blob/master/dist/download/version.json, though it's not up to date. Are you just updating that file manually? Would it make more sense to do something like what the website does (https://github.com/processing/p5.js-website/blob/79996764cbff284ae9e8a589065c8cae35949d0b/dist/download/release.php#L30)? |
here's the up to date file to link to: it is updated automatically, I think something just got messed up with the git management where an old version of it got cached in the github repo. thanks for catching it! |
Maybe it is just me but I am getting a 404 error for that link. |
ugh I tried to fix the github and deleted the file! should be back now. sorry 😁 |
no worries! |
makes sense to me! because of CORS this might need to be added to the API and then the API makes the request. i think this also needs to happen when a user navigates to |
@catarak Sorry, I'm a bit confused. Which |
the one included in each sketch—if you open the sidebar you can view it! |
Oh damn! I always miss this mysteriously hidden menu. 😅 |
i think i actually have figured out a solution for this issue! the p5.js version could be an environment variable (storied in the Kubernetes secret) which gets set via a cron job which checks the version url, once a day probably. that sounds like i said a lot of buzzwords but it is a real solution. |
😄 👍 Looking for latest (Update: i realize this is probably just the version from when I originally generated the sketch!) So, linking to one of these from But also would this be something we could just auto-generate or substitute into one of these sections? p5.js-web-editor/client/modules/IDE/reducers/files.js Lines 12 to 18 in 5fdcd08
maybe this section. One thing I'm thinking though, is that once this file is generated (say in an old sketch), you basically have to update the index.html manually. I didn't see an option in the CDN link, but is there any way to point at a js file with https://semver.org-style versioning? Like, ideally:
OK, this is just pie in the sky, but thanks everyone! |
@jywarren semver version would be so cool! i think we are on the same page—i would like to write a script that updates an env variable, which would insert the latest p5 version into the snippet of code you put above. i don't think it should update existing sketches, to prevent breaking changes. maybe, with future library management system, there could be a GUI for users to update their p5 version for a sketch. |
Cool! Yes. This seems like a good way forward. I could imagine a system too
where we could use a replace-able $VARIABLE in the saved index.html, but
it'd be fragile and also not at all how the web works (perhaps slightly
sadly... HTML variables anyone?). Or... a way to pattern match and replace
the full CDN paths.. but again, fragile and once it breaks it's very hard
for people to untangle. Better avoid magic solutions, i guess.
Thanks!
…On Tue, Apr 16, 2019 at 6:00 PM Cassie Tarakajian ***@***.***> wrote:
@jywarren <https://github.com/jywarren> semver version would be so cool!
i think we are on the same page—i would like to write a script that updates
an env variable, which would insert the latest p5 version into the snippet
of code you put above. i don't think it should update existing sketches, to
prevent breaking changes. maybe, with future library management system,
there could be a GUI for users to update their p5 version for a sketch.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#144 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABfJw0zD_q9WJIsQFYSNL4RbuO6XKyyks5vhkfSgaJpZM4KVMup>
.
|
@catarak @lmccart and I discussed this on a call yesterday. At some point in the future we'd like to have a library management system (#4), but for now we need a simple way to keep the p5.js version referenced in
index.html
up-to-date. We would not changeindex.html
in existing projects (or "duplicated" projects) but would simply use the currentp5.js
version (0.5.4 at the time of filing this issue) whenever a "new" project is created.@lmccart can you remind us what the url is to check the current p5 version? It could be checked something like once a day or each time "new" is clicked.
Did I get this right?
The text was updated successfully, but these errors were encountered: