Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
e3d75d6
chore: migrate to the typescript v6
AlbinaBlazhko17 Mar 24, 2026
d38f23f
chore: remove abort-controller external lib
AlbinaBlazhko17 Mar 24, 2026
7bc8629
chore: merge main
AlbinaBlazhko17 Mar 24, 2026
e67e522
chore: refactor any typing
AlbinaBlazhko17 Mar 26, 2026
f193615
chore: update typescript in all packages
AlbinaBlazhko17 Mar 26, 2026
7ac443d
chore: add changesets
AlbinaBlazhko17 Mar 26, 2026
c553fe1
Merge branch 'main' into chore/upgrade-version-of-ts-to-v6
AlbinaBlazhko17 Mar 26, 2026
c9e47ae
chore: add export type directly from index
AlbinaBlazhko17 Mar 26, 2026
3fa10ac
chore: bump version of target
AlbinaBlazhko17 Mar 26, 2026
4baf9ef
chore: changing naming for private fields to visibility in serialization
AlbinaBlazhko17 Mar 26, 2026
136fcc3
chore: update version of ajv
AlbinaBlazhko17 Mar 26, 2026
2eaae59
chore: add changeset
AlbinaBlazhko17 Mar 26, 2026
c37389f
chore: remove changeset for core
AlbinaBlazhko17 Mar 26, 2026
bb83c51
chore: fix ajv import and remove any
AlbinaBlazhko17 Mar 26, 2026
15340b1
Merge branch 'main' into chore/upgrade-version-of-ts-to-v6
AlbinaBlazhko17 Mar 26, 2026
94b6410
chore: revert changes in ajv
AlbinaBlazhko17 Mar 26, 2026
e16486a
chore: fix tests
AlbinaBlazhko17 Mar 26, 2026
752314b
chore: fix lint error
AlbinaBlazhko17 Mar 26, 2026
e4cbb16
chore: merge main
AlbinaBlazhko17 Mar 30, 2026
339beed
chore: replace types for ajv with any
AlbinaBlazhko17 Apr 9, 2026
6881626
Merge branch 'main' into chore/upgrade-version-of-ts-to-v6
AlbinaBlazhko17 Apr 9, 2026
ed5bfa0
fix: tests after changes in ajv
AlbinaBlazhko17 Apr 9, 2026
742b682
chore: update deps
AlbinaBlazhko17 Apr 9, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/all-suns-remain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@redocly/respect-core": patch
---

Updated `better-ajv-errors` to `v2.0.3`.
7 changes: 7 additions & 0 deletions .changeset/cuddly-clouds-knock.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@redocly/respect-core": patch
"@redocly/openapi-core": patch
"@redocly/cli": patch
---

Updated `@redocly/ajv` to `v8.18.1`
5 changes: 5 additions & 0 deletions .changeset/tough-chairs-hunt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@redocly/cli": patch
---

Removed `abort-controller` dependency.
79 changes: 41 additions & 38 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"pegjs": "0.11.0-master.b7b87ea",
"slackify-markdown": "^4.3.1",
"tsx": "^4.19.3",
"typescript": "5.9.3",
"typescript": "6.0.2",
"vitest": "^4.0.18"
},
"lint-staged": {
Expand Down
5 changes: 2 additions & 3 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@
"@redocly/cli-otel": "0.1.2",
"@redocly/openapi-core": "2.26.0",
"@redocly/respect-core": "2.26.0",
"abort-controller": "^3.0.0",
"ajv": "npm:@redocly/ajv@8.18.0",
"ajv": "npm:@redocly/ajv@8.18.1",
"ajv-formats": "^3.0.1",
"colorette": "^1.2.0",
"cookie": "^0.7.2",
Expand Down Expand Up @@ -77,6 +76,6 @@
"@types/semver": "^7.5.0",
"@types/set-cookie-parser": "2.4.10",
"@types/yargs": "17.0.32",
"typescript": "5.9.3"
"typescript": "6.0.2"
Comment thread
cursor[bot] marked this conversation as resolved.
Comment thread
cursor[bot] marked this conversation as resolved.
}
}
2 changes: 1 addition & 1 deletion packages/cli/src/__tests__/commands/build-docs.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { createConfig } from '@redocly/openapi-core';
import * as fs from 'node:fs';
import { renderToString } from 'react-dom/server';
import { createStore, loadAndBundleSpec } from 'redoc';
import { type OpenAPISpec } from 'redoc/typings/types';
import { type OpenAPISpec } from 'redoc/typings/types/index.js';

import { handlerBuildCommand } from '../../commands/build-docs/index.js';
import { type BuildDocsArgv } from '../../commands/build-docs/types.js';
Expand Down
1 change: 0 additions & 1 deletion packages/cli/src/__tests__/fetch-with-timeout.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import AbortController from 'abort-controller';
Comment thread
tatomyr marked this conversation as resolved.
import { Agent, ProxyAgent } from 'undici';

import fetchWithTimeout from '../utils/fetch-with-timeout.js';
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/__tests__/utils.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import {
type Config,
type RawUniversalApiConfig,
type ResolvedApiConfig,
type ResolveConfig,
} from '@redocly/openapi-core';
import * as openapiCore from '@redocly/openapi-core';
import { type ResolveConfig } from '@redocly/openapi-core/lib/config/types.js';
import { blue, red, yellow } from 'colorette';
import * as glob from 'glob';
import * as fs from 'node:fs';
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/commands/respect/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { dirname, basename } from 'node:path';

import { jsonStringifyWithArrayBuffer } from '../../utils/json-stringify-with-array-buffer.js';
import { readEnvVariables } from '../../utils/read-env-variables.js';
import { type CommandArgs } from '../../wrapper';
import { type CommandArgs } from '../../wrapper.js';
import { withConnectionClient } from './connection-client.js';
import { displayFilesSummaryTable } from './display-files-summary-table.js';
import { createHarLog } from './har-logs/har-logs.js';
Expand Down
6 changes: 3 additions & 3 deletions packages/cli/src/commands/split/__tests__/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import * as utils from '../../../utils/miscellaneous.js';
import { handleSplit } from '../index.js';
import { type ComponentsFiles } from '../types.js';
import { iteratePathItems } from '../utils/iterate-path-items.js';
import samplesJson from './fixtures/samples.json';
import specJson from './fixtures/spec.json';
import webhooksJson from './fixtures/webhooks.json';
import samplesJson from './fixtures/samples.json' with { type: 'json' };
import specJson from './fixtures/spec.json' with { type: 'json' };
import webhooksJson from './fixtures/webhooks.json' with { type: 'json' };

describe('split', () => {
const openapiDir = 'output/split-test';
Expand Down
6 changes: 3 additions & 3 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@
"Roman Hotsiy <roman@redocly.com> (https://redocly.com/)"
],
"dependencies": {
"@redocly/ajv": "^8.18.0",
"@redocly/ajv": "^8.18.1",
"@redocly/config": "^0.46.1",
"ajv": "npm:@redocly/ajv@8.18.0",
"ajv": "npm:@redocly/ajv@8.18.1",
"ajv-formats": "^3.0.1",
"colorette": "^1.2.0",
"js-levenshtein": "^1.1.6",
Expand All @@ -69,6 +69,6 @@
"@types/picomatch": "^4.0.2",
"@types/pluralize": "^0.0.29",
"json-schema-to-ts": "^3.1.0",
"typescript": "5.9.3"
"typescript": "6.0.2"
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as path from 'node:path';
import { fileURLToPath } from 'node:url';
import outdent from 'outdent';
import { outdent } from 'outdent';

import { parseYamlToDocument, yamlSerializer } from '../../__tests__/utils.js';
import { bundleDocument } from '../bundle/bundle-document.js';
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/__tests__/bundle-oas.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as path from 'node:path';
import { fileURLToPath } from 'node:url';
import outdent from 'outdent';
import { outdent } from 'outdent';

import { parseYamlToDocument, yamlSerializer } from '../../__tests__/utils.js';
import { bundleOas, createEmptyRedoclyConfig } from '../bundle/bundle-oas.js';
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/__tests__/bundle.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as path from 'node:path';
import { fileURLToPath } from 'node:url';
import outdent from 'outdent';
import { outdent } from 'outdent';

import { parseYamlToDocument, yamlSerializer } from '../../__tests__/utils.js';
import { bundleDocument } from '../bundle/bundle-document.js';
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/__tests__/ref-utils.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import outdent from 'outdent';
import { outdent } from 'outdent';

import { parseYamlToDocument } from '../../__tests__/utils.js';
import { createConfig } from '../config/index.js';
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/__tests__/walk.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import path from 'node:path';
import { fileURLToPath } from 'node:url';
import outdent from 'outdent';
import { outdent } from 'outdent';

import { parseYamlToDocument, replaceSourceWithRef } from '../../__tests__/utils.js';
import { createConfig } from '../config/index.js';
Expand Down
16 changes: 12 additions & 4 deletions packages/core/src/config/group-assertion-rules.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
import type { RawAssertion, AssertionDefinition, Assertion } from '../rules/common/assertions';
import type { Asserts, AssertionFn } from '../rules/common/assertions/asserts';
import { asserts, buildAssertCustomFunction } from '../rules/common/assertions/asserts.js';
import {
asserts,
buildAssertCustomFunction,
type Asserts,
type AssertionFn,
} from '../rules/common/assertions/asserts.js';
import type {
RawAssertion,
AssertionDefinition,
Assertion,
} from '../rules/common/assertions/index.js';
import { isPlainObject } from '../utils/is-plain-object.js';
import type { RawGovernanceConfig, RuleConfig, Plugin } from './types';
import type { RawGovernanceConfig, RuleConfig, Plugin } from './types.js';

export function groupAssertionRules(
config: RawGovernanceConfig,
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/errors/yaml-parse-error.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Source } from '../resolve';
import type { Source } from '../resolve.js';

const jsYamlErrorLineColRegexp = /\((\d+):(\d+)\)$/;

Expand Down
1 change: 1 addition & 0 deletions packages/core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export {
type RuleConfig,
type RuleSeverity,
type IgnoreConfig,
type ResolveConfig,
} from './config/index.js';
export * from './config/constants.js';
export {
Expand Down
Loading
Loading