Skip to content

Commit 39a31d0

Browse files
committed
Update default p5 version, use it in p5.sound URL
1 parent 0b019cd commit 39a31d0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

client/modules/IDE/hooks/useP5Version.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,15 +142,15 @@ export const p5Versions = [
142142
'0.2.1'
143143
];
144144

145-
export const currentP5Version = '1.11.5'; // Don't update to 2.x until 2026
145+
export const currentP5Version = '1.11.8'; // Don't update to 2.x until 2026
146146

147147
export const majorVersion = (version) => version.split('.')[0];
148148

149149
export const p5SoundURLOldTemplate =
150150
'https://cdnjs.cloudflare.com/ajax/libs/p5.js/$VERSION/addons/p5.sound.min.js';
151151
export const p5SoundURLOld = p5SoundURLOldTemplate.replace(
152152
'$VERSION',
153-
'1.11.3'
153+
currentP5Version
154154
);
155155
export const p5SoundURL =
156156
'https://cdn.jsdelivr.net/npm/p5.sound@0.2.0/dist/p5.sound.min.js';

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://cdn.jsdelivr.net/npm/p5@1.11.7/lib/p5.js"></script>
13-
<script src="https://cdn.jsdelivr.net/npm/p5@1.11.7/lib/addons/p5.sound.min.js"></script>
12+
<script src="https://cdn.jsdelivr.net/npm/p5@1.11.8/lib/p5.js"></script>
13+
<script src="https://cdn.jsdelivr.net/npm/p5@1.11.8/lib/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)