Conversation
🦋 Changeset detectedLatest commit: b9e4eba 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 |
|
📦 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 |
393ef19 to
06e95eb
Compare
451f14f to
b9e4eba
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit b9e4eba. Configure here.

What/Why/How?
Upgraded typescript version to v6:
module,moduleResolutiontonodenextbaseUrlandpathsabort-controllerbetter-ajv-errorsfrom v1 to v2.Reference
Testing
Other products => https://github.com/Redocly/redocly/pull/22780
e2e => https://github.com/Redocly/redocly/actions/runs/23543471148/job/68536960227?pr=21909
Screenshots (optional)
Check yourself
Security
Note
Medium Risk
Toolchain-level upgrade (TS6 + NodeNext) touches build/typecheck behavior and ESM import resolution across packages, with some
anycasts around Ajv that could mask typing regressions.Overview
Upgrades the monorepo to TypeScript
6.0.2and switches compiler settings tomodule/moduleResolution:nodenextwith a highertarget/lib, plus updatedpathsmapping intsconfig.json.Adjusts code to match NodeNext/ESM requirements: fixes type-only and internal imports to include
.jsentrypoints, updates tests to useimport ... with { type: 'json' }, changesoutdentto named imports, and refactors a few modules to avoid TS6 typing friction (e.g., Ajv instantiation cast toany,Sourceprivate fields moved to#syntax).Bumps validation dependencies used across packages (
@redocly/ajvto8.18.1,better-ajv-errorsto2.0.3) and adds changesets for the resulting patch releases.Reviewed by Cursor Bugbot for commit b9e4eba. Bugbot is set up for automated code reviews on this repo. Configure here.