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

chore: fixes #4174 by removing loose ^ selector in internal dependencies #4180

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

benjamind
Copy link
Contributor

Description

Updates all internal version dependencies to use strict versions rather than the looser ^ selector, this is to avoid unexpected installation of newer versions of transitive dependencies.

Related issue(s)

#4174

Motivation and context

When installing a specific version of spectrum-web-components packages we would expect all internal dependencies to be the same requested version. This helps us also avoid unexpected duplication of mismatched versions.

How has this been tested?

The effect of this change was tested in a separate repository by using pnpmfile.js to rewrite the dependencies fields of SWC components as they installed. This fixed all transitive dependency mismatched errors.

Screenshots (if appropriate)

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Chore (minor updates related to the tooling or maintenance of the repository, does not impact compiled assets)

Checklist

  • I have signed the Adobe Open Source CLA.
  • My code follows the code style of this project.
  • If my change required a change to the documentation, I have updated the documentation in this pull request.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • I have reviewed at the Accessibility Practices for this feature, see: Aria Practices

Best practices

This repository uses conventional commit syntax for each commit message; note that the GitHub UI does not use this by default so be cautious when accepting suggested changes. Avoid the "Update branch" button on the pull request and opt instead for rebasing your branch against main.

Copy link

Lighthouse scores

Category Latest (report) Main (report) Branch (report)
Performance 0.95 0.97 0.97
Accessibility 1 1 1
Best Practices 1 1 1
SEO 1 0.92 0.92
PWA 1 1 1
What is this?

Lighthouse scores comparing the documentation site built from the PR ("Branch") to that of the production documentation site ("Latest") and the build currently on main ("Main"). Higher scores are better, but note that the SEO scores on Netlify URLs are artifically constrained to 0.92.

Transfer Size

Category Latest Main Branch
Total 241.245 kB 228.962 kB 228.765 kB 🏆
Scripts 60.379 kB 54.737 kB 54.617 kB 🏆
Stylesheet 48.338 kB 42.324 kB 42.267 kB 🏆
Document 5.816 kB 5.187 kB 5.169 kB 🏆
Third Party 126.712 kB 126.714 kB 126.712 kB

Request Count

Category Latest Main Branch
Total 43 43 43
Scripts 35 35 35
Stylesheet 5 5 5
Document 1 1 1
Third Party 2 2 2

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.

None yet

1 participant