Skip to content

Commit 7849d12

Browse files
authored
Merge branch 'dev-2.0' into strands-ternary
2 parents e184438 + 6ac2a57 commit 7849d12

Some content is hidden

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

44 files changed

+1131
-328
lines changed

.all-contributorsrc

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7330,6 +7330,15 @@
73307330
"code"
73317331
]
73327332
},
7333+
{
7334+
"login": "skyash-dev",
7335+
"name": "yash",
7336+
"avatar_url": "https://avatars.githubusercontent.com/u/52105266?v=4",
7337+
"profile": "http://skyash.me",
7338+
"contributions": [
7339+
"code"
7340+
]
7341+
},
73337342
{
73347343
"login": "aashu2006",
73357344
"name": "akshat patil",
@@ -7348,6 +7357,15 @@
73487357
"code"
73497358
]
73507359
},
7360+
{
7361+
"login": "jjnawaaz",
7362+
"name": "Junaid Nawaz",
7363+
"avatar_url": "https://avatars.githubusercontent.com/u/124430303?v=4",
7364+
"profile": "https://github.com/jjnawaaz",
7365+
"contributions": [
7366+
"doc"
7367+
]
7368+
},
73517369
{
73527370
"login": "Sanchit2662",
73537371
"name": "SANCHIT KUMAR",
@@ -7376,6 +7394,26 @@
73767394
"code",
73777395
"test"
73787396
]
7397+
},
7398+
{
7399+
"login": "imrinahru",
7400+
"name": "imrinahru",
7401+
"avatar_url": "https://avatars.githubusercontent.com/u/120927437?v=4",
7402+
"profile": "https://github.com/imrinahru",
7403+
"contributions": [
7404+
"bug",
7405+
"code",
7406+
"test"
7407+
]
7408+
},
7409+
{
7410+
"login": "Nitin2332",
7411+
"name": "Nitin Rajpoot",
7412+
"avatar_url": "https://avatars.githubusercontent.com/u/175546686?v=4",
7413+
"profile": "https://github.com/Nitin2332",
7414+
"contributions": [
7415+
"code"
7416+
]
73797417
}
73807418
],
73817419
"repoType": "github",
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Publish approved pull requests and latest commit to pkg.pr.new
2+
on:
3+
pull_request:
4+
branches:
5+
- 'dev-2.0'
6+
push:
7+
branches:
8+
- 'dev-2.0'
9+
tags:
10+
- '!**'
11+
12+
permissions:
13+
pull-requests: write
14+
issues: write
15+
16+
jobs:
17+
publish:
18+
if: github.repository == 'processing/p5.js'
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout code
22+
uses: actions/checkout@v4
23+
- uses: actions/setup-node@v4
24+
with:
25+
node-version: 22
26+
27+
- name: Install dependencies
28+
run: npm ci
29+
30+
- name: Build library
31+
run: npm run build
32+
33+
- name: Publish library
34+
run: npx pkg-pr-new publish --no-template --json output.json --comment=off
35+
36+
- name: Include PR info in output file
37+
uses: actions/github-script@v8
38+
env:
39+
PR_NUMBER: ${{ github.event.pull_request.number }}
40+
with:
41+
script: |
42+
const fs = require('fs');
43+
const output = JSON.parse(fs.readFileSync('output.json', 'utf8'));
44+
output.workflow = {
45+
pull_request: process.env.PR_NUMBER ? {
46+
number: process.env.PR_NUMBER
47+
} : null
48+
};
49+
fs.writeFileSync('output.json', JSON.stringify(output));
50+
51+
- name: Upload output data
52+
uses: actions/upload-artifact@v4
53+
with:
54+
name: output.zip
55+
path: output.json

AGENTS.md

Lines changed: 254 additions & 126 deletions
Large diffs are not rendered by default.

AI_USAGE_POLICY.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Large language models (LLMs) make mistakes and cannot be held accountable for th
2121

2222
**We understand that asking questions can feel intimidating.** You might worry about looking inexperienced or bothering maintainers with "basic" questions. AI tools can feel like a safer and less judgmental first step. However, LLMs often provide incorrect or incomplete answers, and they may create a false sense of understanding.
2323

24-
Before asking AI, we encourage you to talk to us in the [Discord #contribute-to-p5 channel](https://discord.gg/x7kU7k5HM3) or in the relevant issue thread.
24+
Before asking AI, we encourage you to talk to us in the [Discord #contribute-to-p5 channel](https://discord.p5js.org) or in the relevant issue thread.
2525

2626
Please know: **there are no silly questions, and we genuinely want to help you.** You won't be judged for not knowing something. In fact, we are grateful for your questions as they help us improve our documentation and make the project more welcoming for everyone who comes after you.
2727

@@ -83,7 +83,7 @@ We are continuously looking for ways to improve our approach and may have to cha
8383
8484
## Questions?
8585

86-
If you're unsure whether your use of AI tools complies with this policy, ask in the [Discord #contribute-to-p5 channel](https://discord.gg/x7kU7k5HM3) or in the relevant issue thread. We're here to help!
86+
If you're unsure whether your use of AI tools complies with this policy, ask in the [Discord #contribute-to-p5 channel](https://discord.p5js.org) or in the relevant issue thread. We're here to help!
8787

8888
## AI Disclosure
8989

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Hi there! Welcome to p5.js contributing! Here are a few things to know:
22

3-
The GitHub issues are for bugs and feature requests for the p5.js library itself. If you have a general question or bug programming with p5.js please post it in the [p5.js forum](https://discourse.processing.org/c/p5js) or ask in our [Discord server](https://discord.gg/SHQ8dH25r9) (check the #contribute-to-p5 channel).
3+
The GitHub issues are for bugs and feature requests for the p5.js library itself. If you have a general question or bug programming with p5.js please post it in the [p5.js forum](https://discourse.processing.org/c/p5js) or ask in our [Discord server](https://discord.p5js.org) (check the #contribute-to-p5 channel).
44

55
Please make sure you are posting to the correct repository. See this [section](https://github.com/processing/p5.js/blob/main/README.md#issues) for a list of all p5.js repositories.
66

README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function draw() {
3232
</tr>
3333
</table>
3434

35-
[Get Started](https://p5js.org/tutorials/get-started/)[Reference](https://p5js.org/reference)[Tutorials](https://p5js.org/tutorials)[Examples](https://p5js.org/examples/)[Libraries](https://p5js.org/libraries)[Forum](https://discourse.processing.org/c/p5js)[Discord](https://discord.gg/SHQ8dH25r9)
35+
[Get Started](https://p5js.org/tutorials/get-started/)[Reference](https://p5js.org/reference)[Tutorials](https://p5js.org/tutorials)[Examples](https://p5js.org/examples/)[Libraries](https://p5js.org/libraries)[Forum](https://discourse.processing.org/c/p5js)[Discord](https://discord.p5js.org)
3636

3737
## About
3838

@@ -80,23 +80,22 @@ Stewards are contributors who are particularly involved, familiar, or responsive
8080

8181
Anyone interested can volunteer to be a steward! There are no specific requirements for expertise, just an interest in actively learning and participating. If you’re familiar with or interested in actively learning and participating in some of the p5.js areas below, please reply to [this issue](https://github.com/processing/p5.js/issues/5719) mentioning which area(s) you are interested in volunteering as a steward! 👋👋👋
8282

83-
p5.js was created by [Lauren Lee McCarthy](https://github.com/lmccart) in 2013 as a new interpretation of Processing for the context of the web. Since then we have allowed ourselves space to deviate and grow, while drawing inspiration from Processing and our shared community. p5.js is sustained by a community of contributors, with support from the Processing Foundation. p5.js follows a rotating leadership model started in 2020, and [Qianqian Ye](https://github.com/qianqianye) has been leading p5.js since 2021. Learn more about the [people](https://p5js.org/people/) behind p5.js.
83+
p5.js was created by [Lauren Lee McCarthy](https://github.com/lmccart) in 2013 as a new interpretation of Processing for the context of the web. Since then we have allowed ourselves space to deviate and grow, while drawing inspiration from Processing and our shared community. p5.js is sustained by a community of contributors, with support from the Processing Foundation. p5.js follows a rotating leadership model started in 2020. Learn more about the [people](https://p5js.org/people/) behind p5.js.
8484

8585
Current Lead/Mentor
8686
* [@ksen0](https://github.com/ksen0) - p5.js Lead,2024-present
8787
* [@limzykenneth](https://github.com/limzykenneth) - p5.js Mentor,2023-present
8888

8989
Lead/Mentor Alumni
9090
* [@lmccart](https://github.com/lmccart) - p5.js Creator
91-
* [@qianqianye](https://github.com/qianqianye) - p5.js Lead,2021-present (on leave)
91+
* [@qianqianye](https://github.com/qianqianye) - p5.js Lead,2021-2025
9292
* [@outofambit](https://github.com/outofambit) - p5.js Co-Lead 2021-22, Mentor 2022-2023
9393
* [@mcturner1995](https://github.com/mcturner1995) - p5.js Lead 2020
9494

95-
9695
<!-- STEWARDS-LIST:START - Do not remove or modify this section -->
9796
| Area | Steward(s) |
9897
|------|-------------|
99-
| Maintainers | [@davepagurek](https://github.com/davepagurek), [@ksen0](https://github.com/ksen0), [@limzykenneth](https://github.com/limzykenneth), [@perminder-17](https://github.com/perminder-17), [@qianqianye](https://github.com/qianqianye) |
98+
| Maintainers | [@davepagurek](https://github.com/davepagurek), [@doradocodes](https://github.com/doradocodes), [@ksen0](https://github.com/ksen0), [@limzykenneth](https://github.com/limzykenneth), [@perminder-17](https://github.com/perminder-17), [@qianqianye](https://github.com/qianqianye) |
10099
| Accessibility | [@calebfoss](https://github.com/calebfoss) |
101100
| Accessibility (p5.js-website) | [@coseeian](https://github.com/coseeian) |
102101
| Color | [@limzykenneth](https://github.com/limzykenneth) |

contributor_docs/contributor_guidelines.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ The majority of the activity on p5.js' GitHub repositories (repo for short) happ
6262

6363
While an issue can be opened for a wide variety of reasons, we usually only use issues to discuss the development of p5.js source code. Topics such as debugging your own code, inviting collaborators to your project, or other unrelated topics should be discussed
6464

65-
either on the [forum](https://discourse.processing.com) or on other platforms such as [Discord](https://discord.gg/SHQ8dH25r9).
65+
either on the [forum](https://discourse.processing.com) or on other platforms such as [Discord](https://discord.p5js.org).
6666

6767
We have created easy-to-use issue templates to aid you in deciding whether a topic should be a GitHub issue or posted elsewhere!
6868

contributor_docs/es/contributor_guidelines.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ La mayoría de la actividad en los repositorios de GitHub de p5.js (también con
5959

6060
<em>'Issues'</em> es el nombre común que se le da a una publicación en GitHub que apunta a describir, como lo dice su nombre, un problema. Los <em>Issues</em> pueden ser reportes de error, solicitudes para añadir un nueva funcionalidad, una discusión, o cualquier publicación que se relacione con el desarrollo de la biblioteca de p5.js. Cualquiera con una cuenta de GitHub puede añadir comentarios debajo de cada <em>Issue</em>, ¡incluyendo bots! Este es el lugar donde los contribuidores discuten temas relacionados con el desarrollo del proyecto dentro del repositorio.
6161

62-
Mientras un <em>Issue</em> puede ser creado por diferentes razones, usualmente utilizamos la creación de un <em>Issue</em> para discutir el desarrollo del código fuente de p5.js. Temas como la corrección de errores de tu propio código, invitación de colaboradores a tu proyecto, u otros temas no relacionados, deben ser discutidos ya sea en el [foro](https://discourse.processing.com) o en otras plataformas de comunicación como [Discord](https://discord.gg/SHQ8dH25r9).
62+
Mientras un <em>Issue</em> puede ser creado por diferentes razones, usualmente utilizamos la creación de un <em>Issue</em> para discutir el desarrollo del código fuente de p5.js. Temas como la corrección de errores de tu propio código, invitación de colaboradores a tu proyecto, u otros temas no relacionados, deben ser discutidos ya sea en el [foro](https://discourse.processing.com) o en otras plataformas de comunicación como [Discord](https://discord.p5js.org).
6363

6464
¡Hemos creado plantillas fáciles de usar que puede ayudarte a determinar si un tema es adecuado para ser publicado como un <em>Issue</em> en GitHub, o si sería más apropiado publicarlo en otro lugar!
6565

contributor_docs/es/steward_guidelines.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ Para permanecer como steward, debes contribuir como steward en al menos 1 de los
8787

8888
1. Mantén estas directrices a mano como referencia: cómo ayudar con nuevos issues, bugs y funcionalidades. Por ejemplo, la sección "Solicitud de Funcionalidades" incluye consejos sobre cómo usar la [declaración de acceso]([access.md](https://github.com/processing/p5.js/blob/dev-2.0/contributor_docs/es/access.md)) de p5.js como steward.
8989
2. Al ayudar a responder preguntas técnicas o revisar, intenta aplicar la [directriz de la Processing Foundation sobre cómo responder preguntas](https://discourse.processing.org/t/guidelines-answering-questions/2145). Estas pueden ser especialmente útiles para dar retroalimentación técnica constructiva.
90-
3. Únete al [Discord de p5.js](https://discord.com/invite/SHQ8dH25r9). ¡En el canal `#contribute-to-p5` cualquier pregunta o propuesta de mejora sobre este proceso es bienvenida!
90+
3. Únete al [Discord de p5.js](https://discord.p5js.org). ¡En el canal `#contribute-to-p5` cualquier pregunta o propuesta de mejora sobre este proceso es bienvenida!
9191

9292
## _Issues_
9393

@@ -120,7 +120,7 @@ Los _issues_ de informes de errores deberían utilizar la plantilla de _Issue_ "
120120
- Si la replicación es posible más tarde, regrese al paso 2.
121121
1. Si el error se origina en el código que el usuario proporcionó en el informe de error y no en el comportamiento de p5.js:
122122
- Determine si la documentación de p5.js, la implementación de código o el sistema de errores amigable pueden mejorarse para evitar que se cometa el mismo error.
123-
- Redirija amablemente cualquier pregunta adicional al [foro](https://discourse.processing.org/) o al [Discord](https://discord.com/invite/SHQ8dH25r9) y cierre el _issue_ si no se van a realizar más cambios en p5.js.
123+
- Redirija amablemente cualquier pregunta adicional al [foro](https://discourse.processing.org/) o al [Discord](https://discord.p5js.org) y cierre el _issue_ si no se van a realizar más cambios en p5.js.
124124

125125

126126
### Solicitud de Funcionalidades

contributor_docs/hi/contributor_guidelines.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ p5.js के गिटहब रिपॉजिटरी (संक्षेप
6161

6262
"समस्या" गिटहब रिपॉजिटरी पर सामान्य क्रिया है जिसका उद्देश्य किसी समस्या का वर्णन करना है।। यह समस्या एक त्रुटि रिपोर्ट, नई विशेषता जोड़ने का अनुरोध, एक चर्चा, या p5.js लाइब्रेरी विकास से संबंधित किसी भी उद्देश्य के रूप में काम कर सकती है। प्रत्येक समस्या के नीचे किसी भी गिटहब खाते वाले व्यक्ति, सहित बॉट्स, द्वारा टिप्पणियाँ जोड़ी जा सकती हैं! यह वह स्थान है जहां योगदानकर्ताओं ने परियोजना के विकास से संबंधित विषयों पर चर्चा करते हैं।
6363

64-
जबकि एक समस्या कई विभिन्न कारणों के लिए खोली जा सकती है, हम आमतौर पर केवल p5.js स्रोत कोड के विकास पर चर्चा करने के लिए समस्याएँ का उपयोग करते हैं। अपने कोड का पुन: निरीक्षण, अपने परियोजना में सहयोगी निमंत्रण करने, या अन्य असंबंधित विषयों पर हम [फोरम](https://discourse.processing.com) या अन्य प्लेटफ़ॉर्मों जैसे [डिस्कोर्ड](https://discord.gg/SHQ8dH25r9) पर चर्चा करते हैं।
64+
जबकि एक समस्या कई विभिन्न कारणों के लिए खोली जा सकती है, हम आमतौर पर केवल p5.js स्रोत कोड के विकास पर चर्चा करने के लिए समस्याएँ का उपयोग करते हैं। अपने कोड का पुन: निरीक्षण, अपने परियोजना में सहयोगी निमंत्रण करने, या अन्य असंबंधित विषयों पर हम [फोरम](https://discourse.processing.com) या अन्य प्लेटफ़ॉर्मों जैसे [डिस्कोर्ड](https://discord.p5js.org) पर चर्चा करते हैं।
6565

6666
हमने आपको गिटहब समस्या होनी चाहिए या कहीं और पोस्ट करनी चाहिए को निर्धारित करने में मदद करने के लिए आसान-से-उपयोग निर्देशिका बनाई हैं!
6767

0 commit comments

Comments
 (0)