github Effect-TS/effect effect@3.14.6

latest releases: @effect/typeclass@0.33.6, @effect/sql-sqlite-node@0.34.6, @effect/vitest@0.20.6...
one day ago

Patch Changes

  • #4674 47618c1 Thanks @suddenlyGiovanni! - Improved TsDoc documentation for MutableHashSet module.

  • #4699 6077882 Thanks @gcanti! - Fix JSONSchema generation for record values that include undefined, closes #4697.

    Before

    import { JSONSchema, Schema } from "effect"
    
    const schema = Schema.partial(
      Schema.Struct(
        { foo: Schema.Number },
        {
          key: Schema.String,
          value: Schema.Number
        }
      )
    )
    
    console.log(JSON.stringify(JSONSchema.make(schema), null, 2))
    // throws

    After

    import { JSONSchema, Schema } from "effect"
    
    const schema = Schema.partial(
      Schema.Struct(
        { foo: Schema.Number },
        {
          key: Schema.String,
          value: Schema.Number
        }
      )
    )
    
    console.log(JSON.stringify(JSONSchema.make(schema), null, 2))
    /*
    Output:
    {
      "$schema": "http://json-schema.org/draft-07/schema#",
      "type": "object",
      "required": [],
      "properties": {
        "foo": {
          "type": "number"
        }
      },
      "additionalProperties": {
        "type": "number"
      }
    }
    */

Don't miss a new effect release

NewReleases is sending notifications on new releases.