Continuous Releases from main
Pin dependencies (#179)
* Pin dependencies
* Types fixes
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Mark Lundin <mlundin@snapchat.com>2 hours ago2d6eb98
Add deviceTypes API for WebGPU support (#176)
* Add deviceTypes API for WebGPU support and update documentation
- Introduced a new `deviceTypes` prop in the Application component to specify graphics device types, allowing for fallback options between WebGPU and WebGL2.
- Updated the Application documentation to include details on the new `deviceTypes` prop and its usage.
- Enhanced the Application component to initialize the graphics device based on the specified device types.
* changeset
* Refactor Application tests to include deviceTypes prop
- Updated Application component tests to pass the new deviceTypes prop, ensuring compatibility with the latest graphics device initialization.
- Modified Container, Entity, Screen, and Script component tests to include deviceTypes for consistent testing across components.
- Cleaned up unused code and improved test structure for better readability and maintainability.
* Fix import path for GraphicsDeviceOptions in create-graphics-device.ts
* Update Application component to default deviceTypes to WebGL2 and optimize graphics device initialization
- Set default value for deviceTypes to [DEVICETYPE_WEBGL2] in the ApplicationWithoutCanvas component.
- Introduced memoization for deviceTypes to enhance performance during graphics device creation.
- Updated graphics device initialization to use memoized deviceTypes for improved consistency.
* Enhance Application component with deviceTypes validation and testing
- Added a test case to warn when an invalid deviceTypes prop is provided, ensuring proper validation.
- Refactored the Application component to improve graphics device initialization and memoization of deviceTypes.
- Updated the create-graphics-device utility to allow explicit device type specification without injecting additional devices.
- Adjusted validation error messages for deviceTypes to provide clearer feedback on incorrect usage.
* Update documentation for deviceTypes prop in Application component
- Clarified the description of the deviceTypes prop to specify its role in determining the graphics device order.
- Added information about the "null" device type for testing purposes, enhancing the documentation's comprehensiveness.yesterday894ca08