Skip to content

update default template p5.js to 1.0.1 (Fixes #1396) #1397

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

Merged
merged 4 commits into from
Jul 30, 2020

Conversation

jeremydouglass
Copy link
Contributor

@jeremydouglass jeremydouglass commented Apr 19, 2020

Changes the p5.js version used by the web editor to 1.0.1.

(Fixes #1396)

I have verified that this pull request:

  • has no linting errors
  • is from a uniquely-named feature branch and has been rebased on top of the latest master. (If I was asked to make more changes, I have made sure to rebase onto master then too)
  • is descriptively named and links to an issue number, i.e. Fixes #123

@welcome
Copy link

welcome bot commented Apr 19, 2020

🎉 Thanks for opening this pull request! Please check out our contributing guidelines if you haven't already.

@montoyamoraga
Copy link
Member

hey @catarak can we merge this awesome commit?
one of my p5.js sketches was broken because of it loading the old 0.10.2 instead of 1.0.0
and 1.0.0 fixed it yay, go p5.js, thank you @jeremydouglass for spotting this, go team ~

@hellonearthis
Copy link

I was just looking to download the 1.0.0 locally and cloudflare is providing the wrong version.
image

So I looked in the https://github.com/processing/p5.js/tree/master/lib expecting it to be there.
image

I downloaded the p5 repo and searched for p5*js and p5.js and it's not there too

I'm guessing there is something buggy going on with the build system and post an issue

@jeremydouglass
Copy link
Contributor Author

Thank you for the heads up. I think you can just link to / from this PR on your actual issue page -- here: processing/p5.js#4485

Bad cloudflare confiig matters to this PR, but it isn't a web-editor issue.

@montoyamoraga
Copy link
Member

oops, there is something weird on, the default p5.js library that i got from the web editor is this:
https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.10.2/p5.js
and then i tried to fix it manually to
https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.0.0/p5.js

the first one says it's /*! p5.js v0.10.2 October 14, 2019 /
the second one says it's /
! p5.js v0.10.2 February 29, 2020 */

weird ~

@jeremydouglass
Copy link
Contributor Author

Yeah, I'm getting v0.10.2 February 29 every time. But as I said, this isn't a web editor issue -- please discuss here: processing/p5.js#4485

@jeremydouglass
Copy link
Contributor Author

jeremydouglass commented Apr 28, 2020

This PR is temporarily blocked by processing/p5.js#4336 and processing/p5.js#4485 -- it will be updated to point to the correct 1.0.x once it is released.

In the meantime, the web editor is still out of sync with the public reference.

@catarak
Copy link
Member

catarak commented Apr 28, 2020

thanks for looking into this @jeremydouglass! i'll merge this in as soon as the cdnjs issue is fixed.

@jeremydouglass
Copy link
Contributor Author

Thank you @catarak!

This PR will be unblocked on the next p5.js release -- 1.0.1(?). I am speculatively updating this PR now to point to 1.0.1 so that this can be merged immediately whenever that release happens.

If p5.js goes to 1.0.2 or 1.1 or something else instead then I can update this PR again before merging.

@jeremydouglass jeremydouglass changed the title update default template p5.js to 1.0.0 (Fixes #1396) update default template p5.js to 1.0.1 (Fixes #1396) Apr 28, 2020
@joshuahhh
Copy link

I noticed that the CDN URLs are also listed in https://github.com/processing/p5.js-web-editor/blob/master/server/domain-objects/createDefaultFiles.js. Does that file also have to be updated? (Is it still in use?)

@jeremydouglass
Copy link
Contributor Author

I noticed that the CDN URLs are also listed in https://github.com/processing/p5.js-web-editor/blob/master/server/domain-objects/createDefaultFiles.js. Does that file also have to be updated? (Is it still in use?)

Good catch. I based the changes in this PR on the previous version bump, which did not touch that file:

03fde3f

... not sure if the core team uses it, but it seems like it couldn't hurt to bring it up to date.

@andrewn
Copy link
Member

andrewn commented May 10, 2020

I noticed that the CDN URLs are also listed in https://github.com/processing/p5.js-web-editor/blob/master/server/domain-objects/createDefaultFiles.js. Does that file also have to be updated? (Is it still in use?)

Good catch. I based the changes in this PR on the previous version bump, which did not touch that file:

03fde3f

... not sure if the core team uses it, but it seems like it couldn't hurt to bring it up to date.

createDefaultFiles.js is used when a new sketch is created via the new public API. If the user doesn't specify an HTML or CSS file, then that template is used to create them. So thanks for updating it also!

I created #1423 to track having the default template defined in one place to make future updates easier.

@catarak catarak changed the base branch from master to develop July 30, 2020 17:46
@catarak catarak merged commit db18ff4 into processing:develop Jul 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upgrade default template to p5.js 1.0.0
6 participants