fix: move @cypress/schematic npm registry query to https #32390
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Additional details
@cypress/schematic was querying the npm registry
registry.npmjs.org
using thehttp
protocol.Since Oct 4, 2021, the npm registry requires TLS
1.2
, see The npm registry is deprecating TLS 1.0 and TLS 1.1. Attempting to usehttp
does not meet this requirement.The attempt to query the npm package record http://registry.npmjs.org/cypress was failing and instead Cypress installation fell back to using the literal version
latest
, also leaving this value in the updatedpackage.json
ifng add @cypress/schematic
was invoked.npm/cypress-schematic/src/schematics/utils/index.ts is updated to query the npm registry using
https
instead ofhttp
.Steps to test
On Ubuntu
24.04.3
LTS, execute:Confirm that cypress shows a numerical version, not the literal text
latest
How has the user experience changed?
When following the instructions in npm/cypress-schematic > README > Adding E2E and Component Testing using
ng add @cypress/schematic
, Cypress is saved to thedevDependencies
key section of thepackage.json
file with its exact latest version, for example:instead of
PR Tasks
cypress-documentation
? Only mentioned in https://docs.cypress.io/app/guides/migration/protractor-to-cypress and no changes necessarytype definitions
?