Skip to content

refactor: remove legacy relativePaths handling code#10024

Merged
davidfirst merged 9 commits intomasterfrom
refactor/remove-relativepaths-legacy-code
Oct 6, 2025
Merged

refactor: remove legacy relativePaths handling code#10024
davidfirst merged 9 commits intomasterfrom
refactor/remove-relativepaths-legacy-code

Conversation

@davidfirst
Copy link
Member

@davidfirst davidfirst commented Oct 3, 2025

Summary

Removes unnecessary legacy code for handling in dependencies, which has been obsolete since Harmony (schema 2.0.0+).

Background

Since Harmony, in dependencies is always empty and validated to be so. Any legacy components with would have broken on many other things by now and never use this version.

Changes

  • Version.id(): Removed from hash calculation
  • Dependencies.validate(): Removed complex validation logic (~50 lines)
  • component-diff: Removed diff display function

Safety

The final Version validator still checks that is empty as a safety net, ensuring components with relative imports are caught before reaching the Version object.

Since Harmony (schema 2.0.0+), relativePaths in dependencies is always empty and validated to be so. Legacy components with relativePaths would have broken on many other things by now.

Removed:
- relativePaths from Version.id() hash calculation
- Complex relativePaths validation in Dependencies.validate()
- relativePaths diff display in component-diff

The final Version validator still checks relativePaths is empty as a safety net.
Removed tests for relativePaths validation since it's no longer validated in Dependencies.validate() - relativePaths is always empty for Harmony components and validated at the Version level.
@davidfirst davidfirst enabled auto-merge (squash) October 6, 2025 17:26
@davidfirst davidfirst merged commit 7f1b4db into master Oct 6, 2025
11 checks passed
@davidfirst davidfirst deleted the refactor/remove-relativepaths-legacy-code branch October 6, 2025 18:20
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.

2 participants