Skip to content

Releases: Effect-TS/effect

[email protected]

21 Oct 20:54
6734a03
Compare
Choose a tag to compare

Minor Changes

  • #3764 4a01828 Thanks @evelant! - add TSubscriptionRef

  • #3764 4a01828 Thanks @evelant! - add Stream.fromTQueue & Stream.fromTPubSub

  • #3764 c79c4c1 Thanks @gcanti! - Merge Schema into Effect.

    Modules

    Before

    import {
      Arbitrary,
      AST,
      FastCheck,
      JSONSchema,
      ParseResult,
      Pretty,
      Schema
    } from "@effect/schema"

    After

    import {
      Arbitrary,
      SchemaAST, // changed
      FastCheck,
      JSONSchema,
      ParseResult,
      Pretty,
      Schema
    } from "effect"

    Formatters

    ArrayFormatter / TreeFormatter merged into ParseResult module.

    Before

    import { ArrayFormatter, TreeFormatter } from "@effect/schema"

    After

    import { ArrayFormatter, TreeFormatter } from "effect/ParseResult"

    Serializable

    Merged into Schema module.

    Equivalence

    Merged into Schema module.

    Before

    import { Equivalence } from "@effect/schema"
    
    Equivalence.make(myschema)

    After

    import { Schema } from "@effect/schema"
    
    Schema.equivalence(myschema)
  • #3764 38d30f0 Thanks @tim-smart! - add option to .releaseLock a ReadableStream on finalization

  • #3764 5821ce3 Thanks @patroza! - feat: implement Redactable. Used by Headers to not log sensitive information

@effect/[email protected]

21 Oct 20:55
6734a03
Compare
Choose a tag to compare

Patch Changes

  • #3764 685a460 Thanks @jessekelly881! - Adds property testing to @effect/vitest

    import { Schema } from "effect"
    import { it } from "@effect/vitest"
    
    const realNumber = Schema.Finite.pipe(Schema.nonNaN())
    
    it.prop("symmetry", [realNumber, realNumber], ([a, b]) => a + b === b + a)
    
    it.effect.prop("symmetry", [realNumber, realNumber], ([a, b]) =>
      Effect.gen(function* () {
        yield* Effect.void
        return a + b === b + a
      })
    )
    
    it.scoped.prop(
      "should detect the substring",
      { a: Schema.String, b: Schema.String, c: Schema.String },
      ({ a, b, c }) =>
        Effect.gen(function* () {
          yield* Effect.scope
          return (a + b + c).includes(b)
        })
    )
  • Updated dependencies [4a01828, 4a01828, c79c4c1, 38d30f0, 5821ce3]:

@effect/[email protected]

21 Oct 20:55
6734a03
Compare
Choose a tag to compare

@effect/[email protected]

21 Oct 23:28
cdca95e
Compare
Choose a tag to compare

Patch Changes

@effect/[email protected]

21 Oct 20:55
6734a03
Compare
Choose a tag to compare

@effect/[email protected]

21 Oct 01:48
736897a
Compare
Choose a tag to compare

Minor Changes

@effect/[email protected]

21 Oct 23:29
cdca95e
Compare
Choose a tag to compare

Patch Changes

@effect/[email protected]

21 Oct 20:55
6734a03
Compare
Choose a tag to compare

@effect/[email protected]

21 Oct 01:49
736897a
Compare
Choose a tag to compare

Patch Changes

@effect/[email protected]

21 Oct 23:28
cdca95e
Compare
Choose a tag to compare

Patch Changes