@scalar/workspace-store 0.55.0 → 0.55.1
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 +8 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +11 -3
- package/dist/helpers/get-resolved-ref-deep.d.ts.map +1 -1
- package/dist/helpers/get-resolved-ref-deep.js +13 -0
- package/dist/schemas/v3.1/openapi/index.d.ts.map +1 -1
- package/dist/schemas/v3.1/openapi/index.js +8 -0
- package/package.json +6 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @scalar/workspace-store
|
|
2
2
|
|
|
3
|
+
## 0.55.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#9616](https://github.com/scalar/scalar/pull/9616): Run the AsyncAPI upgrader when ingesting AsyncAPI documents so 1.x/2.x specs are converted to the 3.x shape the renderer expects. Previously a 2.x document (operations nested under channels as `publish`/`subscribe`) was passed through unchanged, leaving `operations` empty and dropping every channel from the navigation — the document rendered blank. The original version is preserved on `x-original-aas-version`.
|
|
8
|
+
- [#9468](https://github.com/scalar/scalar/pull/9468): Preserve keywords declared alongside a `$ref` when deeply resolving references, so a `$defs`/`$dynamicAnchor` binding (the `Paginated<T>` pattern) survives and `$dynamicRef` can resolve to the bound item type instead of falling back to an empty result
|
|
9
|
+
- [#9483](https://github.com/scalar/scalar/pull/9483): Keep JSON Schema 2020-12 reference keywords (`$id`, `$anchor`, `$dynamicAnchor`, `$dynamicRef`) on Schema Objects when coercing documents during ingestion, so generic templates like `PaginatedResponse<T>` keep their dynamic item binding instead of having it dropped for schemas reachable from an operation
|
|
10
|
+
|
|
3
11
|
## 0.55.0
|
|
4
12
|
|
|
5
13
|
### Minor Changes
|
package/dist/client.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts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B,EAAE,UAAU,CAAC,OAAO,CAAC,EAAE,CAAA;SACzC,GACD;YACE,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;SAC1C,KACF,OAAO,CAAC,IAAI,CAAC,CAAA;KACnB,CACJ,CAAA;CACF,CAAA;AAuDD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,oBAAoB,GAAI,iBAAiB,cAAc,KAAG,cAkhCtE,CAAA;AAGD,OAAO,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAA"}
|
package/dist/client.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { upgrade as upgradeAsyncApi } from '@scalar/asyncapi-upgrader';
|
|
1
2
|
import { getValueAtPath } from '@scalar/helpers/object/get-value-at-path';
|
|
2
3
|
import { isObject } from '@scalar/helpers/object/is-object';
|
|
3
4
|
import { preventPollution } from '@scalar/helpers/object/prevent-pollution';
|
|
@@ -458,12 +459,19 @@ export const createWorkspaceStore = (workspaceProps) => {
|
|
|
458
459
|
}
|
|
459
460
|
// AsyncAPI ingestion: skip the OpenAPI-specific upgrade and validation pipeline.
|
|
460
461
|
// The OpenAPI `coerce` step would otherwise inject an empty `openapi: ''` field
|
|
461
|
-
// and break the type discriminator.
|
|
462
|
+
// and break the type discriminator. We still run the AsyncAPI-specific upgrader so
|
|
463
|
+
// 1.x/2.x documents are converted to the 3.x shape the renderer and traversal expect
|
|
464
|
+
// (e.g. lifting channel `publish`/`subscribe` into top-level `operations`).
|
|
462
465
|
if (isAsyncApiDocument(clonedRawInputDocument)) {
|
|
466
|
+
// Capture the original version before the upgrader bumps `asyncapi` to the latest.
|
|
467
|
+
const originalAasVersion = clonedRawInputDocument.asyncapi;
|
|
468
|
+
// The upgrader is typed against the loose `UnknownObject` shape; the result is a valid
|
|
469
|
+
// 3.x AsyncAPI document, so cast it back so the spread below still satisfies `AsyncApiDocument`.
|
|
470
|
+
const upgradedAsyncApiDocument = withMeasurementSync('upgrade', () => upgradeAsyncApi(deepClone(clonedRawInputDocument)));
|
|
463
471
|
const asyncApiDocument = createMagicProxy({
|
|
464
|
-
...
|
|
472
|
+
...upgradedAsyncApiDocument,
|
|
465
473
|
...meta,
|
|
466
|
-
'x-original-aas-version':
|
|
474
|
+
'x-original-aas-version': originalAasVersion,
|
|
467
475
|
'x-scalar-original-document-hash': input.documentHash,
|
|
468
476
|
'x-scalar-original-source-url': input.documentSource,
|
|
469
477
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-resolved-ref-deep.d.ts","sourceRoot":"","sources":["../../src/helpers/get-resolved-ref-deep.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,WAAW,EAAkB,MAAM,kDAAkD,CAAA;AAGnG,KAAK,OAAO,CAAC,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,YAAY,EAAE,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;CAAE,CAAA;AACzF,KAAK,SAAS,CAAC,IAAI,IAAI,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;AAE3C;;;;GAIG;AACH,KAAK,eAAe,CAAC,CAAC,IAAI,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC,GAC9C,CAAC,SAAS,SAAS,CAAC,MAAM,CAAC,CAAC,EAAE,GAC5B,eAAe,CAAC,CAAC,CAAC,EAAE,GACpB,CAAC,SAAS,MAAM,GACd;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,OAAO,CAAC,GAAG,CAAC,GAAG,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,YAAY,GAAG,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CAAE,GAC5G,CAAC,GACL,WAAW,CAAC,CAAC,CAAC,SAAS,MAAM,GAC3B;KACG,CAAC,IAAI,MAAM,WAAW,CAAC,CAAC,CAAC,GAAG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ACL,WAAW,CAAC,CAAC,CAAC,SAAS,MAAM,GAC3B;KACG,CAAC,IAAI,MAAM,WAAW,CAAC,CAAC,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,OAAO,CAAC,GAAG,CAAC,GAC/D,eAAe,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,YAAY,GACjD,eAAe,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CACvC,GACD,WAAW,CAAC,CAAC,CAAC,CAAA;AAEpB;;;;;;;GAOG;AACH,eAAO,MAAM,kBAAkB,GAAI,IAAI,EAAE,MAAM,SAAS,CAAC,IAAI,CAAC,KAAG,eAAe,CAAC,SAAS,CAAC,IAAI,CAAC,CA6D/F,CAAA"}
|
|
@@ -32,6 +32,19 @@ export const getResolvedRefDeep = (node) => {
|
|
|
32
32
|
if ('$ref' in current) {
|
|
33
33
|
const resolved = getResolvedRef(current);
|
|
34
34
|
const result = resolveNode(resolved);
|
|
35
|
+
// Preserve keywords declared alongside the `$ref`. A `$ref` may carry siblings that specialize the
|
|
36
|
+
// target — most notably the `$defs`/`$dynamicAnchor` binding used to express a generic schema like
|
|
37
|
+
// `Paginated<Planet>`. Per OpenAPI 3.1, siblings of a `$ref` override the resolved value, so we merge
|
|
38
|
+
// them on top. Without this the dynamic-ref binding is dropped and `$dynamicRef` cannot resolve.
|
|
39
|
+
const siblings = Object.entries(current).filter(([key]) => key !== '$ref' && key !== '$ref-value');
|
|
40
|
+
if (siblings.length > 0 && isObject(result)) {
|
|
41
|
+
const merged = { ...result };
|
|
42
|
+
for (const [key, value] of siblings) {
|
|
43
|
+
merged[key] = resolveNode(value);
|
|
44
|
+
}
|
|
45
|
+
cachedResults.set(rawValue, merged);
|
|
46
|
+
return merged;
|
|
47
|
+
}
|
|
35
48
|
cachedResults.set(rawValue, result);
|
|
36
49
|
return result;
|
|
37
50
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/openapi/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,MAAM,EAaZ,MAAM,oBAAoB,CAAA;AA6C3B,eAAO,MAAM,cAAc,GAAI,UAAU,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/openapi/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,MAAM,EAaZ,MAAM,oBAAoB,CAAA;AA6C3B,eAAO,MAAM,cAAc,GAAI,UAAU,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAukCjE,CAAA"}
|
|
@@ -158,6 +158,14 @@ export const generateSchema = (maybeRef) => {
|
|
|
158
158
|
];
|
|
159
159
|
const coreSchemaProperties = object({
|
|
160
160
|
name: optional(string({ typeComment: 'Schema name (extension).' })),
|
|
161
|
+
// JSON Schema 2020-12 core reference keywords. OpenAPI 3.1 Schema Objects may carry these for
|
|
162
|
+
// generic and recursive patterns such as `PaginatedResponse<T>`; keep them typed so coercion
|
|
163
|
+
// does not drop them. Resolution of `$dynamicRef` against the active `$dynamicAnchor` happens
|
|
164
|
+
// separately, see https://github.com/scalar/scalar/issues/9414.
|
|
165
|
+
$id: optional(string({ typeComment: 'JSON Schema 2020-12 schema identifier.' })),
|
|
166
|
+
$anchor: optional(string({ typeComment: 'JSON Schema 2020-12 plain-name anchor.' })),
|
|
167
|
+
$dynamicAnchor: optional(string({ typeComment: 'JSON Schema 2020-12 dynamic anchor; the target a matching `$dynamicRef` resolves to.' })),
|
|
168
|
+
$dynamicRef: optional(string({ typeComment: 'JSON Schema 2020-12 dynamic reference, resolved against the active `$dynamicAnchor`.' })),
|
|
161
169
|
title: optional(string({ typeComment: 'A title for the schema.' })),
|
|
162
170
|
description: optional(string({ typeComment: 'A description of the schema.' })),
|
|
163
171
|
default: optional(any({ typeComment: 'Default value for the schema.' })),
|
package/package.json
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"openapi",
|
|
17
17
|
"scalar"
|
|
18
18
|
],
|
|
19
|
-
"version": "0.55.
|
|
19
|
+
"version": "0.55.1",
|
|
20
20
|
"engines": {
|
|
21
21
|
"node": ">=22"
|
|
22
22
|
},
|
|
@@ -148,13 +148,14 @@
|
|
|
148
148
|
"type-fest": "^5.3.1",
|
|
149
149
|
"vue": "^3.5.30",
|
|
150
150
|
"yaml": "^2.8.3",
|
|
151
|
+
"@scalar/asyncapi-upgrader": "0.1.2",
|
|
151
152
|
"@scalar/helpers": "0.9.0",
|
|
152
|
-
"@scalar/json-magic": "0.12.17",
|
|
153
|
-
"@scalar/openapi-upgrader": "0.2.9",
|
|
154
153
|
"@scalar/schemas": "0.7.0",
|
|
155
|
-
"@scalar/
|
|
154
|
+
"@scalar/json-magic": "0.12.17",
|
|
156
155
|
"@scalar/snippetz": "0.9.19",
|
|
157
|
-
"@scalar/validation": "0.6.0"
|
|
156
|
+
"@scalar/validation": "0.6.0",
|
|
157
|
+
"@scalar/openapi-upgrader": "0.2.9",
|
|
158
|
+
"@scalar/types": "0.16.0"
|
|
158
159
|
},
|
|
159
160
|
"devDependencies": {
|
|
160
161
|
"@google-cloud/storage": "7.16.0",
|