feat(dynamic-variables): generate UUID v7 for $randomUUID - #9043
feat(dynamic-variables): generate UUID v7 for $randomUUID#9043Max-Reisinger wants to merge 2 commits into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review. WalkthroughThe built-in ChangesUUID v7 dynamic variable
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to This localized change updates the built-in random UUID generation to UUID v7, with no actionable merge-blocking risk remaining beyond normal checks and review. Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Description
Updates the built-in
{{$randomUUID}}dynamic variable to generate UUID version 7 values.Problem
{{$randomUUID}}currently usesfaker.string.uuid(), which generates UUID v4 values. This prevents users from using a time-ordered UUID v7 through the built-in dynamic variable, including in WebSocket messages.Fixes #9040
Fix
uuid@^10.0.0and its TypeScript definitions to thebruno-commonbuild dependencies.faker.string.uuid()call forrandomUUIDwithuuid.v7().{{$guid}}behavior unchanged.Testing
npm test --workspace=packages/bruno-common -- --runInBandnpm run lint -- packages/bruno-common/src/utils/faker-functions.ts packages/bruno-common/src/utils/faker-functions.spec.tsnpm run build --workspace=packages/bruno-commonScreenshots
Not applicable. This change does not modify the UI.
Contribution Checklist:
Summary by CodeRabbit