@scalar/oas-utils 0.18.3 → 0.18.5
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @scalar/oas-utils
|
|
2
2
|
|
|
3
|
+
## 0.18.5
|
|
4
|
+
|
|
5
|
+
## 0.18.4
|
|
6
|
+
|
|
7
|
+
### Patch Changes
|
|
8
|
+
|
|
9
|
+
- [#9342](https://github.com/scalar/scalar/pull/9342): fix: resolve operations when OpenAPI path items use `$ref`
|
|
10
|
+
|
|
11
|
+
Path entries and webhooks can reference `components.pathItems` instead of inlining operations. Navigation, mutators, search, and markdown export now resolve path-item references before reading HTTP methods and path-level parameters.
|
|
12
|
+
|
|
3
13
|
## 0.18.3
|
|
4
14
|
|
|
5
15
|
## 0.18.2
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"migrate-to-indexdb.d.ts","sourceRoot":"","sources":["../../src/migrations/migrate-to-indexdb.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"migrate-to-indexdb.d.ts","sourceRoot":"","sources":["../../src/migrations/migrate-to-indexdb.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,+BAA+B,EAAwB,MAAM,qCAAqC,CAAA;AAO3G,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAA;AAiB3F,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sCAAsC,CAAA;AAOnE;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,4BAA4B,qBAuDxC,CAAA;AAED;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,sBAAsB,GACjC,sBAAsB,OAAO,CAAC,UAAU,CAAC,OAAO,+BAA+B,CAAC,CAAC,CAAC,WAAW,CAAC,KAC7F,OAAO,CAAC,OAAO,CAiBjB,CAAA;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,8BAA8B,GAAU,YAAY;IAC/D,MAAM,EAAE,OAAO,CAAC,WAAW,CAAC,CAAA;IAC5B,OAAO,EAAE,OAAO,CAAC,YAAY,CAAC,CAAA;CAC/B;;;;IAgJA,CAAA"}
|
|
@@ -7,6 +7,7 @@ import { slugger } from '@scalar/helpers/string/slugger';
|
|
|
7
7
|
import { extractServerFromPath } from '@scalar/helpers/url/extract-server-from-path';
|
|
8
8
|
import { presets } from '@scalar/themes';
|
|
9
9
|
import { createWorkspaceStore } from '@scalar/workspace-store/client';
|
|
10
|
+
import { setPathItemOperation } from '@scalar/workspace-store/helpers/for-each-path-item-operation';
|
|
10
11
|
import { AuthSchema } from '@scalar/workspace-store/entities/auth';
|
|
11
12
|
import { createWorkspaceStorePersistence, generateWorkspaceUid } from '@scalar/workspace-store/persistence';
|
|
12
13
|
import { xScalarEnvironmentSchema, } from '@scalar/workspace-store/schemas/extensions/document/x-scalar-environments';
|
|
@@ -200,7 +201,7 @@ export const transformLegacyDataToWorkspace = async (legacyData) => {
|
|
|
200
201
|
// Make sure the drafts document has a GET / route cuz that's the first route we navigate the user to
|
|
201
202
|
drafts.paths ??= {};
|
|
202
203
|
drafts.paths['/'] ??= {};
|
|
203
|
-
drafts.paths['/']
|
|
204
|
+
setPathItemOperation(drafts.paths['/'], 'get', {});
|
|
204
205
|
}
|
|
205
206
|
store.buildSidebar(DRAFTS_DOCUMENT_NAME);
|
|
206
207
|
// save the document to the store so we don't see the document as dirty
|
package/package.json
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"specification",
|
|
17
17
|
"yaml"
|
|
18
18
|
],
|
|
19
|
-
"version": "0.18.
|
|
19
|
+
"version": "0.18.5",
|
|
20
20
|
"engines": {
|
|
21
21
|
"node": ">=22"
|
|
22
22
|
},
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
"yaml": "^2.8.3",
|
|
46
46
|
"@scalar/helpers": "0.8.2",
|
|
47
47
|
"@scalar/themes": "0.16.0",
|
|
48
|
-
"@scalar/workspace-store": "0.54.
|
|
49
|
-
"@scalar/types": "0.
|
|
48
|
+
"@scalar/workspace-store": "0.54.4",
|
|
49
|
+
"@scalar/types": "0.14.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@types/node": "^24.1.0",
|