Skip to content

Commit f3888ff

Browse files
committed
chore: update dependencies
1 parent 217ef30 commit f3888ff

File tree

10 files changed

+341
-143
lines changed

10 files changed

+341
-143
lines changed

.changeset/serious-beds-hide.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"effect-http-node": minor
3+
"effect-http": minor
4+
---
5+
6+
Update effect dependencies.

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,6 @@ and call it using the `client`.
128128
```ts
129129
const response = client.getUser({ query: { id: 12 } }).pipe(
130130
Effect.flatMap((user) => Effect.log(`Got ${user.name}, nice!`)),
131-
Effect.scoped
132131
);
133132
```
134133

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@
3535
"@eslint/js": "^9.9.1",
3636
"@types/node": "^22.13.8",
3737
"@types/swagger-ui-dist": "^3.30.5",
38-
"@typescript-eslint/eslint-plugin": "^8.25.0",
39-
"@typescript-eslint/parser": "^8.25.0",
38+
"@typescript-eslint/eslint-plugin": "^8.27.0",
39+
"@typescript-eslint/parser": "^8.27.0",
4040
"@vitest/coverage-v8": "^3.0.7",
4141
"babel-plugin-annotate-pure-calls": "^0.5.0",
4242
"eslint": "^9.9.1",

packages/effect-http-node/examples/headers-client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ Effect.all(
2323
Effect.catchAll((e) => Effect.logInfo(`Error ${JSON.stringify(e)}`)),
2424
Array.replicate(1000000)
2525
)
26-
).pipe(Effect.scoped, Effect.runFork)
26+
).pipe(Effect.runFork)

packages/effect-http-node/examples/mock-client.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ const client = MockClient.make(exampleApiGet)
1313

1414
const program = pipe(
1515
client.getValue({}),
16-
Effect.tap(Effect.log),
17-
Effect.scoped
16+
Effect.tap(Effect.log)
1817
)
1918

2019
Effect.runFork(program)

packages/effect-http-node/package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,20 +29,20 @@
2929
"coverage": "vitest --coverage"
3030
},
3131
"dependencies": {
32-
"swagger-ui-dist": "^5.20.0"
32+
"swagger-ui-dist": "^5.20.1"
3333
},
3434
"peerDependencies": {
35-
"@effect/platform": "^0.77.0",
36-
"@effect/platform-node": "^0.73.0",
37-
"effect": "^3.13.0",
35+
"@effect/platform": "^0.80.0",
36+
"@effect/platform-node": "^0.76.0",
37+
"effect": "^3.14.0",
3838
"effect-http": "workspace:^"
3939
},
4040
"devDependencies": {
41-
"@effect/platform": "^0.77.4",
42-
"@effect/platform-bun": "^0.57.4",
43-
"@effect/platform-node": "^0.73.4",
41+
"@effect/platform": "^0.80.1",
42+
"@effect/platform-bun": "^0.60.2",
43+
"@effect/platform-node": "^0.76.2",
4444
"@types/node": "^22.13.8",
45-
"effect": "^3.13.4",
45+
"effect": "^3.14.1",
4646
"effect-http": "workspace:^"
4747
}
4848
}

packages/effect-http-node/src/internal/node-testing.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import * as Context from "effect/Context"
1111
import * as Deferred from "effect/Deferred"
1212
import * as Effect from "effect/Effect"
1313
import * as Layer from "effect/Layer"
14-
import type * as Scope from "effect/Scope"
1514

1615
import type * as Api from "effect-http/Api"
1716
import type * as ApiEndpoint from "effect-http/ApiEndpoint"
@@ -83,7 +82,7 @@ const makeHttpClient = (client: HttpClient.HttpClient, url: string) =>
8382
client.pipe(
8483
HttpClient.mapRequest(HttpClientRequest.prependUrl(url)),
8584
HttpClient.transformResponse(
86-
Effect.mapInputContext((ctx: Context.Context<Scope.Scope>) => {
85+
Effect.mapInputContext((ctx: Context.Context<never>) => {
8786
const init = ctx.unsafeMap.get(FetchHttpClient.RequestInit.key) ?? {}
8887
return Context.add(ctx, FetchHttpClient.RequestInit, { keepalive: false, ...init })
8988
})

packages/effect-http/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@
3030
"coverage": "vitest --coverage"
3131
},
3232
"peerDependencies": {
33-
"@effect/platform": "^0.77.0",
34-
"effect": "^3.13.0"
33+
"@effect/platform": "^0.80.0",
34+
"effect": "^3.14.0"
3535
},
3636
"devDependencies": {
3737
"@apidevtools/swagger-parser": "^10.1.1",
38-
"@effect/platform": "^0.77.4",
39-
"effect": "^3.13.4"
38+
"@effect/platform": "^0.80.1",
39+
"effect": "^3.14.1"
4040
}
4141
}

packages/effect-http/src/internal/client.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ export const endpointClient = <A extends Api.Api.Any, Id extends Api.Api.Ids<A>>
5151
ClientError: (err) => Effect.fail(err)
5252
}),
5353
Effect.flatMap(responseParser.parseResponse),
54-
Effect.scoped,
5554
Effect.annotateLogs("clientOperationId", ApiEndpoint.getId(endpoint))
5655
))
5756
}

0 commit comments

Comments
 (0)