@scalar/workspace-store 0.14.1 → 0.14.2
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 +12 -0
- package/dist/plugins.d.ts.map +1 -1
- package/dist/plugins.js +3 -0
- package/dist/plugins.js.map +2 -2
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @scalar/workspace-store
|
|
2
2
|
|
|
3
|
+
## 0.14.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 443c507: feat: make required: null an empty array
|
|
8
|
+
- Updated dependencies [88385b1]
|
|
9
|
+
- Updated dependencies [50032be]
|
|
10
|
+
- @scalar/json-magic@0.3.1
|
|
11
|
+
- @scalar/types@0.2.13
|
|
12
|
+
- @scalar/openapi-parser@0.20.1
|
|
13
|
+
- @scalar/code-highlight@0.1.9
|
|
14
|
+
|
|
3
15
|
## 0.14.1
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/plugins.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../src/plugins.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAEhE;;;;;GAKG;AACH,eAAO,MAAM,aAAa,QAAO,eAahC,CAAA;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,qBAAqB,QAAO,eA+BxC,CAAA;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,cAAc,QAAO,eAwCjC,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,mBAAmB,QAAO,eAuBtC,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,eAAO,MAAM,OAAO,QAAO,
|
|
1
|
+
{"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../src/plugins.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAEhE;;;;;GAKG;AACH,eAAO,MAAM,aAAa,QAAO,eAahC,CAAA;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,qBAAqB,QAAO,eA+BxC,CAAA;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,cAAc,QAAO,eAwCjC,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,mBAAmB,QAAO,eAuBtC,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,eAAO,MAAM,OAAO,QAAO,eA0B1B,CAAA"}
|
package/dist/plugins.js
CHANGED
package/dist/plugins.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/plugins.ts"],
|
|
4
|
-
"sourcesContent": ["/**\n * This file contains a collection of plugins used for the bundler.\n * Plugins defined here can extend or modify the behavior of the bundling process,\n * such as adding lifecycle hooks or custom processing logic.\n */\nimport { isLocalRef } from '@/helpers/general'\nimport type { LifecyclePlugin } from '@scalar/json-magic/bundle'\n\n/**\n * A lifecycle plugin that adds a `$status` property to nodes during resolution.\n * - Sets `$status` to 'loading' when resolution starts.\n * - Sets `$status` to 'error' if resolution fails.\n * - Removes `$status` when resolution succeeds.\n */\nexport const loadingStatus = (): LifecyclePlugin => {\n return {\n type: 'lifecycle',\n onResolveStart: (node) => {\n node['$status'] = 'loading'\n },\n onResolveError: (node) => {\n node['$status'] = 'error'\n },\n onResolveSuccess: (node) => {\n delete node['$status']\n },\n }\n}\n\n/**\n * Lifecycle plugin to resolve and embed external content referenced by an 'externalValue' property in a node.\n *\n * When a node contains an 'externalValue' property (as a string), this plugin will:\n * - Fetch the external resource (such as a URL or file) using the fetchUrls plugin.\n * - If the fetch is successful, assign the fetched data to the node's 'value' property.\n *\n * This is useful for inlining external content (like examples or schemas) into the OpenAPI document during bundling.\n *\n * @param node - The node being processed, which may contain an 'externalValue' property.\n */\nexport const externalValueResolver = (): LifecyclePlugin => {\n return {\n type: 'lifecycle',\n onAfterNodeProcess: async (node, context) => {\n const externalValue = node['externalValue']\n const cache = context.resolutionCache\n\n // Only process if 'externalValue' is a string\n if (typeof externalValue !== 'string') {\n return\n }\n\n const loader = context.loaders.find((it) => it.validate(externalValue))\n\n // We can not process the external value\n if (!loader) {\n return\n }\n\n if (!cache.has(externalValue)) {\n cache.set(externalValue, loader.exec(externalValue))\n }\n\n const result = await cache.get(externalValue)\n\n // If fetch is successful, assign the data to the node's 'value' property\n if (result?.ok) {\n node['value'] = result.data\n }\n },\n }\n}\n\n/**\n * Lifecycle plugin to resolve $ref on any object, including non-standard locations like the info object.\n *\n * This plugin will:\n * - Detect if a node contains a $ref property (as a string).\n * - If the node is under the 'info' path, attempt to resolve the reference using fetchUrls.\n * - Replace the node's properties with the resolved data if successful.\n *\n * Note: This currently only supports refs on the 'info' object and does not handle primitive types.\n */\nexport const refsEverywhere = (): LifecyclePlugin => {\n return {\n type: 'lifecycle',\n onBeforeNodeProcess: async (node, context) => {\n const { path, resolutionCache, parentNode } = context\n const ref = node['$ref']\n\n // Only process nodes that have a $ref property as a string\n if (typeof ref !== 'string') {\n return\n }\n\n // Can not resolve top level refs\n if (!parentNode || !path.length) {\n return\n }\n\n const loader = context.loaders.find((it) => it.validate(ref))\n\n // Can not load the external ref\n if (!loader) {\n return\n }\n\n // Support resolving $ref on the info object\n if (path[0] === 'info') {\n // Use the cache to avoid duplicate fetches\n if (!resolutionCache.has(ref)) {\n resolutionCache.set(ref, loader.exec(ref))\n }\n\n const result = await resolutionCache.get(ref)\n\n if (result?.ok) {\n // Replace the ref with the resolved data\n parentNode[path.at(-1)!] = result.data\n }\n }\n },\n }\n}\n\n/**\n * Lifecycle plugin to restore original $ref values after processing.\n *\n * This plugin is intended to be used as a \"lifecycle\" plugin in the bundling process.\n * It operates in the `onAfterNodeProcess` hook, and its main purpose is to restore\n * the original $ref values for external references that may have been replaced or\n * rewritten during the bundling process.\n *\n * How it works:\n * - For each node processed, if the node contains a $ref property (as a string),\n * and the root document contains an \"x-ext-urls\" mapping object,\n * the plugin will attempt to restore the original $ref value.\n * - The \"x-ext-urls\" object is expected to be a mapping from the rewritten $ref\n * (e.g., a hashed or compressed reference) back to the original external URL or path.\n * - If a mapping exists for the current $ref, the plugin replaces the $ref value\n * with the original value from the mapping. If no mapping exists (e.g., for local refs),\n * the $ref value is left unchanged.\n *\n * This is useful for scenarios where you want to present or export the bundled document\n * with the original external $ref values, rather than the internal or rewritten ones.\n *\n * @returns {LifecyclePlugin} The plugin object for use in the bundler.\n */\nexport const restoreOriginalRefs = (): LifecyclePlugin => {\n return {\n type: 'lifecycle',\n onBeforeNodeProcess: (node, context) => {\n const ref = node['$ref']\n const root = context.rootNode\n const extUrls = root['x-ext-urls']\n\n // Only process if $ref is a string and x-ext-urls is a valid object\n if (typeof ref !== 'string' || typeof extUrls !== 'object' || extUrls === null || !isLocalRef(ref)) {\n return\n }\n\n // Working with local refs\n\n const segments = ref.split('/')\n const key = segments.at(-1) ?? ''\n\n // Replace the $ref with the original version from the mapping,\n // or keep the current version if there is no mapping (e.g., for local refs)\n node['$ref'] = (extUrls as Record<string, string>)[key] ?? ref\n },\n }\n}\n\n/**\n * Lifecycle plugin to automatically add missing \"type\" fields to OpenAPI/JSON Schema nodes.\n *\n * This plugin is intended for use as a \"lifecycle\" plugin during the bundling process.\n * It ensures that schema objects are explicitly typed, improving compatibility with OpenAPI tools and validators.\n *\n * Behavior:\n * - If a schema object has a \"properties\" field but no \"type\", it sets \"type\" to \"object\".\n * This is required for schemas that define properties but omit the type.\n *\n * - If a schema object contains any array-related keywords (\"items\", \"prefixItems\", \"minItems\", \"maxItems\", or \"uniqueItems\")\n * and lacks a \"type\", it sets \"type\" to \"array\". This clarifies the intent for array schemas missing an explicit type.\n *\n * - If a schema object has a \"pattern\" field but no \"type\", it sets \"type\" to \"string\".\n * This ensures that pattern constraints are only applied to string-typed schemas.\n *\n * Usage:\n * Add this plugin to the bundler to automatically fix schemas missing \"type: object\", \"type: array\", or \"type: string\"\n * when defining properties, array-related keywords, or pattern constraints.\n *\n * Examples:\n * // Before:\n * { properties: { foo: { type: \"string\" } } }\n * // After:\n * { type: \"object\", properties: { foo: { type: \"string\" } } }\n *\n * // Before:\n * { items: { type: \"string\" } }\n * // After:\n * { type: \"array\", items: { type: \"string\" } }\n *\n * // Before:\n * { pattern: \"^[a-z]+$\" }\n * // After:\n * { type: \"string\", pattern: \"^[a-z]+$\" }\n */\nexport const cleanUp = (): LifecyclePlugin => {\n return {\n type: 'lifecycle',\n onBeforeNodeProcess: (node) => {\n // If the node has \"properties\" but no \"type\", set \"type\" to \"object\"\n if ('properties' in node && !('type' in node)) {\n node['type'] = 'object'\n }\n\n // Set type to 'array' for schemas that have array-related keywords but are missing a type\n const arrayKeywords = ['items', 'prefixItems', 'minItems', 'maxItems', 'uniqueItems']\n if (arrayKeywords.some((it) => Object.hasOwn(node, it)) && !('type' in node)) {\n node['type'] = 'array'\n }\n\n // If the node has \"pattern\" but no \"type\", set \"type\" to \"string\"\n if ('pattern' in node && !('type' in node)) {\n node['type'] = 'string'\n }\n },\n }\n}\n"],
|
|
5
|
-
"mappings": "AAKA,SAAS,kBAAkB;AASpB,MAAM,gBAAgB,MAAuB;AAClD,SAAO;AAAA,IACL,MAAM;AAAA,IACN,gBAAgB,CAAC,SAAS;AACxB,WAAK,SAAS,IAAI;AAAA,IACpB;AAAA,IACA,gBAAgB,CAAC,SAAS;AACxB,WAAK,SAAS,IAAI;AAAA,IACpB;AAAA,IACA,kBAAkB,CAAC,SAAS;AAC1B,aAAO,KAAK,SAAS;AAAA,IACvB;AAAA,EACF;AACF;AAaO,MAAM,wBAAwB,MAAuB;AAC1D,SAAO;AAAA,IACL,MAAM;AAAA,IACN,oBAAoB,OAAO,MAAM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;AAAA,IACL,MAAM;AAAA,IACN,qBAAqB,CAAC,MAAM,YAAY;AACtC,YAAM,MAAM,KAAK,MAAM;AACvB,YAAM,OAAO,QAAQ;AACrB,YAAM,UAAU,KAAK,YAAY;AAGjC,UAAI,OAAO,QAAQ,YAAY,OAAO,YAAY,YAAY,YAAY,QAAQ,CAAC,WAAW,GAAG,GAAG;AAClG;AAAA,MACF;AAIA,YAAM,WAAW,IAAI,MAAM,GAAG;AAC9B,YAAM,MAAM,SAAS,GAAG,EAAE,KAAK;AAI/B,WAAK,MAAM,IAAK,QAAmC,GAAG,KAAK;AAAA,IAC7D;AAAA,EACF;AACF;AAsCO,MAAM,UAAU,MAAuB;AAC5C,SAAO;AAAA,IACL,MAAM;AAAA,IACN,qBAAqB,CAAC,SAAS;AAE7B,UAAI,gBAAgB,QAAQ,EAAE,UAAU,OAAO;AAC7C,aAAK,MAAM,IAAI;AAAA,MACjB;AAGA,YAAM,gBAAgB,CAAC,SAAS,eAAe,YAAY,YAAY,aAAa;AACpF,UAAI,cAAc,KAAK,CAAC,OAAO,OAAO,OAAO,MAAM,EAAE,CAAC,KAAK,EAAE,UAAU,OAAO;AAC5E,aAAK,MAAM,IAAI;AAAA,MACjB;AAGA,UAAI,aAAa,QAAQ,EAAE,UAAU,OAAO;AAC1C,aAAK,MAAM,IAAI;AAAA,MACjB;AAAA,IACF;AAAA,EACF;AACF;",
|
|
4
|
+
"sourcesContent": ["/**\n * This file contains a collection of plugins used for the bundler.\n * Plugins defined here can extend or modify the behavior of the bundling process,\n * such as adding lifecycle hooks or custom processing logic.\n */\nimport { isLocalRef } from '@/helpers/general'\nimport type { LifecyclePlugin } from '@scalar/json-magic/bundle'\n\n/**\n * A lifecycle plugin that adds a `$status` property to nodes during resolution.\n * - Sets `$status` to 'loading' when resolution starts.\n * - Sets `$status` to 'error' if resolution fails.\n * - Removes `$status` when resolution succeeds.\n */\nexport const loadingStatus = (): LifecyclePlugin => {\n return {\n type: 'lifecycle',\n onResolveStart: (node) => {\n node['$status'] = 'loading'\n },\n onResolveError: (node) => {\n node['$status'] = 'error'\n },\n onResolveSuccess: (node) => {\n delete node['$status']\n },\n }\n}\n\n/**\n * Lifecycle plugin to resolve and embed external content referenced by an 'externalValue' property in a node.\n *\n * When a node contains an 'externalValue' property (as a string), this plugin will:\n * - Fetch the external resource (such as a URL or file) using the fetchUrls plugin.\n * - If the fetch is successful, assign the fetched data to the node's 'value' property.\n *\n * This is useful for inlining external content (like examples or schemas) into the OpenAPI document during bundling.\n *\n * @param node - The node being processed, which may contain an 'externalValue' property.\n */\nexport const externalValueResolver = (): LifecyclePlugin => {\n return {\n type: 'lifecycle',\n onAfterNodeProcess: async (node, context) => {\n const externalValue = node['externalValue']\n const cache = context.resolutionCache\n\n // Only process if 'externalValue' is a string\n if (typeof externalValue !== 'string') {\n return\n }\n\n const loader = context.loaders.find((it) => it.validate(externalValue))\n\n // We can not process the external value\n if (!loader) {\n return\n }\n\n if (!cache.has(externalValue)) {\n cache.set(externalValue, loader.exec(externalValue))\n }\n\n const result = await cache.get(externalValue)\n\n // If fetch is successful, assign the data to the node's 'value' property\n if (result?.ok) {\n node['value'] = result.data\n }\n },\n }\n}\n\n/**\n * Lifecycle plugin to resolve $ref on any object, including non-standard locations like the info object.\n *\n * This plugin will:\n * - Detect if a node contains a $ref property (as a string).\n * - If the node is under the 'info' path, attempt to resolve the reference using fetchUrls.\n * - Replace the node's properties with the resolved data if successful.\n *\n * Note: This currently only supports refs on the 'info' object and does not handle primitive types.\n */\nexport const refsEverywhere = (): LifecyclePlugin => {\n return {\n type: 'lifecycle',\n onBeforeNodeProcess: async (node, context) => {\n const { path, resolutionCache, parentNode } = context\n const ref = node['$ref']\n\n // Only process nodes that have a $ref property as a string\n if (typeof ref !== 'string') {\n return\n }\n\n // Can not resolve top level refs\n if (!parentNode || !path.length) {\n return\n }\n\n const loader = context.loaders.find((it) => it.validate(ref))\n\n // Can not load the external ref\n if (!loader) {\n return\n }\n\n // Support resolving $ref on the info object\n if (path[0] === 'info') {\n // Use the cache to avoid duplicate fetches\n if (!resolutionCache.has(ref)) {\n resolutionCache.set(ref, loader.exec(ref))\n }\n\n const result = await resolutionCache.get(ref)\n\n if (result?.ok) {\n // Replace the ref with the resolved data\n parentNode[path.at(-1)!] = result.data\n }\n }\n },\n }\n}\n\n/**\n * Lifecycle plugin to restore original $ref values after processing.\n *\n * This plugin is intended to be used as a \"lifecycle\" plugin in the bundling process.\n * It operates in the `onAfterNodeProcess` hook, and its main purpose is to restore\n * the original $ref values for external references that may have been replaced or\n * rewritten during the bundling process.\n *\n * How it works:\n * - For each node processed, if the node contains a $ref property (as a string),\n * and the root document contains an \"x-ext-urls\" mapping object,\n * the plugin will attempt to restore the original $ref value.\n * - The \"x-ext-urls\" object is expected to be a mapping from the rewritten $ref\n * (e.g., a hashed or compressed reference) back to the original external URL or path.\n * - If a mapping exists for the current $ref, the plugin replaces the $ref value\n * with the original value from the mapping. If no mapping exists (e.g., for local refs),\n * the $ref value is left unchanged.\n *\n * This is useful for scenarios where you want to present or export the bundled document\n * with the original external $ref values, rather than the internal or rewritten ones.\n *\n * @returns {LifecyclePlugin} The plugin object for use in the bundler.\n */\nexport const restoreOriginalRefs = (): LifecyclePlugin => {\n return {\n type: 'lifecycle',\n onBeforeNodeProcess: (node, context) => {\n const ref = node['$ref']\n const root = context.rootNode\n const extUrls = root['x-ext-urls']\n\n // Only process if $ref is a string and x-ext-urls is a valid object\n if (typeof ref !== 'string' || typeof extUrls !== 'object' || extUrls === null || !isLocalRef(ref)) {\n return\n }\n\n // Working with local refs\n\n const segments = ref.split('/')\n const key = segments.at(-1) ?? ''\n\n // Replace the $ref with the original version from the mapping,\n // or keep the current version if there is no mapping (e.g., for local refs)\n node['$ref'] = (extUrls as Record<string, string>)[key] ?? ref\n },\n }\n}\n\n/**\n * Lifecycle plugin to automatically add missing \"type\" fields to OpenAPI/JSON Schema nodes.\n *\n * This plugin is intended for use as a \"lifecycle\" plugin during the bundling process.\n * It ensures that schema objects are explicitly typed, improving compatibility with OpenAPI tools and validators.\n *\n * Behavior:\n * - If a schema object has a \"properties\" field but no \"type\", it sets \"type\" to \"object\".\n * This is required for schemas that define properties but omit the type.\n *\n * - If a schema object contains any array-related keywords (\"items\", \"prefixItems\", \"minItems\", \"maxItems\", or \"uniqueItems\")\n * and lacks a \"type\", it sets \"type\" to \"array\". This clarifies the intent for array schemas missing an explicit type.\n *\n * - If a schema object has a \"pattern\" field but no \"type\", it sets \"type\" to \"string\".\n * This ensures that pattern constraints are only applied to string-typed schemas.\n *\n * Usage:\n * Add this plugin to the bundler to automatically fix schemas missing \"type: object\", \"type: array\", or \"type: string\"\n * when defining properties, array-related keywords, or pattern constraints.\n *\n * Examples:\n * // Before:\n * { properties: { foo: { type: \"string\" } } }\n * // After:\n * { type: \"object\", properties: { foo: { type: \"string\" } } }\n *\n * // Before:\n * { items: { type: \"string\" } }\n * // After:\n * { type: \"array\", items: { type: \"string\" } }\n *\n * // Before:\n * { pattern: \"^[a-z]+$\" }\n * // After:\n * { type: \"string\", pattern: \"^[a-z]+$\" }\n */\nexport const cleanUp = (): LifecyclePlugin => {\n return {\n type: 'lifecycle',\n onBeforeNodeProcess: (node) => {\n // If the node has \"properties\" but no \"type\", set \"type\" to \"object\"\n if ('properties' in node && !('type' in node)) {\n node['type'] = 'object'\n }\n\n // Set type to 'array' for schemas that have array-related keywords but are missing a type\n const arrayKeywords = ['items', 'prefixItems', 'minItems', 'maxItems', 'uniqueItems']\n if (arrayKeywords.some((it) => Object.hasOwn(node, it)) && !('type' in node)) {\n node['type'] = 'array'\n }\n\n // If the node has \"pattern\" but no \"type\", set \"type\" to \"string\"\n if ('pattern' in node && !('type' in node)) {\n node['type'] = 'string'\n }\n\n // Convert required: null to required: [] for object schemas\n if ('required' in node && node.required === null && 'properties' in node) {\n node.required = []\n }\n },\n }\n}\n"],
|
|
5
|
+
"mappings": "AAKA,SAAS,kBAAkB;AASpB,MAAM,gBAAgB,MAAuB;AAClD,SAAO;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AW,CAAC;AAAA,MACnB;AAAA,IACF;AAAA,EACF;AACF;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"openapi",
|
|
17
17
|
"scalar"
|
|
18
18
|
],
|
|
19
|
-
"version": "0.14.
|
|
19
|
+
"version": "0.14.2",
|
|
20
20
|
"engines": {
|
|
21
21
|
"node": ">=18"
|
|
22
22
|
},
|
|
@@ -68,16 +68,16 @@
|
|
|
68
68
|
"CHANGELOG.md"
|
|
69
69
|
],
|
|
70
70
|
"dependencies": {
|
|
71
|
-
"@sinclair/typebox": "https://raw.githubusercontent.com/DemonHa/typebox/refs/heads/amrit/build/target/
|
|
71
|
+
"@sinclair/typebox": "https://raw.githubusercontent.com/DemonHa/typebox/refs/heads/amrit/build-2/target/sinclair-typebox-0.34.40.tgz",
|
|
72
72
|
"github-slugger": "^2.0.0",
|
|
73
73
|
"type-fest": "4.41.0",
|
|
74
74
|
"vue": "^3.5.17",
|
|
75
75
|
"yaml": "2.8.0",
|
|
76
76
|
"@scalar/code-highlight": "0.1.9",
|
|
77
77
|
"@scalar/helpers": "0.0.8",
|
|
78
|
-
"@scalar/
|
|
79
|
-
"@scalar/
|
|
80
|
-
"@scalar/
|
|
78
|
+
"@scalar/openapi-parser": "0.20.1",
|
|
79
|
+
"@scalar/types": "0.2.13",
|
|
80
|
+
"@scalar/json-magic": "0.3.1"
|
|
81
81
|
},
|
|
82
82
|
"devDependencies": {
|
|
83
83
|
"@google-cloud/storage": "7.16.0",
|