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 #3081

Merged
merged 1 commit into from
Jun 26, 2024
Merged

Version Packages #3081

merged 1 commit into from
Jun 26, 2024

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Jun 25, 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/cli@0.36.63

Patch Changes

@effect/cluster@0.0.15

Patch Changes

@effect/cluster-browser@0.0.15

Patch Changes

@effect/cluster-node@0.0.15

Patch Changes

@effect/cluster-workflow@0.0.15

Patch Changes

effect@3.4.3

Patch Changes

@effect/experimental@0.17.9

Patch Changes

@effect/opentelemetry@0.34.26

Patch Changes

@effect/platform@0.58.10

Patch Changes

  • #3088 a48ee84 Thanks @tim-smart! - add HttpServerRespondable trait

    This trait allows you to define how a value should be responded to in an HTTP
    server.

    You can it for both errors and success values.

    import { Schema } from "@effect/schema";
    import {
      HttpRouter,
      HttpServerRespondable,
      HttpServerResponse,
    } from "@effect/platform";
    
    class User extends Schema.Class<User>("User")({
      name: Schema.String,
    }) {
      [HttpServerRespondable.symbol]() {
        return HttpServerResponse.schemaJson(User)(this);
      }
    }
    
    class MyError extends Schema.TaggedError<MyError>()("MyError", {
      message: Schema.String,
    }) {
      [HttpServerRespondable.symbol]() {
        return HttpServerResponse.schemaJson(MyError)(this, { status: 403 });
      }
    }
    
    HttpRouter.empty.pipe(
      // responds with `{ "name": "test" }`
      HttpRouter.get("/user", Effect.succeed(new User({ name: "test" }))),
      // responds with a 403 status, and `{ "_tag": "MyError", "message": "boom" }`
      HttpRouter.get("/fail", new MyError({ message: "boom" })),
    );
  • #3088 a48ee84 Thanks @tim-smart! - swap type parameters for HttpRouter.Tag, so request context comes first

  • #3088 a48ee84 Thanks @tim-smart! - add HttpRouter.Default, a default instance of HttpRouter.Tag

  • #3089 ab3180f Thanks @tim-smart! - add HttpClientResponse.matchStatus* apis

    Which allows you to pattern match on the status code of a response.

    HttpClientRequest.get("/todos/1").pipe(
      HttpClient.fetch,
      HttpClientResponse.matchStatusScoped({
        "2xx": (_response) => Effect.succeed("ok"),
        404: (_response) => Effect.fail("not found"),
        orElse: (_response) => Effect.fail("boom"),
      }),
    );
  • #3079 bbdd365 Thanks @tim-smart! - update to typescript 5.5

  • Updated dependencies [c342739, 8898e5e, ff78636, c86bd4e, bbdd365, bbdd365]:

    • effect@3.4.3
    • @effect/schema@0.68.10

@effect/platform-browser@0.37.10

Patch Changes

@effect/platform-bun@0.38.9

Patch Changes

@effect/platform-node@0.53.9

Patch Changes

@effect/platform-node-shared@0.8.9

Patch Changes

@effect/printer@0.33.35

Patch Changes

@effect/printer-ansi@0.33.35

Patch Changes

@effect/rpc@0.31.10

Patch Changes

@effect/rpc-http@0.29.10

Patch Changes

@effect/schema@0.68.10

Patch Changes

@effect/sql@0.4.10

Patch Changes

@effect/sql-drizzle@0.2.10

Patch Changes

@effect/sql-mssql@0.4.10

Patch Changes

@effect/sql-mysql2@0.4.10

Patch Changes

@effect/sql-pg@0.4.10

Patch Changes

@effect/sql-sqlite-bun@0.4.10

Patch Changes

@effect/sql-sqlite-node@0.4.10

Patch Changes

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

Patch Changes

@effect/sql-sqlite-wasm@0.3.10

Patch Changes

@effect/typeclass@0.24.35

Patch Changes

@effect/vitest@0.5.19

Patch Changes

@tim-smart tim-smart merged commit 6b3bd87 into main Jun 26, 2024
@tim-smart tim-smart deleted the changeset-release/main branch June 26, 2024 02:55
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.

1 participant