redocly-cli
redocly-cli copied to clipboard
fix: loadConfig function should work in browser
What/Why/How?
When using loadConfig function to get the config for the browser environment, we get an error: "path.extname is not a function"
Reference
Testing
Screenshots (optional)
Check yourself
- [ ] Code changed? - Tested with Redoc/Realm/Reunite (internal)
- [ ] All new/updated code is covered by tests
- [ ] New package installed? - Tested in different environments (browser/node)
Security
- [x] The security impact of the change has been considered
- [x] Code follows company security practices and guidelines
🦋 Changeset detected
Latest commit: 545c06f8aded99f4fb97eab7e79449bc92569cbe
The changes in this PR will be included in the next version bump.
This PR includes changesets to release 3 packages
| Name | Type |
|---|---|
| @redocly/openapi-core | Patch |
| @redocly/cli | Patch |
| @redocly/respect-core | Patch |
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.424 ± 0.024 | 1.381 | 1.459 | 1.00 |
redocly-next lint packages/core/src/benchmark/benches/rebilly.yaml |
1.436 ± 0.035 | 1.390 | 1.498 | 1.01 ± 0.03 |