Skip to content

Commit 5d4a964

Browse files
authored
Merge branch 'dev-2.0' into dev-types-export-default-p5-from-global-d-ts
2 parents 4df5f5d + 618e4c8 commit 5d4a964

File tree

506 files changed

+26523
-16708
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

506 files changed

+26523
-16708
lines changed

.all-contributorsrc

Lines changed: 152 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1456,8 +1456,8 @@
14561456
{
14571457
"login": "FreddieRa",
14581458
"name": "Freddie Rawlins",
1459-
"avatar_url": "https://discourse-cdn-sjc2.com/standard10/user_avatar/discourse.processing.org/freddiera/120/4078_2.png",
1460-
"profile": "https://freddierawlins.wixsite.com/site",
1459+
"avatar_url": "https://avatars.githubusercontent.com/u/14854492?v=4",
1460+
"profile": "https://github.com/FreddieRa",
14611461
"contributions": [
14621462
"code",
14631463
"doc"
@@ -1466,7 +1466,7 @@
14661466
{
14671467
"login": "Luke_",
14681468
"name": "Luc de wit",
1469-
"avatar_url": "https://media.discordapp.net/attachments/499488127245615135/499488260435869696/normal_luke.png",
1469+
"avatar_url": "https://avatars.githubusercontent.com/u/37410843?v=4",
14701470
"profile": "https://github.com/justlucdewit",
14711471
"contributions": [
14721472
"code",
@@ -1860,7 +1860,7 @@
18601860
{
18611861
"login": "shaharyar-shamshi",
18621862
"name": "shaharyarshamshi",
1863-
"avatar_url": "https://avatars3.githubusercontent.com/u/17377195?v=4",
1863+
"avatar_url": "https://avatars.githubusercontent.com/u/17377195?v=4",
18641864
"profile": "https://github.com/shaharyar-shamshi",
18651865
"contributions": [
18661866
"translation"
@@ -7144,7 +7144,8 @@
71447144
"profile": "https://github.com/Homaid",
71457145
"contributions": [
71467146
"a11y",
7147-
"code"
7147+
"code",
7148+
"doc"
71487149
]
71497150
},
71507151
{
@@ -7229,6 +7230,152 @@
72297230
"code",
72307231
"doc"
72317232
]
7233+
},
7234+
{
7235+
"login": "VANSH3104",
7236+
"name": "vansh kabra",
7237+
"avatar_url": "https://avatars.githubusercontent.com/u/134841334?v=4",
7238+
"profile": "https://vansh-dev.netlify.app/",
7239+
"contributions": [
7240+
"code"
7241+
]
7242+
},
7243+
{
7244+
"login": "menacingly-coded",
7245+
"name": "Shreya Sharma",
7246+
"avatar_url": "https://avatars.githubusercontent.com/u/121508087?v=4",
7247+
"profile": "https://github.com/menacingly-coded",
7248+
"contributions": [
7249+
"doc"
7250+
]
7251+
},
7252+
{
7253+
"login": "Itsrajsk",
7254+
"name": "Raj Kashid",
7255+
"avatar_url": "https://avatars.githubusercontent.com/u/117977675?v=4",
7256+
"profile": "https://github.com/Itsrajsk",
7257+
"contributions": [
7258+
"code"
7259+
]
7260+
},
7261+
{
7262+
"login": "Geethegreat",
7263+
"name": "krishnageeth",
7264+
"avatar_url": "https://avatars.githubusercontent.com/u/86944224?v=4",
7265+
"profile": "https://github.com/Geethegreat",
7266+
"contributions": [
7267+
"code"
7268+
]
7269+
},
7270+
{
7271+
"login": "Piyushrathoree",
7272+
"name": "PIYUSH RATHORE",
7273+
"avatar_url": "https://avatars.githubusercontent.com/u/163632958?v=4",
7274+
"profile": "http://piyushh.me",
7275+
"contributions": [
7276+
"code"
7277+
]
7278+
},
7279+
{
7280+
"login": "Aayushdev18",
7281+
"name": "Ayush Dev",
7282+
"avatar_url": "https://avatars.githubusercontent.com/u/148681565?v=4",
7283+
"profile": "https://github.com/Aayushdev18",
7284+
"contributions": [
7285+
"code"
7286+
]
7287+
},
7288+
{
7289+
"login": "rakesh2OO5",
7290+
"name": "Rakesh D",
7291+
"avatar_url": "https://avatars.githubusercontent.com/u/160116250?v=4",
7292+
"profile": "https://github.com/rakesh2OO5",
7293+
"contributions": [
7294+
"code"
7295+
]
7296+
},
7297+
{
7298+
"login": "doradocodes",
7299+
"name": "Dora Do",
7300+
"avatar_url": "https://avatars.githubusercontent.com/u/140831752?v=4",
7301+
"profile": "https://doradocodes.com/",
7302+
"contributions": [
7303+
"review"
7304+
]
7305+
},
7306+
{
7307+
"login": "Nwakaego-Ego",
7308+
"name": "Nwakaego Glory Nwaekpe",
7309+
"avatar_url": "https://avatars.githubusercontent.com/u/81041326?v=4",
7310+
"profile": "https://github.com/Nwakaego-Ego",
7311+
"contributions": [
7312+
"review"
7313+
]
7314+
},
7315+
{
7316+
"login": "vietnguyen2358",
7317+
"name": "Viet Nguyen",
7318+
"avatar_url": "https://avatars.githubusercontent.com/u/107826279?v=4",
7319+
"profile": "https://github.com/vietnguyen2358",
7320+
"contributions": [
7321+
"code"
7322+
]
7323+
},
7324+
{
7325+
"login": "shuklaaryan367-byte",
7326+
"name": "aryan-shukla",
7327+
"avatar_url": "https://avatars.githubusercontent.com/u/228463828?v=4",
7328+
"profile": "https://github.com/shuklaaryan367-byte",
7329+
"contributions": [
7330+
"code"
7331+
]
7332+
},
7333+
{
7334+
"login": "aashu2006",
7335+
"name": "akshat patil",
7336+
"avatar_url": "https://avatars.githubusercontent.com/u/170659176?v=4",
7337+
"profile": "https://github.com/aashu2006",
7338+
"contributions": [
7339+
"doc"
7340+
]
7341+
},
7342+
{
7343+
"login": "avinxshKD",
7344+
"name": "Avinash Kumar Deepak",
7345+
"avatar_url": "https://avatars.githubusercontent.com/u/152387616?v=4",
7346+
"profile": "https://github.com/avinxshKD",
7347+
"contributions": [
7348+
"code"
7349+
]
7350+
},
7351+
{
7352+
"login": "Sanchit2662",
7353+
"name": "SANCHIT KUMAR",
7354+
"avatar_url": "https://avatars.githubusercontent.com/u/217499010?v=4",
7355+
"profile": "https://github.com/Sanchit2662",
7356+
"contributions": [
7357+
"code"
7358+
]
7359+
},
7360+
{
7361+
"login": "LuLaValva",
7362+
"name": "Luke LaValva",
7363+
"avatar_url": "https://avatars.githubusercontent.com/u/26027232?v=4",
7364+
"profile": "http://lavalva.dev",
7365+
"contributions": [
7366+
"bug",
7367+
"code"
7368+
]
7369+
},
7370+
{
7371+
"login": "saurabh24thakur",
7372+
"name": "Saurabh Singh",
7373+
"avatar_url": "https://avatars.githubusercontent.com/u/187937240?v=4",
7374+
"profile": "https://my-portfolio-phi-seven-50.vercel.app/",
7375+
"contributions": [
7376+
"code",
7377+
"test"
7378+
]
72327379
}
72337380
],
72347381
"repoType": "github",

.github/workflows/ci-lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ jobs:
1414

1515
steps:
1616
- uses: actions/checkout@v1
17-
- name: Use Node.js 20.x
17+
- name: Use Node.js 22.x
1818
uses: actions/setup-node@v1
1919
with:
20-
node-version: 20.x
20+
node-version: 22.x
2121
- name: Get node modules
2222
run: npm ci
2323
env:

.github/workflows/ci-test.yml

Lines changed: 30 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,24 +11,47 @@ on:
1111

1212
jobs:
1313
test:
14-
runs-on: ubuntu-latest
14+
strategy:
15+
matrix:
16+
include:
17+
- os: ubuntu-latest
18+
browser: chrome
19+
# - os: windows-latest
20+
# browser: chrome
21+
22+
runs-on: ${{ matrix.os }}
1523

1624
steps:
17-
- uses: actions/checkout@v1
18-
- name: Use Node.js 20.x
19-
uses: actions/setup-node@v1
25+
- uses: actions/checkout@v4
26+
27+
- name: Use Node.js 22.x
28+
uses: actions/setup-node@v4
2029
with:
21-
node-version: 20.x
30+
node-version: 22.x
31+
32+
- name: Verify Chrome (Ubuntu)
33+
if: matrix.os == 'ubuntu-latest' && matrix.browser == 'chrome'
34+
run: |
35+
google-chrome --version
36+
37+
- name: Verify Chrome (Windows)
38+
if: matrix.os == 'windows-latest' && matrix.browser == 'chrome'
39+
run: |
40+
& "C:\Program Files\Google\Chrome\Application\chrome.exe" --version
41+
2242
- name: Get node modules
2343
run: npm ci
2444
env:
2545
CI: true
26-
- name: build and test
46+
47+
- name: Build and test (Ubuntu)
2748
id: test
28-
run: npm test
49+
if: matrix.os == 'ubuntu-latest'
50+
run: npm test -- --project=unit-tests
2951
continue-on-error: true
3052
env:
3153
CI: true
54+
3255
- name: Generate Visual Test Report
3356
if: always()
3457
run: node visual-report.js
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Generate Contributors PNG
2+
3+
on:
4+
push:
5+
paths:
6+
- '.all-contributorsrc'
7+
8+
jobs:
9+
build:
10+
if: github.ref == 'refs/heads/main' && github.repository == 'processing/p5.js'
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
15+
- name: Setup Node
16+
uses: actions/setup-node@v4
17+
with:
18+
node-version: 20
19+
20+
- name: Install dependencies
21+
run: npm install canvas
22+
23+
- name: Run contributors-png generator
24+
run: node utils/contributors-png.js
25+
26+
- name: Reset all changes except contributors.png
27+
run: |
28+
git restore --staged .
29+
git add contributors.png
30+
git checkout -- .
31+
32+
- name: Create Pull Request
33+
uses: peter-evans/create-pull-request@v7
34+
with:
35+
commit-message: "Update contributors.png from .all-contributorsrc"
36+
branch: update-contributors-png
37+
title: "chore: update contributors.png from .all-contributorsrc"
38+
body: "This PR updates the contributors.png to reflect changes in .all-contributorsrc"
39+
add-paths: contributors.png
40+
token: ${{ secrets.ACCESS_TOKEN }}

.github/workflows/release-workflow-v2.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- uses: actions/checkout@v3
2222
- uses: actions/setup-node@v3
2323
with:
24-
node-version: 20
24+
node-version: 22
2525
- name: Get semver info
2626
id: semver
2727
uses: akshens/semver-tag@v4
@@ -42,13 +42,17 @@ jobs:
4242
env:
4343
CI: true
4444
- name: Run test
45-
run: npm test
45+
run: npm test -- --project=unit-tests
4646
env:
4747
CI: true
4848
- name: Run build
4949
run: npm run build
5050
- name: Generate types
5151
run: npm run generate-types
52+
- name: test TypeScript types
53+
run: npm run test:types
54+
env:
55+
CI: true
5256

5357
# 2. Prepare release files
5458
- run: mkdir release && mkdir p5 && cp -r ./lib/* p5/

.github/workflows/release-workflow.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- uses: actions/checkout@v3
2222
- uses: actions/setup-node@v3
2323
with:
24-
node-version: 20
24+
node-version: 22
2525
- name: Get semver info
2626
id: semver
2727
uses: akshens/semver-tag@v4

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
.nyc_output/*
44
# .vscode/settings.json
5+
# optional local preferences for vscode
6+
local.code-workspace
7+
58
node_modules/*
69

710
analyzer/

.vscode/extensions.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
// List of extensions which should be recommended for users of this workspace.
66
"recommendations": [
7-
"eg2.vscode-npm-script",
87
"yzhang.markdown-all-in-one",
98
"dbaeumer.vscode-eslint"
109
],

CONTRIBUTORS.md

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1067,7 +1067,7 @@
10671067
<td align="center" valign="top" width="16.66%"><a href="https://kangjung.github.io/game/index.html"><img src="https://avatars.githubusercontent.com/u/28768760?v=4?s=64" width="64px;" alt="JUNGMIN KANG"/><br /><sub><b>JUNGMIN KANG</b></sub></a><br /><a href="#translation-kangjung" title="Translation">🌍</a></td>
10681068
<td align="center" valign="top" width="16.66%"><a href="https://github.com/AlzaAlzaki76"><img src="https://avatars.githubusercontent.com/u/202525131?v=4?s=64" width="64px;" alt="Alza Alzaki"/><br /><sub><b>Alza Alzaki</b></sub></a><br /><a href="https://github.com/processing/p5.js/commits?author=AlzaAlzaki76" title="Documentation">📖</a></td>
10691069
<td align="center" valign="top" width="16.66%"><a href="https://github.com/Abhayaj247"><img src="https://avatars.githubusercontent.com/u/139991819?v=4?s=64" width="64px;" alt="Abhay M Joshi"/><br /><sub><b>Abhay M Joshi</b></sub></a><br /><a href="https://github.com/processing/p5.js/commits?author=Abhayaj247" title="Documentation">📖</a></td>
1070-
<td align="center" valign="top" width="16.66%"><a href="https://github.com/Homaid"><img src="https://avatars.githubusercontent.com/u/69979731?v=4?s=64" width="64px;" alt="Homaid"/><br /><sub><b>Homaid</b></sub></a><br /><a href="#a11y-Homaid" title="Accessibility">️️️️♿️</a> <a href="https://github.com/processing/p5.js/commits?author=Homaid" title="Code">💻</a></td>
1070+
<td align="center" valign="top" width="16.66%"><a href="https://github.com/Homaid"><img src="https://avatars.githubusercontent.com/u/69979731?v=4?s=64" width="64px;" alt="Homaid"/><br /><sub><b>Homaid</b></sub></a><br /><a href="#a11y-Homaid" title="Accessibility">️️️️♿️</a> <a href="https://github.com/processing/p5.js/commits?author=Homaid" title="Code">💻</a> <a href="https://github.com/processing/p5.js/commits?author=Homaid" title="Documentation">📖</a></td>
10711071
</tr>
10721072
<tr>
10731073
<td align="center" valign="top" width="16.66%"><a href="https://github.com/junseok44"><img src="https://avatars.githubusercontent.com/u/81099627?v=4?s=64" width="64px;" alt="JangJunseok"/><br /><sub><b>JangJunseok</b></sub></a><br /><a href="https://github.com/processing/p5.js/commits?author=junseok44" title="Code">💻</a></td>
@@ -1081,6 +1081,28 @@
10811081
<td align="center" valign="top" width="16.66%"><a href="https://github.com/nivanovvv"><img src="https://avatars.githubusercontent.com/u/232286320?v=4?s=64" width="64px;" alt="Nikolai Ivanov"/><br /><sub><b>Nikolai Ivanov</b></sub></a><br /><a href="https://github.com/processing/p5.js/commits?author=nivanovvv" title="Documentation">📖</a></td>
10821082
<td align="center" valign="top" width="16.66%"><a href="https://github.com/nbogie"><img src="https://avatars.githubusercontent.com/u/69844?v=4?s=64" width="64px;" alt="nbogie"/><br /><sub><b>nbogie</b></sub></a><br /><a href="https://github.com/processing/p5.js/issues?q=author%3Anbogie" title="Bug reports">🐛</a> <a href="https://github.com/processing/p5.js/commits?author=nbogie" title="Code">💻</a></td>
10831083
<td align="center" valign="top" width="16.66%"><a href="https://github.com/SoundOfScooting"><img src="https://avatars.githubusercontent.com/u/53986193?v=4?s=64" width="64px;" alt="SoundOfScooting"/><br /><sub><b>SoundOfScooting</b></sub></a><br /><a href="https://github.com/processing/p5.js/commits?author=SoundOfScooting" title="Code">💻</a> <a href="https://github.com/processing/p5.js/commits?author=SoundOfScooting" title="Documentation">📖</a></td>
1084+
<td align="center" valign="top" width="16.66%"><a href="https://vansh-dev.netlify.app/"><img src="https://avatars.githubusercontent.com/u/134841334?v=4?s=64" width="64px;" alt="vansh kabra"/><br /><sub><b>vansh kabra</b></sub></a><br /><a href="https://github.com/processing/p5.js/commits?author=VANSH3104" title="Code">💻</a></td>
1085+
<td align="center" valign="top" width="16.66%"><a href="https://github.com/menacingly-coded"><img src="https://avatars.githubusercontent.com/u/121508087?v=4?s=64" width="64px;" alt="Shreya Sharma"/><br /><sub><b>Shreya Sharma</b></sub></a><br /><a href="https://github.com/processing/p5.js/commits?author=menacingly-coded" title="Documentation">📖</a></td>
1086+
<td align="center" valign="top" width="16.66%"><a href="https://github.com/Itsrajsk"><img src="https://avatars.githubusercontent.com/u/117977675?v=4?s=64" width="64px;" alt="Raj Kashid"/><br /><sub><b>Raj Kashid</b></sub></a><br /><a href="https://github.com/processing/p5.js/commits?author=Itsrajsk" title="Code">💻</a></td>
1087+
</tr>
1088+
<tr>
1089+
<td align="center" valign="top" width="16.66%"><a href="https://github.com/Geethegreat"><img src="https://avatars.githubusercontent.com/u/86944224?v=4?s=64" width="64px;" alt="krishnageeth"/><br /><sub><b>krishnageeth</b></sub></a><br /><a href="https://github.com/processing/p5.js/commits?author=Geethegreat" title="Code">💻</a></td>
1090+
<td align="center" valign="top" width="16.66%"><a href="http://piyushh.me"><img src="https://avatars.githubusercontent.com/u/163632958?v=4?s=64" width="64px;" alt="PIYUSH RATHORE"/><br /><sub><b>PIYUSH RATHORE</b></sub></a><br /><a href="https://github.com/processing/p5.js/commits?author=Piyushrathoree" title="Code">💻</a></td>
1091+
<td align="center" valign="top" width="16.66%"><a href="https://github.com/Aayushdev18"><img src="https://avatars.githubusercontent.com/u/148681565?v=4?s=64" width="64px;" alt="Ayush Dev"/><br /><sub><b>Ayush Dev</b></sub></a><br /><a href="https://github.com/processing/p5.js/commits?author=Aayushdev18" title="Code">💻</a></td>
1092+
<td align="center" valign="top" width="16.66%"><a href="https://github.com/rakesh2OO5"><img src="https://avatars.githubusercontent.com/u/160116250?v=4?s=64" width="64px;" alt="Rakesh D"/><br /><sub><b>Rakesh D</b></sub></a><br /><a href="https://github.com/processing/p5.js/commits?author=rakesh2OO5" title="Code">💻</a></td>
1093+
<td align="center" valign="top" width="16.66%"><a href="https://doradocodes.com/"><img src="https://avatars.githubusercontent.com/u/140831752?v=4?s=64" width="64px;" alt="Dora Do"/><br /><sub><b>Dora Do</b></sub></a><br /><a href="https://github.com/processing/p5.js/pulls?q=is%3Apr+reviewed-by%3Adoradocodes" title="Reviewed Pull Requests">👀</a></td>
1094+
<td align="center" valign="top" width="16.66%"><a href="https://github.com/Nwakaego-Ego"><img src="https://avatars.githubusercontent.com/u/81041326?v=4?s=64" width="64px;" alt="Nwakaego Glory Nwaekpe"/><br /><sub><b>Nwakaego Glory Nwaekpe</b></sub></a><br /><a href="https://github.com/processing/p5.js/pulls?q=is%3Apr+reviewed-by%3ANwakaego-Ego" title="Reviewed Pull Requests">👀</a></td>
1095+
</tr>
1096+
<tr>
1097+
<td align="center" valign="top" width="16.66%"><a href="https://github.com/vietnguyen2358"><img src="https://avatars.githubusercontent.com/u/107826279?v=4?s=64" width="64px;" alt="Viet Nguyen"/><br /><sub><b>Viet Nguyen</b></sub></a><br /><a href="https://github.com/processing/p5.js/commits?author=vietnguyen2358" title="Code">💻</a></td>
1098+
<td align="center" valign="top" width="16.66%"><a href="https://github.com/shuklaaryan367-byte"><img src="https://avatars.githubusercontent.com/u/228463828?v=4?s=64" width="64px;" alt="aryan-shukla"/><br /><sub><b>aryan-shukla</b></sub></a><br /><a href="https://github.com/processing/p5.js/commits?author=shuklaaryan367-byte" title="Code">💻</a></td>
1099+
<td align="center" valign="top" width="16.66%"><a href="https://github.com/aashu2006"><img src="https://avatars.githubusercontent.com/u/170659176?v=4?s=64" width="64px;" alt="akshat patil"/><br /><sub><b>akshat patil</b></sub></a><br /><a href="https://github.com/processing/p5.js/commits?author=aashu2006" title="Documentation">📖</a></td>
1100+
<td align="center" valign="top" width="16.66%"><a href="https://github.com/avinxshKD"><img src="https://avatars.githubusercontent.com/u/152387616?v=4?s=64" width="64px;" alt="Avinash Kumar Deepak"/><br /><sub><b>Avinash Kumar Deepak</b></sub></a><br /><a href="https://github.com/processing/p5.js/commits?author=avinxshKD" title="Code">💻</a></td>
1101+
<td align="center" valign="top" width="16.66%"><a href="https://github.com/Sanchit2662"><img src="https://avatars.githubusercontent.com/u/217499010?v=4?s=64" width="64px;" alt="SANCHIT KUMAR"/><br /><sub><b>SANCHIT KUMAR</b></sub></a><br /><a href="https://github.com/processing/p5.js/commits?author=Sanchit2662" title="Code">💻</a></td>
1102+
<td align="center" valign="top" width="16.66%"><a href="http://lavalva.dev"><img src="https://avatars.githubusercontent.com/u/26027232?v=4?s=64" width="64px;" alt="Luke LaValva"/><br /><sub><b>Luke LaValva</b></sub></a><br /><a href="https://github.com/processing/p5.js/issues?q=author%3ALuLaValva" title="Bug reports">🐛</a> <a href="https://github.com/processing/p5.js/commits?author=LuLaValva" title="Code">💻</a></td>
1103+
</tr>
1104+
<tr>
1105+
<td align="center" valign="top" width="16.66%"><a href="https://my-portfolio-phi-seven-50.vercel.app/"><img src="https://avatars.githubusercontent.com/u/187937240?v=4?s=64" width="64px;" alt="Saurabh Singh"/><br /><sub><b>Saurabh Singh</b></sub></a><br /><a href="https://github.com/processing/p5.js/commits?author=saurabh24thakur" title="Code">💻</a> <a href="https://github.com/processing/p5.js/commits?author=saurabh24thakur" title="Tests">⚠️</a></td>
10841106
</tr>
10851107
</tbody>
10861108
</table>

0 commit comments

Comments
 (0)