#3329b8e3ab6 Thanks @IMax153! - The Prompt.all method now supports taking in a record of Prompts to be more
consistent with other all APIs throughout the Effect ecosystem.
You can now do:
import * as Prompt from "@effect/cli/Prompt"
import * as NodeContext from "@effect/platform-node/NodeContext"
import * as Runtime from "@effect/platform-node/NodeRuntime"
import * as Effect from "effect/Effect"
const program = Prompt.all({
username: Prompt.text({
message: "Enter your username"
}),
password: Prompt.password({
message: "Enter your password: ",
validate: (value) =>
value.length === 0
? Effect.fail("Password cannot be empty")
: Effect.succeed(value)
})
})
program.pipe(
Effect.flatMap(({ username, password }) => /* Your logic here */ ),
Effect.provide(NodeContext.layer),
NodeRuntime.runMain
)
#3329b8e3ab6 Thanks @IMax153! - The Prompt.all method now supports taking in a record of Prompts to be more
consistent with other all APIs throughout the Effect ecosystem.
You can now do:
import * as Prompt from "@effect/cli/Prompt"
import * as NodeContext from "@effect/platform-node/NodeContext"
import * as Runtime from "@effect/platform-node/NodeRuntime"
import * as Effect from "effect/Effect"
const program = Prompt.all({
username: Prompt.text({
message: "Enter your username"
}),
password: Prompt.password({
message: "Enter your password: ",
validate: (value) =>
value.length === 0
? Effect.fail("Password cannot be empty")
: Effect.succeed(value)
})
})
program.pipe(
Effect.flatMap(({ username, password }) => /* Your logic here */ ),
Effect.provide(NodeContext.layer),
NodeRuntime.runMain
)
For some of the breking changes, a code-mod has been released to make migration as easy as possible.
You can run it by executing:
npx @effect/codemod schema-0.69 src/**/*
It might not be perfect - if you encounter issues, let us know! Also make sure you commit any changes before running it, in case you need to revert anything.
Breaking Changes
Schema
We've improved the TaggedRequest API to make it more intuitive by grouping parameters into a single object (codmod), closes #3144
For some of the breking changes, a code-mod has been released to make migration as easy as possible.
You can run it by executing:
npx @effect/codemod schema-0.69 src/**/*
It might not be perfect - if you encounter issues, let us know! Also make sure you commit any changes before running it, in case you need to revert anything.
Breaking Changes
Schema
We've improved the TaggedRequest API to make it more intuitive by grouping parameters into a single object (codmod), closes #3144
BEGIN_COMMIT_OVERRIDE fix(deps): bump the production-dependencies group across 1 directory with 7 updates
fix: improve jira client errors END_COMMIT_OVERRIDE
Bumps the production-dependencies group with 7 updates in the / directory:
0.36.40
0.39.2
0.55.5
0.60.2
0.51.5
0.55.2
0.33.24
0.33.51
0.33.24
0.33.51
0.67.18
0.69.2
3.2.8
3.5.8
Updates
@effect/cli
from 0.36.40 to 0.39.2Release notes
Sourced from
@effect/cli
's releases.Changelog
Sourced from
@effect/cli
's changelog.... (truncated)
Commits
c7081cf
Version Packages (#3341)d1018b0
Version Packages (#3330)c8f8690
Improve the JSDoc forPrompt.all
(#3332)b8e3ab6
Support record argument inPrompt.all
(#3329)199df95
Version Packages (#3323)0af945c
Version Packages (#3301)f34f6a7
Version Packages (#3285)a91a8e5
Version Packages (#3275)51e9c5c
feat: allow equals sign in aliased parameter values. (#2755)3271ca1
Version Packages (#3245)Updates
@effect/platform
from 0.55.5 to 0.60.2Release notes
Sourced from
@effect/platform
's releases.Changelog
Sourced from
@effect/platform
's changelog.... (truncated)
Commits
c7081cf
Version Packages (#3341)fc20f73
wait for worker ready latch before sending initial message (#3353)eb4d014
fixed search params related function signatures (#3339)d1018b0
Version Packages (#3330)199df95
Version Packages (#3323)20807a4
schema next minor (#3227)0af945c
Version Packages (#3301)f34f6a7
Version Packages (#3285)a91a8e5
Version Packages (#3275)adbf753
remove cjs /platform dependencies (#3281)Updates
@effect/platform-node
from 0.51.5 to 0.55.2Release notes
Sourced from
@effect/platform-node
's releases.Changelog
Sourced from
@effect/platform-node
's changelog.... (truncated)
Commits
c7081cf
Version Packages (#3341)d1018b0
Version Packages (#3330)199df95
Version Packages (#3323)0af945c
Version Packages (#3301)f34f6a7
Version Packages (#3285)a91a8e5
Version Packages (#3275)b37a8c7
Version Packages (#3268)07db4ac
add NodeHttpServerRequest.toServerResponse for accessing the raw node respons...3271ca1
Version Packages (#3245)53c0db0
replace /platform RefailError with use of the "cause" property (#3260)Updates
@effect/printer
from 0.33.24 to 0.33.51Release notes
Sourced from
@effect/printer
's releases.Changelog
Sourced from
@effect/printer
's changelog.... (truncated)
Commits
c7081cf
Version Packages (#3341)0af945c
Version Packages (#3301)f34f6a7
Version Packages (#3285)a91a8e5
Version Packages (#3275)3271ca1
Version Packages (#3245)68f9cc9
Version Packages (#3237)98a88f7
Version Packages (#3232)a16e9be
Version Packages (#3222)cf8c52b
Version Packages (#3218)464c5a8
Version Packages (#3205)Updates
@effect/printer-ansi
from 0.33.24 to 0.33.51Release notes
Sourced from
@effect/printer-ansi
's releases.Changelog
Sourced from
@effect/printer-ansi
's changelog.... (truncated)
Commits
c7081cf
Version Packages (#3341)0af945c
Version Packages (#3301)f34f6a7
Version Packages (#3285)a91a8e5
Version Packages (#3275)3271ca1
Version Packages (#3245)68f9cc9
Version Packages (#3237)98a88f7
Version Packages (#3232)a16e9be
Version Packages (#3222)cf8c52b
Version Packages (#3218)464c5a8
Version Packages (#3205)Updates
@effect/schema
from 0.67.18 to 0.69.2Release notes
Sourced from
@effect/schema
's releases.... (truncated)
Changelog
Sourced from
@effect/schema
's changelog.... (truncated)
Commits
c7081cf
Version Packages (#3341)d1018b0
Version Packages (#3330)f241154
Expose success and failure schemas onTaggedRequestClass
interface,… (#3333)9800255
fix schema benchmarks (#3328)199df95
Version Packages (#3323)20807a4
schema next minor (#3227)0af945c
Version Packages (#3301)4f72730
update JSON Schema guide (#3313)6921c4f
Remove incorrect static override type annotations in class definitions (#3311)29a5389
move Arbitrary / Pretty / JSON Schema / Equivalences to top level sections (#...Updates
effect
from 3.2.8 to 3.5.8Release notes
Sourced from effect's releases.
Changelog
Sourced from effect's changelog.