@scalar/oas-utils 0.6.8 → 0.6.12

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,74 @@
1
1
  # @scalar/oas-utils
2
2
 
3
+ ## 0.6.12
4
+
5
+ ### Patch Changes
6
+
7
+ #### Updated Dependencies
8
+
9
+ - **@scalar/workspace-store@0.24.2**
10
+ - [#7643](https://github.com/scalar/scalar/pull/7643): chore: update typebox
11
+
12
+ ## 0.6.11
13
+
14
+ ### Patch Changes
15
+
16
+ - [#7581](https://github.com/scalar/scalar/pull/7581): fix: npm publish job
17
+
18
+ #### Updated Dependencies
19
+
20
+ - **@scalar/workspace-store@0.24.1**
21
+ - [#7580](https://github.com/scalar/scalar/pull/7580): feat: added default auth on client v2
22
+ - [#7581](https://github.com/scalar/scalar/pull/7581): fix: npm publish job
23
+ - [#7567](https://github.com/scalar/scalar/pull/7567): feat: add code samples to client v2
24
+ - [#7568](https://github.com/scalar/scalar/pull/7568): fix: object merge replacing arrays
25
+
26
+ - **@scalar/helpers@0.2.4**
27
+ - [#7581](https://github.com/scalar/scalar/pull/7581): fix: npm publish job
28
+ - [#7567](https://github.com/scalar/scalar/pull/7567): feat: add code samples to client v2
29
+
30
+ - **@scalar/json-magic@0.8.8**
31
+ - [#7581](https://github.com/scalar/scalar/pull/7581): fix: npm publish job
32
+
33
+ - **@scalar/object-utils@1.2.18**
34
+ - [#7581](https://github.com/scalar/scalar/pull/7581): fix: npm publish job
35
+
36
+ - **@scalar/types@0.5.4**
37
+ - [#7567](https://github.com/scalar/scalar/pull/7567): feat: add code samples to client v2
38
+
39
+ ## 0.6.10
40
+
41
+ ### Patch Changes
42
+
43
+ #### Updated Dependencies
44
+
45
+ - **@scalar/workspace-store@0.24.0**
46
+ - [#7564](https://github.com/scalar/scalar/pull/7564): feat: restore cursor position after path/method update
47
+ - [#7530](https://github.com/scalar/scalar/pull/7530): fix: handle operation level servers when adding a new operation
48
+ - [#7559](https://github.com/scalar/scalar/pull/7559): feat: set the content-type header when switching body content-type
49
+ - [#7549](https://github.com/scalar/scalar/pull/7549): feat: send request animation
50
+ - [#7575](https://github.com/scalar/scalar/pull/7575): feat: add support for object examples + hide body when empty
51
+
52
+ - **@scalar/helpers@0.2.3**
53
+ - [#7575](https://github.com/scalar/scalar/pull/7575): feat: add support for object examples + hide body when empty
54
+
55
+ - **@scalar/json-magic@0.8.7**
56
+
57
+ - **@scalar/object-utils@1.2.17**
58
+
59
+ ## 0.6.9
60
+
61
+ ### Patch Changes
62
+
63
+ - Updated dependencies [[`099237a`](https://github.com/scalar/scalar/commit/099237ad9cba4d29dcc5e742e39c3e42429a5817), [`bb52d9a`](https://github.com/scalar/scalar/commit/bb52d9a21e53628270bab93c0f03b5731c9c97c6)]:
64
+ - @scalar/workspace-store@0.23.1
65
+ - @scalar/types@0.5.3
66
+ - @scalar/helpers@0.2.2
67
+ - @scalar/json-magic@0.8.6
68
+ - @scalar/object-utils@1.2.16
69
+ - @scalar/openapi-types@0.5.3
70
+ - @scalar/themes@0.13.26
71
+
3
72
  ## 0.6.8
4
73
 
5
74
  ### Patch Changes
@@ -1,3 +1,2 @@
1
- /** biome-ignore-all lint/performance/noBarrelFile: entrypoint */
2
1
  export { type Environment, type EnvironmentPayload, environmentSchema } from './environment.js';
3
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/entities/environment/index.ts"],"names":[],"mappings":"AAAA,iEAAiE;AACjE,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/entities/environment/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAA"}
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/entities/environment/index.ts"],
4
- "sourcesContent": ["/** biome-ignore-all lint/performance/noBarrelFile: entrypoint */\nexport { type Environment, type EnvironmentPayload, environmentSchema } from './environment'\n"],
5
- "mappings": "AACA,SAAoD,yBAAyB;",
4
+ "sourcesContent": ["export { type Environment, type EnvironmentPayload, environmentSchema } from './environment'\n"],
5
+ "mappings": "AAAA,SAAoD,yBAAyB;",
6
6
  "names": []
7
7
  }
@@ -1,4 +1,3 @@
1
- /** biome-ignore-all lint/performance/noBarrelFile: entrypoint */
2
1
  /** Re-exported here for ease of use but we should use the other ones directly */
3
2
  export { type Oauth2Flow, type Oauth2FlowPayload, type SecuritySchemaHttp, type SecuritySchemaOpenId, type SecurityScheme, type SecuritySchemeApiKey, type SecuritySchemeOauth2, type SecuritySchemeOauth2Payload, type SecuritySchemePayload, oasSecurityRequirementSchema, oasSecuritySchemeSchema, pkceOptions, securityApiKeySchema, securityHttpSchema, securityOauthSchema, securityOpenIdSchema, securitySchemeSchema, } from '@scalar/types/entities';
4
3
  export { type Collection, type CollectionPayload, collectionSchema } from './collection.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/entities/spec/index.ts"],"names":[],"mappings":"AAAA,iEAAiE;AACjE,iFAAiF;AACjF,OAAO,EACL,KAAK,UAAU,EACf,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,cAAc,EACnB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,2BAA2B,EAChC,KAAK,qBAAqB,EAC1B,4BAA4B,EAC5B,uBAAuB,EACvB,WAAW,EACX,oBAAoB,EACpB,kBAAkB,EAClB,mBAAmB,EACnB,oBAAoB,EACpB,oBAAoB,GACrB,MAAM,wBAAwB,CAAA;AAE/B,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AACxF,OAAO,EACL,KAAK,SAAS,EACd,KAAK,gBAAgB,EACrB,eAAe,GAChB,MAAM,aAAa,CAAA;AACpB,OAAO,EAAE,KAAK,gBAAgB,EAAE,KAAK,uBAAuB,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAA;AACtG,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,uBAAuB,EAC5B,wBAAwB,EACxB,8BAA8B,EAC9B,oBAAoB,GACrB,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,aAAa,GACd,MAAM,YAAY,CAAA;AACnB,YAAY,EACV,kBAAkB,EAClB,mBAAmB,GACpB,MAAM,eAAe,CAAA;AACtB,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,aAAa,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AACxE,OAAO,EACL,KAAK,GAAG,EACR,KAAK,UAAU,EACf,gBAAgB,EAChB,8BAA8B,EAC9B,aAAa,EACb,gBAAgB,EAChB,SAAS,GACV,MAAM,gBAAgB,CAAA;AACvB,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,yBAAyB,GAC1B,MAAM,yBAAyB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/entities/spec/index.ts"],"names":[],"mappings":"AAAA,iFAAiF;AACjF,OAAO,EACL,KAAK,UAAU,EACf,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,cAAc,EACnB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,2BAA2B,EAChC,KAAK,qBAAqB,EAC1B,4BAA4B,EAC5B,uBAAuB,EACvB,WAAW,EACX,oBAAoB,EACpB,kBAAkB,EAClB,mBAAmB,EACnB,oBAAoB,EACpB,oBAAoB,GACrB,MAAM,wBAAwB,CAAA;AAE/B,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AACxF,OAAO,EACL,KAAK,SAAS,EACd,KAAK,gBAAgB,EACrB,eAAe,GAChB,MAAM,aAAa,CAAA;AACpB,OAAO,EAAE,KAAK,gBAAgB,EAAE,KAAK,uBAAuB,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAA;AACtG,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,uBAAuB,EAC5B,wBAAwB,EACxB,8BAA8B,EAC9B,oBAAoB,GACrB,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,aAAa,GACd,MAAM,YAAY,CAAA;AACnB,YAAY,EACV,kBAAkB,EAClB,mBAAmB,GACpB,MAAM,eAAe,CAAA;AACtB,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,aAAa,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AACxE,OAAO,EACL,KAAK,GAAG,EACR,KAAK,UAAU,EACf,gBAAgB,EAChB,8BAA8B,EAC9B,aAAa,EACb,gBAAgB,EAChB,SAAS,GACV,MAAM,gBAAgB,CAAA;AACvB,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,yBAAyB,GAC1B,MAAM,yBAAyB,CAAA"}
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/entities/spec/index.ts"],
4
- "sourcesContent": ["/** biome-ignore-all lint/performance/noBarrelFile: entrypoint */\n/** Re-exported here for ease of use but we should use the other ones directly */\nexport {\n type Oauth2Flow,\n type Oauth2FlowPayload,\n type SecuritySchemaHttp,\n type SecuritySchemaOpenId,\n type SecurityScheme,\n type SecuritySchemeApiKey,\n type SecuritySchemeOauth2,\n type SecuritySchemeOauth2Payload,\n type SecuritySchemePayload,\n oasSecurityRequirementSchema,\n oasSecuritySchemeSchema,\n pkceOptions,\n securityApiKeySchema,\n securityHttpSchema,\n securityOauthSchema,\n securityOpenIdSchema,\n securitySchemeSchema,\n} from '@scalar/types/entities'\n\nexport { type Collection, type CollectionPayload, collectionSchema } from './collection'\nexport {\n type Operation,\n type OperationPayload,\n operationSchema,\n} from './operation'\nexport { type RequestParameter, type RequestParameterPayload, oasParameterSchema } from './parameters'\nexport {\n type RequestExample,\n type RequestExampleParameter,\n createExampleFromRequest,\n requestExampleParametersSchema,\n requestExampleSchema,\n} from './request-examples'\nexport {\n type Request,\n type RequestEvent,\n type RequestMethod,\n type RequestPayload,\n type ResponseInstance,\n requestSchema,\n} from './requests'\nexport type {\n PostResponseScript,\n PostResponseScripts,\n} from './requests.ts'\nexport { type Server, type ServerPayload, serverSchema } from './server'\nexport {\n type Tag,\n type TagPayload,\n oasContactSchema,\n oasExternalDocumentationSchema,\n oasInfoSchema,\n oasLicenseSchema,\n tagSchema,\n} from './spec-objects'\nexport {\n type XScalarEnvironment,\n type XScalarEnvironments,\n xScalarEnvironmentsSchema,\n} from './x-scalar-environments'\n"],
5
- "mappings": "AAEA;AAAA,EAUE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAEP,SAAkD,wBAAwB;AAC1E;AAAA,EAGE;AAAA,OACK;AACP,SAA8D,0BAA0B;AACxF;AAAA,EAGE;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP;AAAA,EAME;AAAA,OACK;AAKP,SAA0C,oBAAoB;AAC9D;AAAA,EAGE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP;AAAA,EAGE;AAAA,OACK;",
4
+ "sourcesContent": ["/** Re-exported here for ease of use but we should use the other ones directly */\nexport {\n type Oauth2Flow,\n type Oauth2FlowPayload,\n type SecuritySchemaHttp,\n type SecuritySchemaOpenId,\n type SecurityScheme,\n type SecuritySchemeApiKey,\n type SecuritySchemeOauth2,\n type SecuritySchemeOauth2Payload,\n type SecuritySchemePayload,\n oasSecurityRequirementSchema,\n oasSecuritySchemeSchema,\n pkceOptions,\n securityApiKeySchema,\n securityHttpSchema,\n securityOauthSchema,\n securityOpenIdSchema,\n securitySchemeSchema,\n} from '@scalar/types/entities'\n\nexport { type Collection, type CollectionPayload, collectionSchema } from './collection'\nexport {\n type Operation,\n type OperationPayload,\n operationSchema,\n} from './operation'\nexport { type RequestParameter, type RequestParameterPayload, oasParameterSchema } from './parameters'\nexport {\n type RequestExample,\n type RequestExampleParameter,\n createExampleFromRequest,\n requestExampleParametersSchema,\n requestExampleSchema,\n} from './request-examples'\nexport {\n type Request,\n type RequestEvent,\n type RequestMethod,\n type RequestPayload,\n type ResponseInstance,\n requestSchema,\n} from './requests'\nexport type {\n PostResponseScript,\n PostResponseScripts,\n} from './requests.ts'\nexport { type Server, type ServerPayload, serverSchema } from './server'\nexport {\n type Tag,\n type TagPayload,\n oasContactSchema,\n oasExternalDocumentationSchema,\n oasInfoSchema,\n oasLicenseSchema,\n tagSchema,\n} from './spec-objects'\nexport {\n type XScalarEnvironment,\n type XScalarEnvironments,\n xScalarEnvironmentsSchema,\n} from './x-scalar-environments'\n"],
5
+ "mappings": "AACA;AAAA,EAUE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAEP,SAAkD,wBAAwB;AAC1E;AAAA,EAGE;AAAA,OACK;AACP,SAA8D,0BAA0B;AACxF;AAAA,EAGE;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP;AAAA,EAME;AAAA,OACK;AAKP,SAA0C,oBAAoB;AAC9D;AAAA,EAGE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP;AAAA,EAGE;AAAA,OACK;",
6
6
  "names": []
7
7
  }
package/package.json CHANGED
@@ -16,7 +16,7 @@
16
16
  "specification",
17
17
  "yaml"
18
18
  ],
19
- "version": "0.6.8",
19
+ "version": "0.6.12",
20
20
  "engines": {
21
21
  "node": ">=20"
22
22
  },
@@ -89,22 +89,22 @@
89
89
  "type-fest": "5.0.0",
90
90
  "yaml": "^2.8.0",
91
91
  "zod": "^4.1.11",
92
- "@scalar/json-magic": "0.8.6",
92
+ "@scalar/helpers": "0.2.4",
93
+ "@scalar/json-magic": "0.8.8",
93
94
  "@scalar/openapi-types": "0.5.3",
94
95
  "@scalar/themes": "0.13.26",
95
- "@scalar/types": "0.5.2",
96
- "@scalar/object-utils": "1.2.16",
97
- "@scalar/workspace-store": "0.23.0",
98
- "@scalar/helpers": "0.2.2"
96
+ "@scalar/types": "0.5.4",
97
+ "@scalar/workspace-store": "0.24.2",
98
+ "@scalar/object-utils": "1.2.18"
99
99
  },
100
100
  "devDependencies": {
101
101
  "@types/node": "^22.9.0",
102
102
  "vite": "7.1.11",
103
103
  "vitest": "3.2.4",
104
104
  "zod-to-ts": "github:amritk/zod-to-ts#build",
105
- "@scalar/build-tooling": "0.3.1",
106
- "@scalar/openapi-parser": "0.23.7",
107
- "@scalar/openapi-types": "0.5.3"
105
+ "@scalar/openapi-types": "0.5.3",
106
+ "@scalar/openapi-parser": "0.23.9",
107
+ "@scalar/build-tooling": "0.4.0"
108
108
  },
109
109
  "scripts": {
110
110
  "build": "scalar-build-esbuild",