devtools icon indicating copy to clipboard operation
devtools copied to clipboard

fix(deps): update dependency @tresjs/core to v5

Open renovate[bot] opened this issue 3 months ago • 2 comments

This PR contains the following updates:

Package Change Age Confidence
@tresjs/core (source) ^4.3.6 -> ^5.2.0 age confidence

Release Notes

Tresjs/tres (@​tresjs/core)

v5.2.0

Compare Source

🚀 Features
  • export TresCanvasEmits type from TresCanvas.vue (2466da39)
  • export TresCanvasProps type from TresCanvas.vue (a15ba89a)
🩹 Fixes
  • use import attributes (18acb535)
  • core: reuse TresPointerEvent (3d026935)
  • core: import version directly from package.json for data-tres attribute (55ecb136)
  • core: move typescript to devDependencies (d1d27d7e)
❤️ Thank You
  • Jungzl

v5.1.1

Compare Source

🩹 Fixes
  • logger: remove unnecessary eslint directive for explicit any in runtime mode resolution (5b06cc1d)
  • core: enhance runtime mode resolution for both browser and Node environments (2f9c55c2)
🧱 Updated Dependencies
❤️ Thank You

v5.1.0

Compare Source

🚀 Features
  • linter fixes (2632eb90)
  • add documentation and remove console log (88c7abc9)
  • support components written in kebab-case (be92464d)
🩹 Fixes
  • utils: update import paths for types in index.ts and tres.ts (42f9e914)
🧱 Updated Dependencies
❤️ Thank You

v5.0.3

Compare Source

🧱 Updated Dependencies

v5.0.2

Compare Source

Bug Fixes

What's Changed

New Contributors

Full Changelog: https://github.com/Tresjs/tres/compare/5.0.1...5.0.2

v5.0.1

Compare Source

Bug Fixes

What's Changed

Full Changelog: https://github.com/Tresjs/tres/compare/5.0.0...5.0.1

v5.0.0

Compare Source

⚠ BREAKING CHANGES

ESM Only
  • Tres is now ESM only - Removed UMD build configuration from package.json and adjusted exports to only include ES module
  • Updated vite.config.ts to specify the output format as ES, enhancing compatibility with modern module systems
Event System Overhaul
  • New event system based on pmdrs/pointer-events - Only first element intersected will trigger the pointer event, no more need to stop propagation on occlusion
  • Replaced raycaster with events system throughout the codebase
Loop System Refactoring
  • onAfterRender has been renamed to onRender
  • onBeforeRender renamed to onBeforeLoop, then back to onBeforeRender
  • onLoop renamed to onRender
  • Removed deprecated loop implementation and updated related composables
Context API Changes
  • useTresReady is no longer available - replaced by isReady in the renderer in the context
  • onTresReady is no longer available - renderer.isReady should be leveraged instead
  • camera ctx property is now an object with the camera manager instead of the active camera
  • useRenderer now returns invalidate and advance - useTresContextProvider no longer contains render state
  • invalidate, advance, canBeInvalidated and the renderer instance are now accessed through the context via renderer
  • The renderer instance in the context is now readonly
  • Removed emit from useTresContextProvider and useTresEventManager
  • The types EmitEventName and EmitEventFn are no longer exported from @​tresjs/core
Composables Removed/Deprecated
  • useTexture composable moved to @​tresjs/cientos package
  • useSeek is deprecated and removed
Loader Changes
  • useLoader API changed - no longer returns the plain object, now returns an object with reactive data (resource|s), isLoading, error) and a load method, can be used both sync and async (suspense)

🚀 New Features

Core Features
  • WebGPU native support - Added support for WebGPU rendering
  • New useTres composable - Provides access to the Tres context
  • Enhanced useLoop and useRenderLoop - Completely refactored with better event handling
  • Expose render mode - Made render mode accessible to users
  • Make utility methods available - Some utility methods are now exposed for user consumption
  • Model and animation recipe - Added comprehensive model and animation examples
Developer Experience
  • Tres Devtools integration - Added context inspector for better debugging
  • Warning system - Warn user if the canvas has no area
  • Enhanced Nuxt configuration - Include package version in AppHeader
Performance & Reliability
  • Improved texture loading - Added initial value support to useLoader
  • Better event handling - Enhanced pointer events system with occlusion handling
  • Optimized rendering loop - More efficient render loop management

🐛 Bug Fixes

  • Fixed elapsed time retrieval in useCreateRafLoop to use the latest clock property
  • Avoided pierced props to setScalar when numerical
  • Fixed docs SSG 404 issues
  • Removed development exports from package.json
  • Added forgotten ready emit
  • Fixed multiple playground experiences and examples
  • Improved scene object handling in Tres Devtools
  • Enhanced orthographic camera setup and controls
  • Fixed camera manual check and projection matrix updates

🔧 Refactoring & Code Improvements

Major Refactors
  • useRenderer refactoring - Moved renderer logic from useTresContextProvider to useRenderer
  • Context system overhaul - Complete restructuring of the context API
  • Event system rewrite - Based on pmdrs/pointer-events for better performance
  • Camera management - Enhanced camera handling with Three.js Camera type
  • Performance state removal - Removed performance state from useTresContextProvider
Code Quality
  • Improved type safety throughout the codebase
  • Enhanced readability and maintainability
  • Cleaned up unused code and comments
  • Better error handling and edge case management
  • Streamlined component implementations

📚 Documentation Updates

  • Updated documentation to reflect all breaking changes
  • Added migration guides for deprecated composables
  • Enhanced examples in the cookbook
  • Fixed import documentation
  • Added community resources section
  • Updated API documentation for new composables

👥 Contributors

Special thanks to all contributors who made v5.0.0 possible:

🔗 Related Pull Requests

Key PRs that shaped v5.0.0:


This release represents a major milestone for TresJS, bringing significant improvements in performance, developer experience, and API consistency. While there are breaking changes, the new architecture provides a much more robust foundation for future development.

For migration assistance, please refer to our updated documentation and migration guides.

Full Changelog: https://github.com/Tresjs/tres/compare/4.3.6...5.0.0


Configuration

📅 Schedule: Branch creation - Between 12:00 AM and 03:59 AM, only on Monday ( * 0-3 * * 1 ) (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • [ ] If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

renovate[bot] avatar Sep 22 '25 02:09 renovate[bot]

Deploy Preview for vue-devtools-docs canceled.

Name Link
Latest commit 4ec9c60931fffc65b59786c5bbab5b57835e70f1
Latest deploy log https://app.netlify.com/projects/vue-devtools-docs/deploys/691d1190a4c9820009a96655

netlify[bot] avatar Sep 22 '25 02:09 netlify[bot]

Open in StackBlitz

@vue/devtools-applet

npm i https://pkg.pr.new/@vue/devtools-applet@969
@vue/devtools-core

npm i https://pkg.pr.new/@vue/devtools-core@969
@vue/devtools

npm i https://pkg.pr.new/@vue/devtools@969
@vue/devtools-api

npm i https://pkg.pr.new/@vue/devtools-api@969
@vue/devtools-kit

npm i https://pkg.pr.new/@vue/devtools-kit@969
vite-plugin-vue-devtools

npm i https://pkg.pr.new/vite-plugin-vue-devtools@969

commit: 4ec9c60

pkg-pr-new[bot] avatar Sep 22 '25 02:09 pkg-pr-new[bot]