oas-truth 0.5.1 → 0.6.0

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/README.md CHANGED
@@ -36,7 +36,7 @@ dependency order. `makeSchemaDeclarations` returns the same declarations one by
36
36
 
37
37
  Recursive `$ref` cycles keep a helper type so the const can be annotated (`z.ZodType<NodeType>`,
38
38
  `v.GenericSchema<NodeType>`, `Schema.Codec<NodeType>`). That helper matches what the library
39
- infers — `| undefined` on Valibot and Effect optionals, `readonly` arrays on Effect — so it
39
+ infers — `| undefined` on Valibot optionals, `readonly` arrays on Effect — so it
40
40
  type-checks under `exactOptionalPropertyTypes`. Arktype cycles become
41
41
  `scope({...}).export().Member`; that declaration's `importLine` is then
42
42
  `import { type, scope } from 'arktype'`. `schemaImportLine` is the same function
package/dist/index.js CHANGED
@@ -234,10 +234,7 @@ function makeEffectAdapter() {
234
234
  cyclicAnnotation(typeName) {
235
235
  return `Schema.Codec<${typeName}>`;
236
236
  },
237
- cyclicTypeStyle: {
238
- optionalUndefined: true,
239
- readonlyArrays: true
240
- },
237
+ cyclicTypeStyle: { readonlyArrays: true },
241
238
  reservedTypeNames: ["Schema", "Effect"],
242
239
  withRef(expr, ref) {
243
240
  return isBareIdent(expr) ? expr : `${expr}.annotate({identifier:${JSON.stringify(ref)}})`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oas-truth",
3
- "version": "0.5.1",
3
+ "version": "0.6.0",
4
4
  "description": "oas-truth is a parser from OpenAPI and TypeSpec to a typed OpenAPI document",
5
5
  "keywords": [
6
6
  "openapi",
@@ -28,7 +28,7 @@
28
28
  }
29
29
  },
30
30
  "dependencies": {
31
- "schema-truth": "^0.7.0"
31
+ "schema-truth": "^0.8.3"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@apidevtools/swagger-parser": "^13.1.0",
@@ -40,7 +40,7 @@
40
40
  "@typespec/rest": "0.87.0",
41
41
  "@typespec/versioning": "0.87.0",
42
42
  "arktype": "^2.2.9",
43
- "effect": "4.0.6",
43
+ "effect": "4.1.1",
44
44
  "typebox": "^1.4.3",
45
45
  "typescript": "^7.0.2",
46
46
  "valibot": "^1.5.0",