@sdk-it/content-mapper 0.47.3 → 0.47.4
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/README.md +7 -2
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -37,11 +37,16 @@ if (rendered.kind === 'failed') {
|
|
|
37
37
|
{
|
|
38
38
|
"compilerOptions": { "module": "nodenext" },
|
|
39
39
|
"contentMappers": [
|
|
40
|
-
{
|
|
40
|
+
{
|
|
41
|
+
"package": "@sdk-it/content-mapper",
|
|
42
|
+
"extensions": [".openapi", ".openapi.yaml"],
|
|
43
|
+
},
|
|
41
44
|
],
|
|
42
45
|
}
|
|
43
46
|
```
|
|
44
47
|
|
|
48
|
+
[Import an OpenAPI document as a module](../../docs/recipes/import-openapi-document.md) sets up all three hosts: types, Vite and Node.
|
|
49
|
+
|
|
45
50
|
```bash
|
|
46
51
|
npx tsc --runExternalCode
|
|
47
52
|
```
|
|
@@ -93,5 +98,5 @@ No published content mapper reads OpenAPI (npm search, 2026-11-20). The protocol
|
|
|
93
98
|
|
|
94
99
|
- A change to a file that the document references through `$ref` does not re-type the import until the document itself changes: the protocol has no per-transform dependencies, and `watchedFiles` is read only when a project opens.
|
|
95
100
|
- The module holds every operation of the document, so a bundle ships the whole endpoint table.
|
|
96
|
-
- On
|
|
101
|
+
- A large document is slow to re-type. On App Store Connect (1,300 operations, a 7.6 MB JSON document that renders a 3.5 MB module), an importer opened in the editor gets its diagnostics after about 3 to 5 s, an edit to the document reaches them in about 2.5 to 5.5 s, and `tsc` checks the project in about 9 s. On Box (1.8 MB) an edit takes about 0.6 to 2.7 s (measured 2026-11-20).
|
|
97
102
|
- A string argument of `request('GET /pets/{petId}', …)` has no definition (TypeScript gives none for a string literal argument); the same key in a type position, `StoreEndpoints['GET /pets/{petId}']`, lands on the method key.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sdk-it/content-mapper",
|
|
3
|
-
"version": "0.47.
|
|
3
|
+
"version": "0.47.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@sdk-it/spec": "0.47.
|
|
44
|
-
"@sdk-it/typescript": "0.47.
|
|
43
|
+
"@sdk-it/spec": "0.47.4",
|
|
44
|
+
"@sdk-it/typescript": "0.47.4",
|
|
45
45
|
"ts-content-mapper": "^0.1.1",
|
|
46
46
|
"yaml": "^2.9.1"
|
|
47
47
|
},
|