Skip to content

Commit 62cb7e0

Browse files
authored
Merge pull request #368 from OpenAPI-Qraft/chore/ducsaurus-deps-update
chore: update docusaurus dependencies
2 parents 5b4d714 + 1a41b18 commit 62cb7e0

File tree

16 files changed

+1670
-5612
lines changed

16 files changed

+1670
-5612
lines changed

.changeset/sixty-singers-see.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
---

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"@changesets/cli": "^2.28.1",
1515
"@ianvs/prettier-plugin-sort-imports": "^4.3.1",
1616
"knip": "^5.62.0",
17-
"prettier": "^3.3.3",
17+
"prettier": "^3.7.3",
1818
"turbo": "^2.1.2",
1919
"typescript": "^5.6.2"
2020
},

packages/openapi-typescript-plugin/src/plugin.test.ts

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,8 @@ describe('openapi-typescript types generation', () => {
1010
);
1111

1212
test('no extra options', async () => {
13-
const { QraftCommand } = await import(
14-
'@openapi-qraft/plugin/lib/QraftCommand'
15-
);
13+
const { QraftCommand } =
14+
await import('@openapi-qraft/plugin/lib/QraftCommand');
1615
const { plugin } = await import('./plugin.js');
1716
const command = new QraftCommand();
1817
plugin.setupCommand(command);
@@ -31,9 +30,8 @@ describe('openapi-typescript types generation', () => {
3130
});
3231

3332
test('with extra options', async () => {
34-
const { QraftCommand } = await import(
35-
'@openapi-qraft/plugin/lib/QraftCommand'
36-
);
33+
const { QraftCommand } =
34+
await import('@openapi-qraft/plugin/lib/QraftCommand');
3735
const { plugin } = await import('./plugin.js');
3836
const command = new QraftCommand();
3937
plugin.setupCommand(command);
@@ -57,9 +55,8 @@ describe('openapi-typescript types generation', () => {
5755
});
5856

5957
test('with --explicit-component-exports', async () => {
60-
const { QraftCommand } = await import(
61-
'@openapi-qraft/plugin/lib/QraftCommand'
62-
);
58+
const { QraftCommand } =
59+
await import('@openapi-qraft/plugin/lib/QraftCommand');
6360
const { plugin } = await import('./plugin.js');
6461
const command = new QraftCommand();
6562
plugin.setupCommand(command);
@@ -83,9 +80,8 @@ describe('openapi-typescript types generation', () => {
8380
});
8481

8582
test('with --explicit-component-exports and --enum', async () => {
86-
const { QraftCommand } = await import(
87-
'@openapi-qraft/plugin/lib/QraftCommand'
88-
);
83+
const { QraftCommand } =
84+
await import('@openapi-qraft/plugin/lib/QraftCommand');
8985
const { plugin } = await import('./plugin.js');
9086
const command = new QraftCommand();
9187
plugin.setupCommand(command);

packages/react-client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"jscodeshift": "^17.0.0",
4444
"jsdom": "^26.0.0",
4545
"msw": "^2.7.0",
46-
"prettier": "^3.3.3",
46+
"prettier": "^3.7.3",
4747
"query-string": "^8.2.0",
4848
"react": "^19.0.0",
4949
"react-dom": "^19.0.0",

packages/react-client/src/Unstable_QraftSecureRequestFn.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@ interface QraftSecureRequestFnBaseProps<TRequestFn extends RequestFn> {
2323
securitySchemes: SecuritySchemeHandlers<string>;
2424
}
2525

26-
export interface QraftSecureRequestFnProps<TRequestFn extends RequestFn>
27-
extends QraftSecureRequestFnBaseProps<TRequestFn> {
26+
export interface QraftSecureRequestFnProps<
27+
TRequestFn extends RequestFn,
28+
> extends QraftSecureRequestFnBaseProps<TRequestFn> {
2829
children(secureRequestFn: TRequestFn): ReactNode;
2930
queryClient?: QueryClient;
3031
}

packages/react-client/src/qraftAPIClient.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ export interface CreateAPIBasicQueryClientOptions {
2222
}
2323

2424
export interface CreateAPIQueryClientOptions
25-
extends CreateAPIBasicClientOptions,
26-
CreateAPIBasicQueryClientOptions {}
25+
extends CreateAPIBasicClientOptions, CreateAPIBasicQueryClientOptions {}
2726

2827
/**
2928
* @deprecated use `CreateAPIClientOptions` instead

packages/tanstack-query-react-plugin/src/plugin.spec.ts

Lines changed: 26 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,8 @@ describe('TanStack Query React Client Generation', () => {
1010

1111
describe('--export-openapi-types --explicit-import-extensions --filter-services <blob>', () => {
1212
beforeAll(async () => {
13-
const { QraftCommand } = await import(
14-
'@openapi-qraft/plugin/lib/QraftCommand'
15-
);
13+
const { QraftCommand } =
14+
await import('@openapi-qraft/plugin/lib/QraftCommand');
1615
const { plugin } = await import('./plugin.js');
1716
const command = new QraftCommand();
1817
plugin.setupCommand(command);
@@ -74,9 +73,8 @@ describe('TanStack Query React Client Generation', () => {
7473

7574
describe('no "--export-openapi-types"', () => {
7675
beforeAll(async () => {
77-
const { QraftCommand } = await import(
78-
'@openapi-qraft/plugin/lib/QraftCommand'
79-
);
76+
const { QraftCommand } =
77+
await import('@openapi-qraft/plugin/lib/QraftCommand');
8078
const { plugin } = await import('./plugin.js');
8179
const command = new QraftCommand();
8280
plugin.setupCommand(command);
@@ -102,9 +100,8 @@ describe('TanStack Query React Client Generation', () => {
102100

103101
describe('--openapi-types-import-path *.d.ts', () => {
104102
beforeAll(async () => {
105-
const { QraftCommand } = await import(
106-
'@openapi-qraft/plugin/lib/QraftCommand'
107-
);
103+
const { QraftCommand } =
104+
await import('@openapi-qraft/plugin/lib/QraftCommand');
108105
const { plugin } = await import('./plugin.js');
109106
const command = new QraftCommand();
110107
plugin.setupCommand(command);
@@ -131,9 +128,8 @@ describe('TanStack Query React Client Generation', () => {
131128

132129
describe('--openapi-types-import-path *.ts', () => {
133130
beforeAll(async () => {
134-
const { QraftCommand } = await import(
135-
'@openapi-qraft/plugin/lib/QraftCommand'
136-
);
131+
const { QraftCommand } =
132+
await import('@openapi-qraft/plugin/lib/QraftCommand');
137133
const { plugin } = await import('./plugin.js');
138134
const command = new QraftCommand();
139135
plugin.setupCommand(command);
@@ -160,9 +156,8 @@ describe('TanStack Query React Client Generation', () => {
160156

161157
describe('--explicit-import-extensions .ts --openapi-types-import-path ./openapi.d.ts', () => {
162158
beforeAll(async () => {
163-
const { QraftCommand } = await import(
164-
'@openapi-qraft/plugin/lib/QraftCommand'
165-
);
159+
const { QraftCommand } =
160+
await import('@openapi-qraft/plugin/lib/QraftCommand');
166161
const { plugin } = await import('./plugin.js');
167162
const command = new QraftCommand();
168163
plugin.setupCommand(command);
@@ -191,9 +186,8 @@ describe('TanStack Query React Client Generation', () => {
191186

192187
describe('--operation-predefined-parameters <...patterns> --explicit-import-extensions --openapi-types-import-path ./openapi.d.ts', () => {
193188
beforeAll(async () => {
194-
const { QraftCommand } = await import(
195-
'@openapi-qraft/plugin/lib/QraftCommand'
196-
);
189+
const { QraftCommand } =
190+
await import('@openapi-qraft/plugin/lib/QraftCommand');
197191
const { plugin } = await import('./plugin.js');
198192
const command = new QraftCommand();
199193
plugin.setupCommand(command);
@@ -229,9 +223,8 @@ describe('TanStack Query React Client Generation', () => {
229223

230224
describe('--override-import-type <...patterns> --operation-predefined-parameters <...patterns> --create-api-client-fn <...patterns>', () => {
231225
beforeAll(async () => {
232-
const { QraftCommand } = await import(
233-
'@openapi-qraft/plugin/lib/QraftCommand'
234-
);
226+
const { QraftCommand } =
227+
await import('@openapi-qraft/plugin/lib/QraftCommand');
235228
const { plugin } = await import('./plugin.js');
236229
const command = new QraftCommand();
237230
plugin.setupCommand(command);
@@ -314,9 +307,8 @@ describe('TanStack Query React Client Generation', () => {
314307

315308
describe('--queryable-write-operations', () => {
316309
beforeAll(async () => {
317-
const { QraftCommand } = await import(
318-
'@openapi-qraft/plugin/lib/QraftCommand'
319-
);
310+
const { QraftCommand } =
311+
await import('@openapi-qraft/plugin/lib/QraftCommand');
320312
const { plugin } = await import('./plugin.js');
321313
const command = new QraftCommand();
322314
plugin.setupCommand(command);
@@ -355,9 +347,8 @@ describe('TanStack Query React Client Generation', () => {
355347

356348
describe('--create-api-client-fn creates multiple clients', () => {
357349
beforeAll(async () => {
358-
const { QraftCommand } = await import(
359-
'@openapi-qraft/plugin/lib/QraftCommand'
360-
);
350+
const { QraftCommand } =
351+
await import('@openapi-qraft/plugin/lib/QraftCommand');
361352
const { plugin } = await import('./plugin.js');
362353
const command = new QraftCommand();
363354
plugin.setupCommand(command);
@@ -400,9 +391,8 @@ describe('TanStack Query React Client Generation', () => {
400391

401392
describe('--create-api-client-fn with specific callbacks and custom filename', () => {
402393
beforeAll(async () => {
403-
const { QraftCommand } = await import(
404-
'@openapi-qraft/plugin/lib/QraftCommand'
405-
);
394+
const { QraftCommand } =
395+
await import('@openapi-qraft/plugin/lib/QraftCommand');
406396
const { plugin } = await import('./plugin.js');
407397
const command = new QraftCommand();
408398
plugin.setupCommand(command);
@@ -434,9 +424,8 @@ describe('TanStack Query React Client Generation', () => {
434424

435425
describe('--create-api-client-fn with "all" value', () => {
436426
beforeAll(async () => {
437-
const { QraftCommand } = await import(
438-
'@openapi-qraft/plugin/lib/QraftCommand'
439-
);
427+
const { QraftCommand } =
428+
await import('@openapi-qraft/plugin/lib/QraftCommand');
440429
const { plugin } = await import('./plugin.js');
441430
const command = new QraftCommand();
442431
plugin.setupCommand(command);
@@ -468,9 +457,8 @@ describe('TanStack Query React Client Generation', () => {
468457

469458
describe('--create-api-client-fn with "none" value', () => {
470459
beforeAll(async () => {
471-
const { QraftCommand } = await import(
472-
'@openapi-qraft/plugin/lib/QraftCommand'
473-
);
460+
const { QraftCommand } =
461+
await import('@openapi-qraft/plugin/lib/QraftCommand');
474462
const { plugin } = await import('./plugin.js');
475463
const command = new QraftCommand();
476464
plugin.setupCommand(command);
@@ -502,9 +490,8 @@ describe('TanStack Query React Client Generation', () => {
502490

503491
describe('default behavior (no --create-api-client-fn option)', () => {
504492
beforeAll(async () => {
505-
const { QraftCommand } = await import(
506-
'@openapi-qraft/plugin/lib/QraftCommand'
507-
);
493+
const { QraftCommand } =
494+
await import('@openapi-qraft/plugin/lib/QraftCommand');
508495
const { plugin } = await import('./plugin.js');
509496
const command = new QraftCommand();
510497
plugin.setupCommand(command);

packages/tanstack-query-react-plugin/src/ts-factory/getServiceFactory.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -643,8 +643,8 @@ const isSeparateParametersOperation = (
643643
) =>
644644
Boolean(
645645
options.queryableWriteOperations &&
646-
operation.requestBody &&
647-
!isReadOnlyOperation(operation)
646+
operation.requestBody &&
647+
!isReadOnlyOperation(operation)
648648
);
649649

650650
const getOperationDataTypeName = (operation: ServiceOperation) =>

packages/tanstack-query-react-types/src/service-operation/ServiceOperation.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ export interface ServiceOperationQuery<
3232
TData,
3333
TParams,
3434
TError,
35-
> extends ServiceOperationUseQuery<TSchema, TData, TParams, TError>,
35+
>
36+
extends
37+
ServiceOperationUseQuery<TSchema, TData, TParams, TError>,
3638
ServiceOperationUseQueries<TSchema, TData, TParams, TError>,
3739
ServiceOperationUseSuspenseQueries<TSchema, TData, TParams, TError>,
3840
ServiceOperationUseInfiniteQuery<TSchema, TData, TParams, TError>,
@@ -69,7 +71,9 @@ export interface ServiceOperationMutation<
6971
TData,
7072
TParams,
7173
TError,
72-
> extends ServiceOperationUseMutation<TSchema, TBody, TData, TParams, TError>,
74+
>
75+
extends
76+
ServiceOperationUseMutation<TSchema, TBody, TData, TParams, TError>,
7377
ServiceOperationUseIsMutating<TSchema, TBody, TData, TParams, TError>,
7478
ServiceOperationUseMutationState<TSchema, TBody, TData, TParams, TError>,
7579
ServiceOperationIsMutatingQueries<TSchema, TBody, TData, TParams, TError>,

packages/tanstack-query-react-types/src/shared/QueryFilters.ts

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,12 @@ interface QueryFiltersByExactQueryKey<
6060
TParams = {},
6161
TError = DefaultError,
6262
> extends QueryFiltersByQueryKeyBase<
63-
TSchema,
64-
TData,
65-
TInfinite,
66-
TParams,
67-
TError
68-
> {
63+
TSchema,
64+
TData,
65+
TInfinite,
66+
TParams,
67+
TError
68+
> {
6969
/**
7070
* Include queries matching this query key
7171
*/
@@ -84,12 +84,12 @@ interface QueryFiltersWeakExactQueryKey<
8484
TParams = {},
8585
TError = DefaultError,
8686
> extends QueryFiltersByQueryKeyBase<
87-
TSchema,
88-
TData,
89-
TInfinite,
90-
TParams,
91-
TError
92-
> {
87+
TSchema,
88+
TData,
89+
TInfinite,
90+
TParams,
91+
TError
92+
> {
9393
/**
9494
* Include queries matching this query key
9595
*/
@@ -137,12 +137,12 @@ interface QueryFiltersByExactParameters<
137137
TParams = {},
138138
TError = DefaultError,
139139
> extends QueryFiltersByParametersBase<
140-
TSchema,
141-
TData,
142-
TInfinite,
143-
TParams,
144-
TError
145-
> {
140+
TSchema,
141+
TData,
142+
TInfinite,
143+
TParams,
144+
TError
145+
> {
146146
/**
147147
* Match query key exactly
148148
*/
@@ -161,12 +161,12 @@ interface QueryFiltersByWeakParameters<
161161
TParams = {},
162162
TError = DefaultError,
163163
> extends QueryFiltersByParametersBase<
164-
TSchema,
165-
TData,
166-
TInfinite,
167-
TParams,
168-
TError
169-
> {
164+
TSchema,
165+
TData,
166+
TInfinite,
167+
TParams,
168+
TError
169+
> {
170170
/**
171171
* Match query key exactly
172172
*/

0 commit comments

Comments
 (0)