Skip to content

Commit

Permalink
upgrade deps (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
schickling authored Oct 29, 2023
1 parent 126338f commit 27cb78e
Show file tree
Hide file tree
Showing 13 changed files with 2,810 additions and 5,120 deletions.
12 changes: 6 additions & 6 deletions cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
"dev": "tsx --watch"
},
"dependencies": {
"@effect/cli": "^0.13.0",
"@effect/platform-node": "^0.17.0",
"@effect/schema": "^0.36.5",
"effect": "2.0.0-next.34"
"@effect/cli": "^0.19.0",
"@effect/platform-node": "^0.27.4",
"@effect/schema": "^0.46.2",
"effect": "2.0.0-next.52"
},
"devDependencies": {
"@types/node": "^18.11.11",
"tsx": "^3.12.10"
"@types/node": "^20.8.9",
"tsx": "^3.14.0"
}
}
2 changes: 1 addition & 1 deletion cli/src/wttr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ const main = Cli.run(cli, process.argv.slice(2), ({ options, args }) =>

Node.runMain(main.pipe(
// Provide the required layers (a.k.a. dependency injection).
Effect.provideLayer(Http.client.layer),
Effect.provide(Http.client.layer),
// Log any errors that occur during execution.
Effect.tapErrorCause(Effect.logError),
))
8 changes: 4 additions & 4 deletions node-scripts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
"dev": "tsx --watch"
},
"dependencies": {
"effect": "2.0.0-next.34",
"@effect/platform-node": "^0.17.0",
"@effect/platform": "^0.16.1"
"@effect/platform": "^0.26.2",
"@effect/platform-node": "^0.27.4",
"effect": "2.0.0-next.52"
},
"devDependencies": {
"tsx": "^3.12.10"
"tsx": "^3.14.0"
}
}
8 changes: 8 additions & 0 deletions node-scripts/src/error-handling.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { Effect } from 'effect'

class HttpError {
readonly _tag = 'HttpError'
}

// Effect<never, HttpError, never>
const program = Effect.fail(new HttpError())
2 changes: 1 addition & 1 deletion node-scripts/src/fs-write-file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ const main = Effect.gen(function* ($) {
console.log('Wrote file (output/fs-write-file.txt)')
})

Node.runMain(main.pipe(Effect.provideSomeLayer(NodeContext.layer), Effect.tapErrorCause(Effect.log)))
Node.runMain(main.pipe(Effect.provide(NodeContext.layer), Effect.tapErrorCause(Effect.log)))
Loading

0 comments on commit 27cb78e

Please sign in to comment.