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

Commit

Permalink
update effect (#157)
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-smart authored Dec 10, 2023
1 parent 7138486 commit 57931c2
Show file tree
Hide file tree
Showing 11 changed files with 418 additions and 378 deletions.
9 changes: 9 additions & 0 deletions .changeset/lucky-shirts-call.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
"@effect/rpc-http-node": minor
"@effect/rpc-workers": minor
"@effect/rpc-nextjs": minor
"@effect/rpc-http": minor
"@effect/rpc": minor
---

update effect
12 changes: 4 additions & 8 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,9 @@
"[typescriptreact]": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
},
"eslint.validate": [
"markdown",
"javascript",
"typescript"
],
"eslint.validate": ["markdown", "javascript", "typescript"],
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
"source.fixAll.eslint": "explicit"
},
"editor.quickSuggestions": {
"other": true,
Expand All @@ -42,12 +38,12 @@
"editor.tabCompletion": "off",
"editor.suggest.localityBonus": true,
"editor.suggestSelection": "recentlyUsed",
"editor.wordBasedSuggestions": true,
"editor.wordBasedSuggestions": "matchingDocuments",
"editor.parameterHints.enabled": true,
"files.watcherExclude": {
"**/target": true
},
"files.insertFinalNewline": true,
"nixEnvSelector.nixFile": "${workspaceRoot}/flake.nix",
"testing.automaticallyOpenPeekView": "never",
"testing.automaticallyOpenPeekView": "never"
}
54 changes: 38 additions & 16 deletions docs/rpc/Error.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,13 @@ Added in v1.0.0
export declare const RpcDecodeFailure: SchemaC<
RpcDecodeFailure,
RpcDecodeFailure,
{ readonly errors: readonly [ParseResult.ParseErrors, ...ParseResult.ParseErrors[]] }
>
{
readonly errors: readonly [
ParseResult.ParseIssue,
...ParseResult.ParseIssue[],
];
}
>;
```

Added in v1.0.0
Expand All @@ -52,8 +57,13 @@ Added in v1.0.0
export declare const RpcEncodeFailure: SchemaC<
RpcEncodeFailure,
RpcEncodeFailure,
{ readonly errors: readonly [ParseResult.ParseErrors, ...ParseResult.ParseErrors[]] }
>
{
readonly errors: readonly [
ParseResult.ParseIssue,
...ParseResult.ParseIssue[],
];
}
>;
```

Added in v1.0.0
Expand All @@ -63,7 +73,11 @@ Added in v1.0.0
**Signature**

```ts
export declare const RpcNotFound: SchemaC<RpcNotFound, RpcNotFound, { readonly method: string }>
export declare const RpcNotFound: SchemaC<
RpcNotFound,
RpcNotFound,
{ readonly method: string }
>;
```

Added in v1.0.0
Expand All @@ -73,7 +87,11 @@ Added in v1.0.0
**Signature**

```ts
export declare const RpcTransportError: SchemaC<RpcTransportError, RpcTransportError, { readonly error: unknown }>
export declare const RpcTransportError: SchemaC<
RpcTransportError,
RpcTransportError,
{ readonly error: unknown }
>;
```

Added in v1.0.0
Expand All @@ -86,8 +104,8 @@ Added in v1.0.0

```ts
export interface RpcDecodeFailure {
readonly _tag: "RpcDecodeFailure"
readonly errors: ROA.NonEmptyReadonlyArray<ParseResult.ParseErrors>
readonly _tag: "RpcDecodeFailure";
readonly errors: ROA.NonEmptyReadonlyArray<ParseResult.ParseIssue>;
}
```

Expand All @@ -99,8 +117,8 @@ Added in v1.0.0

```ts
export interface RpcEncodeFailure {
readonly _tag: "RpcEncodeFailure"
readonly errors: ROA.NonEmptyReadonlyArray<ParseResult.ParseErrors>
readonly _tag: "RpcEncodeFailure";
readonly errors: ROA.NonEmptyReadonlyArray<ParseResult.ParseIssue>;
}
```

Expand All @@ -111,7 +129,11 @@ Added in v1.0.0
**Signature**

```ts
export type RpcError = RpcDecodeFailure | RpcEncodeFailure | RpcNotFound | RpcTransportError
export type RpcError =
| RpcDecodeFailure
| RpcEncodeFailure
| RpcNotFound
| RpcTransportError;
```

Added in v1.0.0
Expand All @@ -122,8 +144,8 @@ Added in v1.0.0

```ts
export interface RpcNotFound {
readonly _tag: "RpcNotFound"
readonly method: string
readonly _tag: "RpcNotFound";
readonly method: string;
}
```

Expand All @@ -135,8 +157,8 @@ Added in v1.0.0

```ts
export interface RpcTransportError {
readonly _tag: "RpcTransportError"
readonly error: unknown
readonly _tag: "RpcTransportError";
readonly error: unknown;
}
```

Expand All @@ -152,7 +174,7 @@ Added in v1.0.0
export declare const RpcError: Schema.Schema<
RpcEncodeFailure | RpcTransportError | RpcNotFound | RpcDecodeFailure,
RpcEncodeFailure | RpcTransportError | RpcNotFound | RpcDecodeFailure
>
>;
```

Added in v1.0.0
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@
"@babel/plugin-transform-modules-commonjs": "^7.23.3",
"@changesets/changelog-github": "^0.5.0",
"@changesets/cli": "^2.27.1",
"@effect/build-utils": "^0.5.1",
"@effect/docgen": "^0.3.6",
"@effect/build-utils": "^0.7.0",
"@effect/docgen": "^0.3.8",
"@effect/eslint-plugin": "^0.1.2",
"@effect/language-service": "^0.0.21",
"@effect/language-service": "^0.1.0",
"@typescript-eslint/eslint-plugin": "^6.13.2",
"@typescript-eslint/parser": "^6.13.2",
"@vitest/coverage-v8": "^1.0.1",
"@vitest/web-worker": "^1.0.1",
"@vitest/coverage-v8": "^1.0.4",
"@vitest/web-worker": "^1.0.4",
"babel-plugin-annotate-pure-calls": "^0.4.0",
"eslint": "^8.55.0",
"eslint-import-resolver-typescript": "^3.6.1",
Expand All @@ -42,9 +42,9 @@
"eslint-plugin-sort-destructure-keys": "^1.5.0",
"glob": "^10.3.10",
"madge": "^6.1.0",
"prettier": "^3.1.0",
"typescript": "^5.3.2",
"vite": "^5.0.5",
"vitest": "^1.0.1"
"prettier": "^3.1.1",
"typescript": "^5.3.3",
"vite": "^5.0.7",
"vitest": "^1.0.4"
}
}
10 changes: 5 additions & 5 deletions packages/http-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@
"@effect/rpc-http": "workspace:^"
},
"devDependencies": {
"@effect/platform": "^0.33.0",
"@effect/schema": "^0.52.0",
"@types/node": "^20.10.3"
"@effect/platform": "^0.34.0",
"@effect/schema": "^0.53.0",
"@types/node": "^20.10.4"
},
"peerDependencies": {
"@effect/platform": "^0.33.0",
"effect": "2.0.0-next.59"
"@effect/platform": "^0.34.0",
"effect": "2.0.0-next.60"
}
}
14 changes: 7 additions & 7 deletions packages/http/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@
"@effect/rpc": "workspace:^"
},
"devDependencies": {
"@effect/platform": "^0.33.0",
"@effect/platform-node": "^0.34.0",
"@effect/schema": "^0.52.0",
"effect": "2.0.0-next.59"
"@effect/platform": "^0.34.0",
"@effect/platform-node": "^0.35.0",
"@effect/schema": "^0.53.0",
"effect": "2.0.0-next.60"
},
"peerDependencies": {
"@effect/platform": "^0.33.0",
"@effect/schema": "^0.52.0",
"effect": "2.0.0-next.59"
"@effect/platform": "^0.34.0",
"@effect/schema": "^0.53.0",
"effect": "2.0.0-next.60"
}
}
12 changes: 6 additions & 6 deletions packages/nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@
"@effect/rpc-http": "workspace:^"
},
"devDependencies": {
"@effect/platform": "^0.33.0",
"@effect/schema": "^0.52.0",
"effect": "2.0.0-next.59",
"next": "^14.0.3"
"@effect/platform": "^0.34.0",
"@effect/schema": "^0.53.0",
"effect": "2.0.0-next.60",
"next": "^14.0.4"
},
"peerDependencies": {
"@effect/platform": "^0.33.0",
"effect": "2.0.0-next.59",
"@effect/platform": "^0.34.0",
"effect": "2.0.0-next.60",
"next": ">=13 <15"
}
}
8 changes: 4 additions & 4 deletions packages/rpc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@
"build-annotate": "babel build --plugins annotate-pure-calls --out-dir build --source-maps"
},
"devDependencies": {
"@effect/schema": "^0.52.0",
"effect": "2.0.0-next.59"
"@effect/schema": "^0.53.0",
"effect": "2.0.0-next.60"
},
"peerDependencies": {
"@effect/schema": "^0.52.0",
"effect": "2.0.0-next.59"
"@effect/schema": "^0.53.0",
"effect": "2.0.0-next.60"
}
}
8 changes: 4 additions & 4 deletions packages/rpc/src/Error.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const RpcNotFound: SchemaC<
*/
export interface RpcDecodeFailure {
readonly _tag: "RpcDecodeFailure"
readonly errors: ROA.NonEmptyReadonlyArray<ParseResult.ParseErrors>
readonly errors: ROA.NonEmptyReadonlyArray<ParseResult.ParseIssue>
}

/**
Expand All @@ -48,7 +48,7 @@ export interface RpcDecodeFailure {
export const RpcDecodeFailure: SchemaC<
RpcDecodeFailure,
RpcDecodeFailure,
{ readonly errors: ROA.NonEmptyReadonlyArray<ParseResult.ParseErrors> }
{ readonly errors: ROA.NonEmptyReadonlyArray<ParseResult.ParseIssue> }
> = withConstructorTagged(
Schema.struct({
_tag: Schema.literal("RpcDecodeFailure"),
Expand All @@ -63,7 +63,7 @@ export const RpcDecodeFailure: SchemaC<
*/
export interface RpcEncodeFailure {
readonly _tag: "RpcEncodeFailure"
readonly errors: ROA.NonEmptyReadonlyArray<ParseResult.ParseErrors>
readonly errors: ROA.NonEmptyReadonlyArray<ParseResult.ParseIssue>
}

/**
Expand All @@ -73,7 +73,7 @@ export interface RpcEncodeFailure {
export const RpcEncodeFailure: SchemaC<
RpcEncodeFailure,
RpcEncodeFailure,
{ readonly errors: ROA.NonEmptyReadonlyArray<ParseResult.ParseErrors> }
{ readonly errors: ROA.NonEmptyReadonlyArray<ParseResult.ParseIssue> }
> = withConstructorTagged(
Schema.struct({
_tag: Schema.literal("RpcEncodeFailure"),
Expand Down
14 changes: 7 additions & 7 deletions packages/workers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@
"@effect/rpc": "workspace:^"
},
"devDependencies": {
"@effect/platform": "^0.33.0",
"@effect/platform-browser": "^0.21.0",
"@effect/schema": "^0.52.0",
"effect": "2.0.0-next.59"
"@effect/platform": "^0.34.0",
"@effect/platform-browser": "^0.22.0",
"@effect/schema": "^0.53.0",
"effect": "2.0.0-next.60"
},
"peerDependencies": {
"@effect/platform": "^0.33.0",
"@effect/schema": "^0.52.0",
"effect": "2.0.0-next.59"
"@effect/platform": "^0.34.0",
"@effect/schema": "^0.53.0",
"effect": "2.0.0-next.60"
}
}
Loading

0 comments on commit 57931c2

Please sign in to comment.