-
-
Notifications
You must be signed in to change notification settings - Fork 45
chore: Remove the deprecated asUsage api
#1999
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
pkg.pr.new packages benchmark commit |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR removes the deprecated asUsage API functions (asMutable, asReadonly, asUniform) that were previously marked as deprecated. The functions have been renamed to simpler names (mutable, readonly, uniform) and the old test file has been deleted with its tests consolidated into the main buffer usage test file.
- Renamed deprecated buffer usage functions to shorter names
- Removed deprecated JSDoc annotations and updated error messages
- Consolidated test coverage by moving tests from
asUsage.test.tsintobufferUsage.test.ts
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| packages/typegpu/src/core/buffer/bufferUsage.ts | Renamed asMutable, asReadonly, asUniform to mutable, readonly, uniform; removed deprecation comments and updated error messages |
| packages/typegpu/src/core/buffer/buffer.ts | Updated imports to use the new function names |
| packages/typegpu/tests/asUsage.test.ts | Deleted the entire test file as part of consolidation |
| packages/typegpu/tests/bufferUsage.test.ts | Added tests for buffer usage validation that were previously in the deleted file |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
reczkok
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧹
The API was used internally, and wasn't exposed, so there wasn't much to do.