The initial state of a Prompt can either be a pure value or an Effect. This
is particularly useful when the initial state of the Prompt must be computed
by performing some effectful computation, such as reading data from the file
system.
A Prompt is essentially a render loop where user input triggers a new frame
to be rendered to the Terminal. The handlers of a custom prompt are used
to control what is rendered to the Terminal each frame. During each frame,
the following occurs:
The render handler is called with this frame's prompt state and prompt
action and returns an ANSI escape string to be rendered to the
Terminal
The Terminal obtains input from the user
The process handler is called with the input obtained from the user
and this frame's prompt state and returns the next prompt action that
should be performed
The clear handler is called with this frame's prompt state and prompt
action and returns an ANSI escape string used to clear the screen of
the Terminal
The initial state of a Prompt can either be a pure value or an Effect. This
is particularly useful when the initial state of the Prompt must be computed
by performing some effectful computation, such as reading data from the file
system.
A Prompt is essentially a render loop where user input triggers a new frame
to be rendered to the Terminal. The handlers of a custom prompt are used
to control what is rendered to the Terminal each frame. During each frame,
the following occurs:
The render handler is called with this frame's prompt state and prompt
action and returns an ANSI escape string to be rendered to the
Terminal
The Terminal obtains input from the user
The process handler is called with the input obtained from the user
and this frame's prompt state and returns the next prompt action that
should be performed
The clear handler is called with this frame's prompt state and prompt
action and returns an ANSI escape string used to clear the screen of
the Terminal
#3143d006cec Thanks @gcanti! - Enhance JSON Schema Support for Refinements in Record Parameters.
Enhanced JSONSchema.make to properly support refinements as record parameters. Previously, using refinements with Schema.Record resulted in errors when generating JSON schemas.
Before
import { JSONSchema, Schema } from "@effect/schema";
console.log(JSONSchema.make(schema));
/*
throws
Error: Unsupported index signature parameter
schema (Refinement): a string at least 1 character(s) long
*/
Now
import { JSONSchema, Schema } from "@effect/schema";
#3143d006cec Thanks @gcanti! - Enhance JSON Schema Support for Refinements in Record Parameters.
Enhanced JSONSchema.make to properly support refinements as record parameters. Previously, using refinements with Schema.Record resulted in errors when generating JSON schemas.
Before
import { JSONSchema, Schema } from "@effect/schema";
console.log(JSONSchema.make(schema));
/*
throws
Error: Unsupported index signature parameter
schema (Refinement): a string at least 1 character(s) long
*/
Now
import { JSONSchema, Schema } from "@effect/schema";
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore major version` will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
- `@dependabot ignore minor version` will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
- `@dependabot ignore ` will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore ` will remove all of the ignore conditions of the specified dependency
- `@dependabot unignore ` will remove the ignore condition of the specified dependency and ignore conditions
Bumps the production-dependencies group with 7 updates in the / directory:
0.36.40
0.37.0
0.55.5
0.58.19
0.51.5
0.53.18
0.33.24
0.33.38
0.33.24
0.33.38
0.67.18
0.68.16
3.2.8
3.4.6
Updates
@effect/cli
from 0.36.40 to 0.37.0Release notes
Sourced from
@effect/cli
's releases.... (truncated)
Changelog
Sourced from
@effect/cli
's changelog.... (truncated)
Commits
542baf7
Version Packages (#3154)51bb7d5
AddPrompt.file
to support path-based options in the CLI's--wizard
mode ...48e614e
Version Packages (#3140)53038f1
Version Packages (#3137)a4982f6
Version Packages (#3128)07be551
Version Packages (#3126)c004e11
Version Packages (#3118)fcb7411
Adds a--log-level
built-in option to all commands (#3107)f7688bf
Version Packages (#3105)0cb3e9d
Ensure help documentation always respects the cli configuration (#3106)Updates
@effect/platform
from 0.55.5 to 0.58.19Release notes
Sourced from
@effect/platform
's releases.Changelog
Sourced from
@effect/platform
's changelog.... (truncated)
Commits
48e614e
Version Packages (#3140)53038f1
Version Packages (#3137)7f8900a
support undefined in http request schema apis (#3136)a4982f6
Version Packages (#3128)8513d7e
README: Recommend using thestrict: true
option to get better error… (#3132)07be551
Version Packages (#3126)c004e11
Version Packages (#3118)baa90df
add HttpClient.followRedirects api (#3123)f7688bf
Version Packages (#3105)6d2280e
fix assignability of HttpMiddleware in HttpRouter.use (#3109)Updates
@effect/platform-node
from 0.51.5 to 0.53.18Release notes
Sourced from
@effect/platform-node
's releases.Changelog
Sourced from
@effect/platform-node
's changelog.... (truncated)
Commits
48e614e
Version Packages (#3140)53038f1
Version Packages (#3137)a4982f6
Version Packages (#3128)07be551
Version Packages (#3126)c004e11
Version Packages (#3118)baa90df
add HttpClient.followRedirects api (#3123)f7688bf
Version Packages (#3105)6d2280e
fix assignability of HttpMiddleware in HttpRouter.use (#3109)c187493
Version Packages (#3100)e86211a
Version Packages (#3093)Updates
@effect/printer
from 0.33.24 to 0.33.38Release notes
Sourced from
@effect/printer
's releases.Changelog
Sourced from
@effect/printer
's changelog.... (truncated)
Commits
a4982f6
Version Packages (#3128)c187493
Version Packages (#3100)e86211a
Version Packages (#3093)6b3bd87
Version Packages (#3081)a70705c
Version Packages (#3071)7ba763c
Version Packages (#3060)01075fb
Version Packages (#3034)276b394
Version Packages (#3013)ebed962
Version Packages (#3003)368d735
Version Packages (#2996)Updates
@effect/printer-ansi
from 0.33.24 to 0.33.38Release notes
Sourced from
@effect/printer-ansi
's releases.Changelog
Sourced from
@effect/printer-ansi
's changelog.... (truncated)
Commits
a4982f6
Version Packages (#3128)c187493
Version Packages (#3100)e86211a
Version Packages (#3093)6b3bd87
Version Packages (#3081)a70705c
Version Packages (#3071)7ba763c
Version Packages (#3060)01075fb
Version Packages (#3034)276b394
Version Packages (#3013)ebed962
Version Packages (#3003)368d735
Version Packages (#2996)Updates
@effect/schema
from 0.67.18 to 0.68.16Release notes
Sourced from
@effect/schema
's releases.... (truncated)
Changelog
Sourced from
@effect/schema
's changelog.... (truncated)
Commits
48e614e
Version Packages (#3140)cb22726
add PersistedCache module to /experimental (#3149)2530780
Add an example of a transformation where we need to use `Schema.typeS… (#3145)d006cec
Enhance JSON Schema Support for Refinements in Record Parameters (#3143)e911cfd
Optimize JSON Schema output for homogeneous tuples (such as non empty… (#3139)a4982f6
Version Packages (#3128)8513d7e
README: Recommend using thestrict: true
option to get better error… (#3132)34faeb6
AddReadonlyMapFromRecord
andMapFromRecord
, closes #3119 (#3130)07be551
Version Packages (#3126)61e5964
Add support for Union, Suspend, and Refinement as the second argument… (#3125)Updates
effect
from 3.2.8 to 3.4.6Release notes
Sourced from effect's releases.
... (truncated)
Changelog
Sourced from effect's changelog.
... (truncated)
Commits
a4982f6
Version Packages (#3128)139d4b3
use Channel.acquireUseRelease for Channel.withSpan (#3134)33735b1
Support for the tacit usage of external handlers forMatch.tag
and `Match.t...5c0ceb0
Micro: renaming to align withEffect
module (#3096)489d20a
refactor vitest (#3122)c187493
Version Packages (#3100)a047af9
fix using unions with Match.withReturnType (#3099)e86211a
Version Packages (#3093)d7dde2b
remove global AbortController from Micro (#3095)72638e3
Micro: updatefromOption
to change the failure type to `NoSuchElementExcept...Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show