Skip to content

Conversation

@aleksanderkatan
Copy link
Contributor

The API was used internally, and wasn't exposed, so there wasn't much to do.

@github-actions
Copy link

github-actions bot commented Dec 22, 2025

pkg.pr.new

packages
Ready to be installed by your favorite package manager ⬇️

https://pkg.pr.new/software-mansion/TypeGPU/typegpu@420cb077126c26c0848a990c2dd92b1b499d2489
https://pkg.pr.new/software-mansion/TypeGPU/@typegpu/noise@420cb077126c26c0848a990c2dd92b1b499d2489
https://pkg.pr.new/software-mansion/TypeGPU/unplugin-typegpu@420cb077126c26c0848a990c2dd92b1b499d2489

benchmark
view benchmark

commit
view commit

Copy link

Copilot AI left a 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.ts into bufferUsage.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.

@aleksanderkatan aleksanderkatan marked this pull request as ready for review December 23, 2025 15:33
Copy link
Contributor

@reczkok reczkok left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹

@aleksanderkatan aleksanderkatan merged commit 599e8ae into main Jan 7, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

chore: Remove the deprecated asUsage API

3 participants