Closed malis42 closed 2 weeks ago
Latest commit: 68a3f637bb03a3b6d0dde0bdb8f29a56aecd3e99
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
Command | Mean [s] | Min [s] | Max [s] | Relative |
---|---|---|---|---|
redocly lint packages/core/src/benchmark/benches/rebilly.yaml |
1.003 Β± 0.048 | 0.969 | 1.135 | 1.01 Β± 0.05 |
redocly-next lint packages/core/src/benchmark/benches/rebilly.yaml |
0.990 Β± 0.016 | 0.971 | 1.025 | 1.00 |
St.:grey_question: |
Category | Percentage | Covered / Total |
---|---|---|---|
π‘ | Statements | 77.25% | 4499/5824 |
π‘ | Branches | 67.5% | 2478/3671 |
π‘ | Functions | 70.9% | 748/1055 |
π‘ | Lines | 77.45% | 4234/5467 |
747 tests passing in 105 suites.
Report generated by π§ͺjest coverage report action from 68a3f637bb03a3b6d0dde0bdb8f29a56aecd3e99
What/Why/How?
Adding https-proxy-agent package to fix issues with requests when using CLI behind proxy. Create better mechanism for handling
env.REDOCLY_DOMAIN
usage in few modules.Now if you need to run the CLI tool behind a proxy, you can use the HTTP_PROXY and HTTPS_PROXY environment variables to configure the proxy settings.
https-proxy-agent
package was used fornode-fetch
requests. Now we pass agent for everyfetchWithTimeout
request, as well as other regularfetch
request.After encountering problems with some of the packages from
https-proxy-agent
dependencies, we had to ignore this package for browser environment, by modyfingpackages/core/package.json
like so:This is 3rd attempt to release this fix after previous two were reverted: https://github.com/Redocly/redocly-cli/pull/1461 and https://github.com/Redocly/redocly-cli/pull/1433
Reference
Reverts Redocly/redocly-cli#1468
Resolves https://github.com/Redocly/redocly-cli/issues/1404 Fixes https://github.com/Redocly/redocly-cli/issues/529 Fixes https://github.com/Redocly/redocly-cli/issues/1146 Resolves https://github.com/Redocly/redocly-cli/pull/1433
Testing
Fixed unit tests. Tested with few CLI commands:
push
,lint
etc.Screenshots (optional)
n/a
Has code been changed?
Yes
Check yourself
Security