Skip to content

build(deps): bump @react-three/fiber from 9.5.0 to 9.6.0#30

Closed
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/npm_and_yarn/react-three/fiber-9.6.0
Closed

build(deps): bump @react-three/fiber from 9.5.0 to 9.6.0#30
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/npm_and_yarn/react-three/fiber-9.6.0

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github Apr 13, 2026

Bumps @react-three/fiber from 9.5.0 to 9.6.0.

Release notes

Sourced from @​react-three/fiber's releases.

v9.6.0 - Sunset X

Ever tried using <shaderMaterial uniforms={{ time: { value: time } }} /> and ran into immediate issues with desync? No more.

The uniforms objects on ShaderMaterial and its derivatives now have a stable reference. Objects passed into uniforms will instead copy into it. This is the same as behavior for math structures that have copy such as position, rotation, quaternion, etc. and ends up simplifying using the raw JSX where utilities were often introduced before.

Why does this matter?

  1. Improves HMR. Even if you memoize the uniforms object it will still regenerate and desync Three. Now this won't happen. But also it makes compatibility with React compiler more complete with its auto-memoization.

  2. Allows for inline uniform props and even prop uniforms directly on the material piercing.

<shaderMaterial
  vertexShader={vertexShader}
  fragmentShader={fragmentShader}
  // The uniforms object has a stable reference so objects can be safely merged in
  uniforms={{ 
    uTime: { value: 0 }, 
    uColor: { value: new THREE.Color('hotpink') } 
  }}
  // Individual uniforms can also be safely updated with pierce notation
  uniforms-uColor-value={hovered ? 'royalblue' : 'hotpink'}
/>

Documentation can be found here: https://r3f.docs.pmnd.rs/api/objects#shader-material-uniforms

And an example can be found here: https://github.com/pmndrs/react-three-fiber/blob/master/example/src/demos/ShaderMaterial.tsx

What's Changed

New Contributors

Full Changelog: pmndrs/react-three-fiber@v9.5.0...v9.6.0

Commits
  • 877c839 chore: Move ShaderMaterial uniform notes to objects out of pitfalls (#3734)
  • ece1a3f RELEASING: Releasing 1 package(s)
  • 26e4716 docs(changeset): Fix uniforms refs so they remain stable for ShaderMaterial
  • 1fb9fcd docs: fix typos and documentation consistency (#3709)
  • e1a375c fix: Uniforms have stable refs for ShaderMaterial (#3715)
  • 582f787 docs: fix broken link on "Performance pitfalls" documentation page (#3700)
  • 9525ea0 Update docker_tag in docs.yml workflow
  • 56637a2 Upgrade pmndrs/docs workflow to version 3
  • 8c9b656 chore: use latest npm in canary
  • 1bdf70b chore: copy canary workflow to master
  • Additional commits viewable in compare view

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Apr 13, 2026
Bumps [@react-three/fiber](https://github.com/pmndrs/react-three-fiber) from 9.5.0 to 9.6.0.
- [Release notes](https://github.com/pmndrs/react-three-fiber/releases)
- [Commits](pmndrs/react-three-fiber@v9.5.0...v9.6.0)

---
updated-dependencies:
- dependency-name: "@react-three/fiber"
  dependency-version: 9.6.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot force-pushed the dependabot/npm_and_yarn/react-three/fiber-9.6.0 branch from 06c46f4 to 7410156 Compare April 18, 2026 00:55
@dependabot @github
Copy link
Copy Markdown
Contributor Author

dependabot Bot commented on behalf of github May 1, 2026

Superseded by #40.

@dependabot dependabot Bot closed this May 1, 2026
@dependabot dependabot Bot deleted the dependabot/npm_and_yarn/react-three/fiber-9.6.0 branch May 1, 2026 21:20
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.

0 participants