two-stroke 8.0.9 → 8.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +9 -13
- package/pnpm-workspace.yaml +5 -12
- package/patches/openapi-typescript.patch +0 -378
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "two-stroke",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.11",
|
|
4
4
|
"description": "Simple Cloudflare Worker framework.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -20,30 +20,26 @@
|
|
|
20
20
|
"type": "module",
|
|
21
21
|
"main": "src/index.ts",
|
|
22
22
|
"dependencies": {
|
|
23
|
+
"@sentry/cli": "^3.6.0",
|
|
23
24
|
"jose": "^6.2.3",
|
|
25
|
+
"knip": "^6.27.0",
|
|
24
26
|
"mime": "^4.1.0",
|
|
25
27
|
"msw": "^2.15.0",
|
|
26
28
|
"openapi-fetch": "^0.17.0",
|
|
27
29
|
"openapi-typescript": "^7.13.0",
|
|
30
|
+
"oxfmt": "^0.59.0",
|
|
31
|
+
"oxlint": "^1.74.0",
|
|
32
|
+
"oxlint-tsgolint": "^0.25.0",
|
|
28
33
|
"toucan-js": "^4.1.1",
|
|
34
|
+
"typescript": "^6.0.3",
|
|
35
|
+
"vitest": "^4.1.10",
|
|
29
36
|
"zod": "^4.4.3"
|
|
30
37
|
},
|
|
31
38
|
"devDependencies": {
|
|
32
|
-
"@cloudflare/vitest-pool-workers": "^0.18.5"
|
|
33
|
-
"knip": "^6.27.0",
|
|
34
|
-
"oxfmt": "^0.59.0",
|
|
35
|
-
"oxlint": "^1.74.0",
|
|
36
|
-
"oxlint-tsgolint": "^0.25.0",
|
|
37
|
-
"typescript": "^7.0.2",
|
|
38
|
-
"vitest": "^4.1.10"
|
|
39
|
+
"@cloudflare/vitest-pool-workers": "^0.18.5"
|
|
39
40
|
},
|
|
40
41
|
"peerDependencies": {
|
|
41
|
-
"@sentry/cli": "^3.6.0",
|
|
42
42
|
"miniflare": "^4.20260708.1",
|
|
43
|
-
"oxfmt": "^0.58.0",
|
|
44
|
-
"oxlint": "^1.73.0",
|
|
45
|
-
"oxlint-tsgolint": "^0.24.0",
|
|
46
|
-
"vitest": ">=4",
|
|
47
43
|
"wrangler": ">=3"
|
|
48
44
|
},
|
|
49
45
|
"prettier": {
|
package/pnpm-workspace.yaml
CHANGED
|
@@ -1,15 +1,8 @@
|
|
|
1
|
-
blockExoticSubdeps: true
|
|
2
|
-
|
|
3
|
-
ignoreScripts: true
|
|
4
|
-
|
|
5
1
|
minimumReleaseAge: 4320
|
|
6
|
-
|
|
7
2
|
minimumReleaseAgeExclude:
|
|
8
|
-
- jwk-subtle
|
|
9
|
-
- pbkdf-subtle
|
|
10
|
-
- eslint-config-two-stroke
|
|
11
|
-
|
|
12
|
-
patchedDependencies:
|
|
13
|
-
openapi-typescript: patches/openapi-typescript.patch
|
|
14
|
-
|
|
3
|
+
- "jwk-subtle"
|
|
4
|
+
- "pbkdf-subtle"
|
|
5
|
+
- "eslint-config-two-stroke"
|
|
15
6
|
trustPolicy: no-downgrade
|
|
7
|
+
ignoreScripts: true
|
|
8
|
+
blockExoticSubdeps: true
|
|
@@ -1,378 +0,0 @@
|
|
|
1
|
-
diff --git a/dist/lib/ts.mjs b/dist/lib/ts.mjs
|
|
2
|
-
index 8fa9e94fa4ecd8034e6c79912b27a5e3b067fa88..740fb258eaca2e6dc77aa201c5486e7648b354b9 100644
|
|
3
|
-
--- a/dist/lib/ts.mjs
|
|
4
|
-
+++ b/dist/lib/ts.mjs
|
|
5
|
-
@@ -1,5 +1,5 @@
|
|
6
|
-
import { parseRef } from '@redocly/openapi-core/lib/ref-utils.js';
|
|
7
|
-
-import ts from 'typescript';
|
|
8
|
-
+import ts from '@typescript/typescript6';
|
|
9
|
-
|
|
10
|
-
const JS_PROPERTY_INDEX_RE = /^[A-Za-z_$][A-Za-z_$0-9]*$/;
|
|
11
|
-
const JS_ENUM_INVALID_CHARS_RE = /[^A-Za-z_$0-9]+(.)?/g;
|
|
12
|
-
diff --git a/dist/lib/utils.mjs b/dist/lib/utils.mjs
|
|
13
|
-
index c44709d4fa1e945a69259946f077bd222029cab8..98bb7e1d1c04b036aa4ac71105a70c59efc7a81f 100644
|
|
14
|
-
--- a/dist/lib/utils.mjs
|
|
15
|
-
+++ b/dist/lib/utils.mjs
|
|
16
|
-
@@ -2,7 +2,7 @@ import { parseRef, escapePointer } from '@redocly/openapi-core/lib/ref-utils.js'
|
|
17
|
-
import c from 'ansi-colors';
|
|
18
|
-
export { default as c } from 'ansi-colors';
|
|
19
|
-
import supportsColor from 'supports-color';
|
|
20
|
-
-import ts from 'typescript';
|
|
21
|
-
+import ts from '@typescript/typescript6';
|
|
22
|
-
import { tsModifiers, tsPropertyIndex, tsLiteral } from './ts.mjs';
|
|
23
|
-
|
|
24
|
-
if (!supportsColor.stdout || supportsColor.stdout.hasBasic === false) {
|
|
25
|
-
diff --git a/dist/transform/components-object.mjs b/dist/transform/components-object.mjs
|
|
26
|
-
index da850f3e2d46d4c259d6738db480272eaa4b5a36..8ec34f93d67f19caba37dddaebf7be0bbf6ae7bd 100644
|
|
27
|
-
--- a/dist/transform/components-object.mjs
|
|
28
|
-
+++ b/dist/transform/components-object.mjs
|
|
29
|
-
@@ -1,6 +1,6 @@
|
|
30
|
-
import { performance } from 'node:perf_hooks';
|
|
31
|
-
import * as changeCase from 'change-case';
|
|
32
|
-
-import ts from 'typescript';
|
|
33
|
-
+import ts from '@typescript/typescript6';
|
|
34
|
-
import { tsModifiers, tsPropertyIndex, QUESTION_TOKEN, addJSDocComment, NEVER } from '../lib/ts.mjs';
|
|
35
|
-
import { getEntries, createRef, debug } from '../lib/utils.mjs';
|
|
36
|
-
import transformHeaderObject from './header-object.mjs';
|
|
37
|
-
diff --git a/dist/transform/header-object.mjs b/dist/transform/header-object.mjs
|
|
38
|
-
index cfd4204035cb2587bebb38d87bbf5aa34e5320bc..e5bff752d30c50aaeea5423259fbb1ec33b8aa3c 100644
|
|
39
|
-
--- a/dist/transform/header-object.mjs
|
|
40
|
-
+++ b/dist/transform/header-object.mjs
|
|
41
|
-
@@ -1,5 +1,5 @@
|
|
42
|
-
import { escapePointer } from '@redocly/openapi-core/lib/ref-utils.js';
|
|
43
|
-
-import ts from 'typescript';
|
|
44
|
-
+import ts from '@typescript/typescript6';
|
|
45
|
-
import { tsModifiers, tsPropertyIndex, addJSDocComment, UNKNOWN } from '../lib/ts.mjs';
|
|
46
|
-
import { getEntries } from '../lib/utils.mjs';
|
|
47
|
-
import transformMediaTypeObject from './media-type-object.mjs';
|
|
48
|
-
diff --git a/dist/transform/index.mjs b/dist/transform/index.mjs
|
|
49
|
-
index e08b18fb964a87157fb31c743d3b99d37e930670..32d9a8d058dd7e970277514f9fe96bc998b973e6 100644
|
|
50
|
-
--- a/dist/transform/index.mjs
|
|
51
|
-
+++ b/dist/transform/index.mjs
|
|
52
|
-
@@ -1,5 +1,5 @@
|
|
53
|
-
import { performance } from 'node:perf_hooks';
|
|
54
|
-
-import ts from 'typescript';
|
|
55
|
-
+import ts from '@typescript/typescript6';
|
|
56
|
-
import { stringToAST, tsModifiers, tsRecord, NEVER, STRING } from '../lib/ts.mjs';
|
|
57
|
-
import { debug, createRef } from '../lib/utils.mjs';
|
|
58
|
-
import transformComponentsObject from './components-object.mjs';
|
|
59
|
-
diff --git a/dist/transform/operation-object.mjs b/dist/transform/operation-object.mjs
|
|
60
|
-
index b141847a7c8958315768315fe6617bcfb840a33c..37b44f70ddfe160643c60e122e5044d780682ab9 100644
|
|
61
|
-
--- a/dist/transform/operation-object.mjs
|
|
62
|
-
+++ b/dist/transform/operation-object.mjs
|
|
63
|
-
@@ -1,4 +1,4 @@
|
|
64
|
-
-import ts from 'typescript';
|
|
65
|
-
+import ts from '@typescript/typescript6';
|
|
66
|
-
import { oapiRef, tsModifiers, tsPropertyIndex, QUESTION_TOKEN, addJSDocComment, NEVER } from '../lib/ts.mjs';
|
|
67
|
-
import { createRef } from '../lib/utils.mjs';
|
|
68
|
-
import { transformParametersArray } from './parameters-array.mjs';
|
|
69
|
-
diff --git a/dist/transform/parameters-array.mjs b/dist/transform/parameters-array.mjs
|
|
70
|
-
index dc20775ed4b8c4ca4e57ecd4a20b47ca4fcacfad..072dc1b6380c60114d535e13269072425e649c15 100644
|
|
71
|
-
--- a/dist/transform/parameters-array.mjs
|
|
72
|
-
+++ b/dist/transform/parameters-array.mjs
|
|
73
|
-
@@ -1,4 +1,4 @@
|
|
74
|
-
-import ts from 'typescript';
|
|
75
|
-
+import ts from '@typescript/typescript6';
|
|
76
|
-
import { oapiRef, tsModifiers, tsPropertyIndex, addJSDocComment, QUESTION_TOKEN, NEVER } from '../lib/ts.mjs';
|
|
77
|
-
import { createRef } from '../lib/utils.mjs';
|
|
78
|
-
import transformParameterObject from './parameter-object.mjs';
|
|
79
|
-
diff --git a/dist/transform/path-item-object.mjs b/dist/transform/path-item-object.mjs
|
|
80
|
-
index 1c449b58b9b815551a925965a1298b5d2b7d78ca..6b4c25aa6e6149e2849a1f68cca2dbbab1c48fc6 100644
|
|
81
|
-
--- a/dist/transform/path-item-object.mjs
|
|
82
|
-
+++ b/dist/transform/path-item-object.mjs
|
|
83
|
-
@@ -1,4 +1,4 @@
|
|
84
|
-
-import ts from 'typescript';
|
|
85
|
-
+import ts from '@typescript/typescript6';
|
|
86
|
-
import { tsModifiers, tsPropertyIndex, QUESTION_TOKEN, NEVER, oapiRef, addJSDocComment } from '../lib/ts.mjs';
|
|
87
|
-
import { createRef } from '../lib/utils.mjs';
|
|
88
|
-
import transformOperationObject, { injectOperationObject } from './operation-object.mjs';
|
|
89
|
-
diff --git a/dist/transform/paths-object.mjs b/dist/transform/paths-object.mjs
|
|
90
|
-
index 5e898c380ffd47932b7694b249cba15b5838dde7..7fb877e5a910e14218dd9d51b22d059aeeb2c86a 100644
|
|
91
|
-
--- a/dist/transform/paths-object.mjs
|
|
92
|
-
+++ b/dist/transform/paths-object.mjs
|
|
93
|
-
@@ -1,5 +1,5 @@
|
|
94
|
-
import { performance } from 'node:perf_hooks';
|
|
95
|
-
-import ts from 'typescript';
|
|
96
|
-
+import ts from '@typescript/typescript6';
|
|
97
|
-
import { tsModifiers, tsPropertyIndex, oapiRef, addJSDocComment, stringToAST } from '../lib/ts.mjs';
|
|
98
|
-
import { getEntries, createRef, debug } from '../lib/utils.mjs';
|
|
99
|
-
import transformPathItemObject from './path-item-object.mjs';
|
|
100
|
-
diff --git a/dist/transform/request-body-object.mjs b/dist/transform/request-body-object.mjs
|
|
101
|
-
index 0f6583f03382c26a842d1b70d93f3ec374d97696..d8e60c2d3a3bbadb3f37db79e7ab39f8a2fa1d05 100644
|
|
102
|
-
--- a/dist/transform/request-body-object.mjs
|
|
103
|
-
+++ b/dist/transform/request-body-object.mjs
|
|
104
|
-
@@ -1,4 +1,4 @@
|
|
105
|
-
-import ts from 'typescript';
|
|
106
|
-
+import ts from '@typescript/typescript6';
|
|
107
|
-
import { tsModifiers, tsPropertyIndex, addJSDocComment, QUESTION_TOKEN, NEVER } from '../lib/ts.mjs';
|
|
108
|
-
import { getEntries, createRef } from '../lib/utils.mjs';
|
|
109
|
-
import transformMediaTypeObject from './media-type-object.mjs';
|
|
110
|
-
diff --git a/dist/transform/response-object.mjs b/dist/transform/response-object.mjs
|
|
111
|
-
index 000851adc267f8e98338ffaa954a0aece28b9a47..d315538508f797fe0d8acb598796e33814e14de5 100644
|
|
112
|
-
--- a/dist/transform/response-object.mjs
|
|
113
|
-
+++ b/dist/transform/response-object.mjs
|
|
114
|
-
@@ -1,4 +1,4 @@
|
|
115
|
-
-import ts from 'typescript';
|
|
116
|
-
+import ts from '@typescript/typescript6';
|
|
117
|
-
import { QUESTION_TOKEN, oapiRef, tsModifiers, tsPropertyIndex, addJSDocComment, STRING, UNKNOWN, NEVER } from '../lib/ts.mjs';
|
|
118
|
-
import { getEntries, createRef } from '../lib/utils.mjs';
|
|
119
|
-
import transformHeaderObject from './header-object.mjs';
|
|
120
|
-
diff --git a/dist/transform/responses-object.mjs b/dist/transform/responses-object.mjs
|
|
121
|
-
index dafb268bbdc546dda686c1a6aa4f1797a7a3f983..3290138cfc7aeb9843205fa4b3f803c4a76f7b9c 100644
|
|
122
|
-
--- a/dist/transform/responses-object.mjs
|
|
123
|
-
+++ b/dist/transform/responses-object.mjs
|
|
124
|
-
@@ -1,4 +1,4 @@
|
|
125
|
-
-import ts from 'typescript';
|
|
126
|
-
+import ts from '@typescript/typescript6';
|
|
127
|
-
import { oapiRef, tsModifiers, tsPropertyIndex, addJSDocComment, NEVER } from '../lib/ts.mjs';
|
|
128
|
-
import { getEntries, createRef } from '../lib/utils.mjs';
|
|
129
|
-
import transformResponseObject from './response-object.mjs';
|
|
130
|
-
diff --git a/dist/transform/schema-object.mjs b/dist/transform/schema-object.mjs
|
|
131
|
-
index dc20a5c14b1320364a71a254b79415bd214f4416..64752b5ee28e1edbeb7de95dca1b7732dc858be2 100644
|
|
132
|
-
--- a/dist/transform/schema-object.mjs
|
|
133
|
-
+++ b/dist/transform/schema-object.mjs
|
|
134
|
-
@@ -1,5 +1,5 @@
|
|
135
|
-
import { parseRef } from '@redocly/openapi-core/lib/ref-utils.js';
|
|
136
|
-
-import ts from 'typescript';
|
|
137
|
-
+import ts from '@typescript/typescript6';
|
|
138
|
-
import { NEVER, UNKNOWN, oapiRef, tsLiteral, tsEnum, tsUnion, NULL, tsArrayLiteralExpression, tsIntersection, tsIsPrimitive, tsRecord, STRING, tsNullable, UNDEFINED, NUMBER, BOOLEAN, QUESTION_TOKEN, tsModifiers, tsPropertyIndex, addJSDocComment, tsWithRequired, tsOmit } from '../lib/ts.mjs';
|
|
139
|
-
import { createRef, createDiscriminatorProperty, getEntries } from '../lib/utils.mjs';
|
|
140
|
-
|
|
141
|
-
diff --git a/dist/transform/webhooks-object.mjs b/dist/transform/webhooks-object.mjs
|
|
142
|
-
index f48a576635e02120fd0b66ef68d142e671f62dc2..02d3c4761b91a6e2087b55587e944a50d7c0bdf0 100644
|
|
143
|
-
--- a/dist/transform/webhooks-object.mjs
|
|
144
|
-
+++ b/dist/transform/webhooks-object.mjs
|
|
145
|
-
@@ -1,4 +1,4 @@
|
|
146
|
-
-import ts from 'typescript';
|
|
147
|
-
+import ts from '@typescript/typescript6';
|
|
148
|
-
import { tsModifiers, tsPropertyIndex } from '../lib/ts.mjs';
|
|
149
|
-
import { getEntries, createRef } from '../lib/utils.mjs';
|
|
150
|
-
import transformPathItemObject from './path-item-object.mjs';
|
|
151
|
-
diff --git a/package.json b/package.json
|
|
152
|
-
index 4893afdec25f506f62d44f64fe0861c411cb7fae..ff6d390d9ad20f421dfda5f45c267d4fa0f2d448 100644
|
|
153
|
-
--- a/package.json
|
|
154
|
-
+++ b/package.json
|
|
155
|
-
@@ -42,7 +42,7 @@
|
|
156
|
-
"url": "https://github.com/openapi-ts/openapi-typescript/issues"
|
|
157
|
-
},
|
|
158
|
-
"peerDependencies": {
|
|
159
|
-
- "typescript": "^5.x"
|
|
160
|
-
+ "@typescript/typescript6": "^6.x"
|
|
161
|
-
},
|
|
162
|
-
"dependencies": {
|
|
163
|
-
"@redocly/openapi-core": "^1.34.6",
|
|
164
|
-
@@ -58,7 +58,7 @@
|
|
165
|
-
"degit": "2.8.4",
|
|
166
|
-
"execa": "^9.6.1",
|
|
167
|
-
"strip-ansi": "7.1.2",
|
|
168
|
-
- "typescript": "^5.9.3",
|
|
169
|
-
+ "@typescript/typescript6": "^6.0.0",
|
|
170
|
-
"vite-node": "5.3.0"
|
|
171
|
-
},
|
|
172
|
-
"scripts": {
|
|
173
|
-
diff --git a/src/index.ts b/src/index.ts
|
|
174
|
-
index d042b81e40cc354c1f5e16072ff5d65478d41780..6ac68a46dc9fc3b5829f7dcd69ec8ed16436e5ac 100644
|
|
175
|
-
--- a/src/index.ts
|
|
176
|
-
+++ b/src/index.ts
|
|
177
|
-
@@ -1,7 +1,7 @@
|
|
178
|
-
import { performance } from "node:perf_hooks";
|
|
179
|
-
import type { Readable } from "node:stream";
|
|
180
|
-
import { createConfig } from "@redocly/openapi-core";
|
|
181
|
-
-import type ts from "typescript";
|
|
182
|
-
+import type ts from "@typescript/typescript6";
|
|
183
|
-
import { validateAndBundle } from "./lib/redoc.js";
|
|
184
|
-
import { debug, resolveRef, scanDiscriminators } from "./lib/utils.js";
|
|
185
|
-
import transformSchema from "./transform/index.js";
|
|
186
|
-
diff --git a/src/lib/ts.ts b/src/lib/ts.ts
|
|
187
|
-
index d1f41eb8844dee5157a5b38130a2e2dbd1a34b1e..fd3b8213ebb97437c0a3363ced1e9b5ce9663896 100644
|
|
188
|
-
--- a/src/lib/ts.ts
|
|
189
|
-
+++ b/src/lib/ts.ts
|
|
190
|
-
@@ -1,6 +1,6 @@
|
|
191
|
-
import type { OasRef, Referenced } from "@redocly/openapi-core";
|
|
192
|
-
import { parseRef } from "@redocly/openapi-core/lib/ref-utils.js";
|
|
193
|
-
-import ts, { type LiteralTypeNode, type TypeLiteralNode } from "typescript";
|
|
194
|
-
+import ts, { type LiteralTypeNode, type TypeLiteralNode } from "@typescript/typescript6";
|
|
195
|
-
import type { ParameterObject } from "../types.js";
|
|
196
|
-
|
|
197
|
-
export const JS_PROPERTY_INDEX_RE = /^[A-Za-z_$][A-Za-z_$0-9]*$/;
|
|
198
|
-
diff --git a/src/lib/utils.ts b/src/lib/utils.ts
|
|
199
|
-
index 49c19242224e6a8e12cdb65d7c07a7ddbf655ad8..4c2a54c5459d1c84b3009917b26d61a2faa0d006 100644
|
|
200
|
-
--- a/src/lib/utils.ts
|
|
201
|
-
+++ b/src/lib/utils.ts
|
|
202
|
-
@@ -1,7 +1,7 @@
|
|
203
|
-
import { escapePointer, parseRef } from "@redocly/openapi-core/lib/ref-utils.js";
|
|
204
|
-
import c from "ansi-colors";
|
|
205
|
-
import supportsColor from "supports-color";
|
|
206
|
-
-import ts from "typescript";
|
|
207
|
-
+import ts from "@typescript/typescript6";
|
|
208
|
-
import type { DiscriminatorObject, OpenAPI3, OpenAPITSOptions, ReferenceObject, SchemaObject } from "../types.js";
|
|
209
|
-
import { tsLiteral, tsModifiers, tsPropertyIndex } from "./ts.js";
|
|
210
|
-
|
|
211
|
-
diff --git a/src/transform/components-object.ts b/src/transform/components-object.ts
|
|
212
|
-
index 0a5bdecacfc6dda64e525d232ae99e8212948cda..b069a38e2f89a8a59b650020cf85e5ec2cb00db4 100644
|
|
213
|
-
--- a/src/transform/components-object.ts
|
|
214
|
-
+++ b/src/transform/components-object.ts
|
|
215
|
-
@@ -1,6 +1,6 @@
|
|
216
|
-
import { performance } from "node:perf_hooks";
|
|
217
|
-
import * as changeCase from "change-case";
|
|
218
|
-
-import ts from "typescript";
|
|
219
|
-
+import ts from "@typescript/typescript6";
|
|
220
|
-
import { addJSDocComment, NEVER, QUESTION_TOKEN, tsModifiers, tsPropertyIndex } from "../lib/ts.js";
|
|
221
|
-
import { createRef, debug, getEntries } from "../lib/utils.js";
|
|
222
|
-
import type { ComponentsObject, GlobalContext, SchemaObject, TransformNodeOptions } from "../types.js";
|
|
223
|
-
diff --git a/src/transform/header-object.ts b/src/transform/header-object.ts
|
|
224
|
-
index cb3654e5bdc61cd430185cd0c1234ea35bdc823a..a550d68d77603ce5f09d4db252f8fa65f30a316e 100644
|
|
225
|
-
--- a/src/transform/header-object.ts
|
|
226
|
-
+++ b/src/transform/header-object.ts
|
|
227
|
-
@@ -1,5 +1,5 @@
|
|
228
|
-
import { escapePointer } from "@redocly/openapi-core/lib/ref-utils.js";
|
|
229
|
-
-import ts from "typescript";
|
|
230
|
-
+import ts from "@typescript/typescript6";
|
|
231
|
-
import { addJSDocComment, tsModifiers, tsPropertyIndex, UNKNOWN } from "../lib/ts.js";
|
|
232
|
-
import { getEntries } from "../lib/utils.js";
|
|
233
|
-
import type { HeaderObject, TransformNodeOptions } from "../types.js";
|
|
234
|
-
diff --git a/src/transform/index.ts b/src/transform/index.ts
|
|
235
|
-
index ad4af119a76b8a3c703862688ccc036f952659a2..1cb6797f236be42f16721a9cf93b316129b84b19 100644
|
|
236
|
-
--- a/src/transform/index.ts
|
|
237
|
-
+++ b/src/transform/index.ts
|
|
238
|
-
@@ -1,5 +1,5 @@
|
|
239
|
-
import { performance } from "node:perf_hooks";
|
|
240
|
-
-import ts, { type InterfaceDeclaration, type TypeLiteralNode } from "typescript";
|
|
241
|
-
+import ts, { type InterfaceDeclaration, type TypeLiteralNode } from "@typescript/typescript6";
|
|
242
|
-
import { NEVER, STRING, stringToAST, tsModifiers, tsRecord } from "../lib/ts.js";
|
|
243
|
-
import { createRef, debug } from "../lib/utils.js";
|
|
244
|
-
import type { GlobalContext, OpenAPI3 } from "../types.js";
|
|
245
|
-
diff --git a/src/transform/media-type-object.ts b/src/transform/media-type-object.ts
|
|
246
|
-
index 647febbb07033ff2a88030314de769ba9208413b..f4545c556277e66a583c8604e2efcd80acac79dd 100644
|
|
247
|
-
--- a/src/transform/media-type-object.ts
|
|
248
|
-
+++ b/src/transform/media-type-object.ts
|
|
249
|
-
@@ -1,4 +1,4 @@
|
|
250
|
-
-import type ts from "typescript";
|
|
251
|
-
+import type ts from "@typescript/typescript6";
|
|
252
|
-
import { UNKNOWN } from "../lib/ts.js";
|
|
253
|
-
import type { MediaTypeObject, TransformNodeOptions } from "../types.js";
|
|
254
|
-
import transformSchemaObject from "./schema-object.js";
|
|
255
|
-
diff --git a/src/transform/operation-object.ts b/src/transform/operation-object.ts
|
|
256
|
-
index a178be58cb86b7a9ac4ac71126cef61377dea8e1..8de36656e61121ccc2771357ab0322e857c669d1 100644
|
|
257
|
-
--- a/src/transform/operation-object.ts
|
|
258
|
-
+++ b/src/transform/operation-object.ts
|
|
259
|
-
@@ -1,4 +1,4 @@
|
|
260
|
-
-import ts from "typescript";
|
|
261
|
-
+import ts from "@typescript/typescript6";
|
|
262
|
-
import { addJSDocComment, NEVER, oapiRef, QUESTION_TOKEN, tsModifiers, tsPropertyIndex } from "../lib/ts.js";
|
|
263
|
-
import { createRef } from "../lib/utils.js";
|
|
264
|
-
import type { OperationObject, RequestBodyObject, TransformNodeOptions } from "../types.js";
|
|
265
|
-
diff --git a/src/transform/parameter-object.ts b/src/transform/parameter-object.ts
|
|
266
|
-
index 43412e8a622ebf41da9408ea9d0671a0098da5e2..b8e0f669ed6b2f9fcec2a9798608f7bf50264c88 100644
|
|
267
|
-
--- a/src/transform/parameter-object.ts
|
|
268
|
-
+++ b/src/transform/parameter-object.ts
|
|
269
|
-
@@ -1,4 +1,4 @@
|
|
270
|
-
-import type ts from "typescript";
|
|
271
|
-
+import type ts from "@typescript/typescript6";
|
|
272
|
-
import { STRING } from "../lib/ts.js";
|
|
273
|
-
import type { ParameterObject, TransformNodeOptions } from "../types.js";
|
|
274
|
-
import transformSchemaObject from "./schema-object.js";
|
|
275
|
-
diff --git a/src/transform/parameters-array.ts b/src/transform/parameters-array.ts
|
|
276
|
-
index 78146f34e9ff4332a083b0a98220a048b22f834f..2e9aea30fbab673e7afba98264b127890cd9b448 100644
|
|
277
|
-
--- a/src/transform/parameters-array.ts
|
|
278
|
-
+++ b/src/transform/parameters-array.ts
|
|
279
|
-
@@ -1,4 +1,4 @@
|
|
280
|
-
-import ts from "typescript";
|
|
281
|
-
+import ts from "@typescript/typescript6";
|
|
282
|
-
import { addJSDocComment, NEVER, oapiRef, QUESTION_TOKEN, tsModifiers, tsPropertyIndex } from "../lib/ts.js";
|
|
283
|
-
import { createRef } from "../lib/utils.js";
|
|
284
|
-
import type { ParameterObject, ReferenceObject, TransformNodeOptions } from "../types.js";
|
|
285
|
-
diff --git a/src/transform/path-item-object.ts b/src/transform/path-item-object.ts
|
|
286
|
-
index 87ca02d7850851074a0f89da88930252ede62714..71f6f6ebbb1d1e65b192c65d75000fe484222de5 100644
|
|
287
|
-
--- a/src/transform/path-item-object.ts
|
|
288
|
-
+++ b/src/transform/path-item-object.ts
|
|
289
|
-
@@ -1,4 +1,4 @@
|
|
290
|
-
-import ts from "typescript";
|
|
291
|
-
+import ts from "@typescript/typescript6";
|
|
292
|
-
import { addJSDocComment, NEVER, oapiRef, QUESTION_TOKEN, tsModifiers, tsPropertyIndex } from "../lib/ts.js";
|
|
293
|
-
import { createRef } from "../lib/utils.js";
|
|
294
|
-
import type {
|
|
295
|
-
diff --git a/src/transform/paths-enum.ts b/src/transform/paths-enum.ts
|
|
296
|
-
index ea2fbdb437dfa299d638352a1d47f75cbf002ac7..e9fbb120283ddffc82a5e2f3d4d3eca1182bb5db 100644
|
|
297
|
-
--- a/src/transform/paths-enum.ts
|
|
298
|
-
+++ b/src/transform/paths-enum.ts
|
|
299
|
-
@@ -1,4 +1,4 @@
|
|
300
|
-
-import type ts from "typescript";
|
|
301
|
-
+import type ts from "@typescript/typescript6";
|
|
302
|
-
import { tsEnum } from "../lib/ts.js";
|
|
303
|
-
import { getEntries } from "../lib/utils.js";
|
|
304
|
-
import type { PathsObject } from "../types.js";
|
|
305
|
-
diff --git a/src/transform/paths-object.ts b/src/transform/paths-object.ts
|
|
306
|
-
index 83c36af1a3bd276dbfdad5fe5c10d4842660aff2..1f1a31b7e70bce33b0306e0cc1117f46ea4fdd92 100644
|
|
307
|
-
--- a/src/transform/paths-object.ts
|
|
308
|
-
+++ b/src/transform/paths-object.ts
|
|
309
|
-
@@ -1,5 +1,5 @@
|
|
310
|
-
import { performance } from "node:perf_hooks";
|
|
311
|
-
-import ts from "typescript";
|
|
312
|
-
+import ts from "@typescript/typescript6";
|
|
313
|
-
import { addJSDocComment, oapiRef, stringToAST, tsModifiers, tsPropertyIndex } from "../lib/ts.js";
|
|
314
|
-
import { createRef, debug, getEntries } from "../lib/utils.js";
|
|
315
|
-
import type {
|
|
316
|
-
diff --git a/src/transform/request-body-object.ts b/src/transform/request-body-object.ts
|
|
317
|
-
index 3c641c4757f635dfa745c8484917afd67365748f..9bb2d37474afb11166b0ad601fe53dfacd7afefc 100644
|
|
318
|
-
--- a/src/transform/request-body-object.ts
|
|
319
|
-
+++ b/src/transform/request-body-object.ts
|
|
320
|
-
@@ -1,4 +1,4 @@
|
|
321
|
-
-import ts from "typescript";
|
|
322
|
-
+import ts from "@typescript/typescript6";
|
|
323
|
-
import { addJSDocComment, NEVER, QUESTION_TOKEN, tsModifiers, tsPropertyIndex } from "../lib/ts.js";
|
|
324
|
-
import { createRef, getEntries } from "../lib/utils.js";
|
|
325
|
-
import type { RequestBodyObject, TransformNodeOptions } from "../types.js";
|
|
326
|
-
diff --git a/src/transform/response-object.ts b/src/transform/response-object.ts
|
|
327
|
-
index 83775cc9b91ce7de63320565287dc806b45f8c38..bce55c979b57a4f8f9a5463b08805636588ca1f9 100644
|
|
328
|
-
--- a/src/transform/response-object.ts
|
|
329
|
-
+++ b/src/transform/response-object.ts
|
|
330
|
-
@@ -1,4 +1,4 @@
|
|
331
|
-
-import ts from "typescript";
|
|
332
|
-
+import ts from "@typescript/typescript6";
|
|
333
|
-
import {
|
|
334
|
-
addJSDocComment,
|
|
335
|
-
NEVER,
|
|
336
|
-
diff --git a/src/transform/responses-object.ts b/src/transform/responses-object.ts
|
|
337
|
-
index cc8bce39798bd3204625ef149a7dd95e4f8e8fb0..5daf95f0fd4605dbfda0e80e49ef16b0e6588b4b 100644
|
|
338
|
-
--- a/src/transform/responses-object.ts
|
|
339
|
-
+++ b/src/transform/responses-object.ts
|
|
340
|
-
@@ -1,4 +1,4 @@
|
|
341
|
-
-import ts from "typescript";
|
|
342
|
-
+import ts from "@typescript/typescript6";
|
|
343
|
-
import { addJSDocComment, NEVER, oapiRef, tsModifiers, tsPropertyIndex } from "../lib/ts.js";
|
|
344
|
-
import { createRef, getEntries } from "../lib/utils.js";
|
|
345
|
-
import type { ResponsesObject, TransformNodeOptions } from "../types.js";
|
|
346
|
-
diff --git a/src/transform/schema-object.ts b/src/transform/schema-object.ts
|
|
347
|
-
index 58745d072e4c8362a5f979c9d02fa04ecd14345a..66fbf03a189142cad35bfbcea05cd2399b2850c4 100644
|
|
348
|
-
--- a/src/transform/schema-object.ts
|
|
349
|
-
+++ b/src/transform/schema-object.ts
|
|
350
|
-
@@ -1,5 +1,5 @@
|
|
351
|
-
import { parseRef } from "@redocly/openapi-core/lib/ref-utils.js";
|
|
352
|
-
-import ts from "typescript";
|
|
353
|
-
+import ts from "@typescript/typescript6";
|
|
354
|
-
import {
|
|
355
|
-
addJSDocComment,
|
|
356
|
-
BOOLEAN,
|
|
357
|
-
diff --git a/src/transform/webhooks-object.ts b/src/transform/webhooks-object.ts
|
|
358
|
-
index 28c3df644bb41a7c8605e045d613b8581eb1a1ae..5dd2dc95efcecd9623642a7676574ca05ac7c9d5 100644
|
|
359
|
-
--- a/src/transform/webhooks-object.ts
|
|
360
|
-
+++ b/src/transform/webhooks-object.ts
|
|
361
|
-
@@ -1,4 +1,4 @@
|
|
362
|
-
-import ts from "typescript";
|
|
363
|
-
+import ts from "@typescript/typescript6";
|
|
364
|
-
import { tsModifiers, tsPropertyIndex } from "../lib/ts.js";
|
|
365
|
-
import { createRef, getEntries } from "../lib/utils.js";
|
|
366
|
-
import type { GlobalContext, WebhooksObject } from "../types.js";
|
|
367
|
-
diff --git a/src/types.ts b/src/types.ts
|
|
368
|
-
index 8a511e1e876827f1fa76316afe2fb34fe44dc653..18b8797ab7b045e01ff6189ab2bb6207a91a12ab 100644
|
|
369
|
-
--- a/src/types.ts
|
|
370
|
-
+++ b/src/types.ts
|
|
371
|
-
@@ -1,6 +1,6 @@
|
|
372
|
-
import type { PathLike } from "node:fs";
|
|
373
|
-
import type { Config as RedoclyConfig } from "@redocly/openapi-core";
|
|
374
|
-
-import type ts from "typescript";
|
|
375
|
-
+import type ts from "@typescript/typescript6";
|
|
376
|
-
|
|
377
|
-
// Many types allow for true “any” for inheritance to work
|
|
378
|
-
|