Skip to content

Commit

Permalink
chore: update effect dependencies (#689)
Browse files Browse the repository at this point in the history
  • Loading branch information
sukovanej authored Dec 2, 2024
1 parent 30da81d commit dc2da9b
Show file tree
Hide file tree
Showing 7 changed files with 90 additions and 101 deletions.
6 changes: 6 additions & 0 deletions .changeset/spotty-laws-appear.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"effect-http-node": minor
"effect-http": minor
---

Update effect dependencies.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@
"@changesets/changelog-github": "^0.5.0",
"@changesets/cli": "^2.27.9",
"@effect/build-utils": "^0.7.8",
"@effect/docgen": "^0.5.0",
"@effect/dtslint": "^0.1.1",
"@effect/docgen": "^0.5.1",
"@effect/dtslint": "^0.1.2",
"@effect/eslint-plugin": "^0.2.0",
"@effect/language-service": "^0.2.0",
"@effect/vitest": "^0.13.14",
"@effect/vitest": "^0.14.0",
"@types/node": "^22.9.0",
"@types/swagger-ui-dist": "^3.30.5",
"@typescript-eslint/eslint-plugin": "^8.13.0",
Expand Down
3 changes: 2 additions & 1 deletion packages/effect-http-node/examples/form-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { NodeContext, NodeRuntime } from "@effect/platform-node"
import { Effect, Logger, LogLevel, pipe, Schema } from "effect"
import { Api, HttpError, Representation, RouterBuilder } from "effect-http"

import type { Multipart } from "@effect/platform"
import { FileSystem, HttpServerRequest } from "@effect/platform"
import { NodeServer } from "effect-http-node"

Expand Down Expand Up @@ -30,7 +31,7 @@ const app = pipe(
}

const fs = yield* FileSystem.FileSystem
return yield* fs.readFileString(file[0].path)
return yield* fs.readFileString((file[0] as Multipart.PersistedFile).path)
}).pipe(Effect.scoped)),
RouterBuilder.build
)
Expand Down
14 changes: 7 additions & 7 deletions packages/effect-http-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,17 @@
"swagger-ui-dist": "^5.18.2"
},
"peerDependencies": {
"@effect/platform": "^0.69.21",
"@effect/platform-node": "^0.64.23",
"effect": "^3.10.14",
"@effect/platform": "^0.70.0",
"@effect/platform-node": "^0.65.0",
"effect": "^3.11.0",
"effect-http": "workspace:^"
},
"devDependencies": {
"@effect/platform": "^0.69.21",
"@effect/platform-bun": "^0.49.23",
"@effect/platform-node": "^0.64.23",
"@effect/platform": "^0.70.0",
"@effect/platform-bun": "^0.50.0",
"@effect/platform-node": "^0.65.0",
"@types/node": "^22.9.0",
"effect": "^3.10.14",
"effect": "^3.11.0",
"effect-http": "workspace:^"
}
}
3 changes: 2 additions & 1 deletion packages/effect-http-node/test/testing-client.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import type { Multipart } from "@effect/platform"
import { FileSystem, HttpClientRequest, HttpRouter, HttpServerRequest } from "@effect/platform"
import { NodeContext } from "@effect/platform-node"
import * as it from "@effect/vitest"
Expand Down Expand Up @@ -237,7 +238,7 @@ it.scoped(
}

const fs = yield* _(FileSystem.FileSystem)
return yield* _(fs.readFileString(file[0].path))
return yield* _(fs.readFileString((file[0] as Multipart.PersistedFile).path))
}).pipe(Effect.scoped)),
RouterBuilder.build
)
Expand Down
8 changes: 4 additions & 4 deletions packages/effect-http/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@
"coverage": "vitest --coverage"
},
"peerDependencies": {
"@effect/platform": "^0.69.21",
"effect": "^3.10.14"
"@effect/platform": "^0.70.0",
"effect": "^3.11.0"
},
"devDependencies": {
"@apidevtools/swagger-parser": "^10.1.0",
"@effect/platform": "^0.69.21",
"effect": "^3.10.14"
"@effect/platform": "^0.70.0",
"effect": "^3.11.0"
}
}
Loading

0 comments on commit dc2da9b

Please sign in to comment.