Skip to content
This repository has been archived by the owner on Jul 16, 2024. It is now read-only.

Commit

Permalink
update effect (#398)
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-smart authored Nov 30, 2023
1 parent 48db351 commit 3e21194
Show file tree
Hide file tree
Showing 7 changed files with 79 additions and 74 deletions.
5 changes: 5 additions & 0 deletions .changeset/lazy-lizards-collect.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@effect/cli": minor
---

update effect
2 changes: 1 addition & 1 deletion examples/minigit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const minigitClone = Command.make("clone", {
depth: Options.integer("depth").pipe(Options.optional)
}, ({ depth, directory, repository }) => {
const optionsAndArgs = pipe(
ReadonlyArray.compact([
ReadonlyArray.getSomes([
Option.map(depth, (depth) => `--depth ${depth}`),
Option.some(repository),
directory
Expand Down
2 changes: 1 addition & 1 deletion examples/naval-fate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ const run = Command.make("naval_fate").pipe(
const main = Effect.suspend(() => run(globalThis.process.argv.slice(2)))

const MainLayer = NavalFateStore.layer.pipe(
Layer.use(KeyValueStore.layerFileSystem("naval-fate-store")),
Layer.provide(KeyValueStore.layerFileSystem("naval-fate-store")),
Layer.merge(NodeContext.layer)
)

Expand Down
24 changes: 12 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@
"coverage": "vitest run --coverage"
},
"peerDependencies": {
"@effect/platform": "^0.31.2",
"@effect/printer": "^0.24.0",
"@effect/printer-ansi": "^0.25.0",
"@effect/schema": "^0.50.0",
"effect": "2.0.0-next.56"
"@effect/platform": "^0.32.0",
"@effect/printer": "^0.25.0",
"@effect/printer-ansi": "^0.26.0",
"@effect/schema": "^0.51.0",
"effect": "2.0.0-next.57"
},
"devDependencies": {
"@babel/cli": "^7.23.4",
Expand All @@ -74,17 +74,17 @@
"@effect/docgen": "^0.3.6",
"@effect/eslint-plugin": "^0.1.2",
"@effect/language-service": "^0.0.21",
"@effect/platform": "^0.31.2",
"@effect/platform-node": "^0.32.3",
"@effect/printer": "^0.24.0",
"@effect/printer-ansi": "^0.25.0",
"@effect/schema": "^0.50.0",
"@effect/platform": "^0.32.0",
"@effect/platform-node": "^0.33.0",
"@effect/printer": "^0.25.0",
"@effect/printer-ansi": "^0.26.0",
"@effect/schema": "^0.51.0",
"@types/node": "^20.10.1",
"@typescript-eslint/eslint-plugin": "^6.13.1",
"@typescript-eslint/parser": "^6.13.1",
"@vitest/coverage-v8": "^0.34.6",
"babel-plugin-annotate-pure-calls": "^0.4.0",
"effect": "2.0.0-next.56",
"effect": "2.0.0-next.57",
"error-stack-parser": "^2.1.4",
"eslint": "^8.54.0",
"eslint-import-resolver-typescript": "^3.6.1",
Expand All @@ -97,7 +97,7 @@
"madge": "^6.1.0",
"rimraf": "^5.0.5",
"stackframe": "^1.3.4",
"tsx": "^4.6.0",
"tsx": "^4.6.1",
"typescript": "^5.3.2",
"vite": "^5.0.4",
"vitest": "^0.34.6"
Expand Down
114 changes: 57 additions & 57 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/internal/args.ts
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ const getIdentifierInternal = (self: Instruction): Option.Option<string> => {
return getIdentifierInternal(self.args as Instruction)
}
case "Both": {
const ids = ReadonlyArray.compact([
const ids = ReadonlyArray.getSomes([
getIdentifierInternal(self.left as Instruction),
getIdentifierInternal(self.right as Instruction)
])
Expand Down
4 changes: 2 additions & 2 deletions src/internal/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -680,7 +680,7 @@ const getIdentifierInternal = (self: Instruction): Option.Option<string> => {
}
case "Both":
case "OrElse": {
const ids = ReadonlyArray.compact([
const ids = ReadonlyArray.getSomes([
getIdentifierInternal(self.left as Instruction),
getIdentifierInternal(self.right as Instruction)
])
Expand Down Expand Up @@ -1228,7 +1228,7 @@ const wizardInternal = (self: Instruction, config: CliConfig.CliConfig): Effect.
InternalHelpDoc.sequence(alternativeHelp)
)
const makeChoice = (title: string, value: Instruction) => ({ title, value })
const choices = ReadonlyArray.compact([
const choices = ReadonlyArray.getSomes([
Option.map(
getIdentifierInternal(self.left as Instruction),
(title) => makeChoice(title, self.left as Instruction)
Expand Down

0 comments on commit 3e21194

Please sign in to comment.