Skip to content

Bump p5 from 2.2.1 to 2.2.2#365

Merged
doerfli merged 1 commit intomainfrom
dependabot/npm_and_yarn/p5-2.2.2
Mar 21, 2026
Merged

Bump p5 from 2.2.1 to 2.2.2#365
doerfli merged 1 commit intomainfrom
dependabot/npm_and_yarn/p5-2.2.2

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot bot commented on behalf of github Mar 1, 2026

Bumps p5 from 2.2.1 to 2.2.2.

Release notes

Sourced from p5's releases.

v2.2.2

What's Changed

This patch focuses on bugfixes, particularly on WebGPU performance and p5.strands. The goal is that all p5.strands shaders work with both WebGPU and WebGL canvases. This patch also adds millis() support inside strands code.

To use this patch, you can use this starter sketch!

Or load both p5.js and WebGPU mode by adding these two script tags to your sketch:

<script src="https://cdn.jsdelivr.net/npm/p5@2.2.2/lib/p5.js"></script>
<script src="https://cdn.jsdelivr.net/npm/p5@2.2.2/lib/p5.webgpu.js"></script>

Then load WebGPU mode in createCanvas - note the async/await, this is needed for WebGPU but not WebGL:

async function setup() {
  await createCanvas(400, 400, WEBGPU);
}

If you take any existing sketch, such as from the intro to strands tutorial, iyou can switch from WEBGL to WEBGPU (async/await will be needed!)

Read more about how the WebGPU-based renderer works and where we plan on taking it here!

millis() supported in p5.strands

Here is a sketch (thanks @​perminder-17!) showing millis() being used inside a strands shader. Previously, const t = uniformFloat(() => millis()); was needed. This can still be used, but you can instead use millis() directly:

// p5.js (WEBGL) sketch showing millis() driving a wavy displacement
let mat;
function setup() {
createCanvas(600, 400, WEBGL);
pixelDensity(1);
mat = baseMaterialShader().modify(() => {
// displace geometry in world-space based on y + time
getWorldInputs((inputs) => {
const wave = sin(inputs.position.y * 0.05 + millis() * 0.004);
inputs.position += [20, 25, 20] * wave;
return inputs;
});
});
}
function draw() {
background(15);
</tr></table>

... (truncated)

Commits
  • 369377d 2.2.2
  • 7167942 Merge pull request #8557 from processing/readme-2.2.2
  • 155a388 Merge branch 'dev-2.0' into readme-2.2.2
  • 13fee41 Merge pull request #8556 from processing/readme-2
  • 6e5027c Updated readme and contributors for 2.0 branch
  • bc5c50a chore: fix alt text, SVG/PNG typos, and remove unused deps
  • ea749e8 update outdated avatar_url .all-contributorsrc
  • e5e0ee9 embed contributors.png in readme
  • 33aa721 ci: generate contributors.png on contributor updates
  • e7272bd feat: add contributors png generator
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Mar 1, 2026
Bumps [p5](https://github.com/processing/p5.js) from 2.2.1 to 2.2.2.
- [Release notes](https://github.com/processing/p5.js/releases)
- [Changelog](https://github.com/processing/p5.js/blob/main/contributor_docs/release_process.md)
- [Commits](processing/p5.js@v2.2.1...v2.2.2)

---
updated-dependencies:
- dependency-name: p5
  dependency-version: 2.2.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/p5-2.2.2 branch from 14cf7e5 to da7a408 Compare March 17, 2026 21:34
@doerfli doerfli merged commit 3576c7a into main Mar 21, 2026
1 check passed
@doerfli doerfli deleted the dependabot/npm_and_yarn/p5-2.2.2 branch March 21, 2026 10:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant