Skip to content

Commit d401412

Browse files
authored
Merge branch 'dev-2.0' into touch-orbitControl
2 parents 61778b6 + 7c8211b commit d401412

60 files changed

Lines changed: 1481 additions & 338 deletions

File tree

Some content is hidden

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

.all-contributorsrc

Lines changed: 59 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6840,7 +6840,8 @@
68406840
"profile": "https://yugalkaushik.vercel.app",
68416841
"contributions": [
68426842
"code",
6843-
"doc"
6843+
"doc",
6844+
"bug"
68446845
]
68456846
},
68466847
{
@@ -7246,7 +7247,8 @@
72467247
"avatar_url": "https://avatars.githubusercontent.com/u/121508087?v=4",
72477248
"profile": "https://github.com/menacingly-coded",
72487249
"contributions": [
7249-
"doc"
7250+
"doc",
7251+
"code"
72507252
]
72517253
},
72527254
{
@@ -7414,6 +7416,61 @@
74147416
"contributions": [
74157417
"code"
74167418
]
7419+
},
7420+
{
7421+
"login": "geeta102",
7422+
"name": "geeta102",
7423+
"avatar_url": "https://avatars.githubusercontent.com/u/216125877?v=4",
7424+
"profile": "https://github.com/geeta102",
7425+
"contributions": [
7426+
"bug",
7427+
"code"
7428+
]
7429+
},
7430+
{
7431+
"login": "Kathrina-dev",
7432+
"name": "Kathrina Elangbam",
7433+
"avatar_url": "https://avatars.githubusercontent.com/u/178802899?v=4",
7434+
"profile": "https://github.com/Kathrina-dev",
7435+
"contributions": [
7436+
"code"
7437+
]
7438+
},
7439+
{
7440+
"login": "Jianru-Lin",
7441+
"name": "Jianru Lin",
7442+
"avatar_url": "https://avatars.githubusercontent.com/u/1057486?v=4",
7443+
"profile": "https://github.com/Jianru-Lin",
7444+
"contributions": [
7445+
"doc"
7446+
]
7447+
},
7448+
{
7449+
"login": "kushal1061",
7450+
"name": "Kushalpal Bishnoi",
7451+
"avatar_url": "https://avatars.githubusercontent.com/u/177997075?v=4",
7452+
"profile": "https://github.com/kushal1061",
7453+
"contributions": [
7454+
"code"
7455+
]
7456+
},
7457+
{
7458+
"login": "harshiltewari2004",
7459+
"name": "harshiltewari2004",
7460+
"avatar_url": "https://avatars.githubusercontent.com/u/197800028?v=4",
7461+
"profile": "https://github.com/harshiltewari2004",
7462+
"contributions": [
7463+
"code"
7464+
]
7465+
},
7466+
{
7467+
"login": "adrienneg",
7468+
"name": "Adrienne Gifford",
7469+
"avatar_url": "https://avatars.githubusercontent.com/u/10889128?v=4",
7470+
"profile": "https://github.com/adrienneg",
7471+
"contributions": [
7472+
"tutorial"
7473+
]
74177474
}
74187475
],
74197476
"repoType": "github",

.github/ISSUE_TEMPLATE/2-found-a-bug.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ body:
1919
- label: Math
2020
- label: Typography
2121
- label: Utilities
22+
- label: p5.strands
2223
- label: WebGL
23-
- label: Build process
24-
- label: Unit testing
25-
- label: Internationalization
26-
- label: Friendly errors
24+
- label: DevOps, Build process, Unit testing
25+
- label: Internationalization (i18n)
26+
- label: Friendly Errors
2727
- label: Other (specify if possible)
2828
- type: input
2929
attributes:

.github/labeler.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,18 @@
2222
- '\[[xX]\]\s*Utilities'
2323
"Area:WebGL":
2424
- '\[[xX]\]\s*WebGL'
25+
"Internationalization":
26+
- '\[[xX]\]\s*Internationalization'
27+
"DevOps":
28+
- '\[[xX]\]\s*Build Process'
29+
- '\[[xX]\]\s*Unit Testing'
2530
"Build Process":
2631
- '\[[xX]\]\s*Build Process'
2732
"Unit Testing":
2833
- '\[[xX]\]\s*Unit Testing'
29-
"Internationalization":
30-
- '\[[xX]\]\s*Internationalization'
3134
"Friendly Errors":
3235
- '\[[xX]\]\s*Friendly Errors'
36+
"p5.strands":
37+
- '\[[xX]\]\s*p5.strands'
38+
"Area:WebGPU":
39+
- '\[[xX]\]\s*WebGPU'

.github/workflows/auto-close-issues.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,18 @@ on:
66
branches:
77
- dev-2.0
88

9+
permissions:
10+
contents: read
11+
issues: write
12+
pull-requests: read
13+
914
jobs:
1015
close_issues:
1116
if: github.event.pull_request.merged == true
1217
runs-on: ubuntu-latest
1318
steps:
1419
- name: Close linked issues on non-default branches
15-
uses: processing/branch-pr-close-issue@v1
20+
uses: processing/branch-pr-close-issue@9fd7b409a12c677c5cdd8ff82c45600f790074e1 # v1
1621
with:
1722
token: ${{ secrets.GITHUB_TOKEN }}
1823
branch: dev-2.0

.github/workflows/ci-lint.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,19 @@ on:
77
pull_request:
88
branches:
99
- '*'
10+
permissions:
11+
contents: read
1012

1113
jobs:
1214
lint:
1315
runs-on: ubuntu-latest
1416

1517
steps:
16-
- uses: actions/checkout@v1
18+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
19+
with:
20+
persist-credentials: false
1721
- name: Use Node.js 22.x
18-
uses: actions/setup-node@v1
22+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
1923
with:
2024
node-version: 22.x
2125
- name: Get node modules

.github/workflows/ci-test.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on:
99
branches:
1010
- '*'
1111

12+
permissions:
13+
contents: read
14+
1215
jobs:
1316
test:
1417
strategy:
@@ -22,10 +25,12 @@ jobs:
2225
runs-on: ${{ matrix.os }}
2326

2427
steps:
25-
- uses: actions/checkout@v4
28+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
29+
with:
30+
persist-credentials: false
2631

2732
- name: Use Node.js 22.x
28-
uses: actions/setup-node@v4
33+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
2934
with:
3035
node-version: 22.x
3136

@@ -59,7 +64,7 @@ jobs:
5964
CI: true
6065
- name: Upload Visual Test Report
6166
if: always()
62-
uses: actions/upload-artifact@v4
67+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
6368
with:
6469
name: visual-test-report
6570
path: test/unit/visual/visual-report.html
@@ -72,11 +77,6 @@ jobs:
7277
run: npm run test:types
7378
env:
7479
CI: true
75-
- name: report test coverage
76-
if: steps.test.outcome == 'success'
77-
run: bash <(curl -s https://codecov.io/bash) -f coverage/coverage-final.json
78-
env:
79-
CI: true
8080
- name: fail job if tests failed
8181
if: steps.test.outcome != 'success'
8282
run: exit 1

.github/workflows/contributors-png.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,20 @@ on:
55
paths:
66
- '.all-contributorsrc'
77

8+
permissions:
9+
contents: read
10+
811
jobs:
912
build:
1013
if: github.ref == 'refs/heads/main' && github.repository == 'processing/p5.js'
1114
runs-on: ubuntu-latest
1215
steps:
13-
- uses: actions/checkout@v3
16+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
17+
with:
18+
persist-credentials: false
1419

1520
- name: Setup Node
16-
uses: actions/setup-node@v4
21+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
1722
with:
1823
node-version: 20
1924

@@ -30,7 +35,7 @@ jobs:
3035
git checkout -- .
3136
3237
- name: Create Pull Request
33-
uses: peter-evans/create-pull-request@v7
38+
uses: peter-evans/create-pull-request@22a9089034f40e5a961c8808d113e2c98fb63676 # v7.0.11
3439
with:
3540
commit-message: "Update contributors.png from .all-contributorsrc"
3641
branch: update-contributors-png

.github/workflows/labeler.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@ on:
33
issues:
44
types: [opened, edited]
55
permissions:
6+
contents: read
67
issues: write
78
jobs:
89
triage:
910
runs-on: ubuntu-latest
1011
steps:
11-
- uses: github/issue-labeler@v3.2
12+
- uses: github/issue-labeler@98b5412841f6c4b0b3d9c29d53c13fad16bd7de2 # v3.2
1213
with:
1314
repo-token: "${{ secrets.GITHUB_TOKEN }}"
1415
configuration-path: .github/labeler.yml

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

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,15 @@ jobs:
1818
INPUT_TOKEN: ${{ secrets.NPM_TOKEN }}
1919
steps:
2020
# 1. Setup
21-
- uses: actions/checkout@v3
22-
- uses: actions/setup-node@v3
21+
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
22+
with:
23+
persist-credentials: false
24+
- uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3
2325
with:
2426
node-version: 22
2527
- name: Get semver info
2628
id: semver
27-
uses: akshens/semver-tag@v4
29+
uses: akshens/semver-tag@8e427cd48c699c97d021df4946f3a0e65af5047e # v4
2830
with:
2931
version: ${{ github.ref_name }}
3032

@@ -57,7 +59,7 @@ jobs:
5759
# 2. Prepare release files
5860
- run: mkdir release && mkdir p5 && cp -r ./lib/* p5/
5961
- name: Create release zip file
60-
uses: TheDoctor0/zip-release@0.6.2
62+
uses: TheDoctor0/zip-release@09336613be18a8208dfa66bd57efafd9e2685657 # 0.6.2
6163
with:
6264
type: zip
6365
filename: release/p5.zip
@@ -68,29 +70,30 @@ jobs:
6870

6971
# 3. Release p5.js
7072
- name: Create GitHub release
71-
uses: softprops/action-gh-release@v0.1.15
73+
uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 # v0.1.15
7274
with:
7375
draft: true
7476
prerelease: ${{ steps.semver.outputs.is-prerelease == 'true' }}
7577
files: release/*
7678
generate_release_notes: true
77-
token: ${{ secrets.ACCESS_TOKEN }}
79+
token: ${{ secrets.GITHUB_TOKEN }}
7880
- name: Publish to NPM
79-
uses: JS-DevTools/npm-publish@v1
81+
uses: JS-DevTools/npm-publish@0f451a94170d1699fd50710966d48fb26194d939
8082
with:
8183
token: ${{ secrets.NPM_TOKEN }}
8284
tag: ${{ steps.semver.outputs.is-prerelease != 'true' && 'latest' || 'beta' }}
8385

8486
# 4. Update p5.js website
8587
- name: Clone p5.js website
8688
if: ${{ steps.semver.outputs.is-prerelease != 'true' }}
87-
uses: actions/checkout@v3
89+
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
8890
with:
8991
repository: processing/p5.js-website
9092
ref: '2.0'
9193
path: website
9294
fetch-depth: 0
9395
token: ${{ secrets.ACCESS_TOKEN }}
96+
persist-credentials: false
9497
- name: Updated website files
9598
if: ${{ steps.semver.outputs.is-prerelease != 'true' }}
9699
run: |
@@ -111,7 +114,7 @@ jobs:
111114
git commit -m "Update p5.js to ${{ github.ref_name }}"
112115
- name: Push updated website repo
113116
if: ${{ steps.semver.outputs.is-prerelease != 'true' }}
114-
uses: ad-m/github-push-action@v0.6.0
117+
uses: ad-m/github-push-action@40bf560936a8022e68a3c00e7d2abefaf01305a6 # v0.6.0
115118
with:
116119
github_token: ${{ secrets.ACCESS_TOKEN }}
117120
branch: '2.0'

0 commit comments

Comments
 (0)