Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version Packages #3754

Merged
merged 1 commit into from
Oct 8, 2024
Merged

Version Packages #3754

merged 1 commit into from
Oct 8, 2024

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Oct 8, 2024

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/platform@0.68.0

Minor Changes

  • #3756 90ceeab Thanks @tim-smart! - remove HttpClient.Service type

  • #3756 90ceeab Thanks @tim-smart! - constrain HttpClient success type to HttpClientResponse

  • #3756 90ceeab Thanks @tim-smart! - add HttpClient accessor apis

    These apis allow you to easily send requests without first accessing the HttpClient service.

    Below is an example of using the get accessor api to send a GET request:

    import { FetchHttpClient, HttpClient } from "@effect/platform"
    import { Effect } from "effect"
    
    const program = HttpClient.get(
      "https://jsonplaceholder.typicode.com/posts/1"
    ).pipe(
      Effect.andThen((response) => response.json),
      Effect.scoped,
      Effect.provide(FetchHttpClient.layer)
    )
    
    Effect.runPromise(program)
    /*
    Output:
    {
      userId: 1,
      id: 1,
      title: 'sunt aut facere repellat provident occaecati excepturi optio reprehenderit',
      body: 'quia et suscipit\n' +
        'suscipit recusandae consequuntur expedita et cum\n' +
        'reprehenderit molestiae ut ut quas totam\n' +
        'nostrum rerum est autem sunt rem eveniet architecto'
    }
    */

Patch Changes

  • Updated dependencies [f02b354]:
    • @effect/schema@0.75.2

@effect/platform-browser@0.47.0

Minor Changes

  • #3756 90ceeab Thanks @tim-smart! - remove HttpClient.Service type

  • #3756 90ceeab Thanks @tim-smart! - constrain HttpClient success type to HttpClientResponse

  • #3756 90ceeab Thanks @tim-smart! - add HttpClient accessor apis

    These apis allow you to easily send requests without first accessing the HttpClient service.

    Below is an example of using the get accessor api to send a GET request:

    import { FetchHttpClient, HttpClient } from "@effect/platform"
    import { Effect } from "effect"
    
    const program = HttpClient.get(
      "https://jsonplaceholder.typicode.com/posts/1"
    ).pipe(
      Effect.andThen((response) => response.json),
      Effect.scoped,
      Effect.provide(FetchHttpClient.layer)
    )
    
    Effect.runPromise(program)
    /*
    Output:
    {
      userId: 1,
      id: 1,
      title: 'sunt aut facere repellat provident occaecati excepturi optio reprehenderit',
      body: 'quia et suscipit\n' +
        'suscipit recusandae consequuntur expedita et cum\n' +
        'reprehenderit molestiae ut ut quas totam\n' +
        'nostrum rerum est autem sunt rem eveniet architecto'
    }
    */

Patch Changes

@effect/platform-node@0.63.0

Minor Changes

  • #3756 90ceeab Thanks @tim-smart! - remove HttpClient.Service type

  • #3756 90ceeab Thanks @tim-smart! - constrain HttpClient success type to HttpClientResponse

  • #3756 90ceeab Thanks @tim-smart! - add HttpClient accessor apis

    These apis allow you to easily send requests without first accessing the HttpClient service.

    Below is an example of using the get accessor api to send a GET request:

    import { FetchHttpClient, HttpClient } from "@effect/platform"
    import { Effect } from "effect"
    
    const program = HttpClient.get(
      "https://jsonplaceholder.typicode.com/posts/1"
    ).pipe(
      Effect.andThen((response) => response.json),
      Effect.scoped,
      Effect.provide(FetchHttpClient.layer)
    )
    
    Effect.runPromise(program)
    /*
    Output:
    {
      userId: 1,
      id: 1,
      title: 'sunt aut facere repellat provident occaecati excepturi optio reprehenderit',
      body: 'quia et suscipit\n' +
        'suscipit recusandae consequuntur expedita et cum\n' +
        'reprehenderit molestiae ut ut quas totam\n' +
        'nostrum rerum est autem sunt rem eveniet architecto'
    }
    */

Patch Changes

  • Updated dependencies [90ceeab, 90ceeab, 90ceeab]:
    • @effect/platform@0.68.0
    • @effect/platform-node-shared@0.18.0

@effect/sql-libsql@0.4.0

Minor Changes

Patch Changes

@effect/cli@0.47.0

Patch Changes

@effect/cluster@0.12.0

Patch Changes

  • Updated dependencies [f02b354]:
    • @effect/schema@0.75.2
    • @effect/sql@0.16.0

@effect/cluster-browser@0.10.0

Patch Changes

  • Updated dependencies [f02b354]:
    • @effect/schema@0.75.2
    • @effect/rpc@0.42.0

@effect/cluster-node@0.12.0

Patch Changes

  • Updated dependencies [f02b354]:
    • @effect/schema@0.75.2
    • @effect/cluster@0.12.0
    • @effect/rpc@0.42.0

@effect/cluster-workflow@0.11.0

Patch Changes

  • Updated dependencies [f02b354]:
    • @effect/schema@0.75.2
    • @effect/sql@0.16.0
    • @effect/cluster@0.12.0

@effect/experimental@0.29.0

Patch Changes

@effect/platform-bun@0.48.0

Patch Changes

  • Updated dependencies [90ceeab, 90ceeab, 90ceeab]:
    • @effect/platform@0.68.0
    • @effect/platform-node-shared@0.18.0

@effect/platform-node-shared@0.18.0

Patch Changes

@effect/rpc@0.42.0

Patch Changes

@effect/rpc-http@0.40.0

Patch Changes

@effect/schema@0.75.2

Patch Changes

  • #3753 f02b354 Thanks @gcanti! - Enhanced Error Reporting for Discriminated Union Tuple Schemas, closes From Discord: Creating a Schema Validator for JSONML Format in TypeScript #3752

    Previously, irrelevant error messages were generated for each member of the union. Now, when a discriminator is present in the input, only the relevant member will trigger an error.

    Before

    import * as Schema from "@effect/schema/Schema"
    
    const schema = Schema.Union(
      Schema.Tuple(Schema.Literal("a"), Schema.String),
      Schema.Tuple(Schema.Literal("b"), Schema.Number)
    ).annotations({ identifier: "MyUnion" })
    
    console.log(Schema.decodeUnknownSync(schema)(["a", 0]))
    /*
    throws:
    ParseError: MyUnion
    ├─ readonly ["a", string]
    │  └─ [1]
    │     └─ Expected string, actual 0
    └─ readonly ["b", number]
       └─ [0]
          └─ Expected "b", actual "a"
    */

    After

    import * as Schema from "@effect/schema/Schema"
    
    const schema = Schema.Union(
      Schema.Tuple(Schema.Literal("a"), Schema.String),
      Schema.Tuple(Schema.Literal("b"), Schema.Number)
    ).annotations({ identifier: "MyUnion" })
    
    console.log(Schema.decodeUnknownSync(schema)(["a", 0]))
    /*
    throws:
    ParseError: MyUnion
    └─ readonly ["a", string]
       └─ [1]
          └─ Expected string, actual 0
    */

@effect/sql@0.16.0

Patch Changes

@effect/sql-d1@0.13.0

Patch Changes

@effect/sql-drizzle@0.14.0

Patch Changes

  • Updated dependencies []:
    • @effect/sql@0.16.0

@effect/sql-kysely@0.11.0

Patch Changes

  • Updated dependencies []:
    • @effect/sql@0.16.0

@effect/sql-mssql@0.16.0

Patch Changes

@effect/sql-mysql2@0.16.0

Patch Changes

@effect/sql-pg@0.16.0

Patch Changes

@effect/sql-sqlite-bun@0.16.0

Patch Changes

@effect/sql-sqlite-node@0.16.0

Patch Changes

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

Patch Changes

  • Updated dependencies []:
    • @effect/sql@0.16.0

@effect/sql-sqlite-wasm@0.15.0

Patch Changes

  • Updated dependencies []:
    • @effect/sql@0.16.0

@github-actions github-actions bot force-pushed the changeset-release/main branch 3 times, most recently from d37547e to 2f0097e Compare October 8, 2024 22:30
@tim-smart tim-smart merged commit 8ee30d3 into main Oct 8, 2024
@tim-smart tim-smart deleted the changeset-release/main branch October 8, 2024 23:31
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.

From Discord: Creating a Schema Validator for JSONML Format in TypeScript
1 participant