Skip to content

Commit

Permalink
Version Packages (#677)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and github-actions[bot] authored Sep 16, 2024
1 parent 2e4eaf8 commit d55c878
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 29 deletions.
6 changes: 0 additions & 6 deletions .changeset/clever-hotels-juggle.md

This file was deleted.

53 changes: 32 additions & 21 deletions packages/effect-http-node/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# effect-http-node

## 0.19.0

### Minor Changes

- [#676](https://github.com/sukovanej/effect-http/pull/676) [`2e4eaf8`](https://github.com/sukovanej/effect-http/commit/2e4eaf8cf624db096ca0e7da7305f997b8780ac7) Thanks [@sukovanej](https://github.com/sukovanej)! - Update effect dependencies.

### Patch Changes

- Updated dependencies [[`2e4eaf8`](https://github.com/sukovanej/effect-http/commit/2e4eaf8cf624db096ca0e7da7305f997b8780ac7)]:
- [email protected]

## 0.18.2

### Patch Changes
Expand Down Expand Up @@ -152,23 +163,23 @@
import { NodeTesting } from "effect-http-node";

const myEndpoint = Api.get("myEndpoint", "/my-endpoint").pipe(
Api.setResponseBody(Schema.Struct({ hello: Schema.String }))
Api.setResponseBody(Schema.Struct({ hello: Schema.String })),
);

const myHandler = Handler.make(myEndpoint, () =>
Effect.succeed({ hello: "world" })
Effect.succeed({ hello: "world" }),
);

it.scoped("myHandler", () =>
Effect.gen(function* () {
const client = yield* NodeTesting.handler(myHandler);
const response = yield* client.execute(
HttpClientRequest.get("/my-endpoint")
HttpClientRequest.get("/my-endpoint"),
);

expect(response.status).toEqual(200);
expect(yield* response.json).toEqual({ hello: "world" });
})
}),
);
```

Expand Down Expand Up @@ -324,13 +335,13 @@
const myEndpointHandler = RouterBuilder.handler(
api,
"myEndpoint",
({ query }) => Effect.succeed(query.country)
({ query }) => Effect.succeed(query.country),
);

const app = pipe(
RouterBuilder.make(api),
RouterBuilder.handle(myEndpointHandler),
RouterBuilder.build
RouterBuilder.build,
);
```

Expand Down Expand Up @@ -486,9 +497,9 @@
scheme: "basic",
},
schema: Schema.Secret,
})
)
)
}),
),
),
);
```

Expand All @@ -499,9 +510,9 @@
Api.addEndpoint(
Api.post("mySecuredEndpoint", "/my-secured-endpoint").pipe(
Api.setResponseBody(Schema.string),
Api.setSecurity(Security.basic())
)
)
Api.setSecurity(Security.basic()),
),
),
);
```

Expand Down Expand Up @@ -566,7 +577,7 @@
Api.get("getUser", "/user", {
response: User,
request: { query: GetUserQuery },
})
}),
);
```

Expand All @@ -579,9 +590,9 @@
pipe(
Api.get("getUser", "/user"),
Api.setResponseBody(UserResponse),
Api.setRequestQuery(GetUserQuery)
)
)
Api.setRequestQuery(GetUserQuery),
),
),
);
```

Expand All @@ -603,9 +614,9 @@
pipe(
Api.post("createUser", "/user"),
Api.setResponseStatus(201),
Api.setResponseBody(UserResponse)
)
)
Api.setResponseBody(UserResponse),
),
),
);

const client = Client.make(api);
Expand All @@ -624,7 +635,7 @@
Api.addResponse({
status: 204,
headers: Schema.struct({ "x-another": Schema.NumberFromString }),
})
}),
);
```

Expand All @@ -637,7 +648,7 @@
```ts
const mySecuredEnpoint = Api.post("security", "/testSecurity").pipe(
Api.setResponseBody(Schema.string),
Api.addSecurity("myAwesomeBearerAuth", mySecuritySchema)
Api.addSecurity("myAwesomeBearerAuth", mySecuritySchema),
);

const api = Api.make().pipe(Api.addEndpoint(mySecuredEnpoint));
Expand Down
2 changes: 1 addition & 1 deletion packages/effect-http-node/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "effect-http-node",
"type": "module",
"version": "0.18.2",
"version": "0.19.0",
"license": "MIT",
"author": "Milan Suk <[email protected]>",
"description": "High-level declarative HTTP API for effect-ts",
Expand Down
6 changes: 6 additions & 0 deletions packages/effect-http/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# effect-http

## 0.79.0

### Minor Changes

- [#676](https://github.com/sukovanej/effect-http/pull/676) [`2e4eaf8`](https://github.com/sukovanej/effect-http/commit/2e4eaf8cf624db096ca0e7da7305f997b8780ac7) Thanks [@sukovanej](https://github.com/sukovanej)! - Update effect dependencies.

## 0.78.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/effect-http/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "effect-http",
"type": "module",
"version": "0.78.1",
"version": "0.79.0",
"license": "MIT",
"author": "Milan Suk <[email protected]>",
"description": "High-level declarative HTTP API for effect-ts",
Expand Down

0 comments on commit d55c878

Please sign in to comment.