@scalar/oas-utils 0.6.8 → 0.6.11

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,65 @@
1
1
  # @scalar/oas-utils
2
2
 
3
+ ## 0.6.11
4
+
5
+ ### Patch Changes
6
+
7
+ - [#7581](https://github.com/scalar/scalar/pull/7581): fix: npm publish job
8
+
9
+ #### Updated Dependencies
10
+
11
+ - **@scalar/workspace-store@0.24.1**
12
+ - [#7580](https://github.com/scalar/scalar/pull/7580): feat: added default auth on client v2
13
+ - [#7581](https://github.com/scalar/scalar/pull/7581): fix: npm publish job
14
+ - [#7567](https://github.com/scalar/scalar/pull/7567): feat: add code samples to client v2
15
+ - [#7568](https://github.com/scalar/scalar/pull/7568): fix: object merge replacing arrays
16
+
17
+ - **@scalar/helpers@0.2.4**
18
+ - [#7581](https://github.com/scalar/scalar/pull/7581): fix: npm publish job
19
+ - [#7567](https://github.com/scalar/scalar/pull/7567): feat: add code samples to client v2
20
+
21
+ - **@scalar/json-magic@0.8.8**
22
+ - [#7581](https://github.com/scalar/scalar/pull/7581): fix: npm publish job
23
+
24
+ - **@scalar/object-utils@1.2.18**
25
+ - [#7581](https://github.com/scalar/scalar/pull/7581): fix: npm publish job
26
+
27
+ - **@scalar/types@0.5.4**
28
+ - [#7567](https://github.com/scalar/scalar/pull/7567): feat: add code samples to client v2
29
+
30
+ ## 0.6.10
31
+
32
+ ### Patch Changes
33
+
34
+ #### Updated Dependencies
35
+
36
+ - **@scalar/workspace-store@0.24.0**
37
+ - [#7564](https://github.com/scalar/scalar/pull/7564): feat: restore cursor position after path/method update
38
+ - [#7530](https://github.com/scalar/scalar/pull/7530): fix: handle operation level servers when adding a new operation
39
+ - [#7559](https://github.com/scalar/scalar/pull/7559): feat: set the content-type header when switching body content-type
40
+ - [#7549](https://github.com/scalar/scalar/pull/7549): feat: send request animation
41
+ - [#7575](https://github.com/scalar/scalar/pull/7575): feat: add support for object examples + hide body when empty
42
+
43
+ - **@scalar/helpers@0.2.3**
44
+ - [#7575](https://github.com/scalar/scalar/pull/7575): feat: add support for object examples + hide body when empty
45
+
46
+ - **@scalar/json-magic@0.8.7**
47
+
48
+ - **@scalar/object-utils@1.2.17**
49
+
50
+ ## 0.6.9
51
+
52
+ ### Patch Changes
53
+
54
+ - Updated dependencies [[`099237a`](https://github.com/scalar/scalar/commit/099237ad9cba4d29dcc5e742e39c3e42429a5817), [`bb52d9a`](https://github.com/scalar/scalar/commit/bb52d9a21e53628270bab93c0f03b5731c9c97c6)]:
55
+ - @scalar/workspace-store@0.23.1
56
+ - @scalar/types@0.5.3
57
+ - @scalar/helpers@0.2.2
58
+ - @scalar/json-magic@0.8.6
59
+ - @scalar/object-utils@1.2.16
60
+ - @scalar/openapi-types@0.5.3
61
+ - @scalar/themes@0.13.26
62
+
3
63
  ## 0.6.8
4
64
 
5
65
  ### 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.11",
20
20
  "engines": {
21
21
  "node": ">=20"
22
22
  },
@@ -89,21 +89,21 @@
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",
93
- "@scalar/openapi-types": "0.5.3",
92
+ "@scalar/json-magic": "0.8.8",
93
+ "@scalar/helpers": "0.2.4",
94
+ "@scalar/object-utils": "1.2.18",
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/openapi-types": "0.5.3",
98
+ "@scalar/workspace-store": "0.24.1"
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",
105
+ "@scalar/build-tooling": "0.4.0",
106
+ "@scalar/openapi-parser": "0.23.9",
107
107
  "@scalar/openapi-types": "0.5.3"
108
108
  },
109
109
  "scripts": {