Conversation
🦋 Changeset detectedLatest commit: 25ec1cc The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
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 |
|
|
📦 A new experimental 🧪 version v0.0.0-snapshot.1774371282 of Redocly CLI has been published for testing. Install with NPM: npm install @redocly/cli@0.0.0-snapshot.1774371282
# or
npm install @redocly/openapi-core@0.0.0-snapshot.1774371282
# or
npm install @redocly/respect-core@0.0.0-snapshot.1774371282 |
| "require": "./lib/bundle/bundle-oas.js", | ||
| "types": "./lib/bundle/bundle-oas.d.ts" | ||
| }, | ||
| "./lib/config/types.js": { |
There was a problem hiding this comment.
I'm not in favour of adding additional export endpoint. It's better to maintain a single one (plus one for bundle-oas). If needed, it's better to reexport the property from the index file.
There was a problem hiding this comment.
Yeah, will do it
| "sourceMap": true, | ||
| "module": "ESNext", | ||
| "module": "nodenext", | ||
| "target": "ES2021", |
There was a problem hiding this comment.
Let's also try bumping the target (not necessarily in this PR though).
There was a problem hiding this comment.
For sure, let me do it.
| "@redocly/openapi-core": patch | ||
| --- | ||
|
|
||
| Added export for `./lib/config/types.js` to avoid errors in import. |
There was a problem hiding this comment.
Oh, i thought we have package.json in lib/ folder, but we don't. I will change this changeset to export new type.
|
📦 A new experimental 🧪 version v0.0.0-snapshot.1774861593 of Redocly CLI has been published for testing. Install with NPM: npm install @redocly/cli@0.0.0-snapshot.1774861593
# or
npm install @redocly/openapi-core@0.0.0-snapshot.1774861593
# or
npm install @redocly/respect-core@0.0.0-snapshot.1774861593 |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 3 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit ed5bfa0. Configure here.
|
📦 A new experimental 🧪 version v0.0.0-snapshot.1776870885 of Redocly CLI has been published for testing. Install with NPM: npm install @redocly/cli@0.0.0-snapshot.1776870885
# or
npm install @redocly/openapi-core@0.0.0-snapshot.1776870885
# or
npm install @redocly/respect-core@0.0.0-snapshot.1776870885 |

What/Why/How?
Upgraded typescript version to v6:
module,moduleResolutiontonodenextbaseUrlandpathsabort-controllerbetter-ajv-errorsfrom v1 to v2.Reference
Second part of #2618
Testing
e2e => https://github.com/Redocly/redocly/actions/runs/23543471148/job/68536960227?pr=21909
Screenshots (optional)
Check yourself
Security
Note
Medium Risk
Broad TypeScript/ESM module-resolution changes and dependency upgrades can cause build or runtime import/typing regressions across packages, though the changes are mostly mechanical and covered by tests.
Overview
Migrates the monorepo to TypeScript 6 by updating
typescriptto6.0.2and switching the compiler tomodule/moduleResolution: nodenextwith a neweres2023target and updatedpathsmapping.Updates runtime/tooling dependencies used for schema validation (
@redocly/ajv8.18.1,better-ajv-errors2.0.3) and removes the CLI’sabort-controllerdependency in favor of the built-inAbortController. A wide set of imports were adjusted for NodeNext/ESM correctness (explicit.jsextensions, JSON import assertions,outdentnamed import), and some AJV instantiations were loosened withas anycasts to satisfy updated typings.Reviewed by Cursor Bugbot for commit 25ec1cc. Bugbot is set up for automated code reviews on this repo. Configure here.