Skip to content

chore: refactor dlv util to use .reduce - #16261

Closed
gameroman wants to merge 1 commit into
withastro:mainfrom
gameroman:refactor-dlv
Closed

gameroman wants to merge 1 commit into
withastro:mainfrom
gameroman:refactor-dlv

Conversation

@gameroman

Copy link
Copy Markdown
Contributor

Changes

Refactor dlv util to use a simpler .reduce instead of manual loop and assignment

Testing

Tests still pass

Docs

N/A

@changeset-bot

changeset-bot Bot commented Apr 8, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 2635e8b

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions github-actions Bot added the pkg: astro Related to the core `astro` package (scope) label Apr 8, 2026
@gameroman
gameroman marked this pull request as ready for review April 8, 2026 12:42

@ematipico ematipico left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can you add a small unit test so that we can cover it? Ideally you use a TDD approach. Test the result before the refactor, and make sure that the refactor yields the same result.

You can add a typescipt test in packages/astro/units

@codspeed

codspeed Bot commented Apr 8, 2026 •

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 18 untouched benchmarks


Comparing gameroman:refactor-dlv (2635e8b) with main (c62516b)1

Open in CodSpeed

Footnotes

  1. No successful run was found on main (8ddb800) during the generation of this report, so c62516b was used instead as the comparison base. There might be some changes unrelated to this pull request in this report. ↩

@gameroman gameroman closed this Apr 24, 2026
@gameroman
gameroman deleted the refactor-dlv branch May 5, 2026 12:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pkg: astro Related to the core `astro` package (scope)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants