Skip to content

Commit

Permalink
chore: update effect (#549)
Browse files Browse the repository at this point in the history
  • Loading branch information
sukovanej authored Apr 30, 2024
1 parent 2decc4d commit 71b7c27
Show file tree
Hide file tree
Showing 7 changed files with 435 additions and 430 deletions.
6 changes: 6 additions & 0 deletions .changeset/afraid-avocados-fetch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"effect-http-node": patch
"effect-http": patch
---

Update effect.
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
"changeset-publish": "pnpm build && changeset publish"
},
"devDependencies": {
"@babel/cli": "^7.24.1",
"@babel/core": "^7.24.4",
"@babel/cli": "^7.24.5",
"@babel/core": "^7.24.5",
"@babel/plugin-transform-export-namespace-from": "^7.24.1",
"@babel/plugin-transform-modules-commonjs": "^7.24.1",
"@changesets/changelog-github": "^0.5.0",
Expand All @@ -31,12 +31,12 @@
"@effect/dtslint": "^0.1.0",
"@effect/eslint-plugin": "^0.1.2",
"@effect/language-service": "^0.1.0",
"@effect/vitest": "^0.3.3",
"@effect/vitest": "^0.3.9",
"@types/node": "^20.12.7",
"@types/swagger-ui-dist": "^3.30.4",
"@typescript-eslint/eslint-plugin": "^7.7.1",
"@typescript-eslint/parser": "^7.7.1",
"@vitest/coverage-v8": "^1.5.1",
"@typescript-eslint/eslint-plugin": "^7.8.0",
"@typescript-eslint/parser": "^7.8.0",
"@vitest/coverage-v8": "^1.5.2",
"babel-plugin-annotate-pure-calls": "^0.4.0",
"eslint": "^8.57.0",
"eslint-import-resolver-typescript": "^3.6.1",
Expand All @@ -49,9 +49,9 @@
"madge": "^7.0.0",
"prettier": "^3.2.5",
"rimraf": "^5.0.5",
"tsx": "^4.7.2",
"tsx": "^4.7.3",
"typescript": "^5.4.5",
"vitest": "^1.5.1"
"vitest": "^1.5.2"
},
"pnpm": {
"patchedDependencies": {
Expand Down
20 changes: 10 additions & 10 deletions packages/effect-http-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,23 +29,23 @@
"coverage": "vitest --coverage"
},
"dependencies": {
"swagger-ui-dist": "^5.17.1"
"swagger-ui-dist": "^5.17.2"
},
"peerDependencies": {
"@effect/platform": "^0.50.0",
"@effect/platform-node": "^0.47.0",
"@effect/platform": "^0.51.0",
"@effect/platform-node": "^0.48.0",
"@effect/schema": "^0.66.0",
"effect": "^3.0.0",
"effect": "^3.1.0",
"effect-http": "workspace:^"
},
"devDependencies": {
"@effect/platform": "^0.50.3",
"@effect/platform-bun": "^0.33.8",
"@effect/platform-node": "^0.47.3",
"@effect/schema": "^0.66.6",
"@effect/platform": "^0.51.0",
"@effect/platform-bun": "^0.34.0",
"@effect/platform-node": "^0.48.0",
"@effect/schema": "^0.66.12",
"@types/node": "^20.12.7",
"effect": "^3.0.3",
"effect": "^3.1.0",
"effect-http": "workspace:^",
"effect-log": "^0.31.0"
"effect-log": "^0.31.1"
}
}
6 changes: 2 additions & 4 deletions packages/effect-http-node/test/client.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,8 @@ it.scoped(
)

expect(result).toEqual(
ClientError.makeServerSide(
ClientError.makeClientSide(
{},
400,
"Failed to encode headers. value must be an object, received undefined"
)
)
Expand Down Expand Up @@ -214,9 +213,8 @@ it.scoped(
)

expect(result).toEqual(
ClientError.makeServerSide(
ClientError.makeClientSide(
{},
400,
"Failed to encode query parameters. country must be a string matching the pattern ^[A-Z]{2}$, received \"abc\""
)
)
Expand Down
12 changes: 6 additions & 6 deletions packages/effect-http/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,16 @@
"coverage": "vitest --coverage"
},
"dependencies": {
"schema-openapi": "^0.37.1"
"schema-openapi": "^0.37.2"
},
"peerDependencies": {
"@effect/platform": "^0.50.0",
"@effect/platform": "^0.51.0",
"@effect/schema": "^0.66.0",
"effect": "^3.0.0"
"effect": "^3.1.0"
},
"devDependencies": {
"@effect/platform": "^0.50.3",
"@effect/schema": "^0.66.6",
"effect": "^3.0.3"
"@effect/platform": "^0.51.0",
"@effect/schema": "^0.66.12",
"effect": "^3.1.0"
}
}
2 changes: 1 addition & 1 deletion packages/effect-http/test/mock-client.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ it.effect(
() =>
Effect.gen(function*(_) {
const client = MockClient.make(exampleApiGet)
const response = yield _(client.getValue({}))
const response = yield* _(client.getValue({}))

expect(typeof response).toEqual("number")
})
Expand Down
Loading

0 comments on commit 71b7c27

Please sign in to comment.