Skip to content

Commit 9ecc0ee

Browse files
authored
Merge branch 'develop' into refactor/menubar-a11y-keyboard-mouse
2 parents d818f37 + 3dea10e commit 9ecc0ee

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed

client/modules/IDE/hooks/useP5Version.jsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ import PropTypes from 'prop-types';
88
// JSON.stringify([...document.querySelectorAll('._132722c7')].map(n => n.innerText), null, 2)
99
// TODO: use their API for this to grab these at build time?
1010
export const p5Versions = [
11+
'2.0.1',
1112
'2.0.0',
13+
'1.11.5',
1214
'1.11.4',
1315
'1.11.3',
1416
'1.11.2',
@@ -135,7 +137,7 @@ export const p5Versions = [
135137
'0.2.1'
136138
];
137139

138-
export const currentP5Version = '1.11.4'; // Don't update to 2.x until 2026
140+
export const currentP5Version = '1.11.5'; // Don't update to 2.x until 2026
139141

140142
export const p5SoundURLOld = `https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.11.3/addons/p5.sound.min.js`;
141143
export const p5SoundURL =
@@ -146,7 +148,7 @@ export const p5ShapesAddonURL =
146148
'https://cdn.jsdelivr.net/npm/[email protected]/src/shapes.js';
147149
export const p5DataAddonURL =
148150
'https://cdn.jsdelivr.net/npm/[email protected]/src/data.js';
149-
export const p5URL = `https://cdnjs.cloudflare.com/ajax/libs/p5.js/${currentP5Version}/p5.js`;
151+
export const p5URL = `https://cdn.jsdelivr.net/npm/p5@${currentP5Version}/lib/p5.js`;
150152

151153
const P5VersionContext = React.createContext({});
152154

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "p5.js-web-editor",
3-
"version": "2.16.0",
3+
"version": "2.16.2",
44
"description": "The web editor for p5.js.",
55
"scripts": {
66
"clean": "rimraf dist",

server/domain-objects/createDefaultFiles.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ function draw() {
99
export const defaultHTML = `<!DOCTYPE html>
1010
<html lang="en">
1111
<head>
12-
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.11.4/p5.js"></script>
13-
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.11.4/addons/p5.sound.min.js"></script>
12+
<script src="https://cdn.jsdelivr.net/npm/p5@1.11.5/lib/p5.js"></script>
13+
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.11.3/addons/p5.sound.min.js"></script>
1414
<link rel="stylesheet" type="text/css" href="style.css">
1515
<meta charset="utf-8" />
1616

0 commit comments

Comments
 (0)