Skip to content

Conversation

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented Mar 25, 2025

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@effect/ai@0.13.2

Patch Changes

  • Updated dependencies [f87991b, f87991b, 0a3e3e1]:
    • effect@3.14.2
    • @effect/experimental@0.44.2
    • @effect/platform@0.80.2

@effect/ai-anthropic@0.3.2

Patch Changes

  • Updated dependencies [f87991b, f87991b, 0a3e3e1]:
    • effect@3.14.2
    • @effect/ai@0.13.2
    • @effect/experimental@0.44.2
    • @effect/platform@0.80.2

@effect/ai-openai@0.16.3

Patch Changes

  • Updated dependencies [f87991b, f87991b, 0a3e3e1]:
    • effect@3.14.2
    • @effect/ai@0.13.2
    • @effect/experimental@0.44.2
    • @effect/platform@0.80.2

@effect/cli@0.59.2

Patch Changes

  • Updated dependencies [f87991b, f87991b, 0a3e3e1]:
    • effect@3.14.2
    • @effect/platform@0.80.2
    • @effect/printer@0.42.2
    • @effect/printer-ansi@0.42.2

@effect/cluster@0.29.5

Patch Changes

  • Updated dependencies [f87991b, f87991b, 0a3e3e1]:
    • effect@3.14.2
    • @effect/platform@0.80.2
    • @effect/rpc@0.55.3
    • @effect/sql@0.33.2

effect@3.14.2

Patch Changes

  • #4646 f87991b Thanks @gcanti! - SchemaAST: add missing getSchemaIdAnnotation API

  • #4646 f87991b Thanks @gcanti! - Arbitrary: fix bug where annotations were ignored.

    Before

    import { Arbitrary, Schema } from "effect"
    
    const schema = Schema.Int.annotations({
      arbitrary: (_, ctx) => (fc) => {
        console.log("context: ", ctx)
        return fc.integer()
      }
    }).pipe(Schema.greaterThan(0), Schema.lessThan(10))
    
    Arbitrary.make(schema)
    // No output ❌

    After

    import { Arbitrary, Schema } from "effect"
    
    const schema = Schema.Int.annotations({
      arbitrary: (_, ctx) => (fc) => {
        console.log("context: ", ctx)
        return fc.integer()
      }
    }).pipe(Schema.greaterThan(0), Schema.lessThan(10))
    
    Arbitrary.make(schema)
    /*
    context:  {
      maxDepth: 2,
      constraints: {
        _tag: 'NumberConstraints',
        constraints: { min: 0, minExcluded: true, max: 10, maxExcluded: true },
        isInteger: true
      }
    }
    */
  • #4648 0a3e3e1 Thanks @gcanti! - Schema: standardSchemaV1 now includes the schema, closes Schema.standardSchemaV1 should include the schema itself #4494.

    This update fixes an issue where passing Schema.standardSchemaV1(...) directly to JSONSchema.make would throw a TypeError. The schema was missing from the returned object, causing the JSON schema generation to fail.

    Now standardSchemaV1 includes the schema itself, so it can be used with JSONSchema.make without issues.

    Example

    import { JSONSchema, Schema } from "effect"
    
    const Person = Schema.Struct({
      name: Schema.optionalWith(Schema.NonEmptyString, { exact: true })
    })
    
    const standardSchema = Schema.standardSchemaV1(Person)
    
    console.log(JSONSchema.make(standardSchema))
    /*
    {
      '$schema': 'http://json-schema.org/draft-07/schema#',
      '$defs': {
        NonEmptyString: {
          type: 'string',
          description: 'a non empty string',
          title: 'nonEmptyString',
          minLength: 1
        }
      },
      type: 'object',
      required: [],
      properties: { name: { '$ref': '#/$defs/NonEmptyString' } },
      additionalProperties: false
    }
    */

@effect/experimental@0.44.2

Patch Changes

@effect/opentelemetry@0.45.2

Patch Changes

@effect/platform@0.80.2

Patch Changes

@effect/platform-browser@0.59.2

Patch Changes

@effect/platform-bun@0.60.5

Patch Changes

  • Updated dependencies [f87991b, f87991b, 0a3e3e1]:
    • effect@3.14.2
    • @effect/cluster@0.29.5
    • @effect/platform@0.80.2
    • @effect/platform-node-shared@0.30.5
    • @effect/rpc@0.55.3
    • @effect/sql@0.33.2

@effect/platform-node@0.76.5

Patch Changes

  • Updated dependencies [f87991b, f87991b, 0a3e3e1]:
    • effect@3.14.2
    • @effect/cluster@0.29.5
    • @effect/platform@0.80.2
    • @effect/platform-node-shared@0.30.5
    • @effect/rpc@0.55.3
    • @effect/sql@0.33.2

@effect/platform-node-shared@0.30.5

Patch Changes

  • Updated dependencies [f87991b, f87991b, 0a3e3e1]:
    • effect@3.14.2
    • @effect/cluster@0.29.5
    • @effect/platform@0.80.2
    • @effect/rpc@0.55.3
    • @effect/sql@0.33.2

@effect/printer@0.42.2

Patch Changes

@effect/printer-ansi@0.42.2

Patch Changes

  • Updated dependencies [f87991b, f87991b, 0a3e3e1]:
    • effect@3.14.2
    • @effect/printer@0.42.2
    • @effect/typeclass@0.33.2

@effect/rpc@0.55.3

Patch Changes

@effect/sql@0.33.2

Patch Changes

  • Updated dependencies [f87991b, f87991b, 0a3e3e1]:
    • effect@3.14.2
    • @effect/experimental@0.44.2
    • @effect/platform@0.80.2

@effect/sql-clickhouse@0.18.5

Patch Changes

  • Updated dependencies [f87991b, f87991b, 0a3e3e1]:
    • effect@3.14.2
    • @effect/experimental@0.44.2
    • @effect/platform@0.80.2
    • @effect/platform-node@0.76.5
    • @effect/sql@0.33.2

@effect/sql-d1@0.31.2

Patch Changes

  • Updated dependencies [f87991b, f87991b, 0a3e3e1]:
    • effect@3.14.2
    • @effect/experimental@0.44.2
    • @effect/platform@0.80.2
    • @effect/sql@0.33.2

@effect/sql-drizzle@0.32.2

Patch Changes

@effect/sql-kysely@0.29.2

Patch Changes

@effect/sql-libsql@0.23.2

Patch Changes

  • Updated dependencies [f87991b, f87991b, 0a3e3e1]:
    • effect@3.14.2
    • @effect/experimental@0.44.2
    • @effect/platform@0.80.2
    • @effect/sql@0.33.2

@effect/sql-mssql@0.34.2

Patch Changes

  • Updated dependencies [f87991b, f87991b, 0a3e3e1]:
    • effect@3.14.2
    • @effect/experimental@0.44.2
    • @effect/platform@0.80.2
    • @effect/sql@0.33.2

@effect/sql-mysql2@0.34.2

Patch Changes

  • Updated dependencies [f87991b, f87991b, 0a3e3e1]:
    • effect@3.14.2
    • @effect/experimental@0.44.2
    • @effect/platform@0.80.2
    • @effect/sql@0.33.2

@effect/sql-pg@0.34.2

Patch Changes

  • Updated dependencies [f87991b, f87991b, 0a3e3e1]:
    • effect@3.14.2
    • @effect/experimental@0.44.2
    • @effect/platform@0.80.2
    • @effect/sql@0.33.2

@effect/sql-sqlite-bun@0.34.2

Patch Changes

  • Updated dependencies [f87991b, f87991b, 0a3e3e1]:
    • effect@3.14.2
    • @effect/experimental@0.44.2
    • @effect/platform@0.80.2
    • @effect/sql@0.33.2

@effect/sql-sqlite-do@0.11.2

Patch Changes

  • Updated dependencies [f87991b, f87991b, 0a3e3e1]:
    • effect@3.14.2
    • @effect/experimental@0.44.2
    • @effect/sql@0.33.2

@effect/sql-sqlite-node@0.34.2

Patch Changes

  • Updated dependencies [f87991b, f87991b, 0a3e3e1]:
    • effect@3.14.2
    • @effect/experimental@0.44.2
    • @effect/platform@0.80.2
    • @effect/sql@0.33.2

@effect/sql-sqlite-react-native@0.36.2

Patch Changes

  • Updated dependencies [f87991b, f87991b, 0a3e3e1]:
    • effect@3.14.2
    • @effect/experimental@0.44.2
    • @effect/sql@0.33.2

@effect/sql-sqlite-wasm@0.34.2

Patch Changes

  • Updated dependencies [f87991b, f87991b, 0a3e3e1]:
    • effect@3.14.2
    • @effect/experimental@0.44.2
    • @effect/sql@0.33.2

@effect/typeclass@0.33.2

Patch Changes

@effect/vitest@0.20.2

Patch Changes

@github-actions github-actions bot force-pushed the changeset-release/main branch from 6198c50 to 01d0787 Compare March 25, 2025 16:37
@gcanti gcanti merged commit f0c5a24 into main Mar 25, 2025
@gcanti gcanti deleted the changeset-release/main branch March 25, 2025 16:52
@github-project-automation github-project-automation bot moved this from Discussion Ongoing to Done in PR Backlog Mar 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Schema.standardSchemaV1 should include the schema itself

2 participants