Skip to content
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

BREAKING(uuid): remove v1.generate() signature with buf and offset parameters and number[] return type #4877

Merged
merged 5 commits into from
May 31, 2024

Conversation

iuioiua
Copy link
Contributor

@iuioiua iuioiua commented May 29, 2024

This PR removes the optional buf and offset arguments and number[] return type from v1.generate(). These settings are unneeded in almost all cases and gave the function a shape that differed from the other generate() functions within @std/uuid.

@github-actions github-actions bot added the uuid label May 29, 2024
Copy link

codecov bot commented May 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.12%. Comparing base (98c0c80) to head (b858a50).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4877      +/-   ##
==========================================
- Coverage   92.12%   92.12%   -0.01%     
==========================================
  Files         487      487              
  Lines       38747    38745       -2     
  Branches     5391     5388       -3     
==========================================
- Hits        35697    35695       -2     
  Misses       2994     2994              
  Partials       56       56              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@kt3k
Copy link
Member

kt3k commented May 29, 2024

This probably makes sense. Also optional 3 arguments breaks the style guide of the standard library (There should be only one optional argument at most https://docs.deno.com/runtime/manual/references/contributing/style_guide#exported-functions-max-2-args-put-the-rest-into-an-options-object

@iuioiua iuioiua changed the title BREAKING(uuid): simplify v1.generate() BREAKING(uuid): remove v1.generate() signature with buf and offset parameters May 29, 2024
@iuioiua iuioiua changed the title BREAKING(uuid): remove v1.generate() signature with buf and offset parameters BREAKING(uuid): remove v1.generate() signature with buf and offset parameters and number[] return type May 30, 2024
@iuioiua iuioiua marked this pull request as ready for review May 31, 2024 10:02
@iuioiua iuioiua requested a review from kt3k as a code owner May 31, 2024 10:02
Copy link
Member

@kt3k kt3k left a comment

Choose a reason for hiding this comment

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

LGTM

@iuioiua iuioiua merged commit b1684ec into main May 31, 2024
12 checks passed
@iuioiua iuioiua deleted the uuid-rework-v1-generate branch May 31, 2024 11:10
@iuioiua iuioiua mentioned this pull request Jun 2, 2024
10 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants