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

Commit

Permalink
Upgrade dependencies (#305)
Browse files Browse the repository at this point in the history
  • Loading branch information
IMax153 authored Jul 9, 2023
1 parent dd3e7fa commit 51a1bda
Show file tree
Hide file tree
Showing 53 changed files with 1,311 additions and 1,784 deletions.
2 changes: 1 addition & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected].0/schema.json",
"$schema": "https://unpkg.com/@changesets/[email protected].1/schema.json",
"changelog": ["@changesets/changelog-github", { "repo": "Effect-TS/cli" }],
"commit": false,
"fixed": [],
Expand Down
5 changes: 5 additions & 0 deletions .changeset/sixty-needles-tickle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@effect/cli": minor
---

upgrade to @effect/data@0.13.5, @effect/io@0.31.3, and @effect/printer{-ansi}@0.9.0
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:

strategy:
matrix:
node-version: [16.17.1]
node-version: [18.16.1]

steps:
- uses: actions/checkout@v3
Expand All @@ -27,7 +27,7 @@ jobs:
name: Install pnpm
id: pnpm-install
with:
version: 7
version: 8
run_install: false
- name: Get pnpm store directory
id: pnpm-cache
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ on:

jobs:
build:
runs-on: self-hosted
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [16.17.1]
node-version: [18.16.1]

steps:
- uses: actions/checkout@v3
Expand All @@ -28,7 +28,7 @@ jobs:
name: Install pnpm
id: pnpm-install
with:
version: 7
version: 8
run_install: false
- name: Get pnpm store directory
id: pnpm-cache
Expand Down
28 changes: 28 additions & 0 deletions docgen.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"exclude": ["src/internal/**/*.ts"],
"theme": "mikearnaldi/just-the-docs",
"parseCompilerOptions": {
"noEmit": true,
"strict": true,
"target": "ES2021",
"lib": ["ES2021"],
"paths": {
"@effect/cli": ["./src/index.ts"],
"@effect/cli/test/*": ["./test/*"],
"@effect/cli/examples/*": ["./examples/*"],
"@effect/cli/*": ["./src/*"]
}
},
"examplesCompilerOptions": {
"noEmit": true,
"strict": true,
"target": "ES2021",
"lib": ["ES2021"],
"paths": {
"@effect/cli": ["../../src/index.ts"],
"@effect/cli/test/*": ["../../test/*"],
"@effect/cli/examples/*": ["../../examples/*"],
"@effect/cli/*": ["../../src/*"]
}
}
}
4 changes: 0 additions & 4 deletions docs-ts.json

This file was deleted.

45 changes: 23 additions & 22 deletions docs/modules/Args.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,10 @@ Added in v1.0.0
```ts
export declare const atLeast: {
(times: number): <A>(self: Args<A>) => Args<Chunk<A>>
<A>(self: Args<A>, times: number): Args<Chunk<A>>
(times: 0): <A>(self: Args<A>) => Args<Chunk<A>>
(times: number): <A>(self: Args<A>) => Args<NonEmptyChunk<A>>
<A>(self: Args<A>, times: 0): Args<Chunk<A>>
<A>(self: Args<A>, times: number): Args<NonEmptyChunk<A>>
}
```
Expand All @@ -100,8 +102,10 @@ Added in v1.0.0
```ts
export declare const between: {
(min: number, max: number): <A>(self: Args<A>) => Args<Chunk<A>>
<A>(self: Args<A>, min: number, max: number): Args<Chunk<A>>
(min: 0, max: number): <A>(self: Args<A>) => Args<Chunk<A>>
(min: number, max: number): <A>(self: Args<A>) => Args<NonEmptyChunk<A>>
<A>(self: Args<A>, min: 0, max: number): Args<Chunk<A>>
<A>(self: Args<A>, min: number, max: number): Args<NonEmptyChunk<A>>
}
```
Expand All @@ -122,7 +126,7 @@ Added in v1.0.0
**Signature**
```ts
export declare const repeat1: <A>(self: Args<A>) => Args<Chunk<A>>
export declare const repeat1: <A>(self: Args<A>) => Args<NonEmptyChunk<A>>
```
Added in v1.0.0
Expand All @@ -138,7 +142,7 @@ Can optionally provide a custom argument name (defaults to `"boolean"`).
**Signature**
```ts
export declare const boolean: (options?: Args.ArgsConfig | undefined) => Args<boolean>
export declare const boolean: (options?: Args.ArgsConfig) => Args<boolean>
```
Added in v1.0.0
Expand All @@ -152,10 +156,7 @@ Can optionally provide a custom argument name (defaults to `"choice"`).
**Signature**
```ts
export declare const choice: <A>(
choices: readonly [[string, A], ...[string, A][]],
config?: Args.ArgsConfig | undefined
) => Args<A>
export declare const choice: <A>(choices: readonly [[string, A], ...[string, A][]], config?: Args.ArgsConfig) => Args<A>
```
Added in v1.0.0
Expand All @@ -169,7 +170,7 @@ Can optionally provide a custom argument name (defaults to `"date"`).
**Signature**
```ts
export declare const date: (config?: Args.ArgsConfig | undefined) => Args<globalThis.Date>
export declare const date: (config?: Args.ArgsConfig) => Args<globalThis.Date>
```
Added in v1.0.0
Expand All @@ -183,7 +184,7 @@ Can optionally provide a custom argument name (defaults to `"float"`).
**Signature**
```ts
export declare const float: (config?: Args.ArgsConfig | undefined) => Args<number>
export declare const float: (config?: Args.ArgsConfig) => Args<number>
```
Added in v1.0.0
Expand All @@ -197,7 +198,7 @@ Can optionally provide a custom argument name (defaults to `"integer"`).
**Signature**
```ts
export declare const integer: (config?: Args.ArgsConfig | undefined) => Args<number>
export declare const integer: (config?: Args.ArgsConfig) => Args<number>
```
Added in v1.0.0
Expand All @@ -223,7 +224,7 @@ Can optionally provide a custom argument name (defaults to `"text"`).
**Signature**
```ts
export declare const text: (config?: Args.ArgsConfig | undefined) => Args<string>
export declare const text: (config?: Args.ArgsConfig) => Args<string>
```
Added in v1.0.0
Expand All @@ -235,7 +236,7 @@ Added in v1.0.0
**Signature**
```ts
export declare const helpDoc: <A>(self: Args<A>) => any
export declare const helpDoc: <A>(self: Args<A>) => HelpDoc
```
Added in v1.0.0
Expand Down Expand Up @@ -275,7 +276,7 @@ Added in v1.0.0
**Signature**
```ts
export declare const usage: <A>(self: Args<A>) => any
export declare const usage: <A>(self: Args<A>) => Usage
```
Added in v1.0.0
Expand All @@ -301,8 +302,8 @@ Added in v1.0.0
```ts
export declare const mapOrFail: {
<A, B>(f: (a: A) => Either<any, B>): (self: Args<A>) => Args<B>
<A, B>(self: Args<A>, f: (a: A) => Either<any, B>): Args<B>
<A, B>(f: (a: A) => Either<HelpDoc, B>): (self: Args<A>) => Args<B>
<A, B>(self: Args<A>, f: (a: A) => Either<HelpDoc, B>): Args<B>
}
```
Expand All @@ -314,8 +315,8 @@ Added in v1.0.0
```ts
export declare const mapTryCatch: {
<A, B>(f: (a: A) => B, onError: (e: unknown) => any): (self: Args<A>) => Args<B>
<A, B>(self: Args<A>, f: (a: A) => B, onError: (e: unknown) => any): Args<B>
<A, B>(f: (a: A) => B, onError: (e: unknown) => HelpDoc): (self: Args<A>) => Args<B>
<A, B>(self: Args<A>, f: (a: A) => B, onError: (e: unknown) => HelpDoc): Args<B>
}
```
Expand Down Expand Up @@ -377,8 +378,8 @@ Added in v1.0.0
```ts
export declare const validate: {
(args: ReadonlyArray<string>): <A>(self: Args<A>) => Effect<never, any, readonly [readonly string[], A]>
<A>(self: Args<A>, args: ReadonlyArray<string>): Effect<never, any, readonly [readonly string[], A]>
(args: ReadonlyArray<string>): <A>(self: Args<A>) => Effect<never, ValidationError, readonly [readonly string[], A]>
<A>(self: Args<A>, args: ReadonlyArray<string>): Effect<never, ValidationError, readonly [readonly string[], A]>
}
```
Expand Down
2 changes: 1 addition & 1 deletion docs/modules/AutoCorrect.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Added in v1.0.0
**Signature**

```ts
export declare const levensteinDistance: (first: string, second: string, config: any) => number
export declare const levensteinDistance: (first: string, second: string, config: CliConfig) => number
```
Added in v1.0.0
14 changes: 9 additions & 5 deletions docs/modules/BuiltInOption.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Added in v1.0.0
**Signature**

```ts
export declare const showCompletionScript: (pathToExecutable: string, shellType: any) => BuiltInOption
export declare const showCompletionScript: (pathToExecutable: string, shellType: ShellType) => BuiltInOption
```
Added in v1.0.0
Expand All @@ -50,7 +50,7 @@ Added in v1.0.0
**Signature**
```ts
export declare const showCompletions: (index: number, shellType: any) => BuiltInOption
export declare const showCompletions: (index: number, shellType: ShellType) => BuiltInOption
```
Added in v1.0.0
Expand All @@ -60,7 +60,7 @@ Added in v1.0.0
**Signature**
```ts
export declare const showHelp: (usage: any, helpDoc: any) => BuiltInOption
export declare const showHelp: (usage: Usage, helpDoc: HelpDoc) => BuiltInOption
```
Added in v1.0.0
Expand All @@ -70,7 +70,7 @@ Added in v1.0.0
**Signature**
```ts
export declare const wizard: (commmand: any) => BuiltInOption
export declare const wizard: (commmand: Command<unknown>) => BuiltInOption
```
Added in v1.0.0
Expand Down Expand Up @@ -149,7 +149,11 @@ Added in v1.0.0
**Signature**

```ts
export declare const builtInOptions: <A>(command: any, usage: any, helpDoc: any) => any
export declare const builtInOptions: <A>(
command: Command<A>,
usage: Usage,
helpDoc: HelpDoc
) => Options<Option<BuiltInOption>>
```
Added in v1.0.0
Expand Down
12 changes: 9 additions & 3 deletions docs/modules/CliApp.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Added in v1.0.0
export declare const make: <A>(config: {
name: string
version: string
command: any
command: Command<A>
summary?: Span | undefined
footer?: HelpDoc | undefined
}) => CliApp<A>
Expand All @@ -47,8 +47,14 @@ Added in v1.0.0
```ts
export declare const run: {
<R, E, A>(args: ReadonlyArray<string>, f: (a: A) => Effect<any, E, void>): (self: CliApp<A>) => Effect<any, any, void>
<R, E, A>(self: CliApp<A>, args: ReadonlyArray<string>, f: (a: A) => Effect<any, E, void>): Effect<any, any, void>
<R, E, A>(args: ReadonlyArray<string>, f: (a: A) => Effect<Console | R, E, void>): (
self: CliApp<A>
) => Effect<Console | R, ValidationError | E, void>
<R, E, A>(self: CliApp<A>, args: ReadonlyArray<string>, f: (a: A) => Effect<Console | R, E, void>): Effect<
Console | R,
ValidationError | E,
void
>
}
```
Expand Down
18 changes: 12 additions & 6 deletions docs/modules/Command.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ Added in v1.0.0
**Signature**
```ts
export declare const helpDoc: <A>(self: Command<A>) => any
export declare const helpDoc: <A>(self: Command<A>) => HelpDoc
```
Added in v1.0.0
Expand All @@ -152,7 +152,7 @@ Added in v1.0.0
**Signature**
```ts
export declare const usage: <A>(self: Command<A>) => any
export declare const usage: <A>(self: Command<A>) => Usage
```
Added in v1.0.0
Expand All @@ -178,8 +178,8 @@ Added in v1.0.0
```ts
export declare const mapOrFail: {
<A, B>(f: (a: A) => Either<any, B>): (self: Command<A>) => Command<B>
<A, B>(self: Command<A>, f: (a: A) => Either<any, B>): Command<B>
<A, B>(f: (a: A) => Either<ValidationError, B>): (self: Command<A>) => Command<B>
<A, B>(self: Command<A>, f: (a: A) => Either<ValidationError, B>): Command<B>
}
```
Expand Down Expand Up @@ -211,8 +211,14 @@ Added in v1.0.0

```ts
export declare const parse: {
(args: ReadonlyArray<string>, config: any): <A>(self: Command<A>) => Effect<never, any, any>
<A>(self: Command<A>, args: ReadonlyArray<string>, config: any): Effect<never, any, any>
(args: ReadonlyArray<string>, config: CliConfig): <A>(
self: Command<A>
) => Effect<never, ValidationError, CommandDirective<A>>
<A>(self: Command<A>, args: ReadonlyArray<string>, config: CliConfig): Effect<
never,
ValidationError,
CommandDirective<A>
>
}
```
Expand Down
2 changes: 1 addition & 1 deletion docs/modules/CommandDirective.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Added in v1.0.0
**Signature**

```ts
export declare const builtIn: (option: any) => CommandDirective<never>
export declare const builtIn: (option: BuiltInOption) => CommandDirective<never>
```
Added in v1.0.0
Expand Down
8 changes: 4 additions & 4 deletions docs/modules/HelpDoc.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ Added in v1.0.0
**Signature**
```ts
export declare const descriptionList: (definitions: readonly [[any, HelpDoc], ...[any, HelpDoc][]]) => HelpDoc
export declare const descriptionList: (definitions: readonly [[Span, HelpDoc], ...[Span, HelpDoc][]]) => HelpDoc
```
Added in v1.0.0
Expand Down Expand Up @@ -160,7 +160,7 @@ Added in v1.0.0
**Signature**
```ts
export declare const getSpan: (self: HelpDoc) => any
export declare const getSpan: (self: HelpDoc) => Span
```
Added in v1.0.0
Expand All @@ -173,8 +173,8 @@ Added in v1.0.0
```ts
export declare const mapDescriptionList: {
(f: (span: any, helpDoc: HelpDoc) => readonly [Span, HelpDoc]): (self: HelpDoc) => HelpDoc
(self: HelpDoc, f: (span: any, helpDoc: HelpDoc) => readonly [Span, HelpDoc]): HelpDoc
(f: (span: Span, helpDoc: HelpDoc) => readonly [Span, HelpDoc]): (self: HelpDoc) => HelpDoc
(self: HelpDoc, f: (span: Span, helpDoc: HelpDoc) => readonly [Span, HelpDoc]): HelpDoc
}
```
Expand Down
Loading

0 comments on commit 51a1bda

Please sign in to comment.