ref(core): Consolidate getOperationName into one shared utility#19971
ref(core): Consolidate getOperationName into one shared utility#19971nicohrubec merged 5 commits intodevelopfrom
Conversation
Semver Impact of This PR🟢 Patch (bug fixes) 📋 Changelog PreviewThis is how your changes will appear in the changelog. New Features ✨Deps
Other
Bug Fixes 🐛Cloudflare
Core
Deps
Other
Internal Changes 🔧Core
Deps Dev
Nuxt
Other
🤖 This preview updates automatically when you update the PR. |
size-limit report 📦
|
node-overhead report 🧳Note: This is a synthetic benchmark with a minimal express app and does not necessarily reflect the real-world performance impact in an application.
|
4649131 to
1a368b1
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
JPeer264
left a comment
There was a problem hiding this comment.
looks cleaner and has less overhead. LGTM

We have this function in both the shared utilities (used by
google-genaiandanthropic) and inopenaiwith slightly different names for no apparent reason. We also had a separate helper that just prependsgen_aito the operation name in both cases, which seems unnecessary. Doing some cleanup hereCloses #19978 (added automatically)