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

Clean up unused commands #6570

Merged
merged 4 commits into from
Oct 22, 2024
Merged

Clean up unused commands #6570

merged 4 commits into from
Oct 22, 2024

Conversation

bkrmendy
Copy link
Contributor

@bkrmendy bkrmendy commented Oct 21, 2024

Problems

  • AdjustNumberProperty and UpdatePropIfExists command aren't used
  • deleteValuesAtPath and applyValuesAtPath are defined in command runners, but are actually widely used helpers

Fix

  • Delete AdjustNumberProperty and UpdatePropIfExists
  • Move deleteValuesAtPath and applyValuesAtPath into a dedicated utils file

Manual Tests:
I hereby swear that:

  • I opened a hydrogen project and it loaded
  • I could navigate to various routes in Play mode

Copy link
Contributor

github-actions bot commented Oct 21, 2024

Try me

Copy link

relativeci bot commented Oct 21, 2024

#14887 Bundle Size — 57.97MiB (-0.01%).

d3e8ee8(current) vs 916e8b9 master#14883(baseline)

Warning

Bundle contains 70 duplicate packages – View duplicate packages

Bundle metrics  Change 4 changes Improvement 1 improvement
                 Current
#14887
     Baseline
#14883
Improvement  Initial JS 40.96MiB(-0.01%) 40.96MiB
No change  Initial CSS 0B 0B
Change  Cache Invalidation 17.99% 17.88%
No change  Chunks 20 20
No change  Assets 22 22
Change  Modules 4152(-0.02%) 4153
No change  Duplicate Modules 213 213
Change  Duplicate Code 27.34%(+0.04%) 27.33%
No change  Packages 477 477
No change  Duplicate Packages 70 70
Bundle size by type  Change 2 changes Improvement 2 improvements
                 Current
#14887
     Baseline
#14883
Improvement  JS 57.96MiB (-0.01%) 57.97MiB
Improvement  HTML 7.37KiB (-0.25%) 7.39KiB

Bundle analysis reportBranch chore/command-cleanupProject dashboard


Generated by RelativeCIDocumentationReport issue

@bkrmendy bkrmendy marked this pull request as ready for review October 21, 2024 15:28
@bkrmendy bkrmendy changed the title Chore/command cleanup Clean up unused commands Oct 21, 2024
case 'CONVERT_CSS_PERCENT_TO_PX':
case 'CONVERT_TO_ABSOLUTE':
Copy link
Contributor

Choose a reason for hiding this comment

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

is this deliberate?

Copy link
Contributor

@balazsbajorics balazsbajorics left a comment

Choose a reason for hiding this comment

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

nice!

@bkrmendy bkrmendy merged commit 4c0ed00 into master Oct 22, 2024
15 checks passed
liady pushed a commit that referenced this pull request Dec 13, 2024
## Problems
- `AdjustNumberProperty` and `UpdatePropIfExists` command aren't used
- `deleteValuesAtPath` and `applyValuesAtPath` are defined in command
runners, but are actually widely used helpers

## Fix
- Delete `AdjustNumberProperty` and `UpdatePropIfExists`
- Move `deleteValuesAtPath` and `applyValuesAtPath` into a dedicated
utils file

**Manual Tests:**
I hereby swear that:

- [x] I opened a hydrogen project and it loaded
- [x] I could navigate to various routes in Play mode

---------

Co-authored-by: Balazs Bajorics <2226774+balazsbajorics@users.noreply.github.com>
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.

3 participants