fix(deps): update dependency @tresjs/core to v5
This PR contains the following updates:
| Package | Change | Age | Confidence |
|---|---|---|---|
| @tresjs/core (source) | ^4.3.6 -> ^5.2.0 |
Release Notes
Tresjs/tres (@tresjs/core)
v5.2.0
🚀 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
🩹 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
- Updated @tresjs/eslint-config to 1.5.1
❤️ Thank You
- alvarosabu @alvarosabu
v5.1.0
🚀 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
- Updated @tresjs/eslint-config to 1.5.0
❤️ Thank You
- alvarosabu @alvarosabu
- colinscz @colinscz
v5.0.3
🧱 Updated Dependencies
- Updated @tresjs/eslint-config to 1.4.1
- Updated @tresjs/leches to 1.0.0
v5.0.2
Bug Fixes
What's Changed
- fix: indicate ESM-only by @TheAlexLichter in #1091
New Contributors
- @TheAlexLichter made their first contribution in #1091
Full Changelog: https://github.com/Tresjs/tres/compare/5.0.1...5.0.2
v5.0.1
Bug Fixes
What's Changed
- chore: update dependencies in pnpm-lock.yaml and package.json by @alvarosabu in #1087
- docs: update README.md with new banner image URL by @alvarosabu in #1088
- fix: removed postinstall script by @alvarosabu in #1089
Full Changelog: https://github.com/Tresjs/tres/compare/5.0.0...5.0.1
v5.0.0
⚠ 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
isReadyin the renderer in the context - onTresReady is no longer available -
renderer.isReadyshould 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
EmitEventNameandEmitEventFnare 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:
- #965 - v5 release
- #1035 - useLoop and useRenderLoop refactoring
- #1032 - Expose render mode
- #1029 - WebGPU native support
- #1022 - Refactor useRenderer
- #1017 - Introduce useTres composable
- #1013 - Add context inspector devtools
- #1008 - Remove useTexture
- #1007 - Add initial value support to useLoader
- #1004 - Context camera is now a state
- #1000 - Remove useTresReady
- #999 - Removal of emit from useTresContextProvider
- #993 - Move renderer logic to useRenderer
- #990 - Deprecate useSeek composable
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.
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 |
@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